diff options
author | jdp <jdp@FreeBSD.org> | 1997-05-18 10:27:19 +0800 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1997-05-18 10:27:19 +0800 |
commit | 015ac13d01300d09cdb349b85c4d28f3fe6b8990 (patch) | |
tree | fde2d6ff08a574d1907eee5d5bc601eaad01bbb0 /net/cvsup-mirror | |
parent | b6d42f166843a5d8ebcc3198db2fa9e20dfb9e2a (diff) | |
download | freebsd-ports-gnome-015ac13d01300d09cdb349b85c4d28f3fe6b8990.tar.gz freebsd-ports-gnome-015ac13d01300d09cdb349b85c4d28f3fe6b8990.tar.zst freebsd-ports-gnome-015ac13d01300d09cdb349b85c4d28f3fe6b8990.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.
Diffstat (limited to 'net/cvsup-mirror')
-rw-r--r-- | net/cvsup-mirror/pkg-install | 12 | ||||
-rw-r--r-- | net/cvsup-mirror/scripts/configure | 8 |
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 . \ |