2013-01-26 16:34:39 +00:00
|
|
|
# Created by: Kris Kennaway <kris@FreeBSD.org>
|
2001-09-09 03:46:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= freebsd-uucp
|
2018-01-05 05:16:38 +00:00
|
|
|
PORTREVISION= 1
|
2015-05-07 17:26:05 +00:00
|
|
|
DISTVERSIONPREFIX= r
|
2017-02-07 06:31:38 +00:00
|
|
|
DISTVERSION= 1_07_4
|
2004-10-12 04:09:14 +00:00
|
|
|
CATEGORIES= net comms ipv6
|
2004-03-26 19:16:54 +00:00
|
|
|
PKGNAMESUFFIX?= ${PAM_SUFFIX}${PKGNAMESUFFIX2}
|
2001-09-09 03:46:13 +00:00
|
|
|
|
2002-02-01 07:11:22 +00:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 18:26:42 +00:00
|
|
|
COMMENT= FreeBSD-modified Taylor UUCP (unix-to-unix copy program)
|
2001-09-09 03:46:13 +00:00
|
|
|
|
2017-02-07 06:31:38 +00:00
|
|
|
LICENSE= GPLv2+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/uucp/COPYING
|
|
|
|
|
2015-02-05 16:47:07 +00:00
|
|
|
USES= fakeroot
|
2013-09-21 11:06:03 +00:00
|
|
|
|
2013-12-30 19:33:46 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= dinoex
|
|
|
|
|
2013-11-17 17:58:38 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2004-06-11 03:04:27 +00:00
|
|
|
INFO= uucp
|
2002-02-17 21:09:03 +00:00
|
|
|
VARLOG= uucp/common_sources/policy.h uucp/uucico/uucico.8 \
|
|
|
|
uucp/uucp/uucp.1 uucp/uux/uux.1 uucp/uuxqt/uuxqt.8
|
2002-02-22 10:53:01 +00:00
|
|
|
FIXME= etc/periodic/daily/340.uucp etc/periodic/daily/410.status-uucp \
|
|
|
|
etc/periodic/weekly/300.uucp
|
2001-09-09 03:46:13 +00:00
|
|
|
|
2003-06-09 05:45:02 +00:00
|
|
|
# fix errros for -std=iso9899:1999 in FreeBSD 5.1
|
|
|
|
MAKE_ENV+= CSTD=gnu99
|
2013-09-08 10:37:51 +00:00
|
|
|
|
2013-11-17 17:58:38 +00:00
|
|
|
OPTIONS_DEFINE=PAM ENCRYPTED_PASSWORDS VAR_LOG
|
|
|
|
OPTIONS_DEFAULT=
|
2013-12-30 16:06:43 +00:00
|
|
|
OPTIONS_SUB= yes
|
2013-11-17 17:58:38 +00:00
|
|
|
NO_OPTIONS_SORT=yes
|
|
|
|
ENCRYPTED_PASSWORDS_DESC= use encrypted passwords in etc/uucp/sys
|
|
|
|
VAR_LOG_DESC= put logfiles into /var/log
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2003-06-09 05:45:02 +00:00
|
|
|
|
2013-11-17 17:58:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MPAM}
|
2004-03-26 19:16:54 +00:00
|
|
|
PAM_SUFFIX= -pam
|
2004-01-08 18:43:04 +00:00
|
|
|
MAKE_ENV+= WITH_PAM=${WITH_PAM}
|
2017-01-12 15:16:33 +00:00
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 110000
|
2016-11-14 00:04:54 +00:00
|
|
|
MAKE_ENV+= MINUSLPAM=-lpam
|
|
|
|
.endif
|
2004-01-08 18:43:04 +00:00
|
|
|
.endif
|
|
|
|
|
2013-11-17 17:58:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MENCRYPTED_PASSWORDS}
|
2006-03-21 03:34:11 +00:00
|
|
|
MAKE_ENV+= WITH_ENCRYPTED_PASSWORDS=1
|
|
|
|
.endif
|
|
|
|
|
2002-02-17 21:09:03 +00:00
|
|
|
do-configure:
|
2017-02-07 06:31:38 +00:00
|
|
|
${REINPLACE_CMD} -e 's|doc ||' ${WRKSRC}/uucp/Makefile
|
2006-03-21 03:34:11 +00:00
|
|
|
${REINPLACE_CMD} -e "s=/usr/local/=${PREFIX}/=" \
|
2013-11-17 17:58:38 +00:00
|
|
|
${FIXME:S,^,${WRKSRC}/,}
|
|
|
|
.if ${PORT_OPTIONS:MVAR_LOG}
|
2006-03-21 03:34:11 +00:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e "s=/var/spool/uucp/Log=/var/log/uucp/Log=" \
|
2002-06-16 15:03:10 +00:00
|
|
|
-e "s=/var/spool/uucp/Debug=/var/log/uucp/Debug=" \
|
|
|
|
-e "s=/var/spool/uucp/Stats=/var/log/uucp/Stats=" \
|
2013-11-17 17:58:38 +00:00
|
|
|
${VARLOG:S,^,${WRKSRC}/,}
|
2006-03-21 03:34:11 +00:00
|
|
|
.endif
|
2013-11-17 17:58:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MENCRYPTED_PASSWORDS}
|
2006-03-21 03:34:11 +00:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e "s=HAVE_ENCRYPTED_PASSWORDS.*=HAVE_ENCRYPTED_PASSWORDS 1=" \
|
2013-12-30 16:06:43 +00:00
|
|
|
${WRKSRC}/uucp/common_sources/policy.h
|
2002-02-17 21:09:03 +00:00
|
|
|
.endif
|
2014-03-31 17:50:37 +00:00
|
|
|
@${CAT} ${MASTERDIR}/pkg-message > ${WRKDIR}/pkg-message
|
2013-11-17 17:58:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MPAM}
|
|
|
|
@${ECHO_MSG} "" >> ${WRKDIR}/pkg-message
|
|
|
|
@${ECHO_MSG} "Add this lines to your pam.conf:" >> ${WRKDIR}/pkg-message
|
|
|
|
@${CAT} ${FILESDIR}/uucp-pam.conf >> ${WRKDIR}/pkg-message
|
|
|
|
.endif
|
|
|
|
(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
2003-06-17 06:36:05 +00:00
|
|
|
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} configure)
|
2002-02-17 21:09:03 +00:00
|
|
|
|
2013-11-17 17:58:38 +00:00
|
|
|
pre-install:
|
2017-02-07 06:31:38 +00:00
|
|
|
${MKDIR} ${STAGEDIR}/var ${STAGEDIR}${PREFIX}/etc/mtree
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/mtree/uucp-var.mtree \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/mtree/uucp-var.mtree
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/mtree/uucp-local.mtree \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/mtree/uucp-local.mtree
|
2013-11-17 17:58:38 +00:00
|
|
|
|
2001-09-09 03:46:13 +00:00
|
|
|
post-install:
|
2017-02-07 06:31:38 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/info
|
2013-11-17 17:58:38 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/uucp/doc/uucp.info ${STAGEDIR}${PREFIX}/info/
|
2017-02-22 20:58:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MVAR_LOG}
|
|
|
|
${MKDIR} ${STAGEDIR}/var/log/uucp
|
|
|
|
.endif
|
2001-09-09 03:46:13 +00:00
|
|
|
|
2013-11-17 17:58:38 +00:00
|
|
|
.include <bsd.port.mk>
|