blob: 8ad84b8d2a0490e6809a63b641410c09fdb819fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: milter-sender
# Date created: 7 Sep 2003
# Whom: Andrey Chernov
#
# $FreeBSD$
#
PORTNAME= milter-sender
PORTVERSION= 0.41
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.snert.com/Software/download/
DISTFILES= libsnert-1.23.tgz milter-sender-${PORTVERSION}.tgz
MAINTAINER= ache@FreeBSD.org
COMMENT= Real-time sender address verification, based on Milter API
RESTRICTED= see LICENSE.TXT
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/com/snert/src/milter-sender
MAKEFILE= makefile
.include <bsd.port.pre.mk>
.if !exists(/usr/lib/libmilter.a) && !exists(${LOCALBASE}/lib/libmilter.a)
IGNORE= requires Sendmail 8.12
.endif
.if exists(${LOCALBASE}/lib/libmilter.a)
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
DOCS= CHANGES.TXT index.shtml style.css mailto.js \
license-body.html LICENSE.TXT milter-sender.mc responses.txt
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS+= --with-db
MAKE_ENV+= PREFIX="${PREFIX}"
post-patch:
@${CP} ${FILESDIR}/version.h.in ${WRKSRC}/../lib/
pre-configure:
@cd ${WRKSRC}/../lib && \
${SETENV} CC="${CC}" CXX="${CXX}" \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
INSTALL="/usr/bin/install -c ${_BINOWNGRP}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
@cd ${WRKSRC}/../lib && \
${SETENV} ${MAKE_ENV} ${MAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/Img
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
@cd ${WRKSRC}/Img && \
${INSTALL_DATA} *.gif *.png ${DOCSDIR}/Img
.endif
@if [ ! -f ${PREFIX}/etc/rc.d/milter-sender.sh ] ; then \
${CP} ${PREFIX}/etc/rc.d/milter-sender.sh-dist ${PREFIX}/etc/rc.d/milter-sender.sh; \
${CHMOD} ug+x ${PREFIX}/etc/rc.d/milter-sender.sh; \
fi
@${CAT} ${PKGMESSAGE}
post-deinstall:
@if [ -f ${PREFIX}/etc/rc.d/milter-sender.sh ] && \
cmp -s ${PREFIX}/etc/rc.d/milter-sender.sh ${PREFIX}/etc/rc.d/milter-sender.sh-dist; then \
${RM} -f ${PREFIX}/etc/rc.d/milter-sender.sh; \
fi
@${ECHO_MSG} ""
@${ECHO_MSG} "Do not forget to delete the filter description from /etc/mail/YOUR-CONF.mc"
@${ECHO_MSG} "and rebuild sendmail.cf file!"
@${ECHO_MSG} ""
.include <bsd.port.post.mk>
|