pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk Deprecate RSYNC_DST_SPECIFIC and RSYNC_DST_OTH...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0cce75d482ca
branches: trunk
changeset: 473436:0cce75d482ca
user: hubertf <hubertf%pkgsrc.org@localhost>
date: Mon Apr 19 18:39:09 2004 +0000
description:
Deprecate RSYNC_DST_SPECIFIC and RSYNC_DST_OTHER and replace them
by RSYNC_DST. Warn if any of them is not set properly, and in
general adjust to the new layout on the FTP server.
diffstat:
mk/bulk/build.conf-example | 13 ++++---------
mk/bulk/upload | 32 +++++++++++++-------------------
2 files changed, 17 insertions(+), 28 deletions(-)
diffs (85 lines):
diff -r 8932575cfc91 -r 0cce75d482ca mk/bulk/build.conf-example
--- a/mk/bulk/build.conf-example Mon Apr 19 18:37:27 2004 +0000
+++ b/mk/bulk/build.conf-example Mon Apr 19 18:39:09 2004 +0000
@@ -1,5 +1,5 @@
# build.conf
-# $NetBSD: build.conf-example,v 1.19 2004/04/09 18:43:14 jschauma Exp $
+# $NetBSD: build.conf-example,v 1.20 2004/04/19 18:39:09 hubertf Exp $
#
# config file in /bin/sh syntax for {,pre,post}-build
#
@@ -33,7 +33,7 @@
CVS_USER="yourlogin"
# Flags to pass to 'cvs update', e.g. to get a certain branch
-#CVS_FLAGS="-rnetbsd-1-6"
+#CVS_FLAGS="-rnetbsd-2004Q1"
#CVS_FLAGS="-A"
# prune distfiles to remove those which are out of date
@@ -50,13 +50,8 @@
# can be set to 'yes' or 'no'.
UPDATE_VULNERABILITY_LIST=yes
-# Destination for packages with the OSVERSION_SPECIFIC flag set. Needs
-# major.minor.patch version.
-RSYNC_DST_SPECIFIC=$CVS_USER%ftp.NetBSD.org@localhost:/pub/NetBSD/packages/x.y.z/arch
-
-# destination for packages without the OSVERSION_SPECIFIC flag set. Needs
-# major.minor version.
-RSYNC_DST_OTHER=$CVS_USER%ftp.NetBSD.org@localhost:/pub/NetBSD/packages/x.y/arch
+# Destination for packages and rsync options
+RSYNC_DST=$CVS_USER%ftp.NetBSD.org@localhost:/pub/NetBSD/packages/pkgsrc-200xQy/NetBSD-a.b.c/i386
RSYNC_OPTS='-e ssh'
###########################################################################
diff -r 8932575cfc91 -r 0cce75d482ca mk/bulk/upload
--- a/mk/bulk/upload Mon Apr 19 18:37:27 2004 +0000
+++ b/mk/bulk/upload Mon Apr 19 18:39:09 2004 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: upload,v 1.17 2004/04/12 13:01:52 hubertf Exp $
+# $NetBSD: upload,v 1.18 2004/04/19 18:39:09 hubertf Exp $
#
# Upload non-restricted binary pkgs to ftp server
@@ -26,27 +26,21 @@
. `dirname $0`/build.conf
fi
-if [ -z "$RSYNC_DST_SPECIFIC" -o -z "$RSYNC_DST_OTHER" ]; then
- echo "You must set the variables RSYNC_DST_SPECIFIC and RSYNC_DST_OTHER"
- echo " "
- echo "RSYNC_DST_SPECIFIC should be set to the destination for packages"
- echo "which have the OSVERSION_SPECIFIC flag set. I.e., the complete OS"
- echo "version number is required. For example:"
- echo " user%ftp.NetBSD.org@localhost:/pub/NetBSD/packages/1.5.1/alpha"
- echo " "
- echo "RSYNC_DST_OTHER should be set to the destination for packages"
- echo "which do _not_ have the OSVERSION_SPECIFIC flag set. I.e., only"
- echo "the major.minor release string is used. For example, on a 1.5.1"
- echo "alpha system you would use:"
- echo " user%ftp.NetBSD.org@localhost:/pub/NetBSD/packages/1.5/alpha"
- echo "If you are building from pkgsrc current, set the destination"
- echo "to major.minor-latest. For example, on a 1.6.1 m68k system where"
- echo "building pkgsrc current (assuming pkgsrc-1-6 is already built):"
- echo " user%ftp.NetBSD.org@localhost:/pub/NetBSD/packages/1.6-latest/m68k"
- echo " "
+if [ "$RSYNC_DST_SPECIFIC" != "" -o "$RSYNC_DST_OTHER" != "" ]; then
+ echo Use of RSYNC_DST_SPECIFIC and RSYNC_DST_OTHER is deprecated.
+ echo Please just set RSYNC_DST in build.conf.
exit 1
fi
+if [ -z "$RSYNC_DST" ]; then
+ echo "You must set the variable RSYNC_DST, see build.conf-example."
+ exit 1
+fi
+
+# Paths for both OS-version-specific and general pkgs:
+RSYNC_DST_SPECIFIC=${RSYNC_DST}
+RSYNC_DST_OTHER=${RSYNC_DST}
+
#
# Some temp files
#
Home |
Main Index |
Thread Index |
Old Index