1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Generalize the packge building scripts to be able to be run on more than

one 'head' node, rather than just pointyhat itself.

Constants are factored out into installation-specific files known as
portbuild/conf/server.conf and portbuild/conf/client.conf.  There is
only one server.conf file.  Individual <arch> directories may have
their own client.conf files, or may symlink to ../conf/client.conf.

While here, fix a but in the handling of the 'all' case.

Feature safe:	yes
This commit is contained in:
Mark Linimon 2010-06-25 22:51:05 +00:00
parent ae733423e0
commit 11ad804e71
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=256976
2 changed files with 13 additions and 7 deletions

View File

@ -12,7 +12,7 @@ doarch() {
fi
machines=$(awk '{print $1}' ${pb}/${arch}/mlist)
for i in ${machines}; do
. ${pb}/${arch}/portbuild.conf
if [ -f "${pb}/${arch}/portbuild.${i}" ]; then
@ -25,10 +25,11 @@ doarch() {
done
}
parm=$1
shift
id=$(whoami)
if [ "${id}" = "root" ]; then
arch=$1
shift
arch=${parm}
root=1
else
arch=$(echo $id | sed s,ports-,,)
@ -43,7 +44,9 @@ else
fi
pb=/var/portbuild
if [ "${arch}" = "all" ]; then
. ${pb}/conf/server.conf
if [ "${parm}" = "all" ]; then
arches=$(find ${pb}/*/portbuild.conf)
for i in ${arches}; do
arch=$(basename $(dirname $i))

View File

@ -29,10 +29,11 @@ doarch() {
done
}
parm=$1
shift
id=$(whoami)
if [ "${id}" = "root" ]; then
arch=$1
shift
arch=${parm}
root=1
else
arch=$(echo $id | sed s,ports-,,)
@ -47,7 +48,9 @@ else
fi
pb=/var/portbuild
if [ "${arch}" = "all" ]; then
. ${pb}/conf/server.conf
if [ "${parm}" = "all" ]; then
arches=$(find ${pb}/*/portbuild.conf)
for i in ${arches}; do
arch=$(basename $(dirname $i))