diff options
author | P. J. McDermott <pjm@nac.net> | 2013-06-02 17:35:25 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-06-02 17:35:25 (EDT) |
commit | d3a33b65b13532c7b0931815d10545dd4456bbb8 (patch) | |
tree | 431321bf973247f9f9d23dc3627c5c464e01bfb8 |
Initial commit.
-rw-r--r-- | .gitignore | 11 | ||||
-rwxr-xr-x | build | 14 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 2 | ||||
-rw-r--r-- | copyright | 17 | ||||
-rw-r--r-- | format | 1 | ||||
-rw-r--r-- | patches/01_better-handle-unrecognized-options.patch | 17 | ||||
-rw-r--r-- | patches/02_dont-generate-mksysconf.patch | 17 | ||||
-rw-r--r-- | source.mk | 16 |
9 files changed, 100 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c9ffdd --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +# Swap and backup files +.*.sw* +.sw* +*~ +Session.vim + +# Source archives +opkbuild-*.orig.tar.* + +# Work area +tmp/ @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +include ../source.mk + +build: + oh-autoconfigure -- \ + --with-metadata=proteanos \ + --with-opkg=/usr/bin/opkg \ + --with-opkhelper-3.0=/usr/share/opkhelper-3.0/ + oh-autobuild + +install: build + oh-autoinstall + oh-installfiles diff --git a/changelog b/changelog new file mode 100644 index 0000000..e0a415a --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +opkbuild (3.0.0~alpha4-1) trunk + + * Initial release. + + -- "P. J. McDermott" <pjm@nac.net> Sun, 02 Jun 2013 16:31:21 -0400 @@ -0,0 +1,2 @@ +Maintainer: "P. J. McDermott" <pjm@nac.net> +Build-Depends: opkhelper-3.0 diff --git a/copyright b/copyright new file mode 100644 index 0000000..0898f1a --- /dev/null +++ b/copyright @@ -0,0 +1,17 @@ +Copyright (C) 2012-2013 Patrick "P. J." McDermott + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. + +On this system, a copy of the GNU General Public License may be found at +<file:///usr/share/common-licenses/GPL-2>. @@ -0,0 +1 @@ +2.0 diff --git a/patches/01_better-handle-unrecognized-options.patch b/patches/01_better-handle-unrecognized-options.patch new file mode 100644 index 0000000..87f4f1a --- /dev/null +++ b/patches/01_better-handle-unrecognized-options.patch @@ -0,0 +1,17 @@ +From: "P. J. McDermott" <pjm@nac.net> +Description: Better handle unecognized options + optind needs to be incremented for every option. + +--- src.orig/configure 2012-11-16 15:41:08.000000000 -0500 ++++ src/configure 2013-06-02 17:19:30.619119593 -0400 +@@ -256,9 +256,7 @@ + if [ ${?} -ne 0 ]; then + printf 'warning: unrecognized %s name: %s\n' \ + "${_type}" "${_opt}" >&2 +- continue +- fi +- if ${_optarg_set}; then ++ elif ${_optarg_set}; then + _opt="$(printf '%s' "${_opt}" | tr -c '[a-z0-9]' '_')" + eval "${_opt}"=\"\$\{_optarg\}\" + else diff --git a/patches/02_dont-generate-mksysconf.patch b/patches/02_dont-generate-mksysconf.patch new file mode 100644 index 0000000..27ece1d --- /dev/null +++ b/patches/02_dont-generate-mksysconf.patch @@ -0,0 +1,17 @@ +From: "P. J. McDermott" <pjm@nac.net> +Description: Don't generate mksysconf + +--- src.orig/configure 2013-06-02 17:19:30.619119593 -0400 ++++ src/configure 2013-06-02 17:28:09.749967301 -0400 +@@ -329,11 +329,6 @@ + mkdir -p "${_dir}" + sed "${_sed_script}" "${srcdir}/${_dir}/Makefile.in" >"${_dir}/Makefile" + done +- +- # New and improved kludge to generate system configuration for testing. +- # TODO: Remove when no longer used. +- sed "${_sed_script}" "${srcdir}/mksysconf.in" >'mksysconf' +- chmod 755 'mksysconf' + } + + main "${@}" diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..73588a6 --- /dev/null +++ b/source.mk @@ -0,0 +1,16 @@ +upstream_version = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \ + sed 's/~/-/') +upstream_archive = opkbuild-$(upstream_version).tar.bz2 +upstream_dir_url = http://files.proteanos.com/pub/opkbuild/$(upstream_version) +upstream_url = $(upstream_dir_url)/$(upstream_archive) +upstream_sum = $(upstream_dir_url)/SHA256SUMS +source_archive = ../opkbuild-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2 + +$(source_archive): + wget "$(upstream_url)" + wget -O - "$(upstream_sum)" | grep -F "$(upstream_archive)" >SHA256SUMS + sha256sum -c SHA256SUMS + rm -f SHA256SUMS + mv "$(upstream_archive)" "$(source_archive)" + +source: $(source_archive) |