|
|
|
@ -45,35 +45,25 @@ BASETGZ="/var/cache/pbuilder/base-$DISTRIBUTION@$ARCHITECTURE.tgz"
|
|
|
|
|
#-- select apt components
|
|
|
|
|
case "$DISTRIBUTION" in
|
|
|
|
|
# debian
|
|
|
|
|
jessie)
|
|
|
|
|
if [[ "$DISTRO" = "devuan" ]]; then
|
|
|
|
|
COMPONENTS="main"
|
|
|
|
|
DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg)
|
|
|
|
|
EXTRAPACKAGES="$EXTRAPACKAGES devuan-keyring"
|
|
|
|
|
else
|
|
|
|
|
COMPONENTS="main contrib non-free"
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
sid|bookwork|bullseye|buster|stretch)
|
|
|
|
|
COMPONENTS="main contrib non-free"
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
# devuan
|
|
|
|
|
ceres|chimaera|beowulf|ascii)
|
|
|
|
|
ceres|daedalus|chimaera|beowulf|ascii)
|
|
|
|
|
COMPONENTS="main"
|
|
|
|
|
DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg)
|
|
|
|
|
EXTRAPACKAGES="$EXTRAPACKAGES devuan-keyring"
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
# ubuntu
|
|
|
|
|
impish|hirsute|groovy|focal|bionic|xenial|trusty)
|
|
|
|
|
jammy|impish|hirsute|groovy|focal|bionic|xenial)
|
|
|
|
|
COMPONENTS="main restricted universe multiverse"
|
|
|
|
|
DEBOOTSTRAPOPTS=(--variant=buildd)
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
# raspbian
|
|
|
|
|
raspbian-bullseye|raspbian-buster|raspbian-stretch)
|
|
|
|
|
raspbian-bookworm|raspbian-bullseye|raspbian-buster|raspbian-stretch)
|
|
|
|
|
COMPONENTS="main contrib non-free"
|
|
|
|
|
DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg)
|
|
|
|
|
;;
|
|
|
|
@ -87,21 +77,13 @@ case "$DISTRIBUTION" in
|
|
|
|
|
MIRRORSITE=http://deb.debian.org/debian
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
jessie)
|
|
|
|
|
if [[ "$DISTRO" = "devuan" ]]; then
|
|
|
|
|
MIRRORSITE=http://auto.mirror.devuan.org/merged
|
|
|
|
|
else
|
|
|
|
|
MIRRORSITE=http://deb.debian.org/debian
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
# devuan
|
|
|
|
|
ceres|chimaera|beowulf|ascii)
|
|
|
|
|
ceres|daedalus|chimaera|beowulf|ascii)
|
|
|
|
|
MIRRORSITE=http://auto.mirror.devuan.org/merged
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
# ubuntu
|
|
|
|
|
impish|hirsute|groovy|focal|bionic|xenial|trusty)
|
|
|
|
|
jammy|impish|hirsute|groovy|focal|bionic|xenial)
|
|
|
|
|
if [ "$ARCHITECTURE" = "amd64" ] || [ "$ARCHITECTURE" = "i386" ]; then
|
|
|
|
|
MIRRORSITE=http://archive.ubuntu.com/ubuntu
|
|
|
|
|
else
|
|
|
|
@ -110,7 +92,7 @@ case "$DISTRIBUTION" in
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
# raspbian
|
|
|
|
|
raspbian-bullseye|raspbian-buster|raspbian-stretch)
|
|
|
|
|
raspbian-bookworm|raspbian-bullseye|raspbian-buster|raspbian-stretch)
|
|
|
|
|
MIRRORSITE=http://ftp.fi.muni.cz/pub/linux/raspbian/raspbian
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
@ -145,14 +127,14 @@ fi
|
|
|
|
|
#-- aptitude is better if target distribution contains apt < 1.4~beta3
|
|
|
|
|
case "$DISTRIBUTION" in
|
|
|
|
|
sid|bookwork|bullseye|buster|stretch|\
|
|
|
|
|
ceres|chimaera|beowulf|ascii|\
|
|
|
|
|
raspbian-bullseye|raspbian-buster|raspbian-stretch|\
|
|
|
|
|
impish|hirsute|groovy|focal|bionic)
|
|
|
|
|
ceres|daedalus|chimaera|beowulf|ascii|\
|
|
|
|
|
raspbian-bookworm|raspbian-bullseye|raspbian-buster|raspbian-stretch|\
|
|
|
|
|
jammy|impish|hirsute|groovy|focal|bionic)
|
|
|
|
|
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-apt"
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
jessie|\
|
|
|
|
|
xenial|trusty)
|
|
|
|
|
xenial)
|
|
|
|
|
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-aptitude"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|