View | Details | Raw Unified | Return to bug 192740
Collapse All | Expand All

(-)mail/milter-greylist/Makefile (-29 / +29 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	milter-greylist
4
PORTNAME=	milter-greylist
5
PORTVERSION=	4.4.3
5
PORTVERSION=	4.4.3
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	mail
7
CATEGORIES=	mail
8
MASTER_SITES=	ftp://ftp.espci.fr/pub/milter-greylist/ \
8
MASTER_SITES=	ftp://ftp.espci.fr/pub/milter-greylist/ \
9
		http://fossies.org/unix/privat/
9
		http://fossies.org/unix/privat/
Lines 30-100 Link Here
30
# installed port preference over it.
30
# installed port preference over it.
31
##
31
##
32
32
33
OPTIONS_DEFINE=		MANPAGES SPF GEOIP CURL LDAP P0F POSTFIX DOCS EXAMPLES
33
OPTIONS_DEFINE=		SPF GEOIP CURL LDAP P0F POSTFIX DOCS EXAMPLES
34
OPTIONS_DEFAULT=	MANPAGES
35
SPF_DESC=		SPF support
34
SPF_DESC=		SPF support
36
CURL_DESC=		curl support
35
CURL_DESC=		curl support
37
P0F_DESC=		P0F support
36
P0F_DESC=		P0F support
38
POSTFIX_DESC=		Use Postfix instead of Sendmail
37
POSTFIX_DESC=		Use Postfix instead of Sendmail
39
38
39
P0F_RUN_DEPENDS+=	p0f:${PORTSDIR}/net-mgmt/p0f
40
SPF_BUILD_DEPENDS+=	libspf2>=1.2.5:${PORTSDIR}/mail/libspf2
41
CURL_BUILD_DEPENDS+=	curl>=7.18:${PORTSDIR}/ftp/curl
42
GEOIP_BUILD_DEPENDS+=	GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP
43
44
POSTFIX_CONFIGURE_ENABLE=	postfix
45
P0F_CONFIGURE_ENABLE=		p0f306
46
40
.include <bsd.port.options.mk>
47
.include <bsd.port.options.mk>
41
48
42
.if ${PORT_OPTIONS:MMANPAGES}
43
PLIST_FILES+=	man/man5/greylist.conf.5.gz \
44
		man/man8/milter-greylist.8.gz
45
.endif
46
.if ${PORT_OPTIONS:MSPF}
49
.if ${PORT_OPTIONS:MSPF}
47
BUILD_DEPENDS+=	libspf2>=1.2.5:${PORTSDIR}/mail/libspf2
48
CONFIGURE_ARGS+=	--with-libspf2=${LOCALBASE}
50
CONFIGURE_ARGS+=	--with-libspf2=${LOCALBASE}
49
.endif
51
.endif
52
50
.if ${PORT_OPTIONS:MGEOIP}
53
.if ${PORT_OPTIONS:MGEOIP}
51
BUILD_DEPENDS+=	GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP
52
CONFIGURE_ARGS+=	--with-libGeoIP=${LOCALBASE}
54
CONFIGURE_ARGS+=	--with-libGeoIP=${LOCALBASE}
53
.endif
55
.endif
56
54
.if ${PORT_OPTIONS:MCURL}
57
.if ${PORT_OPTIONS:MCURL}
55
BUILD_DEPENDS+=	curl>=7.18:${PORTSDIR}/ftp/curl
56
CONFIGURE_ARGS+=	--with-libcurl=${LOCALBASE}
58
CONFIGURE_ARGS+=	--with-libcurl=${LOCALBASE}
57
.endif
59
.endif
60
58
.if ${PORT_OPTIONS:MLDAP}
61
.if ${PORT_OPTIONS:MLDAP}
62
# We can't use LDAP_CONFIGURE_WITH because configure script is buggy
59
USE_OPENLDAP=yes
63
USE_OPENLDAP=yes
60
CONFIGURE_ARGS+=	--with-openldap
64
CONFIGURE_ARGS+=	--with-openldap
61
.endif
65
.endif
62
.if ${PORT_OPTIONS:MP0F}
66
63
RUN_DEPENDS+=	p0f:${PORTSDIR}/net-mgmt/p0f
67
.if ! ${PORT_OPTIONS:MPOSTFIX}
64
CONFIGURE_ARGS+=	--enable-p0f306
65
.endif
66
.if ${PORT_OPTIONS:MPOSTFIX}
67
CONFIGURE_ARGS+=	--enable-postfix
68
.else
69
LDFLAGS+=	${SENDMAIL_LDFLAGS}
68
LDFLAGS+=	${SENDMAIL_LDFLAGS}
70
LIBS+=		${SENDMAIL_LDADD}
69
LIBS+=		${SENDMAIL_LDADD}
71
.endif
70
.endif
72
RUN_DEPENDS+=	${BUILD_DEPENDS}
73
71
74
CFLAGS+=	${PTHREAD_CFLAGS}
72
CFLAGS+=	${PTHREAD_CFLAGS}
75
LIBS+=		${PTHREAD_LIBS}
73
LIBS+=		${PTHREAD_LIBS}
76
74
77
GNU_CONFIGURE=	yes
75
GNU_CONFIGURE=	yes
78
CONFIGURE_ARGS+=	--with-user=mailnull --with-libmilter=${MILTERBASE} \
76
CONFIGURE_ARGS+=	--with-user=mailnull \
79
			--enable-dnsrbl --with-thread-safe-resolver \
77
			--with-libmilter=${MILTERBASE} \
78
			--enable-dnsrbl \
79
			--with-thread-safe-resolver \
80
			--with-dumpfile=/var/milter-greylist/greylist.db
80
			--with-dumpfile=/var/milter-greylist/greylist.db
81
81
82
ALL_TARGET=	milter-greylist
82
ALL_TARGET=	milter-greylist
83
SUB_FILES+=	pkg-message
83
SUB_FILES+=	pkg-message
84
85
USE_RC_SUBR=	milter-greylist
84
USE_RC_SUBR=	milter-greylist
85
PORTDOCS=	README
86
PORTEXAMPLES=	greylist.conf
86
87
87
do-install:
88
do-install:
88
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail
89
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail
89
.if ${PORT_OPTIONS:MMANPAGES}
90
	${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 \
90
	${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${STAGEDIR}${PREFIX}/man/man5/
91
		${STAGEDIR}${PREFIX}/man/man5/
91
	${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${STAGEDIR}${PREFIX}/man/man8/
92
	${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 \
92
.endif
93
		${STAGEDIR}${PREFIX}/man/man8/
93
	${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${STAGEDIR}${PREFIX}/libexec/
94
	${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist \
95
		${STAGEDIR}${PREFIX}/libexec/
94
	${INSTALL_DATA} ${WRKSRC}/greylist.conf \
96
	${INSTALL_DATA} ${WRKSRC}/greylist.conf \
95
		${STAGEDIR}${PREFIX}/etc/mail/greylist.conf.sample
97
		${STAGEDIR}${PREFIX}/etc/mail/greylist.conf.sample
96
97
post-install:
98
.if ${PORT_OPTIONS:MDOCS}
98
.if ${PORT_OPTIONS:MDOCS}
99
	${MKDIR} ${STAGEDIR}${DOCSDIR}
99
	${MKDIR} ${STAGEDIR}${DOCSDIR}
100
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
100
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
Lines 104-109 Link Here
104
	${INSTALL_DATA} ${WRKSRC}/greylist.conf ${STAGEDIR}${EXAMPLESDIR}/
104
	${INSTALL_DATA} ${WRKSRC}/greylist.conf ${STAGEDIR}${EXAMPLESDIR}/
105
.endif
105
.endif
106
106
107
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
107
.include "${.CURDIR}/../sendmail/bsd.milter.mk"
108
108
109
.include <bsd.port.mk>
109
.include <bsd.port.mk>
(-)mail/milter-greylist/pkg-plist (-4 / +2 lines)
Lines 1-11 Link Here
1
libexec/milter-greylist
1
libexec/milter-greylist
2
man/man5/greylist.conf.5.gz
3
man/man8/milter-greylist.8.gz
2
etc/mail/greylist.conf.sample
4
etc/mail/greylist.conf.sample
3
%%PORTDOCS%%%%DOCSDIR%%/README
4
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/greylist.conf
5
@exec /bin/mkdir -p /var/milter-greylist
5
@exec /bin/mkdir -p /var/milter-greylist
6
@exec /usr/sbin/chown -R mailnull:mailnull /var/milter-greylist
6
@exec /usr/sbin/chown -R mailnull:mailnull /var/milter-greylist
7
@exec [ -f /var/db/milter-greylist/greylist.db ] && printf '\n\n************************************************************\n************************************************************\n**                                                        **\n**                        WARNING                         **\n**                                                        **\n** The default dump file location has changed.            **\n** Please move greylist.db from /var/db/milter-greylist/  **\n** to /var/milter-greylist/ and update your greylist.conf **\n** accordingly.                                           **\n**                                                        **\n************************************************************\n************************************************************\n' ||true
7
@exec [ -f /var/db/milter-greylist/greylist.db ] && printf '\n\n************************************************************\n************************************************************\n**                                                        **\n**                        WARNING                         **\n**                                                        **\n** The default dump file location has changed.            **\n** Please move greylist.db from /var/db/milter-greylist/  **\n** to /var/milter-greylist/ and update your greylist.conf **\n** accordingly.                                           **\n**                                                        **\n************************************************************\n************************************************************\n' ||true
8
%%PORTDOCS%%@dirrm %%DOCSDIR%%
9
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
10
@dirrmtry etc/mail
8
@dirrmtry etc/mail
11
@unexec [ -f /var/milter-greylist/greylist.db ] || rmdir /var/milter-greylist || true
9
@unexec [ -f /var/milter-greylist/greylist.db ] || rmdir /var/milter-greylist || true

Return to bug 192740