Imported sources from subversion.

This commit is contained in:
Ricardo Martins
2013-07-13 17:19:22 +01:00
commit 12d63d1569
455 changed files with 69857 additions and 0 deletions

50
packages/ppp/default.bash Normal file
View 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
}

View 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"

View 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"

View 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 */