summaryrefslogtreecommitdiff
path: root/net/uucp/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2006-10-30 03:33:59 +0000
committerjlam <jlam>2006-10-30 03:33:59 +0000
commit408cc8bf87894df163386e903371001bdce3906d (patch)
treea492510acb4ab1699ff17dd90f1425cda2320ddf /net/uucp/Makefile
parentc6f2fcdef96a5de291fc06764082cac0b456139c (diff)
downloadpkgsrc-408cc8bf87894df163386e903371001bdce3906d.tar.gz
Merge improvements from the version of Taylor UUCP 1.06.1 that exists
in NetBSD's src/gnu/libexec/uucp directory. Changes include: * Teaching cu(1) about hardware flow control. * Make cu(1) honor "echocheck" and "binary mode" with respect to inspecting the data stream for newlines. * Make some proper integer casts so as not to break on LP64 platforms. * Teach uucp to substitute for \H with the IP address of the system. * Avoid potential divide-by-zero errors when computing times using serial rates. * Properly initialize some variables. The main difference between this version and the one in NetBSD is the location of uucico, uuconv, and uuxqt -- the vanilla UUCP location is ${PREFIX}/sbin while the NetBSD location is /usr/libexec/uucp. Bump PKGREVISION to 1.
Diffstat (limited to 'net/uucp/Makefile')
-rw-r--r--net/uucp/Makefile43
1 files changed, 33 insertions, 10 deletions
diff --git a/net/uucp/Makefile b/net/uucp/Makefile
index 53086e46c63..9ecf479b04b 100644
--- a/net/uucp/Makefile
+++ b/net/uucp/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/04/24 23:21:46 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2006/10/30 03:33:59 jlam Exp $
DISTNAME= uucp-1.07
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GNU:=uucp/}
@@ -12,7 +13,7 @@ USE_TOOLS+= mkdir:run pwd:run rmdir:run
PKG_SYSCONFSUBDIR= uucp
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-user=uucp
+CONFIGURE_ARGS+= --with-user=${UUCP_USER}
CONFIGURE_ARGS+= --with-newconfigdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-oldconfigdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ENV+= MKDIR_PROGRAM=${TOOLS_MKDIR:Q}
@@ -20,18 +21,40 @@ CONFIGURE_ENV+= PWD_PROGRAM=${TOOLS_PWD_CMD:Q}
CONFIGURE_ENV+= RMDIR_PROGRAM=${TOOLS_RMDIR:Q}
UUCP_GROUP?= daemon
+UUCP_USER?= uucp
PKG_GROUPS= ${UUCP_GROUP}
-PKG_USERS= uucp:${UUCP_GROUP}
+PKG_USERS= ${UUCP_USER}:${UUCP_GROUP}
INFO_FILES= # PLIST
# UUCP installs many set-uid "uucp" binaries.
-SPECIAL_PERMS+= bin/cu uucp ${ROOT_GROUP} 4555
-SPECIAL_PERMS+= bin/uucp uucp ${ROOT_GROUP} 4555
-SPECIAL_PERMS+= bin/uuname uucp ${ROOT_GROUP} 4555
-SPECIAL_PERMS+= bin/uustat uucp ${ROOT_GROUP} 4555
-SPECIAL_PERMS+= bin/uux uucp ${ROOT_GROUP} 4555
-SPECIAL_PERMS+= sbin/uucico uucp ${ROOT_GROUP} 4555
-SPECIAL_PERMS+= sbin/uuxqt uucp ${ROOT_GROUP} 4555
+SPECIAL_PERMS+= bin/cu ${UUCP_USER} ${ROOT_GROUP} 4555
+SPECIAL_PERMS+= bin/uucp ${UUCP_USER} ${ROOT_GROUP} 4555
+SPECIAL_PERMS+= bin/uuname ${UUCP_USER} ${ROOT_GROUP} 4555
+SPECIAL_PERMS+= bin/uustat ${UUCP_USER} ${ROOT_GROUP} 4555
+SPECIAL_PERMS+= bin/uux ${UUCP_USER} ${ROOT_GROUP} 4555
+SPECIAL_PERMS+= sbin/uucico ${UUCP_USER} ${ROOT_GROUP} 4555
+SPECIAL_PERMS+= sbin/uuxqt ${UUCP_USER} ${ROOT_GROUP} 4555
+
+SENDMAIL?= /usr/sbin/sendmail
+
+UUCP_MAIL_PROGRAM?= ${SENDMAIL} -t
+UUCP_CMDPATH?= /bin /usr/bin ${PREFIX}/bin
+UUCP_LOCKDIR?= ${VARBASE}/spool/lock
+UUCP_SPOOLDIR?= ${VARBASE}/spool/uucp
+UUCP_PUBDIR?= ${UUCP_SPOOLDIR}public
+UUCP_LOGFILE?= ${UUCP_SPOOLDIR}/Log
+UUCP_STATFILE?= ${UUCP_SPOOLDIR}/Stats
+UUCP_DEBUGFILE?= ${UUCP_SPOOLDIR}/Debug
+
+# Generate a policy_local.h header file that holds the paths used by UUCP.
+post-configure:
+ @${RM} -f ${WRKSRC}/policy_local.h
+.for _var_ in MAIL_PROGRAM CMDPATH LOCKDIR \
+ SPOOLDIR PUBDIR LOGFILE \
+ STATFILE DEBUGFILE
+ @${ECHO} "#define ${_var_} \""${UUCP_${_var_}:Q}"\"" \
+ >> ${WRKSRC}/policy_local.h
+.endfor
.include "../../mk/bsd.pkg.mk"