diff options
author | dinoex <dinoex@FreeBSD.org> | 2005-11-21 00:03:43 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2005-11-21 00:03:43 +0800 |
commit | 182f191609d59021e2ee1e664be04cf1906f10b5 (patch) | |
tree | 2c94d423f12be6484b7ff3e328e78c5f6bb70039 /mail/milter-regex | |
parent | af7292d9f551b86c14eedb3c352ea53a0c468009 (diff) | |
download | freebsd-ports-gnome-182f191609d59021e2ee1e664be04cf1906f10b5.tar.gz freebsd-ports-gnome-182f191609d59021e2ee1e664be04cf1906f10b5.tar.zst freebsd-ports-gnome-182f191609d59021e2ee1e664be04cf1906f10b5.zip |
- update to 1.6
- make prefix safe
- register shared milter dependency
Approved by: dhartmei
Diffstat (limited to 'mail/milter-regex')
-rw-r--r-- | mail/milter-regex/Makefile | 26 | ||||
-rw-r--r-- | mail/milter-regex/distinfo | 5 |
2 files changed, 24 insertions, 7 deletions
diff --git a/mail/milter-regex/Makefile b/mail/milter-regex/Makefile index 0e73bdaa282b..b0819ca2ae0e 100644 --- a/mail/milter-regex/Makefile +++ b/mail/milter-regex/Makefile @@ -7,7 +7,7 @@ # PORTNAME= milter_regex -PORTVERSION= 1.5 +PORTVERSION= 1.6 CATEGORIES= mail MASTER_SITES= http://www.benzedrine.cx/ DISTNAME= milter-regex-${PORTVERSION} @@ -15,26 +15,42 @@ DISTNAME= milter-regex-${PORTVERSION} MAINTAINER= dhartmei@FreeBSD.org COMMENT= Milter plugin to sendmail for regular expression filtering +WRKSRC= ${WRKDIR}/milter-regex USE_REINPLACE= yes MAILUSER?= mailnull MAN8= milter-regex.8 PLIST_FILES= libexec/milter-regex +MAKE_ENV+= LDFLAGS="${LDFLAGS}" +.include <bsd.port.pre.mk> + +.if defined(SENDMAIL_MILTER_PORT) +.if defined(SENDMAIL_WITH_SHARED_MILTER) +LIB_DEPENDS+= milter.3:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT} +.else +BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT} +.endif +LDFLAGS+= -L${LOCALBASE}/lib +.endif + +.if !defined(SENDMAIL_MILTER_PORT) pre-everything:: .if !exists(/usr/lib/libmilter.a) ${ECHO_CMD} "Fatal: milter required, see instructions in DESCR" - exit 1 + ${FALSE} +.endif .endif post-patch: @${REINPLACE_CMD} -e \ - "s:/etc/milter-regex.conf:/usr/local/etc/milter-regex.conf:g; \ + "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \ s:_milter-regex:${MAILUSER}:g;" ${WRKSRC}/milter-regex.c @${REINPLACE_CMD} -e \ - "s:/etc/milter-regex.conf:/usr/local/etc/milter-regex.conf:g; \ + "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \ s:mailstats 1:mailstats 8:;" ${WRKSRC}/milter-regex.8 @${REINPLACE_CMD} -e "s:-lpthread:${PTHREAD_LIBS}:g; \ s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}:g; \ + s:-L/usr/local/lib:-L${LOCALBASE}/lib:g; \ s/-Werror//g" ${WRKSRC}/Makefile do-install: @@ -42,4 +58,4 @@ do-install: @${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${PREFIX}/man/man8 @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/mail/milter-regex/distinfo b/mail/milter-regex/distinfo index 6a21614f0f0b..4a598a8d5433 100644 --- a/mail/milter-regex/distinfo +++ b/mail/milter-regex/distinfo @@ -1,2 +1,3 @@ -MD5 (milter-regex-1.5.tar.gz) = 56f0a4648e46943e9f19256332211a17 -SIZE (milter-regex-1.5.tar.gz) = 15784 +MD5 (milter-regex-1.6.tar.gz) = 6b5dbc79b0c78cf186f9a19f8d4e3889 +SHA256 (milter-regex-1.6.tar.gz) = fdfa48a98aa089f395d7e86e95d952263855517540410fa6c58f175a7b1e776e +SIZE (milter-regex-1.6.tar.gz) = 16969 |