Imported sources from subversion.
This commit is contained in:
19
packages/ppp/patches/010-use_target_for_configure.patch
Normal file
19
packages/ppp/patches/010-use_target_for_configure.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
Use values exported from $(TOPDIR)/rules.mk for determining
|
||||
the target system instead of the host configuration
|
||||
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -8,9 +8,9 @@ SYSCONF=/etc
|
||||
# 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`}
|
||||
# fi
|
||||
state="unknown"
|
||||
|
||||
12
packages/ppp/patches/020-resolv_conf_path_tmp.patch
Normal file
12
packages/ppp/patches/020-resolv_conf_path_tmp.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -Nru ppp-2.4.5.ori/pppd/pathnames.h ppp-2.4.5/pppd/pathnames.h
|
||||
--- ppp-2.4.5.ori/pppd/pathnames.h 2009-11-16 22:26:07.000000000 +0000
|
||||
+++ ppp-2.4.5/pppd/pathnames.h 2010-06-25 00:31:37.000000000 +0100
|
||||
@@ -30,7 +30,7 @@
|
||||
#define _PATH_TTYOPT _ROOT_PATH "/etc/ppp/options."
|
||||
#define _PATH_CONNERRS _ROOT_PATH "/etc/ppp/connect-errors"
|
||||
#define _PATH_PEERFILES _ROOT_PATH "/etc/ppp/peers/"
|
||||
-#define _PATH_RESOLV _ROOT_PATH "/etc/ppp/resolv.conf"
|
||||
+#define _PATH_RESOLV _ROOT_PATH "/tmp/resolv.conf"
|
||||
|
||||
#define _PATH_USEROPT ".ppprc"
|
||||
#define _PATH_PSEUDONYM ".ppp_pseudonym"
|
||||
12
packages/ppp/patches/030-tdb_close_null_dereference.patch
Normal file
12
packages/ppp/patches/030-tdb_close_null_dereference.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- ppp-2.4.5.ori/pppd/main.c 2009-11-16 22:26:07.000000000 +0000
|
||||
+++ ppp-2.4.5/pppd/main.c 2010-07-10 23:50:45.225155782 +0100
|
||||
@@ -1571,7 +1571,8 @@
|
||||
/* Executing in the child */
|
||||
sys_close();
|
||||
#ifdef USE_TDB
|
||||
- tdb_close(pppdb);
|
||||
+ if (pppdb != NULL)
|
||||
+ tdb_close(pppdb);
|
||||
#endif
|
||||
|
||||
/* make sure infd, outfd and errfd won't get tromped on below */
|
||||
Reference in New Issue
Block a user