mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
- 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
This commit is contained in:
parent
49b2e45d3a
commit
840667ebbe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54831
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user