aboutsummaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-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