diff options
Diffstat (limited to 'ipkg-utils')
-rw-r--r-- | ipkg-utils/files/fix-ipkg-link-beagle.patch | 39 | ||||
-rw-r--r-- | ipkg-utils/files/fix-ipkg-link.patch | 55 | ||||
-rw-r--r-- | ipkg-utils/files/fix-ipkg-tar.patch | 11 | ||||
-rw-r--r-- | ipkg-utils/ipkg-utils-1.6cvs/fix-ipkg-link.patch | 55 |
4 files changed, 160 insertions, 0 deletions
diff --git a/ipkg-utils/files/fix-ipkg-link-beagle.patch b/ipkg-utils/files/fix-ipkg-link-beagle.patch index e69de29bb2..17f9cfcb6d 100644 --- a/ipkg-utils/files/fix-ipkg-link-beagle.patch +++ b/ipkg-utils/files/fix-ipkg-link-beagle.patch @@ -0,0 +1,39 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- ipkg-utils/ipkg-link~fix-ipkg-link-beagle ++++ ipkg-utils/ipkg-link +@@ -3,6 +3,7 @@ + # <zaurus@bredband.net> + # Modified by Aman Gupta <oz@themastermind1.net> + ++ + usage () { + echo "Usage: " + echo " $0 add packagename (links \"packagename\" to root filesystem)" +@@ -28,8 +29,13 @@ + PREFIX="/mnt/ram" + files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/mnt\/ram//g'` + else ++ if [ -e "/home/usr/lib/ipkg/info/$PACKAGE.list" ]; then ++ PREFIX="/home" ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/home//g'` ++ else + echo "Package \"$PACKAGE\" not found." + exit ++ fi + fi + fi + fi +@@ -66,6 +72,9 @@ + elif [ "$PREFIX" = "/mnt/cf" ]; then + files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/mnt\/cf//g' | sort -r` + ++ elif [ "$PREFIX" = "/home" ]; then ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/home//g' | sort -r` ++ + else + files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sort -r` + fi diff --git a/ipkg-utils/files/fix-ipkg-link.patch b/ipkg-utils/files/fix-ipkg-link.patch index e69de29bb2..ba503d963f 100644 --- a/ipkg-utils/files/fix-ipkg-link.patch +++ b/ipkg-utils/files/fix-ipkg-link.patch @@ -0,0 +1,55 @@ +--- ../ipkg-link-1.6cvs-r0/ipkg-utils/ipkg-link 2003-03-25 23:23:56.000000000 +0000 ++++ ipkg-utils/ipkg-link 2004-08-18 13:27:51.000000000 +0100 +@@ -18,19 +18,22 @@ + # Does the list file exist? + if [ -e "/mnt/card/usr/lib/ipkg/info/$PACKAGE.list" ]; then + PREFIX="/mnt/card" ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/mnt\/card//g'` + else + if [ -e "/mnt/cf/usr/lib/ipkg/info/$PACKAGE.list" ]; then +- PREFIX="/mnt/cf" ++ PREFIX="/mnt/cf" ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/mnt\/cf//g'` + else + if [ -e "/mnt/ram/usr/lib/ipkg/info/$PACKAGE.list" ]; then + PREFIX="/mnt/ram" ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/mnt\/ram//g'` + else + echo "Package \"$PACKAGE\" not found." + exit + fi + fi + fi +- files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list"` ++ [ -z "$files" ] && files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list"` + echo "*** Found package on $PREFIX" + } + +@@ -45,6 +48,7 @@ + `mkdir "$line"` + else + # It's a file. ++ [ ! -d `dirname $line` ] && mkdir -p `dirname $line` + `ln -s "$PREFIX$line" "$line"` + fi + fi +@@ -53,7 +57,18 @@ + + remove () { + echo "*** Removing $PACKAGE" +- files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sort -r` ++ if [ "$PREFIX" = "/mnt/ram" ]; then ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/mnt\/ram//g' | sort -r` ++ ++ elif [ "$PREFIX" = "/mnt/card" ]; then ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/mnt\/card//g' | sort -r` ++ ++ elif [ "$PREFIX" = "/mnt/cf" ]; then ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/mnt\/cf//g' | sort -r` ++ ++ else ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sort -r` ++ fi + echo "$files" | + while read line; do + if [ -e "$line" ]; then diff --git a/ipkg-utils/files/fix-ipkg-tar.patch b/ipkg-utils/files/fix-ipkg-tar.patch index e69de29bb2..faeffffffd 100644 --- a/ipkg-utils/files/fix-ipkg-tar.patch +++ b/ipkg-utils/files/fix-ipkg-tar.patch @@ -0,0 +1,11 @@ +--- ipkg-utils/ipkg-build.orig 2004-10-30 15:02:32.637293160 -0400 ++++ ipkg-utils/ipkg-build 2004-10-30 15:02:57.446521584 -0400 +@@ -226,7 +226,7 @@ tmp_dir=$dest_dir/IPKG_BUILD.$$ + mkdir $tmp_dir + + echo $CONTROL > $tmp_dir/tarX +-( cd $pkg_dir && tar $ogargs -czf $tmp_dir/data.tar.gz . -X $tmp_dir/tarX ) ++( cd $pkg_dir && tar $ogargs -czf $tmp_dir/data.tar.gz -X $tmp_dir/tarX . ) + ( cd $pkg_dir/$CONTROL && tar $ogargs -czf $tmp_dir/control.tar.gz . ) + rm $tmp_dir/tarX + diff --git a/ipkg-utils/ipkg-utils-1.6cvs/fix-ipkg-link.patch b/ipkg-utils/ipkg-utils-1.6cvs/fix-ipkg-link.patch index e69de29bb2..ba503d963f 100644 --- a/ipkg-utils/ipkg-utils-1.6cvs/fix-ipkg-link.patch +++ b/ipkg-utils/ipkg-utils-1.6cvs/fix-ipkg-link.patch @@ -0,0 +1,55 @@ +--- ../ipkg-link-1.6cvs-r0/ipkg-utils/ipkg-link 2003-03-25 23:23:56.000000000 +0000 ++++ ipkg-utils/ipkg-link 2004-08-18 13:27:51.000000000 +0100 +@@ -18,19 +18,22 @@ + # Does the list file exist? + if [ -e "/mnt/card/usr/lib/ipkg/info/$PACKAGE.list" ]; then + PREFIX="/mnt/card" ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/mnt\/card//g'` + else + if [ -e "/mnt/cf/usr/lib/ipkg/info/$PACKAGE.list" ]; then +- PREFIX="/mnt/cf" ++ PREFIX="/mnt/cf" ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/mnt\/cf//g'` + else + if [ -e "/mnt/ram/usr/lib/ipkg/info/$PACKAGE.list" ]; then + PREFIX="/mnt/ram" ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" |sed -e 's/\/mnt\/ram//g'` + else + echo "Package \"$PACKAGE\" not found." + exit + fi + fi + fi +- files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list"` ++ [ -z "$files" ] && files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list"` + echo "*** Found package on $PREFIX" + } + +@@ -45,6 +48,7 @@ + `mkdir "$line"` + else + # It's a file. ++ [ ! -d `dirname $line` ] && mkdir -p `dirname $line` + `ln -s "$PREFIX$line" "$line"` + fi + fi +@@ -53,7 +57,18 @@ + + remove () { + echo "*** Removing $PACKAGE" +- files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sort -r` ++ if [ "$PREFIX" = "/mnt/ram" ]; then ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/mnt\/ram//g' | sort -r` ++ ++ elif [ "$PREFIX" = "/mnt/card" ]; then ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/mnt\/card//g' | sort -r` ++ ++ elif [ "$PREFIX" = "/mnt/cf" ]; then ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sed -e 's/\/mnt\/cf//g' | sort -r` ++ ++ else ++ files=`cat "$PREFIX/usr/lib/ipkg/info/$PACKAGE.list" | sort -r` ++ fi + echo "$files" | + while read line; do + if [ -e "$line" ]; then |