summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-09-17 17:15:39 +0000
committerdinoex <dinoex@FreeBSD.org>2002-09-17 17:15:39 +0000
commitf5a0339e717de283a1e37f6cf815db76fb78f53c (patch)
tree1edaed19f25066837887659ef5f7834f059c1b1a
parent43ca24243b33d4130c9adbb5f78ce98d4bad6a44 (diff)
downloadFreeBSD-ports-f5a0339e717de283a1e37f6cf815db76fb78f53c.zip
FreeBSD-ports-f5a0339e717de283a1e37f6cf815db76fb78f53c.tar.gz
fix default permissions of etc/uucp
update /etc/services from: http://www.iana.org/assignments/port-numbers) suucp 4031/tcp #UUCP over SSL mention UUCP_MAILER_PATH in pkg-message
-rw-r--r--net/freebsd-uucp/Makefile9
-rw-r--r--net/freebsd-uucp/pkg-message2
-rw-r--r--net/freebsd-uucp/pkg-plist4
3 files changed, 15 insertions, 0 deletions
diff --git a/net/freebsd-uucp/Makefile b/net/freebsd-uucp/Makefile
index a5ebc70..9c07cba 100644
--- a/net/freebsd-uucp/Makefile
+++ b/net/freebsd-uucp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= freebsd-uucp
PORTVERSION= 1.06.1.10
+PORTREVISION= 1
CATEGORIES= net comms
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=dinoex
@@ -59,6 +60,14 @@ pre-install:
.endif
post-install:
+ @${CHOWN} uucp:uucp ${PREFIX}/etc/uucp
+ @${CHMOD} 750 ${PREFIX}/etc/uucp
+ @${ECHO_CMD} "updating ${DESTDIR}/etc/services"
+ @${CP} ${DESTDIR}/etc/services ${DESTDIR}/etc/services.bak
+ @(grep -v ^suucp ${DESTDIR}/etc/services.bak; \
+ ${ECHO_CMD} "suucp 4031/tcp #UUCP over SSL"; \
+ ${ECHO_CMD} "suucp 4031/udp #UUCP over SSL" ) \
+ > ${DESTDIR}/etc/services
@${ECHO} "Use the 'make upgrade' command to copy your old configuration"
@${ECHO} "files from /etc/uucp to the new location in ${PREFIX}/etc/uucp"
@${ECHO}
diff --git a/net/freebsd-uucp/pkg-message b/net/freebsd-uucp/pkg-message
index 2f56dda..3757dca 100644
--- a/net/freebsd-uucp/pkg-message
+++ b/net/freebsd-uucp/pkg-message
@@ -10,3 +10,5 @@ daily_status_uucp_enable="YES" # Check uucp status
# 300.uucp
weekly_uucp_enable="YES" # Clean uucp weekly
+# in your sendmail.mc file you need to set the path:
+define(`UUCP_MAILER_PATH', `/usr/local/bin/uux')dnl
diff --git a/net/freebsd-uucp/pkg-plist b/net/freebsd-uucp/pkg-plist
index cafbb43..39c7d46 100644
--- a/net/freebsd-uucp/pkg-plist
+++ b/net/freebsd-uucp/pkg-plist
@@ -19,6 +19,8 @@ etc/uucp/passwd.sample
etc/uucp/port.sample
etc/uucp/sys1.sample
etc/uucp/sys2.sample
+@exec chown uucp:uucp %D/etc/uucp
+@exec chmod 750 %D/etc/uucp
info/uucp.info.gz
@exec install-info %D/info/uucp.info %D/info/dir
@unexec install-info --delete %D/info/uucp.info %D/info/dir
@@ -29,3 +31,5 @@ sbin/uuchk
sbin/uuconv
@dirrm etc/uucp
@dirrm libexec/uucp
+@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^suucp /etc/services.bak ; echo "suucp 4031/tcp #UUCP over SSL"; echo "suucp 4031/udp #UUCP over SSL") > /etc/services
+@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^suucp /etc/services.bak ) > /etc/services
OpenPOWER on IntegriCloud