diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-09-20 13:19:49 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-09-20 13:19:49 (EDT) |
commit | 3c00f3906942c2710fb4323b2fcb909c73cca95a (patch) | |
tree | 2340eef236f09a551f7f6dbd811c7064b6c73eb6 /src/2/ppt-mkpkgs | |
parent | 1faf7e3df388b749ea14246a0f1ac2ae554233cc (diff) |
2/ppt-mkpkgs: Make a config-base package
Diffstat (limited to 'src/2/ppt-mkpkgs')
-rw-r--r-- | src/2/ppt-mkpkgs | 17 |
1 files changed, 17 insertions, 0 deletions
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= |