summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelog2
-rw-r--r--src/1/build.mk31
-rw-r--r--src/1/ppt-mkpkgs77
-rw-r--r--src/1/ppt-rmpkgs10
4 files changed, 2 insertions, 118 deletions
diff --git a/changelog b/changelog
index 61dcb2e..5ca5e09 100644
--- a/changelog
+++ b/changelog
@@ -5,6 +5,8 @@ platconf-pkg-tools (2.1.0) trunk
has no run-time configuration binary packages.
* Add "${Config-<pkg>-Depends}" substvar expansions to the Depends
fields of config-<pkg>-<plat> and config-<pkg> packages.
+ * Drop old version 1 files. All config packages in ProteanOS have
+ been updated to platconf-pkg-tools version 2.
-- "P. J. McDermott" <pj@pehjota.net> Sun, 09 Nov 2014 12:23:04 -0500
diff --git a/src/1/build.mk b/src/1/build.mk
deleted file mode 100644
index eef0ed2..0000000
--- a/src/1/build.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-ppt_plat = $${OPK_SOURCE\#config-}
-ppt_pkg_dir = config-$${pkg}-$(ppt_plat).data
-ppt_platconf_dir = $(ppt_pkg_dir)/usr/share/platconf/$(ppt_plat)/$${pkg}_$${ver}
-
-nop:
- @:
-
-build:
- @:
-
-install: build
- set -e; \
- for pkg in src/build/*; do \
- pkg="$${pkg#src/build/}"; \
- for ver in "src/build/$${pkg}/"*; do \
- ver="$${ver#src/build/$${pkg}/}"; \
- mkdir -p "$(ppt_platconf_dir)"; \
- cp -p "src/build/$${pkg}/$${ver}/"* "$(ppt_platconf_dir)"; \
- done; \
- done
- set -e; \
- for pkg in src/run/*; do \
- pkg="$${pkg#src/run/}"; \
- mkdir "config-$${pkg}.data"; \
- find "src/run/$${pkg}" -type f | while read -r file; do \
- file="$${file#src/run/$${pkg}}"; \
- mkdir -p "config-$${pkg}.data/$${file%/*}"; \
- cp -p "src/run/$${pkg}/$${file}" \
- "config-$${pkg}.data/$${file}"; \
- done; \
- done
diff --git a/src/1/ppt-mkpkgs b/src/1/ppt-mkpkgs
deleted file mode 100644
index aa75c0c..0000000
--- a/src/1/ppt-mkpkgs
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-PLAT=
-
-main()
-{
- PLAT="$(sed '1{s/^config-\([^ ][^ ]*\) (.*$/\1/;};1!q;' changelog)"
-
- make_common_pkg
- make_build_time_pkgs
- make_run_time_pkgs
-}
-
-info()
-{
- local fmt="${1}"
- shift 1
-
- printf "ppt-mkpkgs: ${fmt}\n" "${@}"
-}
-
-make_common_pkg()
-{
- # Make "-common" package to provide source package documentation files.
- mkdir -p "config-${PLAT}-common.pkg"
- cat >"config-${PLAT}-common.pkg/control" <<-EOF
- Architecture: all
- Platform: all
- Description: "${PLAT}" platform configuration - common files
- EOF
- >"config-${PLAT}-common.pkg/docs"
- info 'Metadata for package "%s" generated.' "config-${PLAT}-common"
-}
-
-make_build_time_pkgs()
-{
- local pkg=
-
- # Make each config-*-* package.
- for pkg in src/build/*; do
- [ -d "${pkg}" ] || continue
- pkg="${pkg#src/build/}"
- mkdir -p "config-${pkg}-${PLAT}.pkg"
- cat >"config-${pkg}-${PLAT}.pkg/control" <<-EOF
- Architecture: all
- Platform: all
- Depends: config-${PLAT}-common (= \${Binary-Version})
- Description: "${PLAT}" platform configuration for ${pkg}
- EOF
- info 'Metadata for package "%s" generated.' \
- "config-${pkg}-${PLAT}"
- done
-}
-
-make_run_time_pkgs()
-{
- local pkg=
-
- # Make each config-* package.
- for pkg in src/run/*; do
- [ -d "${pkg}" ] || continue
- pkg="${pkg#src/run/}"
- mkdir -p "config-${pkg}.pkg"
- cat >"config-${pkg}.pkg/control" <<-EOF
- Architecture: all
- Platform: ${PLAT}
- Depends: config-${PLAT}-common (= \${Binary-Version})
- Description: "${PLAT}" platform configuration for ${pkg}
- EOF
- info 'Metadata for package "%s" generated.' \
- "config-${pkg}"
- done
-}
-
-main "${@}"
diff --git a/src/1/ppt-rmpkgs b/src/1/ppt-rmpkgs
deleted file mode 100644
index 7e7fbc4..0000000
--- a/src/1/ppt-rmpkgs
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-main()
-{
- rm -Rf config-*.pkg/
-}
-
-main "${@}"