aboutsummaryrefslogtreecommitdiff
path: root/news/ifmail
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-03 15:12:08 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-03 15:12:08 +0000
commit896ca0fa811a18c27de6ad87b7cfa3c4d01c44af (patch)
treea83d20c777e209e4c1b37685d674cd57ba4a9742 /news/ifmail
parent99cffd33afcffc8d17dab8db6da626664c1e1435 (diff)
downloadports-896ca0fa811a18c27de6ad87b7cfa3c4d01c44af.tar.gz
ports-896ca0fa811a18c27de6ad87b7cfa3c4d01c44af.zip
Notes
Diffstat (limited to 'news/ifmail')
-rw-r--r--news/ifmail/Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/news/ifmail/Makefile b/news/ifmail/Makefile
index e12353c8af4f..24ec38d63baa 100644
--- a/news/ifmail/Makefile
+++ b/news/ifmail/Makefile
@@ -10,28 +10,21 @@ MASTER_SITE_SUBDIR= system/fido
MAINTAINER= dinoex@FreeBSD.org
COMMENT= FidoNet(tm) support package for UN*X platform
-NEED_ROOT= yes
-
MAN3= parsedate.3
MAN8= ifmail.8 iftoss.8
IFMAIL_RUNAS?= ifmail
PLIST_SUB+= IFMAIL_RUNAS="${IFMAIL_RUNAS}"
# USERS does not work here
#USERS= ifmail
+CFLAGS+= -DHAS_STDARG_H -Wall
+GID!= id -g
+MAKE_ARGS= OWNER=${UID} CC="${CC}" GROUP=${GID} CFLAGS="${CFLAGS}"
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
-pre-configure:
- ${REINPLACE_CMD} -e 's|OWNER = ifmail|OWNER = ${IFMAIL_RUNAS}|' \
- -e 's|CC = gcc|CC = ${CC}|' \
- -e 's|-O2 -Wall|${CFLAGS} -DHAS_STDARG_H -Wall|' \
- ${WRKSRC}/CONFIG
-
pre-install:
- if ! pw usershow ${IFMAIL_RUNAS}; then pw useradd ${IFMAIL_RUNAS} -g uucp -u 75 \
- -h - -d /nonexistent -s /nonexistent -c "Ifmail Server"; fi
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ifmail
post-install:
@@ -41,11 +34,6 @@ post-install:
.for i in ${MAN3}
${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${STAGEDIR}${PREFIX}/man/man3/
.endfor
- @${ECHO_CMD} "updating ${ROOTDIR}/etc/services"
- @${CP} ${ROOTDIR}/etc/services ${ROOTDIR}/etc/services.bak
- @(grep -v ^ifcico ${ROOTDIR}/etc/services.bak; \
- ${ECHO_CMD} "ifcico 60179/tcp #ifcico server (ifmail)") \
- > ${ROOTDIR}/etc/services
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/