aboutsummaryrefslogtreecommitdiff
path: root/net/cvsup-mirror
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-05-18 02:27:19 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-05-18 02:27:19 +0000
commit8ee2f98e9c993dbc0a956466a3df048320ccdb94 (patch)
treee8a1fe075890560a0b1868f969a5e247d3acf930 /net/cvsup-mirror
parent34c76f1dee5eceed3518a7a9b41d8dc6ac2936df (diff)
downloadports-8ee2f98e9c993dbc0a956466a3df048320ccdb94.tar.gz
ports-8ee2f98e9c993dbc0a956466a3df048320ccdb94.zip
Check to make sure that the "gnats" subdirectory is a true
subdirectory, and not a symbolic link. Update the reported size of the CVS repository to reflect current reality.
Notes
Notes: svn path=/head/; revision=6482
Diffstat (limited to 'net/cvsup-mirror')
-rw-r--r--net/cvsup-mirror/pkg-install12
-rw-r--r--net/cvsup-mirror/scripts/configure8
2 files changed, 17 insertions, 3 deletions
diff --git a/net/cvsup-mirror/pkg-install b/net/cvsup-mirror/pkg-install
index ef180f4b5d61..53f97b7f98d6 100644
--- a/net/cvsup-mirror/pkg-install
+++ b/net/cvsup-mirror/pkg-install
@@ -50,11 +50,19 @@ install_links() {
path=${dir}/${subdir}
fi
( cd ${prefixes} || exit
- test -d ${path} || mkdir -p ${path} || exit )
+ if [ "x${subdir}" != "x." -a -h ${path} ]; then
+ cat <<EOF
+"${subdir}" must be a true subdirectory of "${dir}", not a symbolic link.
+Please remove the symbolic link and/or configure again using the true
+directory path to "${subdir}".
+EOF
+ exit 1
+ fi
+ test -d ${path} || mkdir -p ${path} || exit ) || exit
if ! expr "${chmods_done}" : ".* ${path} " >/dev/null 2>&1; then
echo -n " Making the ${path} tree world-readable ..."
( chdir ${prefixes} || exit
- chmod -R a+rX ${path} || exit )
+ chmod -R a+rX ${path} || exit ) || exit
echo " done."
chmods_done="${chmods_done}${path} "
fi
diff --git a/net/cvsup-mirror/scripts/configure b/net/cvsup-mirror/scripts/configure
index 6854f90ad8f0..58928c8a92ea 100644
--- a/net/cvsup-mirror/scripts/configure
+++ b/net/cvsup-mirror/scripts/configure
@@ -40,6 +40,12 @@ ask_distrib() {
subdir=$3
desc=$4
if yesno "Do you wish to mirror the ${desc}" y; then
+ if [ "${subdir}" != "." ]; then
+ cat <<EOF
+Note: the location for this must match "*/${subdir}", and
+"${subdir}" must be a true subdirectory, not a symbolic link.
+EOF
+ fi
while :; do
dir=$(ask "Where would you like to put it" ${dflt})
if [ "${subdir}" = "." ]; then
@@ -124,7 +130,7 @@ EOF
distribs="distrib.self .. ."
ask_distrib FreeBSD.cvs /home/ncvs . \
- "main source tree, except crypto code (340 MB)"
+ "main source tree, except crypto code (350 MB)"
ask_distrib FreeBSD-crypto.cvs /home/ncvs . \
"crypto code (7 MB)"
ask_distrib FreeBSD.lite2 /home/lite2 . \