aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2015-11-18 08:58:15 +0800
committervsevolod <vsevolod@FreeBSD.org>2015-11-18 08:58:15 +0800
commitf2fa3b2019448d2d3be396e19bed49ccb5771a33 (patch)
tree0634a9268ebc54a0cb0745b180da587b3eeabe48 /mail
parent9725daa912a5067582e877bd20607fc4682376cf (diff)
downloadfreebsd-ports-gnome-f2fa3b2019448d2d3be396e19bed49ccb5771a33.tar.gz
freebsd-ports-gnome-f2fa3b2019448d2d3be396e19bed49ccb5771a33.tar.zst
freebsd-ports-gnome-f2fa3b2019448d2d3be396e19bed49ccb5771a33.zip
- Update to 1.6.6
- Create a separate plist file - Add @sample option to the sample file - Rename rc script without .sh suffix - Switch from postfix user to _rmilter dedicated user - Add _rmilter:_rmilter to UIDs/GIDs - Add UPDATING entry
Diffstat (limited to 'mail')
-rw-r--r--mail/rmilter/Makefile15
-rw-r--r--mail/rmilter/distinfo4
-rw-r--r--mail/rmilter/pkg-plist9
3 files changed, 21 insertions, 7 deletions
diff --git a/mail/rmilter/Makefile b/mail/rmilter/Makefile
index 0c61cea8c4ce..53b365b3a0d8 100644
--- a/mail/rmilter/Makefile
+++ b/mail/rmilter/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= rmilter
-PORTVERSION= 1.6.5
+PORTVERSION= 1.6.6
CATEGORIES= mail
MAINTAINER= vsevolod@FreeBSD.org
@@ -20,9 +20,8 @@ USE_RC_SUBR= yes
USES= cmake:outsource bison
USE_OPENSSL= yes
-PLIST_FILES= sbin/rmilter etc/rc.d/rmilter.sh \
- etc/rmilter.conf.sample \
- man/man8/rmilter.8.gz
+USERS= _rmilter
+GROUPS= _rmilter
CMAKE_ARGS+= -DENABLE_SPF=ON \
-DENABLE_DKIM=ON
@@ -35,10 +34,16 @@ WITH_SENDMAIL_BASE= yes
WITHOUT_MILTER_LDFLAGS= yes
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
+post-patch:
+ ${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${WRKSRC}/freebsd/rmilter > ${WRKDIR}/rmilter
+
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/rmilter.sh ${STAGEDIR}${PREFIX}/etc/rc.d/
+ ${INSTALL_SCRIPT} ${WRKDIR}/rmilter ${STAGEDIR}${PREFIX}/etc/rc.d/
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/rmilter ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/rmilter.conf.sample ${STAGEDIR}${PREFIX}/etc/
${INSTALL_MAN} ${WRKSRC}/doc/rmilter.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
+post-stage:
+ ${INSTALL} -d ${STAGEDIR}/var/run/rmilter
.include <bsd.port.post.mk>
diff --git a/mail/rmilter/distinfo b/mail/rmilter/distinfo
index b5b3303e2a6f..31c276066a1e 100644
--- a/mail/rmilter/distinfo
+++ b/mail/rmilter/distinfo
@@ -1,2 +1,2 @@
-SHA256 (vstakhov-rmilter-1.6.5_GH0.tar.gz) = f5486a090e245fe1b35b96535a26145df0274603b849f0c1ee771970173d5e00
-SIZE (vstakhov-rmilter-1.6.5_GH0.tar.gz) = 117661
+SHA256 (vstakhov-rmilter-1.6.6_GH0.tar.gz) = 4e8c3374d0345ae99a3cd8f5965a0c49e1d1dc6bb0aa694c8f1fa2c4b5baf470
+SIZE (vstakhov-rmilter-1.6.6_GH0.tar.gz) = 117565
diff --git a/mail/rmilter/pkg-plist b/mail/rmilter/pkg-plist
new file mode 100644
index 000000000000..1cb80706a3a8
--- /dev/null
+++ b/mail/rmilter/pkg-plist
@@ -0,0 +1,9 @@
+etc/rc.d/rmilter
+@sample etc/rmilter.conf.sample
+man/man8/rmilter.8.gz
+sbin/rmilter
+@owner _rmilter
+@group mail
+@dir /var/run/rmilter
+@owner
+@group