mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Add support for 4-current. Add /compat to list of directories to
delete after building is done. Run mtree regardless of the directory exists or not. Do not use local copy of dependency packages -- it is too hard to maintain consistency -- always use one on master.
This commit is contained in:
parent
45f51c8307
commit
be0abd7000
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=19637
@ -6,6 +6,7 @@ master=bento
|
||||
|
||||
export BATCH=t
|
||||
export NO_RESTRICTED=t
|
||||
#export FOR_CDROM=t
|
||||
export USA_RESIDENT=YES
|
||||
export FORCE_PKG_REGISTER=t
|
||||
#export FORCE_PACKAGE=t
|
||||
@ -20,7 +21,7 @@ unset MAKEFLAGS
|
||||
unset PORTSDIR
|
||||
|
||||
# directories to clean
|
||||
cleandirs="/usr/local /usr/X11R6"
|
||||
cleandirs="/usr/local /usr/X11R6 /compat"
|
||||
|
||||
# 15 minutes
|
||||
export FTP_TIMEOUT=900
|
||||
@ -42,15 +43,23 @@ if [ "x$1" = "x-noclean" ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ ${branch} = "3.0" ]; then
|
||||
export OSREL=3.0
|
||||
export OSVERSION=300006
|
||||
export PORTOBJFORMAT=elf
|
||||
else
|
||||
export OSREL=2.2.8
|
||||
export OSVERSION=228001
|
||||
export PORTOBJFORMAT=aout
|
||||
fi
|
||||
case ${branch} in
|
||||
4*)
|
||||
export OSREL=4.0
|
||||
export OSVERSION=400003
|
||||
export PORTOBJFORMAT=elf
|
||||
;;
|
||||
3*)
|
||||
export OSREL=3.2
|
||||
export OSVERSION=320000
|
||||
export PORTOBJFORMAT=elf
|
||||
;;
|
||||
*)
|
||||
export OSREL=2.2.8
|
||||
export OSVERSION=228001
|
||||
export PORTOBJFORMAT=aout
|
||||
;;
|
||||
esac
|
||||
|
||||
args="$*"
|
||||
|
||||
@ -92,13 +101,6 @@ if [ ${found} != 1 ]; then
|
||||
touch ${chroot}/used/${pkgname}
|
||||
tar -C ${chroot} -xf ${bindist}
|
||||
|
||||
mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.root.dist -p ${chroot} \
|
||||
>/dev/null 2>&1
|
||||
mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.var.dist -p ${chroot}/var \
|
||||
>/dev/null 2>&1
|
||||
mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.usr.dist -p ${chroot}/usr \
|
||||
>/dev/null 2>&1
|
||||
|
||||
fi
|
||||
|
||||
rm -rf ${chroot}/tmp/*
|
||||
@ -109,6 +111,13 @@ echo "building ${pkgname} on $(hostname -s)" | tee ${chroot}/tmp/${pkgname}.log
|
||||
echo "in directory ${chroot}" | tee -a ${chroot}/tmp/${pkgname}.log
|
||||
echo "with arguments: ${args}" | tee -a ${chroot}/tmp/${pkgname}.log
|
||||
|
||||
mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.root.dist -p ${chroot} \
|
||||
>/dev/null 2>&1
|
||||
mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.var.dist -p ${chroot}/var \
|
||||
>/dev/null 2>&1
|
||||
mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.usr.dist -p ${chroot}/usr \
|
||||
>/dev/null 2>&1
|
||||
|
||||
mount -o -2 -r ${master}:${buildroot}/usr/ports ${chroot}/usr/ports
|
||||
mount -o -2 -r ${master}:${buildroot}/${branch}/src ${chroot}/usr/src
|
||||
mount -o -2 -r ${master}:${buildroot}/usr/opt/doc ${chroot}/usr/opt/doc
|
||||
@ -125,11 +134,9 @@ while [ $# -gt 0 ]; do
|
||||
if ssh -a ${master} [ -f ${packages}/All/$1 ]; then
|
||||
if [ ! -f ${chroot}/tmp/depends/$1 ]; then
|
||||
echo "copying package $1 for ${pkgname}"
|
||||
if [ -f ${bakdir}/$1 ]; then
|
||||
cp -p ${bakdir}/$1 ${chroot}/tmp/depends
|
||||
else
|
||||
scp -p $master:${packages}/All/$1 ${chroot}/tmp/depends
|
||||
fi
|
||||
scp -p $master:${packages}/All/$1 ${chroot}/tmp/depends
|
||||
else
|
||||
echo "skipping package $1 for ${pkgname} since it is missing"
|
||||
fi
|
||||
fi
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user