aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-02-17 21:09:03 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-02-17 21:09:03 +0000
commit840667ebbeffbbac47a0c512a9839d23c5174057 (patch)
treee3d29de0bc63b2d16801e047a7118188b70233a8 /net
parent49b2e45d3a5e30de4b75640b6bd7ee7bdc19c834 (diff)
downloadports-840667ebbeffbbac47a0c512a9839d23c5174057.tar.gz
ports-840667ebbeffbbac47a0c512a9839d23c5174057.zip
Notes
Diffstat (limited to 'net')
-rw-r--r--net/freebsd-uucp/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/freebsd-uucp/Makefile b/net/freebsd-uucp/Makefile
index 4d53e5031c23..03b892811f6a 100644
--- a/net/freebsd-uucp/Makefile
+++ b/net/freebsd-uucp/Makefile
@@ -19,11 +19,33 @@ MAN1= cu.1 uuconv.1 uucp.1 uulog.1 uuname.1 uupick.1 uustat.1 \
uuto.1 uux.1
MAN8= uuchk.8 uucico.8 uusched.8 uuxqt.8 uucpd.8
MANCOMPRESSED= maybe
+VARLOG= uucp/common_sources/policy.h uucp/uucico/uucico.8 \
+ uucp/uucp/uucp.1 uucp/uux/uux.1 uucp/uuxqt/uuxqt.8
post-extract:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} configure)
+.if defined(UUCP_WITH_VAR_LOG)
+do-configure:
+.for i in ${VARLOG}
+ @${PERL} -pi -e "s=/var/spool/uucp/Log=/var/log/uucp/Log=" \
+ ${WRKSRC}/${i}
+ @${PERL} -pi -e "s=/var/spool/uucp/Debug=/var/log/uucp/Debug=" \
+ ${WRKSRC}/${i}
+ @${PERL} -pi -e "s=/var/spool/uucp/Stats=/var/log/uucp/Stats=" \
+ ${WRKSRC}/${i}
+.endfor
+ @${ECHO_CMD} " .." >> ${WRKSRC}/uucp.mtree
+ @${ECHO_CMD} "/set uname=root gname=wheel mode=0755" \
+ >> ${WRKSRC}/uucp.mtree
+ @${ECHO_CMD} " log" >> ${WRKSRC}/uucp.mtree
+ @${ECHO_CMD} "/set uname=uucp gname=uucp mode=0775" \
+ >> ${WRKSRC}/uucp.mtree
+ @${ECHO_CMD} " uucp" >> ${WRKSRC}/uucp.mtree
+ @${ECHO_CMD} " .." >> ${WRKSRC}/uucp.mtree
+.endif
+
post-install:
@${ECHO} "Use the 'make upgrade' command to copy your old configuration"
@${ECHO} "files from /etc/uucp to the new location in ${PREFIX}/etc/uucp"