summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2005-12-03 01:00:37 +0000
committerrillig <rillig>2005-12-03 01:00:37 +0000
commitdc4738a31c6db51fdeaf667daf54487447758e9c (patch)
treef6183a5c501d26fe68a0b526eebd598ac275c909 /mk
parent5a041419f6c9b447e2aa2dc733151981605336ab (diff)
downloadpkgsrc-dc4738a31c6db51fdeaf667daf54487447758e9c.tar.gz
Removed CVS_USER, as announced on pkgsrc-bulk.
See <http://mail-index.netbsd.org/pkgsrc-bulk/2005/11/24/0003.html>.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/build.conf-example16
-rw-r--r--mk/bulk/environment.txt3
-rw-r--r--mk/bulk/post-build-conf16
-rw-r--r--mk/bulk/pre-build29
4 files changed, 13 insertions, 51 deletions
diff --git a/mk/bulk/build.conf-example b/mk/bulk/build.conf-example
index 0f105f51454..bf288d45efc 100644
--- a/mk/bulk/build.conf-example
+++ b/mk/bulk/build.conf-example
@@ -1,4 +1,4 @@
-# $NetBSD: build.conf-example,v 1.31 2005/11/18 12:11:51 rillig Exp $
+# $NetBSD: build.conf-example,v 1.32 2005/12/03 01:00:37 rillig Exp $
#
# This is an example configuration file for pkgsrc bulk builds.
# Actually it's a shell script that is sourced in by the pre-build,
@@ -24,18 +24,6 @@ USR_PKGSRC="/usr/pkgsrc"
#
-# Keeping pkgsrc up-to-date
-#
-
-# As which user to run "cvs updates". Leave empty for no update.
-CVS_USER="yourlogin"
-
-# Flags to pass to 'cvs update', e.g. to get a certain branch
-#CVS_FLAGS="-rnetbsd-2005Q1"
-#CVS_FLAGS="-A" # pkgsrc-current
-
-
-#
# Getting distfiles
#
@@ -98,7 +86,7 @@ MKSUMS=yes
#SIGN_AS=username@NetBSD.org
# Destination for packages and rsync options
-RSYNC_DST=$CVS_USER@ftp.NetBSD.org:/pub/NetBSD/packages/pkgsrc-200xQy/NetBSD-a.b.c/i386
+RSYNC_DST=ftp.NetBSD.org:/pub/NetBSD/packages/pkgsrc-200xQy/NetBSD-a.b.c/i386
RSYNC_OPTS='-e ssh'
###########################################################################
diff --git a/mk/bulk/environment.txt b/mk/bulk/environment.txt
index fc8e51f75c8..14a601e0c83 100644
--- a/mk/bulk/environment.txt
+++ b/mk/bulk/environment.txt
@@ -1,4 +1,4 @@
-# $NetBSD: environment.txt,v 1.3 2005/11/07 18:26:22 tv Exp $
+# $NetBSD: environment.txt,v 1.4 2005/12/03 01:00:37 rillig Exp $
#
===> Environment variables used by the bulk build scripts
@@ -57,7 +57,6 @@ which they are used.
PRUNELINKS: Boolean := yes
UPDATE_VULNERABILITY_LIST: Boolean := yes
USR_PKGSRC: Pathname
- CVS_USER: Loginname
=> User-defined in mk.conf
diff --git a/mk/bulk/post-build-conf b/mk/bulk/post-build-conf
index 2698e5aa5a8..cee23300de5 100644
--- a/mk/bulk/post-build-conf
+++ b/mk/bulk/post-build-conf
@@ -1,4 +1,4 @@
-# $NetBSD: post-build-conf,v 1.8 2005/11/18 12:27:26 rillig Exp $
+# $NetBSD: post-build-conf,v 1.9 2005/12/03 01:00:37 rillig Exp $
#
# This file is included after the build.conf file by the "build" and
@@ -34,8 +34,6 @@ pbc_section() {
show_config_vars() {
pbc_section "System information" \
osrev arch BULK_BUILD_CONF USR_PKGSRC MAKECONF
- pbc_section "Keeping pkgsrc up-to-date" \
- CVS_USER CVS_FLAGS
pbc_section "Getting distfiles" \
PRUNEDISTFILES ftp_proxy http_proxy
pbc_section "Building the packages" \
@@ -50,7 +48,6 @@ show_config_vars() {
# usage: export_config_vars
export_config_vars() {
export osrev arch BULK_BUILD_CONF USR_PKGSRC
- export CVS_USER CVS_FLAGS
export PRUNEDISTFILES ftp_proxy http_proxy
export PKGLIST NICE_LEVEL ADMIN ADMINSIG
export UPDATE_VULNERABILITY_LIST PRUNEPACKAGES MKSUMS SIGN_AS
@@ -63,7 +60,7 @@ export_config_vars() {
# usage: pbc_die error-message
pbc_die() {
exec 1>&2
- printf "error: %s\\n" "$1"
+ printf "error: %s\\n" "$@"
printf " Please check your bulk build configuration file:\\n"
case ${BULK_BUILD_CONF+set} in
"set") printf " %s\\n" "${BULK_BUILD_CONF}"
@@ -140,9 +137,12 @@ check_config_vars() {
"set") pbc_checkexistingfile MAKECONF;;
esac
- # section "Keeping pkgsrc up-to-date"
- # no checks for CVS_USER
- # no checks for CVS_FLAGS
+ # LEGACY: remove after 2006Q1
+ case ${CVS_USER-""}${CVS_FLAGS+set} in
+ ?*) pbc_die "CVS_USER and CVS_FLAGS must not be set." \
+ "See http://mail-index.netbsd.org/pkgsrc-bulk/2005/11/20/0013.html" \
+ "and http://mail-index.netbsd.org/pkgsrc-bulk/2005/11/24/0003.html";;
+ esac
# section "Getting distfiles"
case ${PRUNEDISTFILES+set} in
diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build
index 4ad9b0ad128..9adc174dd99 100644
--- a/mk/bulk/pre-build
+++ b/mk/bulk/pre-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: pre-build,v 1.53 2005/11/30 17:31:06 joerg Exp $
+# $NetBSD: pre-build,v 1.54 2005/12/03 01:00:37 rillig Exp $
#
# Clean up system to be ready for bulk pkg build
#
@@ -8,7 +8,7 @@
#set -v # Debug
-# Pull in USR_PKGSRC, CVS_USER:
+# Pull in USR_PKGSRC:
if [ -f "$BULK_BUILD_CONF" ]; then
. "$BULK_BUILD_CONF"
else
@@ -166,31 +166,6 @@ rm -f "${BULKFILESDIR}"/*/*/"$BROKENF" "${BULKFILESDIR}"/*/*/"$BRKWRKLOG" "${BUL
rm -f "${BULKFILESDIR}/$BROKENF" "${BULKFILESDIR}/$BRKWRKLOG" "${BULKFILESDIR}/$BLDLOG" "$STARTFILE"
-
-
-#
-# Install cvs package and do a cvs update here
-#
-if [ "$CVS_USER" != "" ]; then
- if [ ! -f /usr/bin/cvs ]; then
- echo "Installing required cvs pkgs for CVS update"
- ( cd ${USR_PKGSRC}/devel/cvs ; ${BMAKE} bulk-install )
- fi
- if [ ! -f /usr/bin/ssh ]; then
- echo "Installing required ssh pkgs for CVS update"
- ( cd ${USR_PKGSRC}/security/ssh ; ${BMAKE} bulk-install )
- fi
- echo "Performing CVS update - this will take some time"
- su - ${CVS_USER} -c "stty sane ; cd ${USR_PKGSRC} ; \
- env CVS_RSH=ssh cvs -q update -Pd ${CVS_FLAGS} || exit 0"
- if [ $? != 0 ]
- then
- echo "CVS update not successful, aborting."
- exit 1
- fi
- echo "CVS update done."
-fi
-
#
# Remove old/broken distfiles and binary packages
#