pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/bulk Add an option (MKSUMMARY) to create pkg_chk in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81545bea9261
branches:  trunk
changeset: 510123:81545bea9261
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 28 10:56:52 2006 +0000

description:
Add an option (MKSUMMARY) to create pkg_chk index for binary-only updates
during mk/bulk/upload. Disabled by default.

diffstat:

 mk/bulk/build.conf-example |  5 ++++-
 mk/bulk/upload             |  7 ++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 9ffe15875c83 -r 81545bea9261 mk/bulk/build.conf-example
--- a/mk/bulk/build.conf-example        Tue Mar 28 10:04:29 2006 +0000
+++ b/mk/bulk/build.conf-example        Tue Mar 28 10:56:52 2006 +0000
@@ -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 @@
 # 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@localhost
 
diff -r 9ffe15875c83 -r 81545bea9261 mk/bulk/upload
--- a/mk/bulk/upload    Tue Mar 28 10:04:29 2006 +0000
+++ b/mk/bulk/upload    Tue Mar 28 10:56:52 2006 +0000
@@ -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 @@
        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"



Home | Main Index | Thread Index | Old Index