summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorjoerg <joerg>2006-03-28 10:56:52 +0000
committerjoerg <joerg>2006-03-28 10:56:52 +0000
commit6da7d265c86241aac8c0469d53a62f425faa7af7 (patch)
treea34ac7ac2c94fd855b4a13b66e468a6a0cb60b3e /mk/bulk
parentb679cd749d18bb12dcdde39b8ae62dc51793ba97 (diff)
downloadpkgsrc-6da7d265c86241aac8c0469d53a62f425faa7af7.tar.gz
Add an option (MKSUMMARY) to create pkg_chk index for binary-only updates
during mk/bulk/upload. Disabled by default.
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/build.conf-example5
-rw-r--r--mk/bulk/upload7
2 files changed, 10 insertions, 2 deletions
diff --git a/mk/bulk/build.conf-example b/mk/bulk/build.conf-example
index 80bcc8f99b2..4039f04012f 100644
--- a/mk/bulk/build.conf-example
+++ b/mk/bulk/build.conf-example
@@ -1,4 +1,4 @@
-# $NetBSD: build.conf-example,v 1.34 2006/01/22 21:36:28 rillig Exp $
+# $NetBSD: build.conf-example,v 1.35 2006/03/28 10:56:52 joerg 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,
@@ -93,6 +93,9 @@ PRUNEPACKAGES=yes
# Whether or not to create checksum files.
MKSUMS=yes
+# Whether or not to create the pkg_chk summary file.
+MKSUMMARY=no
+
# If you want to PGP sign the checksum files, set and correct.
#SIGN_AS=username@NetBSD.org
diff --git a/mk/bulk/upload b/mk/bulk/upload
index c5fbd901a53..96943763d0b 100644
--- a/mk/bulk/upload
+++ b/mk/bulk/upload
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: upload,v 1.27 2005/07/28 00:37:43 grant Exp $
+# $NetBSD: upload,v 1.28 2006/03/28 10:56:52 joerg Exp $
#
# Upload non-restricted binary pkgs to ftp server
@@ -156,6 +156,11 @@ if [ "${MKSUMS}" = "yes" -o "${MKSUMS}" = "YES" ]; then
fi
fi
+if [ "${MKSUMMARY}" = "yes" -o "${MKSUMMARY}" = "YES" ]; then
+ echo "Creating pkg_chk index..."
+ ( cd ${pkgsrcdir}/pkgtools/pkg_chk; ${BMAKE} bulk-install )
+ pkg_chk -P "${packages}" -bS
+fi
echo "#!/bin/sh" > "$upload"
echo "packages=$packages" >> "$upload"