Browse Source

first draft

Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Thorsten Glaser 15 years ago
parent
commit
8385713df9
2 changed files with 30 additions and 1 deletions
  1. 1 1
      package/bash/Makefile
  2. 29 0
      package/pkgmaker

+ 1 - 1
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

+ 29 - 0
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