diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-07-15 10:34:36 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-07-15 10:36:10 (EDT) |
commit | ceaf1fad71ef43e9da6ce7442625e1e29ae15985 (patch) | |
tree | 356f339bec05cf63630ffb0d98dfa27ad436f754 | |
parent | 6018dac2e2a9d983de057a0f0be0a776a3a8e11a (diff) |
Convert to platconf-pkg-tools framework
-rwxr-xr-x | build | 21 | ||||
-rwxr-xr-x | config | 62 | ||||
-rw-r--r-- | control | 1 | ||||
-rw-r--r-- | ppt-version | 1 | ||||
-rw-r--r-- | src/build/busybox/1.21.1/busybox.config (renamed from src/busybox/1.21.1/busybox.config) | 0 | ||||
-rw-r--r-- | src/build/busybox/1.21.1/inittab (renamed from src/busybox/1.21.1/inittab) | 0 | ||||
-rw-r--r-- | src/build/linux-libre/3.10.48~gnu/config (renamed from src/linux-libre/3.10.48~gnu/config) | 0 | ||||
-rw-r--r-- | src/build/linux-libre/3.10.48~gnu/image (renamed from src/linux-libre/3.10.48~gnu/image) | 0 |
8 files changed, 3 insertions, 82 deletions
@@ -1,22 +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/*; do \ - pkg="$${pkg#src/}"; \ - for ver in "src/$${pkg}/"*; do \ - ver="$${ver#src/$${pkg}/}"; \ - mkdir -p "$(platconf_dir)"; \ - cp -p "src/$${pkg}/$${ver}/"* "$(platconf_dir)"; \ - done; \ - done +include /usr/share/platconf-pkg-tools/build.mk @@ -1,62 +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/*; do - pkg="${pkg#src/}" - 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 -} - -clean() -{ - rm -Rf config-*-*.pkg/ -} - -main "${@}" @@ -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 diff --git a/src/busybox/1.21.1/busybox.config b/src/build/busybox/1.21.1/busybox.config index 28bc676..28bc676 100644 --- a/src/busybox/1.21.1/busybox.config +++ b/src/build/busybox/1.21.1/busybox.config diff --git a/src/busybox/1.21.1/inittab b/src/build/busybox/1.21.1/inittab index 9455f5e..9455f5e 100644 --- a/src/busybox/1.21.1/inittab +++ b/src/build/busybox/1.21.1/inittab diff --git a/src/linux-libre/3.10.48~gnu/config b/src/build/linux-libre/3.10.48~gnu/config index 37accf0..37accf0 100644 --- a/src/linux-libre/3.10.48~gnu/config +++ b/src/build/linux-libre/3.10.48~gnu/config diff --git a/src/linux-libre/3.10.48~gnu/image b/src/build/linux-libre/3.10.48~gnu/image index d95903f..d95903f 100644 --- a/src/linux-libre/3.10.48~gnu/image +++ b/src/build/linux-libre/3.10.48~gnu/image |