aboutsummaryrefslogtreecommitdiff
path: root/news/ifmail
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-04-01 19:15:03 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-04-01 19:15:03 +0000
commitff5258563d5b101e722221198f2672f13ec4ab69 (patch)
tree685aaf936b4b992efd8b9cc17a0bf7f39a82edaa /news/ifmail
parent0228268ee1b69ba50d1c2596847155df4494b9be (diff)
downloadports-ff5258563d5b101e722221198f2672f13ec4ab69.tar.gz
ports-ff5258563d5b101e722221198f2672f13ec4ab69.zip
Notes
Diffstat (limited to 'news/ifmail')
-rw-r--r--news/ifmail/Makefile5
-rw-r--r--news/ifmail/pkg-plist2
2 files changed, 7 insertions, 0 deletions
diff --git a/news/ifmail/Makefile b/news/ifmail/Makefile
index 2ff93f1a4f03..e6f4f267265f 100644
--- a/news/ifmail/Makefile
+++ b/news/ifmail/Makefile
@@ -37,6 +37,11 @@ post-install:
.for i in ${MAN3}
${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${PREFIX}/man/man3
.endfor
+ @${ECHO_CMD} "updating ${DESTDIR}/etc/services"
+ @${CP} ${DESTDIR}/etc/services ${DESTDIR}/etc/services.bak
+ @(grep -v ^ifcico ${DESTDIR}/etc/services.bak; \
+ ${ECHO_CMD} "ifcico 60179/tcp #ifcico server (ifmail)") \
+ > ${DESTDIR}/etc/services
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
diff --git a/news/ifmail/pkg-plist b/news/ifmail/pkg-plist
index a2b449c7f209..c5090222e010 100644
--- a/news/ifmail/pkg-plist
+++ b/news/ifmail/pkg-plist
@@ -177,3 +177,5 @@ libexec/ifmail/nlpatch
%%PORTDOCS%%@dirrm share/examples/ifmail/tcp
%%PORTDOCS%%@dirrm share/examples/ifmail/zmailer
%%PORTDOCS%%@dirrm share/examples/ifmail
+@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^ifcico /etc/services.bak ; echo "ifcico 60179/tcp #ifcico server (ifmail)") > /etc/services
+@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^ifcico /etc/services.bak ) > /etc/services