Lines 7-22
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= milter-greylist-devel |
8 |
PORTNAME= milter-greylist-devel |
9 |
DISTVERSION= 2.0b1 |
9 |
DISTVERSION= 2.0b1 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= mail |
11 |
CATEGORIES= mail |
11 |
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/ |
12 |
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/ |
12 |
DISTNAME= milter-greylist-${DISTVERSION} |
13 |
DISTNAME= milter-greylist-${DISTVERSION} |
13 |
EXTRACT_SUFX= .tgz |
14 |
EXTRACT_SUFX= .tgz |
14 |
|
15 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
16 |
MAINTAINER= pgollucci@p6m7g8.com |
16 |
COMMENT= Easy-to-use greylist milter for sendmail (development) |
17 |
COMMENT= Easy-to-use greylist milter for sendmail (development) |
17 |
|
18 |
|
|
|
19 |
.if !defined(NO_INSTALL_MANPAGES) |
18 |
MAN5= greylist.conf.5 |
20 |
MAN5= greylist.conf.5 |
19 |
MAN8= milter-greylist.8 |
21 |
MAN8= milter-greylist.8 |
|
|
22 |
.endif |
20 |
|
23 |
|
21 |
CFLAGS+= ${PTHREAD_CFLAGS} |
24 |
CFLAGS+= ${PTHREAD_CFLAGS} |
22 |
LIBS+= ${PTHREAD_LIBS} |
25 |
LIBS+= ${PTHREAD_LIBS} |
Lines 28-61
Link Here
|
28 |
|
31 |
|
29 |
ALL_TARGET= milter-greylist |
32 |
ALL_TARGET= milter-greylist |
30 |
|
33 |
|
31 |
USE_RC_SUBR= yes |
34 |
USE_RC_SUBR= milter-greylist |
32 |
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} |
35 |
SUB_FILES+= pkg-message |
33 |
|
36 |
|
34 |
CONFLICTS= milter-greylist-[1-9]*.* |
37 |
CONFLICTS= milter-greylist-[1-9]*.* |
35 |
|
38 |
|
36 |
post-extract: |
|
|
37 |
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ |
38 |
${FILESDIR}/milter-greylist.sh > ${WRKSRC}/milter-greylist.sh |
39 |
|
40 |
do-install: |
39 |
do-install: |
41 |
@${MKDIR} ${PREFIX}/etc/mail |
40 |
@${MKDIR} ${PREFIX}/etc/mail |
42 |
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin |
41 |
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/bin |
|
|
42 |
.if !defined (NO_INSTALL_MANPAGES) |
43 |
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5 |
43 |
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5 |
44 |
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8 |
44 |
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8 |
|
|
45 |
.endif |
45 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \ |
46 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \ |
46 |
${PREFIX}/etc/mail/greylist.conf.sample |
47 |
${PREFIX}/etc/mail/greylist.conf.sample |
47 |
@${INSTALL_SCRIPT} ${WRKSRC}/milter-greylist.sh ${PREFIX}/etc/rc.d/ |
|
|
48 |
|
48 |
|
49 |
post-install: |
49 |
post-install: |
50 |
@${MKDIR} /var/milter-greylist |
50 |
@${MKDIR} /var/milter-greylist |
51 |
@${CHOWN} smmsp /var/milter-greylist |
51 |
@${CHOWN} smmsp /var/milter-greylist |
52 |
.if !defined(NOPORTDOCS) |
52 |
.if !defined(NOPORTDOCS) |
53 |
@${MKDIR} ${DOCSDIR} |
53 |
@${MKDIR} ${DOCSDIR} |
54 |
@${MKDIR} ${EXAMPLESDIR} |
|
|
55 |
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
54 |
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
|
|
55 |
.endif |
56 |
.if !defined (NOPORTEXAMPLES) |
57 |
@${MKDIR} ${EXAMPLESDIR} |
56 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR} |
58 |
@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR} |
57 |
.endif |
59 |
.endif |
58 |
|
|
|
59 |
@${TEST} -f /var/db/milter-greylist/greylist.db && ( \ |
60 |
@${TEST} -f /var/db/milter-greylist/greylist.db && ( \ |
60 |
${ECHO} "***********************************************************"; \ |
61 |
${ECHO} "***********************************************************"; \ |
61 |
${ECHO} "***********************************************************"; \ |
62 |
${ECHO} "***********************************************************"; \ |
Lines 69-75
Link Here
|
69 |
${ECHO} "***********************************************************"; \ |
70 |
${ECHO} "***********************************************************"; \ |
70 |
${ECHO} "***********************************************************"; \ |
71 |
${ECHO} "***********************************************************"; \ |
71 |
) || ${TRUE} |
72 |
) || ${TRUE} |
72 |
|
|
|
73 |
@${CAT} ${PKGMESSAGE} |
73 |
@${CAT} ${PKGMESSAGE} |
74 |
|
74 |
|
75 |
.include <bsd.port.mk> |
75 |
.include <bsd.port.mk> |