jca 563301d3c8 Run as _uucp, who takes ownership of /var/spool/uucp*
Previous diff looked good to sthen@.  This updated diff stops putting
lock files in /var/spool/locks.  This means that one should avoir
running uucp and pppd/whatever uses uu_lock(3) on the same tty.
Hopefully nobody actually does that...
2016-12-18 20:25:50 +00:00

46 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2016/12/18 20:25:50 jca Exp $
COMMENT= UUCP suite
DISTNAME= uucp-1.07
REVISION= 4
CATEGORIES= net mail
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c
MASTER_SITES= ${MASTER_SITE_GNU:=uucp/}
RUN_DEPENDS= mail/rmail
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --sbindir=${PREFIX}/libexec/uucp \
--with-newconfigdir=${SYSCONFDIR}/uucp \
--with-oldconfigdir=${SYSCONFDIR}/uucp \
--with-user=_uucp
SAMPLES= call config dial dialcode passwd port sys1 sys2
pre-build:
@perl -pi -e "s,/usr/local/conf/uucp,${SYSCONFDIR}/uucp,g" \
${WRKSRC}/sample/* ${WRKSRC}/uucp.texi
@perl -pi -e "s,/usr/local/bin,${LOCALBASE}/bin,g" \
${WRKSRC}/policy.h
@perl -pi -e "s,/usr/spool/uucp,/var/spool/uucp,g" \
${WRKSRC}/sample/* ${WRKSRC}/uucp.texi
@perl -pi -e "s,/usr/spool/anonymous,/var/spool/anonymous,g" \
${WRKSRC}/sample/config ${WRKSRC}/uucp.texi
@perl -pi -e "s,/usr/lib/uucp/uucico,${PREFIX}/libexec/uucp/uucico,g" \
${WRKSRC}/uucp.texi
post-install:
@mv ${PREFIX}/libexec/uucp/uusched ${PREFIX}/bin
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/cu
@chmod ${BINMODE} ${PREFIX}/bin/cu
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/uucp
.for file in ${SAMPLES}
${INSTALL_DATA} ${WRKSRC}/sample/${file} ${PREFIX}/share/examples/uucp
.endfor
.include <bsd.port.mk>