blob: 2db5976de3126821c4d261f0fe912e7e71faa61e (
plain)
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
|
# New ports collection makefile for: milter-greylist
# Date created: 27 Apr 2004
# Whom: Cyril Guibourg
#
# $FreeBSD$
#
PORTNAME= milter-greylist
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/
EXTRACT_SUFX= .tgz
MAINTAINER= aragorn+ports@teaser.fr
COMMENT= Easy-to-use greylist milter for sendmail
MAN5= greylist.conf.5
MAN8= milter-greylist.8
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+= --with-user=smmsp
CFLAGS+= ${PTHREAD_CFLAGS}
LIBS+= ${PTHREAD_LIBS}
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LIBS="${LIBS}"
ALL_TARGET= milter-greylist
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
CONFLICTS= milter-greylist-devel-[1-9]*.*
post-extract:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/milter-greylist.sh > ${WRKSRC}/milter-greylist.sh
do-install:
@${MKDIR} ${PREFIX}/etc/mail
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \
${PREFIX}/etc/mail/greylist.conf.sample
@${INSTALL_SCRIPT} ${WRKSRC}/milter-greylist.sh ${PREFIX}/etc/rc.d/
post-install:
@${MKDIR} /var/milter-greylist /var/db/milter-greylist
@${CHOWN} smmsp /var/milter-greylist /var/db/milter-greylist
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|