42 lines
1.2 KiB
Makefile
Raw Normal View History

2013-03-11 11:35:43 +00:00
# $OpenBSD: Makefile,v 1.21 2013/03/11 11:35:58 espie Exp $
COMMENT= UUCP suite
2003-12-14 01:39:18 +00:00
DISTNAME= uucp-1.07
REVISION= 2
2001-07-13 20:16:15 +00:00
CATEGORIES= net mail
PERMIT_PACKAGE_CDROM= Yes
2004-12-16 00:31:20 +00:00
WANTLIB= c
2003-12-14 01:39:18 +00:00
MASTER_SITES= ${MASTER_SITE_GNU:=uucp/}
2003-12-14 01:39:18 +00:00
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --sbindir=${PREFIX}/libexec/uucp \
--with-newconfigdir=${SYSCONFDIR}/uucp \
--with-oldconfigdir=${SYSCONFDIR}/uucp
2010-10-18 21:50:38 +00:00
USE_GROFF = Yes
2003-12-14 01:39:18 +00:00
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/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
2003-12-14 01:39:18 +00:00
${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>