summaryrefslogtreecommitdiffstats
path: root/debian/progress-linux.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/progress-linux.config')
-rwxr-xr-xdebian/progress-linux.config38
1 files changed, 28 insertions, 10 deletions
diff --git a/debian/progress-linux.config b/debian/progress-linux.config
index 99b7a02..6655630 100755
--- a/debian/progress-linux.config
+++ b/debian/progress-linux.config
@@ -6,17 +6,35 @@ PROJECT="progress-linux"
. /usr/share/debconf/confmodule
-# apt archives
-db_settitle ${PROJECT}/title
-db_input high ${PROJECT}/archives || true
-db_go
-
-if db_get ${PROJECT}/archives
-then
- # apt archive-areas
+Run_debconf ()
+{
+ # apt archives
db_settitle ${PROJECT}/title
- db_input high ${PROJECT}/archive-areas || true
+ db_input high ${PROJECT}/archives || true
db_go
-fi
+
+ if db_get ${PROJECT}/archives
+ then
+ # apt archive-areas
+ db_settitle ${PROJECT}/title
+ db_input high ${PROJECT}/archive-areas || true
+ db_go
+ fi
+}
+
+DISTRIBUTION="$(cat /etc/debian_version)"
+
+case "${DISTRIBUTION}" in
+ 10.*|buster/sid)
+ db_subst ${PROJECT}/archives CHOICES "Progress Linux 5 (engywuck), Progress Linux 5 (engywuck-security), Progress Linux 5 (engywuck-updates), Progress Linux 5 (engywuck-extras), Progress Linux 5+ (engywuck-backports), Progress Linux 5+ (engywuck-backports-extras)"
+ db_subst ${PROJECT}/archives CHOICES_C "engywuck, engywuck-security, engywuck-updates, engywuck-extras, engywuck-backports, engywuck-backports-extras"
+ db_subst ${PROJECT}/archives DEFAULT ""
+
+ db_subst ${PROJECT}/archive-areas CHOICES "main, contrib, non-free, restricted"
+ db_subst ${PROJECT}/archive-areas DEFAULT "main"
+
+ Run_debconf
+ ;;
+esac
db_stop