diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-02-17 21:09:03 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-02-17 21:09:03 +0000 |
commit | 840667ebbeffbbac47a0c512a9839d23c5174057 (patch) | |
tree | e3d29de0bc63b2d16801e047a7118188b70233a8 /net/freebsd-uucp | |
parent | Update to 4.5.3 (diff) |
- alternative logfile location in /var/log/uucp
original patches not complete, extended for /var/log/uucp/Stats
activate as option UUCP_WITH_VAR_LOG=yes
PR: 01961
Submitted by: nao@sbl.cl.nec.co.jp
Notes
Notes:
svn path=/head/; revision=54831
Diffstat (limited to 'net/freebsd-uucp')
-rw-r--r-- | net/freebsd-uucp/Makefile | 22 |
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" |