From 3c00f3906942c2710fb4323b2fcb909c73cca95a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 20 Sep 2014 13:19:49 -0400 Subject: 2/ppt-mkpkgs: Make a config-base package --- (limited to 'src') diff --git a/src/2/ppt-mkpkgs b/src/2/ppt-mkpkgs index b114a74..c820b0e 100644 --- a/src/2/ppt-mkpkgs +++ b/src/2/ppt-mkpkgs @@ -9,6 +9,7 @@ main() PLAT="$(sed '1{s/^config-\([^ ][^ ]*\) (.*$/\1/;};1!q;' changelog)" make_common_pkg + make_base_pkg make_build_time_pkgs make_run_time_pkgs } @@ -34,6 +35,22 @@ make_common_pkg() info 'Metadata for package "%s" generated.' "config-${PLAT}-common" } +make_base_pkg() +{ + # Make a "config-base" package to depend on packages to be automatically + # installed. + mkdir -p "config-base.pkg" + cat >"config-base.pkg/control" <<-EOF + Architecture: all + Platform: ${PLAT} + Essential: yes + Depends: config-${PLAT}-common (= \${Binary-Version}), + \${Base-Depends} + Description: "${PLAT}" platform configuration - base package + EOF + info 'Metadata for package "%s" generated.' "config-base" +} + make_build_time_pkgs() { local pkg= -- cgit v0.9.1