- Add some environment variables that need to be present when using packages
from the build cluster. These are required to get the dependencies the same as the parallel builds. - Add an optional second argument that allows you to specific an alternate ports directory. - Remove the temporary file after we are done with it. - Remove ksh93 because it won't make it on the discs until the license issues are resolved. Approved by: jkh
This commit is contained in:
parent
d6eb63ec62
commit
4b21204b19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75986
@ -28,19 +28,27 @@
|
||||
# so that the package name and dependency list for each can be at least be
|
||||
# obtained in an automated fashion.
|
||||
|
||||
# usage: extract-names cd#
|
||||
# The following are required if you obtained your packages from one of the
|
||||
# package building clusters or otherwise had these defined when the packages
|
||||
# were built.
|
||||
export BATCH=t
|
||||
export PACKAGE_BUILDING=t
|
||||
|
||||
# usage: extract-names cd# [portsdir]
|
||||
extract-names()
|
||||
{
|
||||
portsdir=${2-/usr/ports}
|
||||
_FOO=`eval echo \\${CDROM_SET_$1}`
|
||||
if [ "${_FOO}" ]; then
|
||||
TMPNAME="/tmp/_extract_names$$"
|
||||
rm -f ${TMPNAME}
|
||||
for i in ${_FOO}; do
|
||||
( cd /usr/ports/$i && make package-name package-depends ) >> ${TMPNAME};
|
||||
( cd $portsdir/$i && PORTSDIR=$portsdir make package-name package-depends ) >> ${TMPNAME};
|
||||
done
|
||||
if [ -s "${TMPNAME}" ]; then
|
||||
sort ${TMPNAME} | uniq
|
||||
sort -u ${TMPNAME}
|
||||
fi
|
||||
rm -f ${TMPNAME}
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
@ -82,9 +90,6 @@ CDROM_SET_1="${CDROM_SET_1} net/pcnfsd"
|
||||
# This is the set of "people really want these" packages. Please add to
|
||||
# this list.
|
||||
CDROM_SET_1="${CDROM_SET_1} net/cvsup-bin"
|
||||
if [ "X`uname -m`" = "Xi386" ]; then
|
||||
CDROM_SET_1="${CDROM_SET_1} shells/ksh93"
|
||||
fi
|
||||
CDROM_SET_1="${CDROM_SET_1} shells/bash2"
|
||||
CDROM_SET_1="${CDROM_SET_1} shells/pdksh"
|
||||
CDROM_SET_1="${CDROM_SET_1} shells/zsh"
|
||||
@ -135,8 +140,8 @@ CDROM_SET_1="${CDROM_SET_1} graphics/png"
|
||||
|
||||
# Start of actual script.
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "usage: $0 cdrom-number"
|
||||
echo "usage: $0 cdrom-number [portsdir]"
|
||||
exit 2
|
||||
fi
|
||||
extract-names $1
|
||||
extract-names $*
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user