diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2005-05-23 15:55:24 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2005-05-23 15:55:24 +0000 |
commit | 53fe81cdd6ac4cf2db16de07d3f209f16430a2f1 (patch) | |
tree | f4c9dc5aa9c28bed497fdcc8fb0dfcfe22355f6d /mail/sid-milter | |
parent | ce7f013bf87052f326e4a65a79c0fd2d93a50bcd (diff) | |
download | ports-53fe81cdd6ac4cf2db16de07d3f209f16430a2f1.tar.gz ports-53fe81cdd6ac4cf2db16de07d3f209f16430a2f1.zip |
Notes
Diffstat (limited to 'mail/sid-milter')
-rw-r--r-- | mail/sid-milter/Makefile | 25 | ||||
-rw-r--r-- | mail/sid-milter/pkg-plist | 4 |
2 files changed, 18 insertions, 11 deletions
diff --git a/mail/sid-milter/Makefile b/mail/sid-milter/Makefile index e18e79a6ae5c..5009a313c1f2 100644 --- a/mail/sid-milter/Makefile +++ b/mail/sid-milter/Makefile @@ -7,6 +7,7 @@ PORTNAME= sid-milter PORTVERSION= 0.2.5 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sid-milter @@ -26,17 +27,21 @@ RESTRICTED= may incorporate intellectual property, possible patent issues SENDMAIL_MILTER_PORT?= sendmail USE_REINPLACE= yes -MAKE_ENV+= LDFLAGS="${LDFLAGS}" WCONF= ${WRKSRC}/devtools/Site -MAN3= ar.3 MAN8= sid-filter.8 -INCFILES= libar/ar.h DOCSFILES= INSTALL KNOWNBUGS LICENSE README README-SenderID RELEASE_NOTES +INSTALL_WRKSRC= ${WRKSRC}/sid-filter SITE+= ${FILESDIR}/site.config.m4 .if !defined(SENDMAIL_MILTER_IN_BASE) SITE+= ${FILESDIR}/site.config.m4.milter .endif +.if defined(WITH_SIDMILTER_AR) +MAN3= ar.3 +PLIST_SUB+= WITH_AR="" +.else +PLIST_SUB+= WITH_AR="@comment " +.endif .include <bsd.port.pre.mk> @@ -52,6 +57,7 @@ pre-configure: @${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/milter-sid.sh \ > ${WRKSRC}/milter-sid.sh ${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \ + -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \ -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/devtools/OS/FreeBSD ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ @@ -61,17 +67,18 @@ pre-configure: post-install: ${INSTALL_SCRIPT} ${WRKSRC}/milter-sid.sh \ ${PREFIX}/etc/rc.d/milter-sid.sh.sample -.for i in ${MAN3} - @${RM} -f ${MANPREFIX}/man/cat3/${i} ${MANPREFIX}/man/cat3/${i}.gz - ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man3/ -.endfor .for i in ${MAN8} @${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8/ .endfor -.for i in ${INCFILES} - ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/include/ +.if defined(WITH_SIDMILTER_AR) + @(cd ${WRKSRC}/libar && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) +.for i in ${MAN3} + @${RM} -f ${MANPREFIX}/man/cat3/${i} ${MANPREFIX}/man/cat3/${i}.gz + ${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man3/ .endfor + ${INSTALL_DATA} ${WRKSRC}/libar/ar.h ${PREFIX}/include/libar.h +.endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} .for i in ${DOCSFILES} diff --git a/mail/sid-milter/pkg-plist b/mail/sid-milter/pkg-plist index 7ba07ab13438..6f6455dc21f3 100644 --- a/mail/sid-milter/pkg-plist +++ b/mail/sid-milter/pkg-plist @@ -1,7 +1,7 @@ etc/rc.d/milter-sid.sh.sample -include/ar.h -lib/libar.a libexec/sid-filter +%%WITH_AR%%include/libar.h +%%WITH_AR%%lib/libar.a %%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTDOCS%%%%DOCSDIR%%/KNOWNBUGS %%PORTDOCS%%%%DOCSDIR%%/LICENSE |