aboutsummaryrefslogtreecommitdiff
path: root/net/cvsup-mirror
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>2004-08-05 23:37:47 +0000
committerJohn Polstra <jdp@FreeBSD.org>2004-08-05 23:37:47 +0000
commit7fc792b6a6e7c23e46b4d4b5a767475e44fcaaed (patch)
treed144f4eb317e97f3f95d749b0d2d44e576ca9ed5 /net/cvsup-mirror
parente9051fdc9c93db5fea5c0d5c8e45ab4e82b00f59 (diff)
downloadports-7fc792b6a6e7c23e46b4d4b5a767475e44fcaaed.tar.gz
ports-7fc792b6a6e7c23e46b4d4b5a767475e44fcaaed.zip
Notes
Diffstat (limited to 'net/cvsup-mirror')
-rw-r--r--net/cvsup-mirror/Makefile2
-rw-r--r--net/cvsup-mirror/files/update.sh3
-rw-r--r--net/cvsup-mirror/pkg-install6
3 files changed, 6 insertions, 5 deletions
diff --git a/net/cvsup-mirror/Makefile b/net/cvsup-mirror/Makefile
index 86c7acdd2371..99095a3ee837 100644
--- a/net/cvsup-mirror/Makefile
+++ b/net/cvsup-mirror/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cvsup-mirror
PORTVERSION= 1.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
DISTFILES=
diff --git a/net/cvsup-mirror/files/update.sh b/net/cvsup-mirror/files/update.sh
index 025900a31306..d67e9252a7d1 100644
--- a/net/cvsup-mirror/files/update.sh
+++ b/net/cvsup-mirror/files/update.sh
@@ -1,10 +1,11 @@
#! /bin/sh
-if ! export PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$"); then
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
+export PREFIX
export CVSUP_ARGS="$*"
export PATH=/bin:/usr/bin:${PREFIX}/bin
diff --git a/net/cvsup-mirror/pkg-install b/net/cvsup-mirror/pkg-install
index 98e6940d3d70..27b6dfb1ba71 100644
--- a/net/cvsup-mirror/pkg-install
+++ b/net/cvsup-mirror/pkg-install
@@ -117,10 +117,10 @@ make_account() {
if yesno \
"Would you like me to create ${u}'s home directory (${home})" y
then
- (umask 77 && \
- mkdir -p ${home}/.cvsup && \
- touch ${home}/.cvsup/auth) || exit
+ mkdir -p ${home}/.cvsup || exit
+ touch ${home}/.cvsup/auth || exit
chown -R ${u}:${g} ${home} || exit
+ chmod -R go= ${home} || exit
else
echo "Please create it, and try again."
exit 1