summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-18 20:40:49 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-18 22:20:49 +0100
commit8385713df974239b7cf5395873b4ad459953fa5e (patch)
tree53b9d7f5ad73e0e4fa0ab3380a6dcb666c9d3bfd
parent7cdd56736a9c90b096329442a7aa65125e4a523e (diff)
first draft
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
-rw-r--r--package/bash/Makefile2
-rw-r--r--package/pkgmaker29
2 files changed, 30 insertions, 1 deletions
diff --git a/package/bash/Makefile b/package/bash/Makefile
index 838bb92e4..531ff7f82 100644
--- a/package/bash/Makefile
+++ b/package/bash/Makefile
@@ -9,7 +9,7 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= a90a1b5a6db4838483f05438e05e8eb9
PKG_DESCR:= Bourne-Again SHell
PKG_SECTION:= shells
-PKG_URL:= http://www.gnu.org/software/bash
+PKG_URL:= http://www.gnu.org/software/bash/
PKG_SITES:= http://ftp.gnu.org/gnu/bash/
include $(TOPDIR)/mk/package.mk
diff --git a/package/pkgmaker b/package/pkgmaker
new file mode 100644
index 000000000..5cc957ff9
--- /dev/null
+++ b/package/pkgmaker
@@ -0,0 +1,29 @@
+export TOPDIR=$(realpath ..)
+if gmake --help >/dev/null 2>&1; then
+ export GMAKE=gmake
+else
+ export GMAKE=make
+fi
+
+for subdir in bash; do
+ cd $subdir
+ pn=$($GMAKE show=PKG_NAME)
+ typeset -u pnu=$pn
+ pd=$($GMAKE show=PKG_DESCR)
+ ph=$($GMAKE show=PKG_URL)
+ (print "config ADK_PACKAGE_$pnu"
+ pnf=$pn
+ while (( ${#pnf} < 34 )); do
+ pnf=$pnf.
+ done
+ print "\tprompt \"$pnf ${pd:-$pn}\""
+ print \\ttristate
+ print \\tdefault n
+ if [[ -n $pd$ph ]]; then
+ print \\thelp
+ [[ -n $pd ]] && print "\t $pd"
+ [[ -n $pd && -n $ph ]] && print '\t '
+ [[ -n $ph ]] && print "\t $ph"
+ fi
+ ) >Config.in
+done