This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/ppp/default.bash

51 lines
674 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-10-26 17:37:31 +00:00
'2.4.5'
2013-07-13 17:19:22 +01:00
)
url=\
(
2015-10-26 17:37:31 +00:00
"http://ftp.samba.org/pub/ppp/ppp-$version.tar.gz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2015-10-26 17:37:31 +00:00
'4621bc56167b6953ec4071043fe0ec57'
2013-07-13 17:19:22 +01:00
)
maintainer=\
(
2015-10-26 17:37:31 +00:00
'Ricardo Martins <rasm@fe.up.pt>'
2013-07-13 17:19:22 +01:00
)
requires=\
(
'libpcap/default'
)
post_unpack()
{
for patch in "$pkg_dir"/patches/*; do
2013-07-13 17:19:22 +01:00
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
}