summaryrefslogtreecommitdiff
path: root/package/ppp/patches/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'package/ppp/patches/patch-configure')
-rw-r--r--package/ppp/patches/patch-configure84
1 files changed, 78 insertions, 6 deletions
diff --git a/package/ppp/patches/patch-configure b/package/ppp/patches/patch-configure
index 4ec084e2e..b4be911dd 100644
--- a/package/ppp/patches/patch-configure
+++ b/package/ppp/patches/patch-configure
@@ -1,15 +1,87 @@
---- ppp-2.4.4.orig/configure 2005-07-09 02:23:05.000000000 +0200
-+++ ppp-2.4.4/configure 2009-06-05 19:12:00.000000000 +0200
-@@ -8,9 +8,9 @@ SYSCONF=/etc
+--- ppp-2.4.5.orig/configure 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/configure 2011-01-21 21:29:57.977408326 +0100
+@@ -5,12 +5,42 @@
+ DESTDIR=/usr/local
+ SYSCONF=/etc
+
++# Parse arguments
++while [ $# -gt 0 ]; do
++ arg=$1
++ val=
++ shift
++ case $arg in
++ *=*)
++ val=`expr "x$arg" : 'x[^=]*=\(.*\)'`
++ arg=`expr "x$arg" : 'x\([^=]*\)=.*'`
++ ;;
++ --prefix|--sysconf|--system|--arch|--release)
++ if [ $# -eq 0 ]; then
++ echo "error: the $arg argument requires a value" 1>&2
++ exit 1
++ fi
++ val=$1
++ shift
++ ;;
++ esac
++ case $arg in
++ --prefix) DESTDIR=$val ;;
++ --sysconfdir) SYSCONF=$val ;;
++ --system) system=$val ;;
++ --release) release=$val ;;
++ --arch) arch=$val ;;
++ esac
++done
++
++echo "DESTDIR is $DESTDIR"
++
# if [ -d /NextApps ]; then
# system="NeXTStep"
# else
- system=`uname -s`
- release=`uname -r`
- arch=`uname -m`
-+ system=${UNAME_S:-`uname -s`}
-+ release=${UNAME_R:-`uname -r`}
-+ arch=${UNAME_M:-`uname -m`}
++if [ -z "$system" ];then system=`uname -s`;fi
++if [ -z "$release" ];then release=`uname -r`;fi
++if [ -z "$arch" ];then arch=`uname -m`;fi
# fi
state="unknown"
+@@ -18,6 +48,7 @@ case $system in
+ Linux)
+ makext="linux";
+ ksrc="linux";
++ compiletype=.gcc;
+ state="known";;
+ SunOS)
+ karch=`/usr/bin/isainfo -k`
+@@ -156,30 +187,6 @@ case $state in
+ echo "Configuring for $system";;
+ esac
+
+-# Parse arguments
+-while [ $# -gt 0 ]; do
+- arg=$1
+- val=
+- shift
+- case $arg in
+- *=*)
+- val=`expr "x$arg" : 'x[^=]*=\(.*\)'`
+- arg=`expr "x$arg" : 'x\([^=]*\)=.*'`
+- ;;
+- --prefix|--sysconf)
+- if [ $# -eq 0 ]; then
+- echo "error: the $arg argument requires a value" 1>&2
+- exit 1
+- fi
+- val=$1
+- shift
+- ;;
+- esac
+- case $arg in
+- --prefix) DESTDIR=$val ;;
+- --sysconfdir) SYSCONF=$val ;;
+- esac
+-done
+
+ mkmkf() {
+ rm -f $2