2010-04-12 21:53:08 +00:00
|
|
|
# Template file for 'ppp'
|
|
|
|
pkgname=ppp
|
2014-02-18 07:38:53 +00:00
|
|
|
version=2.4.6
|
|
|
|
revision=1
|
2010-04-12 21:53:08 +00:00
|
|
|
short_desc="PPP (Point-to-Point Protocol) daemon"
|
2013-04-14 09:13:30 +00:00
|
|
|
homepage="https://ppp.samba.org/"
|
2014-02-18 07:38:53 +00:00
|
|
|
license="BSD, LGPLv2+, GPLv2+, Public Domain"
|
2010-04-12 21:53:08 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-04-14 09:13:30 +00:00
|
|
|
distfiles="ftp://ftp.samba.org/pub/ppp/ppp-$version.tar.gz"
|
2014-02-18 07:38:53 +00:00
|
|
|
checksum=1b33181a03962c8a092c055fb9980e9722728a8d98a4bb7ec7acda17c1b1b49d
|
2010-04-12 21:53:08 +00:00
|
|
|
|
2013-04-14 09:13:30 +00:00
|
|
|
makedepends="libpcap-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="
|
|
|
|
/etc/ppp/ip-up
|
|
|
|
/etc/ppp/ip-down
|
2014-02-18 07:38:53 +00:00
|
|
|
/etc/ppp/ipv6-up
|
|
|
|
/etc/ppp/ipv6-down
|
|
|
|
/etc/ppp/options
|
|
|
|
/etc/ppp/chap-secrets
|
2014-01-01 15:10:11 +00:00
|
|
|
/etc/ppp/pap-secrets"
|
2010-04-12 21:53:08 +00:00
|
|
|
|
2013-04-14 09:13:30 +00:00
|
|
|
do_configure() {
|
2010-04-12 21:53:08 +00:00
|
|
|
# Custom CFLAGS.
|
2014-02-18 07:38:53 +00:00
|
|
|
sed -i "s:-O2 -pipe -Wall -g:${CFLAGS}:" pppd/Makefile.linux
|
|
|
|
sed -i "s:-g -O2:${CFLAGS}:" pppd/plugins/Makefile.linux
|
|
|
|
sed -i "s:-O2:${CFLAGS}:" pppstats/Makefile.linux
|
|
|
|
sed -i "s:-O2 -g -pipe:${CFLAGS}:" chat/Makefile.linux
|
|
|
|
sed -i "s:-O:${CFLAGS}:" pppdump/Makefile.linux
|
2010-04-12 21:53:08 +00:00
|
|
|
# Enable active filter
|
2014-02-18 07:38:53 +00:00
|
|
|
sed -i "s:^#FILTER=y:FILTER=y:" pppd/Makefile.linux
|
2010-04-12 21:53:08 +00:00
|
|
|
# Enable ipv6 support
|
2014-02-18 07:38:53 +00:00
|
|
|
sed -i "s:^#HAVE_INET6=y:HAVE_INET6=y:" pppd/Makefile.linux
|
2010-04-12 21:53:08 +00:00
|
|
|
# Enable Microsoft Proprietary Callback Control Protocol
|
2014-02-18 07:38:53 +00:00
|
|
|
sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux
|
2013-04-14 09:13:30 +00:00
|
|
|
|
|
|
|
./configure --prefix=/usr
|
2010-04-12 21:53:08 +00:00
|
|
|
}
|
|
|
|
|
2013-04-14 09:13:30 +00:00
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2010-04-24 15:34:43 +00:00
|
|
|
for f in $(find ${wrksrc} -type f -name Makefile); do
|
2013-04-14 09:13:30 +00:00
|
|
|
sed -i -e "s|\$(INSTALL) -s|\$(INSTALL|g" ${f}
|
2010-04-24 15:34:43 +00:00
|
|
|
done
|
|
|
|
|
2013-04-14 09:13:30 +00:00
|
|
|
make DESTDIR=${DESTDIR}/usr install
|
|
|
|
|
2010-04-24 15:34:43 +00:00
|
|
|
chmod 755 ${DESTDIR}/usr/lib/pppd/${version}/*.so
|
|
|
|
|
2014-02-18 07:38:53 +00:00
|
|
|
vinstall pppd/pppd 755 usr/sbin
|
|
|
|
vinstall chat/chat 755 usr/sbin
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/options 644 etc/ppp
|
|
|
|
vinstall ${FILESDIR}/ip-up 755 etc/ppp
|
|
|
|
vinstall ${FILESDIR}/ip-down 755 etc/ppp
|
|
|
|
vinstall ${FILESDIR}/ipv6-up 755 etc/ppp
|
|
|
|
vinstall ${FILESDIR}/ipv6-down 755 etc/ppp
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/ip-up.d.dns.sh 755 etc/ppp/ip-up.d 00-dns.sh
|
|
|
|
vinstall ${FILESDIR}/ip-down.d.dns.sh 755 etc/ppp/ip-down.d 00-dns.sh
|
|
|
|
vinstall ${FILESDIR}/ipv6-up.d.iface-config.sh 755 etc/ppp/ipv6-up.d 00-iface-config.sh
|
|
|
|
vmkdir etc/ppp/ipv6-down.d
|
|
|
|
touch ${DESTDIR}/etc/ppp/ipv6-down.d/.empty_on_purpose
|
|
|
|
|
|
|
|
vinstall scripts/pon 755 usr/bin
|
|
|
|
vinstall scripts/pon.1 644 usr/share/man/man1
|
|
|
|
vinstall scripts/poff 755 usr/bin
|
|
|
|
vinstall scripts/plog 755 usr/sbin
|
|
|
|
|
|
|
|
vinstall etc.ppp/pap-secrets 600 etc/ppp
|
|
|
|
vinstall etc.ppp/chap-secrets 600 etc/ppp
|
|
|
|
|
|
|
|
vmkdir etc/ppp/peers
|
2010-04-12 21:53:08 +00:00
|
|
|
touch -f ${DESTDIR}/etc/ppp/peers/.empty_on_purpose
|
|
|
|
}
|
2013-04-14 09:13:30 +00:00
|
|
|
|
|
|
|
ppp-devel_package() {
|
2014-02-17 21:56:13 +00:00
|
|
|
depends="libpcap-devel"
|
2014-02-17 16:37:24 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 09:13:30 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
}
|
|
|
|
}
|