-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathporttest.sh
More file actions
executable file
·51 lines (39 loc) · 1.2 KB
/
porttest.sh
File metadata and controls
executable file
·51 lines (39 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
PORTSDIR=/usr/ports
PORTS="emulators/virtualbox-ose emulators/virtualbox-ose-additions"
set -ex
cd /usr
#ls -al ports
mv ports ports.old
#svnlite co svn://svn.freebsd.org/ports/head ports
#portsnap --interactive fetch extract
git clone --depth=1 https://github.com/freebsd/freebsd-ports ports
cd ${CIRRUS_WORKING_DIR}
for p in `cat list.txt`
do
if [ -d ${PORTSDIR}/${p}/ ]; then
rm -fr ${PORTSDIR}/${p}/*
else
mkdir -p ${PORTSDIR}/${p}
fi
cp -R ./${p}/* ${PORTSDIR}/${p}/
done
mkdir /usr/ports/distfiles
df -h
echo "NO_ZFS=yes" >> /usr/local/etc/poudriere.conf
echo "ALLOW_MAKE_JOBS=yes" >> /usr/local/etc/poudriere.conf
sed -i.bak -e 's,FREEBSD_HOST=_PROTO_://_CHANGE_THIS_,FREEBSD_HOST=https://download.FreeBSD.org,' /usr/local/etc/poudriere.conf
mkdir -p /usr/local/poudriere
poudriere jail -c -j jail -v `uname -r`
poudriere ports -c -f none -m null -M /usr/ports
# use an easy port to bootstrap pkg repo
poudriere bulk -t -j jail net/nc
cd /usr/ports
for p in ${PORTS}
do
make -f ${PORTSDIR}/${p}/Makefile all-depends-list | \
sed -e "s,${PORTSDIR}/,," | \
xargs sudo pkg fetch -y \
-o /usr/local/poudriere/data/packages/jail-default/.latest/
poudriere testport -j jail ${p}
done