DEB build scripts: update distro lists.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/65/head
Michele Calgaro 5 years ago
parent 2d319687ec
commit 39c79722b9
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -42,6 +42,7 @@ BASETGZ="/var/cache/pbuilder/base-$DISTRIBUTION@$ARCHITECTURE.tgz"
#-- select apt components #-- select apt components
case "$DISTRIBUTION" in case "$DISTRIBUTION" in
# debian
jessie) jessie)
if [[ "$DISTRO" = "devuan" ]]; then if [[ "$DISTRO" = "devuan" ]]; then
COMPONENTS="main" COMPONENTS="main"
@ -56,18 +57,21 @@ case "$DISTRIBUTION" in
COMPONENTS="main contrib non-free" COMPONENTS="main contrib non-free"
;; ;;
# devuan
ceres|beowulf|ascii) ceres|beowulf|ascii)
COMPONENTS="main" COMPONENTS="main"
DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg) DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg)
EXTRAPACKAGES="$EXTRAPACKAGES devuan-keyring" EXTRAPACKAGES="$EXTRAPACKAGES devuan-keyring"
;; ;;
eoan|disco|cosmic|bionic|artful|xenial|trusty|precise) # ubuntu
focal|eoan|disco|cosmic|bionic|xenial|trusty)
COMPONENTS="main restricted universe multiverse" COMPONENTS="main restricted universe multiverse"
DEBOOTSTRAPOPTS=(--variant=buildd) DEBOOTSTRAPOPTS=(--variant=buildd)
;; ;;
raspbian-buster|raspbian-stretch|raspbian-jessie) # raspbian
raspbian-bullseye|raspbian-buster|raspbian-stretch|raspbian-jessie)
COMPONENTS="main contrib non-free" COMPONENTS="main contrib non-free"
DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg) DEBOOTSTRAPOPTS=(--variant=buildd --no-check-gpg)
;; ;;
@ -76,6 +80,11 @@ EXTRAPACKAGES="$EXTRAPACKAGES fakeroot apt-transport-https ca-certificates"
#-- select base apt sources #-- select base apt sources
case "$DISTRIBUTION" in case "$DISTRIBUTION" in
# debian
sid|bullseye|buster|stretch)
MIRRORSITE=http://deb.debian.org/debian
;;
jessie) jessie)
if [[ "$DISTRO" = "devuan" ]]; then if [[ "$DISTRO" = "devuan" ]]; then
MIRRORSITE=http://auto.mirror.devuan.org/merged MIRRORSITE=http://auto.mirror.devuan.org/merged
@ -84,19 +93,17 @@ case "$DISTRIBUTION" in
fi fi
;; ;;
sid|bullseye|buster|stretch)
MIRRORSITE=http://deb.debian.org/debian
;;
wheezy) wheezy)
MIRRORSITE=http://archive.debian.org/debian MIRRORSITE=http://archive.debian.org/debian
;; ;;
# devuan
ceres|beowulf|ascii) ceres|beowulf|ascii)
MIRRORSITE=http://auto.mirror.devuan.org/merged MIRRORSITE=http://auto.mirror.devuan.org/merged
;; ;;
eoan|disco|cosmic|bionic|artful|xenial|trusty|precise) # ubuntu
focal|eoan|disco|cosmic|bionic|xenial|trusty)
if [ "$ARCHITECTURE" = "amd64" ] || [ "$ARCHITECTURE" = "i386" ]; then if [ "$ARCHITECTURE" = "amd64" ] || [ "$ARCHITECTURE" = "i386" ]; then
MIRRORSITE=http://archive.ubuntu.com/ubuntu MIRRORSITE=http://archive.ubuntu.com/ubuntu
else else
@ -104,7 +111,8 @@ case "$DISTRIBUTION" in
fi fi
;; ;;
raspbian-buster|raspbian-stretch|raspbian-jessie) # raspbian
raspbian-bullseye|raspbian-buster|raspbian-stretch|raspbian-jessie)
MIRRORSITE=http://ftp.fi.muni.cz/pub/linux/raspbian/raspbian MIRRORSITE=http://ftp.fi.muni.cz/pub/linux/raspbian/raspbian
;; ;;
esac esac
@ -140,14 +148,14 @@ fi
case "$DISTRIBUTION" in case "$DISTRIBUTION" in
sid|bullseye|buster|stretch|\ sid|bullseye|buster|stretch|\
ceres|beowulf|ascii|\ ceres|beowulf|ascii|\
raspbian-buster|raspbian-stretch|\ raspbian-bullseye|raspbian-buster|raspbian-stretch|\
eoan|disco|cosmic|bionic|artful) focal|eoan|disco|cosmic|bionic)
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-apt" PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-apt"
;; ;;
jessie|wheezy|\ jessie|wheezy|\
raspbian-jessie|\ raspbian-jessie|\
xenial|trusty|precise) xenial|trusty)
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-aptitude" PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-aptitude"
;; ;;
esac esac

@ -107,11 +107,11 @@ function init_common()
fi fi
# Make sure we have selected a supported distribution # Make sure we have selected a supported distribution
DISTS_FILE="$SCRIPT_DIR/internals/distro_list.txt" DISTROS_FILE="$SCRIPT_DIR/internals/distro_list.txt"
if [ ! -f "$DISTS_FILE" ]; then if [ ! -f "$DISTROS_FILE" ]; then
echo -e "${CLightRed} --- ERROR ---${CNone}" echo -e "${CLightRed} --- ERROR ---${CNone}"
echo "Could not find the list of supported distributions." echo "Could not find the list of supported distributions."
echo -e "Please check the file ${CLightPurple}$DISTS_FILE${CNone} exists, then rerun this script." echo -e "Please check the file ${CLightPurple}$DISTROS_FILE${CNone} exists, then rerun this script."
exit 3 exit 3
fi fi
# -- Need to use a "here string" otherwise if the DISTRO_FOUND value is modified # -- Need to use a "here string" otherwise if the DISTRO_FOUND value is modified
@ -121,8 +121,8 @@ function init_common()
while read l_distro l_version l_name l_rel_suffix l_packaging_path; do while read l_distro l_version l_name l_rel_suffix l_packaging_path; do
if [ "$l_distro" = "$DISTRO" -a "$l_name" = "$DISTRO_NAME" ]; then if [ "$l_distro" = "$DISTRO" -a "$l_name" = "$DISTRO_NAME" ]; then
DISTRO_FOUND="y" DISTRO_FOUND="y"
l_rel_suffix=`echo "$l_rel_suffix" | perl -pe "s|^[\"']?(.*?)[\"']?$|\1|g"` l_rel_suffix=`echo "$l_rel_suffix" | perl -pe "s|^[\"-]?(.*?)[\"]?$|\1|g"`
l_packaging_path=`echo "$l_packaging_path" | perl -pe "s|^[\"']?(.*?)[\"']?$|\1|g"` l_packaging_path=`echo "$l_packaging_path" | perl -pe "s|^[\"-]?(.*?)[\"]?$|\1|g"`
export DISTRO_VERSION="$l_version" export DISTRO_VERSION="$l_version"
export REL_SUFFIX="$l_rel_suffix" export REL_SUFFIX="$l_rel_suffix"
if [[ ! -z "$l_packaging_path" ]]; then if [[ ! -z "$l_packaging_path" ]]; then
@ -130,13 +130,13 @@ function init_common()
fi fi
break break
fi fi
done <<< $(cat $DISTS_FILE | grep -E "^(\s*[^#\s]+\s+[^\s]+.*)$") done <<< $(sed -n "s|\(^[\s]*[^#\s]\+.*$\)|\1|p" < $DISTROS_FILE)
IFS=$OLD_IFS IFS=$OLD_IFS
if [ "$DISTRO_FOUND" != "y" ]; then if [ "$DISTRO_FOUND" != "y" ]; then
echo -e "${CLightRed} --- ERROR ---${CNone}" echo -e "${CLightRed} --- ERROR ---${CNone}"
echo -e "The specified distribution (${CYellow}$DISTRO $DISTRO_NAME${CNone}) is not supported." echo -e "The specified distribution (${CYellow}$DISTRO $DISTRO_NAME${CNone}) is not supported."
echo -e "Something is wrong with your configuration (${CLightPurple}$CFG_FILE${CNone})" echo -e "Something is wrong with your configuration (${CLightPurple}$CFG_FILE${CNone})"
echo -e "or with the list of supported distributions (${CLightPurple}$DISTS_FILE${CNone})." echo -e "or with the list of supported distributions (${CLightPurple}$DISTROS_FILE${CNone})."
echo -e "Please check the ${CLightCyan}DISTRO${CNone} and ${CLightCyan}DISTRO_NAME${CNone} variables, then rerun this script." echo -e "Please check the ${CLightCyan}DISTRO${CNone} and ${CLightCyan}DISTRO_NAME${CNone} variables, then rerun this script."
exit 4 exit 4
fi fi

@ -1,5 +1,4 @@
#!/bin/bash #
# List of supported distributions # List of supported distributions
# #
# Format: # Format:
@ -9,30 +8,32 @@
# package suffix if required # package suffix if required
# tde/packaging corresponding path if required # tde/packaging corresponding path if required
# #
DISTROS="
# -- debian -- # debian
debian 7.0 wheezy '' '' debian 7.0 wheezy - -
debian 8.0 jessie '' '' debian 8.0 jessie - -
debian 9.0 stretch '' '' debian 9.0 stretch - -
debian 10.0 buster '' '' debian 10.0 buster - -
debian 11.0 bullseye ~a '' debian 11.0 bullseye ~a -
debian 12.0 sid ~b '' debian 12.0 sid ~b -
# -- devuan --
devuan 1.0 jessie '' debian/jessie # devuan
devuan 2.0 ascii '' debian/stretch devuan 1.0 jessie - debian/jessie
devuan 2.0 ascii - debian/stretch
devuan 3.0 beowulf ~a debian/buster devuan 3.0 beowulf ~a debian/buster
devuan 4.0 ceres ~b debian/sid devuan 4.0 ceres ~b debian/sid
# -- raspbian --
raspbian 8.0 raspbian-jessie '' '' # raspbian
raspbian 9.0 raspbian-stretch '' '' raspbian 8.0 raspbian-jessie - -
raspbian 10.0 raspbian-buster ~a '' raspbian 9.0 raspbian-stretch - -
# -- ubuntu -- raspbian 10.0 raspbian-buster - -
ubuntu 12.04 precise '' '' raspbian 11.0 raspbian-bullseye ~a -
ubuntu 14.04 trusty '' ''
ubuntu 16.04 xenial '' '' # ubuntu
ubuntu 17.10 artful '' '' ubuntu 14.04 trusty - -
ubuntu 18.04 bionic '' '' ubuntu 16.04 xenial - -
ubuntu 18.10 cosmic '' '' ubuntu 18.04 bionic - -
ubuntu 19.04 disco '' '' ubuntu 18.10 cosmic - -
ubuntu 19.10 eoan ~a '' ubuntu 19.04 disco - -
" ubuntu 19.10 eoan - -
ubuntu 20.04 focal - -

@ -0,0 +1 @@
../debian/bullseye
Loading…
Cancel
Save