Imported sources from subversion.
This commit is contained in:
50
packages/ppp/default.bash
Normal file
50
packages/ppp/default.bash
Normal file
@@ -0,0 +1,50 @@
|
||||
version=\
|
||||
(
|
||||
"2.4.5"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"ftp://ftp.samba.org/pub/ppp/ppp-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"4621bc56167b6953ec4071043fe0ec57"
|
||||
)
|
||||
|
||||
maintainer=\
|
||||
(
|
||||
"Ricardo Martins <rasm@fe.up.pt>"
|
||||
)
|
||||
|
||||
requires=\
|
||||
(
|
||||
'libpcap/default'
|
||||
)
|
||||
|
||||
post_unpack()
|
||||
{
|
||||
for patch in "$cfg_package_spec_dir"/patches/*; do
|
||||
patch -p1 < "$patch" || return 1
|
||||
done
|
||||
}
|
||||
|
||||
configure()
|
||||
{
|
||||
export UNAME_S='Linux'
|
||||
export UNAME_R='2.6.30'
|
||||
export UNAME_M="$cfg_target_linux"
|
||||
./configure
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make CC=$cmd_target_cc
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
$cmd_target_strip pppd/pppd -o $cfg_dir_rootfs/usr/sbin/pppd &&
|
||||
$cmd_target_strip chat/chat -o $cfg_dir_rootfs/usr/sbin/chat
|
||||
}
|
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