diff options
author | dinoex <dinoex@FreeBSD.org> | 2002-02-18 05:09:03 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2002-02-18 05:09:03 +0800 |
commit | 2b847960ed6f267d30a525aa823373c5c148ee48 (patch) | |
tree | e1647d61925794e45d38384cbd4fa99f4d282810 /net/freebsd-uucp | |
parent | 9a56b3f9300aebd69a02c3c494f0a552a689bb76 (diff) | |
download | freebsd-ports-gnome-2b847960ed6f267d30a525aa823373c5c148ee48.tar.gz freebsd-ports-gnome-2b847960ed6f267d30a525aa823373c5c148ee48.tar.zst freebsd-ports-gnome-2b847960ed6f267d30a525aa823373c5c148ee48.zip |
- 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
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" |