summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-14 17:10:39 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-14 17:43:08 (EDT)
commit990f40d03972f9880a359c2ebb643654bc5242e5 (patch)
treefa2a8ef5fb4aa7eb51d6dd54f944d7f2390f69db
parentf3f7a8bb1f2fddafa36d0f31dd44b278df9d003b (diff)
Convert to platconf-pkg-tools framework
-rwxr-xr-xbuild32
-rwxr-xr-xconfig74
-rw-r--r--control1
-rw-r--r--ppt-version1
4 files changed, 3 insertions, 105 deletions
diff --git a/build b/build
index c2281f3..f040875 100755
--- a/build
+++ b/build
@@ -1,33 +1,3 @@
#!/usr/bin/make -f
-plat = $${OPK_SOURCE\#config-}
-config_pkg = config-$${pkg}-$(plat)
-platconf_dir = $(config_pkg).data/usr/share/platconf/$(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 "$(platconf_dir)"; \
- cp -p "src/build/$${pkg}/$${ver}/"* "$(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
+include /usr/share/platconf-pkg-tools/build.mk
diff --git a/config b/config
deleted file mode 100755
index f1b0813..0000000
--- a/config
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-
-set -e
-set -u
-
-main()
-{
- case "${1-}" in
- '')
- config
- ;;
- 'clean')
- clean
- ;;
- esac
-}
-
-msg()
-{
- printf 'config: '
- printf "${@}"
- printf '\n'
-}
-
-config()
-{
- local plat=
- local pkg=
-
- plat="$(sed '1{s/^config-\([^ ][^ ]*\) (.*$/\1/;};1!q;' changelog)"
-
- # 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"
- msg 'Metadata for package "%s" generated.' "config-${plat}-common"
-
- # Make each config-* package.
- for pkg in src/build/*; do
- 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
- msg 'Metadata for package "%s" generated.' \
- "config-${pkg}-${plat}"
- done
- for pkg in src/run/*; do
- 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
- msg 'Metadata for package "%s" generated.' \
- "config-${pkg}"
- done
-}
-
-clean()
-{
- rm -Rf config-*.pkg/
-}
-
-main "${@}"
diff --git a/control b/control
index 709cac7..1a631f5 100644
--- a/control
+++ b/control
@@ -1 +1,2 @@
Maintainer: "P. J. McDermott" <pj@pehjota.net>
+Build-Depends: platconf-pkg-tools (>= 1.0)
diff --git a/ppt-version b/ppt-version
new file mode 100644
index 0000000..fd45e4c
--- /dev/null
+++ b/ppt-version
@@ -0,0 +1 @@
+ppt_version=1