Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 20:17:04 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r331991 - head/mail/avenger
Message-ID:  <201310292017.r9TKH4iZ017974@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Oct 29 20:17:04 2013
New Revision: 331991
URL: http://svnweb.freebsd.org/changeset/ports/331991

Log:
  - Update to version 0.8.4 [1]
  - Support STAGEDIR, use options helpers
  
  PR:		ports/181885 [1]
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/mail/avenger/Makefile   (contents, props changed)
  head/mail/avenger/distinfo   (contents, props changed)
  head/mail/avenger/pkg-plist   (contents, props changed)

Modified: head/mail/avenger/Makefile
==============================================================================
--- head/mail/avenger/Makefile	Tue Oct 29 20:06:32 2013	(r331990)
+++ head/mail/avenger/Makefile	Tue Oct 29 20:17:04 2013	(r331991)
@@ -2,15 +2,16 @@
 # $FreeBSD$
 
 PORTNAME=	avenger
-PORTVERSION=	0.8.3
+PORTVERSION=	0.8.4
 CATEGORIES=	mail
 MASTER_SITES=	http://www.mailavenger.org/dist/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Anti-spam SMTP server
 
+USE_BDB=	42+
+USE_OPENSSL=	yes
 GNU_CONFIGURE=	yes
-USE_BDB=	43
 
 USERS=		${PORTNAME}
 GROUPS=		${USERS}
@@ -18,44 +19,35 @@ GROUPS=		${USERS}
 PORTDOCS=	INSTALL INSTALL.html README NEWS
 SUB_FILES=	pkg-message
 
-MAN1=		aliascheck.1 avenger.1 dbutil.1 deliver.1 dotlock.1 \
-		edinplace.1 escape.1 macutil.1 mailexec.1 match.1 \
-		smtpdcheck.1 synos.1
-MAN5=		asmtpd.conf.5
-MAN8=		asmtpd.8 avenger.local.8
-
 CONFIGURE_ENV=	WFLAGS='-Wall'
-CONFIGURE_ARGS=	--with-db=${LOCALBASE} --with-etcdir=${ETCDIR}
-
-OPTIONS_DEFINE=	SASL
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSASL}
-LIB_DEPENDS+=		sasl2:${PORTSDIR}/security/cyrus-sasl2
-CONFIGURE_ARGS+=	--enable-sasl
-.endif
+CONFIGURE_ARGS=	--enable-ssl=${OPENSSLBASE} \
+		--with-db=${LOCALBASE} \
+		--with-etcdir=${ETCDIR}
+
+OPTIONS_DEFINE=	SASL DOCS
+
+SASL_CONFIGURE_ON=	--enable-sasl
+SASL_LIB_DEPENDS=	sasl2:${PORTSDIR}/security/cyrus-sasl2
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		'/for vers in/s|5.*;|${BDB_LIB_NAME:S,db-,,};|' \
+		${WRKSRC}/configure
 
 post-install:
-	${MKDIR} ${ETCDIR}
-.for file in asmtpd.conf unknown
-	${INSTALL_DATA} ${WRKSRC}/etc/${file} ${ETCDIR}/${file}.sample
-	@if [ ! -f ${ETCDIR}/${file} ]; then \
-		${CP} -p ${ETCDIR}/${file}.sample ${ETCDIR}/${file} ; \
-	fi
-.endfor
-	${INSTALL_DATA} ${WRKSRC}/etc/pf.os ${PREFIX}/share
-	${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/etc/smtp-filter.pf ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/etc/avsendmail.m4 ${DATADIR}
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${ETCDIR}
+	${INSTALL_DATA} ${WRKSRC}/etc/asmtpd.conf \
+		${STAGEDIR}${ETCDIR}/asmtpd.conf.sample
+	${INSTALL_DATA} ${WRKSRC}/etc/unknown \
+		${STAGEDIR}${ETCDIR}/unknown.sample
+	${INSTALL_DATA} ${WRKSRC}/etc/pf.os ${STAGEDIR}${PREFIX}/share
+
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/etc/smtp-filter.pf ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/etc/avsendmail.m4 ${STAGEDIR}${DATADIR}
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 	@${CAT} ${PKGMESSAGE}
 

Modified: head/mail/avenger/distinfo
==============================================================================
--- head/mail/avenger/distinfo	Tue Oct 29 20:06:32 2013	(r331990)
+++ head/mail/avenger/distinfo	Tue Oct 29 20:17:04 2013	(r331991)
@@ -1,2 +1,2 @@
-SHA256 (avenger-0.8.3.tar.gz) = 0242648ddb4f26d39e89049a23cf5ab2f8992105f124e7334835daaf636cc4b7
-SIZE (avenger-0.8.3.tar.gz) = 874695
+SHA256 (avenger-0.8.4.tar.gz) = cd6be345687fa0e6be056a575865b937f8ebcb486cb4f8da2d74bf4c4bdd64ce
+SIZE (avenger-0.8.4.tar.gz) = 890192

Modified: head/mail/avenger/pkg-plist
==============================================================================
--- head/mail/avenger/pkg-plist	Tue Oct 29 20:06:32 2013	(r331990)
+++ head/mail/avenger/pkg-plist	Tue Oct 29 20:17:04 2013	(r331991)
@@ -18,6 +18,21 @@ bin/synos
 @exec if [ ! -f %D/etc/avenger/unknown ] ; then cp -p %D/%F %B/unknown; fi
 libexec/avenger
 libexec/avenger.local
+man/man1/aliascheck.1.gz
+man/man1/avenger.1.gz
+man/man1/dbutil.1.gz
+man/man1/deliver.1.gz
+man/man1/dotlock.1.gz
+man/man1/edinplace.1.gz
+man/man1/escape.1.gz
+man/man1/macutil.1.gz
+man/man1/mailexec.1.gz
+man/man1/match.1.gz
+man/man1/smtpdcheck.1.gz
+man/man1/synos.1.gz
+man/man5/asmtpd.conf.5.gz
+man/man8/asmtpd.8.gz
+man/man8/avenger.local.8.gz
 sbin/asmtpd
 %%DATADIR%%/avsendmail.m4
 %%DATADIR%%/smtp-filter.pf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310292017.r9TKH4iZ017974>