pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/pbulk
Module Name: pkgsrc
Committed By: joerg
Date: Sun Dec 18 22:59:35 UTC 2016
Modified Files:
pkgsrc/pkgtools/pbulk: Makefile
pkgsrc/pkgtools/pbulk/files/pbulk: pbulk.conf
pkgsrc/pkgtools/pbulk/files/pbulk/scripts: build-client-start
client-prepare scan-client-start
Log Message:
pbulk-0.65: Add basic support for specifying chroot'd clients by
absolute path. Introduce hook for setting up the chroot
(client_prepare_chroot) similar to client_prepare_action for ssh
clients.
To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 pkgsrc/pkgtools/pbulk/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf
cvs rdiff -u -r1.4 -r1.5 \
pkgsrc/pkgtools/pbulk/files/pbulk/scripts/build-client-start
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/pkgtools/pbulk/files/pbulk/scripts/client-prepare
cvs rdiff -u -r1.6 -r1.7 \
pkgsrc/pkgtools/pbulk/files/pbulk/scripts/scan-client-start
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/pbulk/Makefile
diff -u pkgsrc/pkgtools/pbulk/Makefile:1.80 pkgsrc/pkgtools/pbulk/Makefile:1.81
--- pkgsrc/pkgtools/pbulk/Makefile:1.80 Sun Dec 18 22:41:12 2016
+++ pkgsrc/pkgtools/pbulk/Makefile Sun Dec 18 22:59:35 2016
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.80 2016/12/18 22:41:12 joerg Exp $
+# $NetBSD: Makefile,v 1.81 2016/12/18 22:59:35 joerg Exp $
-PKGNAME= pbulk-0.64
+PKGNAME= pbulk-0.65
COMMENT= Modular bulk build framework
.include "../../pkgtools/pbulk/Makefile.common"
@@ -39,7 +39,7 @@ SUBST_VARS.tools= AWK BZIP2 CHOWN DIGEST
CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf
PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf
-PBULK_CONFIG_VERSION= 0.63
+PBULK_CONFIG_VERSION= 0.65
INSTALLATION_DIRS= bin libexec/pbulk share/examples/pbulk
USE_BSD_MAKEFILE= yes
Index: pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf
diff -u pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf:1.23 pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf:1.24
--- pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf:1.23 Sun Dec 18 22:38:16 2016
+++ pkgsrc/pkgtools/pbulk/files/pbulk/pbulk.conf Sun Dec 18 22:59:35 2016
@@ -1,4 +1,4 @@
-# $NetBSD: pbulk.conf,v 1.23 2016/12/18 22:38:16 joerg Exp $
+# $NetBSD: pbulk.conf,v 1.24 2016/12/18 22:59:35 joerg Exp $
# Version of the configuration file. This is bumped whenever the default
# config changes to notify the administrator about updates.
@@ -117,6 +117,7 @@ keep_prefix=no
client_prepare=@PREFIX@/libexec/pbulk/client-prepare
client_prepare_action=@PREFIX@/libexec/pbulk/client-clean
+client_prepare_chroot=:
pkg_up_to_date_script=@PREFIX@/libexec/pbulk/pkg-up-to-date
pbuild_script=@PREFIX@/libexec/pbulk/pkg-build
pbuild_start_script=@PREFIX@/libexec/pbulk/build-client-start
Index: pkgsrc/pkgtools/pbulk/files/pbulk/scripts/build-client-start
diff -u pkgsrc/pkgtools/pbulk/files/pbulk/scripts/build-client-start:1.4 pkgsrc/pkgtools/pbulk/files/pbulk/scripts/build-client-start:1.5
--- pkgsrc/pkgtools/pbulk/files/pbulk/scripts/build-client-start:1.4 Sun Dec 18 22:41:12 2016
+++ pkgsrc/pkgtools/pbulk/files/pbulk/scripts/build-client-start Sun Dec 18 22:59:35 2016
@@ -1,5 +1,5 @@
#!@SH@
-# $NetBSD: build-client-start,v 1.4 2016/12/18 22:41:12 joerg Exp $
+# $NetBSD: build-client-start,v 1.5 2016/12/18 22:59:35 joerg Exp $
. @PBULK_CONFIG@
@@ -13,13 +13,24 @@ fi
for client in ${build_clients}; do
case ${client} in
+ /*)
+ path=${client}
+ port=
+ client=
+ ;;
*:*)
+ path=
port="-p ${client##*:}"
client=${client%%:*}
;;
*)
+ path=
port=
;;
esac
- ssh $port $client "${pbuild} -c ${master_port_build} -b ${pbuild_script}" &
+ if [ -z "$path" ]; then
+ ssh $port $client "${pbuild} -c ${master_port_build} -b ${pbuild_script}" &
+ else
+ chroot "$path" ${pbuild} -c ${master_port_build} -b ${pbuild_script} &
+ fi
done
Index: pkgsrc/pkgtools/pbulk/files/pbulk/scripts/client-prepare
diff -u pkgsrc/pkgtools/pbulk/files/pbulk/scripts/client-prepare:1.2 pkgsrc/pkgtools/pbulk/files/pbulk/scripts/client-prepare:1.3
--- pkgsrc/pkgtools/pbulk/files/pbulk/scripts/client-prepare:1.2 Sun Dec 18 22:41:12 2016
+++ pkgsrc/pkgtools/pbulk/files/pbulk/scripts/client-prepare Sun Dec 18 22:59:35 2016
@@ -1,5 +1,5 @@
#!@SH@
-# $NetBSD: client-prepare,v 1.2 2016/12/18 22:41:12 joerg Exp $
+# $NetBSD: client-prepare,v 1.3 2016/12/18 22:59:35 joerg Exp $
. @PBULK_CONFIG@
@@ -28,15 +28,26 @@ done
for client in ${unique_clients}; do
case ${client} in
+ /*)
+ port=
+ client=
+ path=${client}
+ ;;
*:*)
port="-p ${client##*:}"
client=${client%%:*}
+ path=
;;
*)
port=
+ path=
;;
esac
- ssh $port $client "${client_prepare_action}" &
+ if [ -z "$path" ]; then
+ ssh $port $client "${client_prepare_action}" &
+ else
+ clients_prepare_chroot "$path" &
+ fi
done
wait
Index: pkgsrc/pkgtools/pbulk/files/pbulk/scripts/scan-client-start
diff -u pkgsrc/pkgtools/pbulk/files/pbulk/scripts/scan-client-start:1.6 pkgsrc/pkgtools/pbulk/files/pbulk/scripts/scan-client-start:1.7
--- pkgsrc/pkgtools/pbulk/files/pbulk/scripts/scan-client-start:1.6 Sun Dec 18 22:41:12 2016
+++ pkgsrc/pkgtools/pbulk/files/pbulk/scripts/scan-client-start Sun Dec 18 22:59:35 2016
@@ -1,5 +1,5 @@
#!@SH@
-# $NetBSD: scan-client-start,v 1.6 2016/12/18 22:41:12 joerg Exp $
+# $NetBSD: scan-client-start,v 1.7 2016/12/18 22:59:35 joerg Exp $
. @PBULK_CONFIG@
@@ -20,14 +20,25 @@ fi
${client_prepare}
for client in ${scan_clients}; do
- case ${client} in
+ case ${client} in
+ /*)
+ path=${client}
+ port=
+ client=
+ ;;
*:*)
+ path=
port="-p ${client##*:}"
client=${client%%:*}
;;
*)
+ path=
port=
;;
esac
- ssh $port $client "${pscan} -c ${master_port_scan} -M ${make} ${extra_pscan_args} ${pkgsrc}" &
+ if [ -z "$path" ]; then
+ ssh $port $client "${pscan} -c ${master_port_scan} -M ${make} ${extra_pscan_args} ${pkgsrc}" &
+ else
+ chroot "$path" ${pscan} -c ${master_port_scan} -M ${make} ${extra_pscan_args} ${pkgsrc} &
+ fi
done
Home |
Main Index |
Thread Index |
Old Index