From 96e4251e89a9a5aa9a934dfe552b14fbf9888e96 Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sun, 11 Apr 2004 20:39:17 +0000 Subject: [PATCH] Make default ./configure args configurable With this commit we implicitly enable NLS Enable full wildcard usage in subsys.conf Currently unpackaged_file detection is missing and perhaps the subsys.conf syntax should be scrapped in favor of the solaris style pkgdef since there are many similarities. --- buildpkg.packaging.irix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/buildpkg.packaging.irix b/buildpkg.packaging.irix index 54cca1f..e8a352b 100644 --- a/buildpkg.packaging.irix +++ b/buildpkg.packaging.irix @@ -45,6 +45,8 @@ pkgname=$pkgprefix$topdir os=irix`$UNAME -r` cpu=mips3 +configure_args='--prefix=$prefix' + META_CLEAN="$topdir.spec $topdir.idb" # Host specific configuration @@ -315,9 +317,14 @@ create_idb() local found=0 while read dir pdcat perm user group desc do - dironly=${dir%/*} + #local wildcardpos=$($EXPR index "$dir" '*?') + #if [ $wildcardpos -gt 2 ]; then + # dironly=${dir:0:(($wildcardpos-2))} + #else + # dironly=$($DIRNAME $dir) + #fi found=0 - if [ -d $dironly ]; then # This exists + #if [ -d $dironly ]; then # This exists add_files "$dir" $pdcat $perm $user $group for i in ${pc[@]} # If $pdcat is already there then don't add it again do @@ -331,7 +338,7 @@ create_idb() pd[$index]=$desc let "index = $index + 1" fi - fi + #fi done < $subsysconf $SORT +4u -6 < $idbfile > $metadir/idbtemp lines=$(wc -l < $metadir/idbtemp)