blob: ce20ced40ed574b7766442523e84a383a6afd293 (
plain) (
blame)
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
|
#!/bin/sh
set -eu -o pipefail
ports_tree=latest
# update ports tree
git -C /usr/local/poudriere/ports/latest restore :/
git -C /usr/local/poudriere/ports/latest clean -f
poudriere ports -u -p "$ports_tree" > /dev/null
for patch in /usr/local/etc/poudriere.d/patches/*.patch; do
[ -f "$patch" ] || continue
patch -s -d /usr/local/poudriere/ports/latest -u < "$patch"
done
for jail in "$@"; do
poudriere jail -u -j "$jail" > /dev/null
poudriere bulk -j "$jail" -f /usr/local/etc/poudriere.d/idm-pkglist -p "$ports_tree" -z idm > /dev/null
poudriere pkgclean -j "$jail" -f /usr/local/etc/poudriere.d/idm-pkglist -p "$ports_tree" -z idm -y > /dev/null
poudriere bulk -j "$jail" -f /usr/local/etc/poudriere.d/pkglist -p "$ports_tree" > /dev/null
poudriere pkgclean -j "$jail" -f /usr/local/etc/poudriere.d/pkglist -p "$ports_tree" -y > /dev/null 2>&1
done
poudriere distclean -p "$ports_tree" -a -y > /dev/null
poudriere logclean -N 5 -p "$ports_tree" -y > /dev/null
|