4 pkgdesc="A daemon which implements the PPP protocol for dial-up networking"
6 url="http://www.samba.org/ppp/"
7 license=('custom:GPL/BSD')
8 depends=('glibc' 'libpcap>=1.0.0')
12 backup=(etc/ppp/{chap-secrets,pap-secrets,options,ip-up,ip-down})
13 source=(ftp://ftp.samba.org/pub/ppp/ppp-$pkgver.tar.gz
14 https://wiresphere.de/files/mppc/ppp-2.4.4-mppe-mppc-1.1.patch
25 md5sums=('4621bc56167b6953ec4071043fe0ec57'
26 'f1705fe3dd68b86d466f0ecb92c9be54'
27 '7a9259a8f038073eeea7e4552ff1849f'
28 '48c024f73a80c8b69c4def22f86902cc'
29 '2d811f8470ccdea3b8c4505a438483e9'
30 '7561c73b557292d5ba1a9c5dbd270fde'
31 '86cdaf133f7a79fb464f02d83afc7734'
32 '44cc662ba9aa61dd9add3ddd4c5ded57'
33 'e4beb16ed600b61336d50b2bd2df7cd5'
34 '2fa0671f40711e69194ccf60979f8b33'
35 '4a074d74c29625b254a1db720cb87b99'
36 '8d1be5af8e46393ba6eb273377831e38')
39 cd $srcdir/ppp-$pkgver
41 patch -p1 -i ../ppp-2.4.4-mppe-mppc-1.1.patch
44 # -D_GNU_SOURCE is needed for IPv6 to work apparently
45 export CFLAGS="$CFLAGS -D_GNU_SOURCE"
46 sed -i "s:-O2 -pipe -Wall -g:${CFLAGS}:" pppd/Makefile.linux
47 sed -i "s:-g -O2:${CFLAGS}:" pppd/plugins/Makefile.linux
48 sed -i "s:-O2:${CFLAGS}:" pppstats/Makefile.linux
49 sed -i "s:-O2 -g -pipe:${CFLAGS}:" chat/Makefile.linux
50 sed -i "s:-O:${CFLAGS}:" pppdump/Makefile.linux
52 # enable active filter
53 sed -i "s:^#FILTER=y:FILTER=y:" pppd/Makefile.linux
55 sed -i "s:^#HAVE_INET6=y:HAVE_INET6=y:" pppd/Makefile.linux
56 # Enable Microsoft proprietary Callback Control Protocol
57 sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux
59 ./configure --prefix=/usr
61 make DESTDIR=$pkgdir/usr install
62 install -D -m644 $srcdir/options $pkgdir/etc/ppp/options
63 install -D -m755 $srcdir/ip-up $pkgdir/etc/ppp/ip-up
64 install -D -m755 $srcdir/ip-down $pkgdir/etc/ppp/ip-down
65 install -d -m755 $pkgdir/etc/ppp/ip-up.d
66 install -d -m755 $pkgdir/etc/ppp/ip-down.d
67 install -m755 $srcdir/ip-up.d.dns.sh $pkgdir/etc/ppp/ip-up.d/00-dns.sh
68 install -m755 $srcdir/ip-down.d.dns.sh $pkgdir/etc/ppp/ip-down.d/00-dns.sh
69 install -D -m755 $srcdir/pon $pkgdir/usr/bin/pon
70 install -D -m755 $srcdir/poff $pkgdir/usr/bin/poff
71 install -D -m755 $srcdir/plog $pkgdir/usr/sbin/plog
72 install -D -m600 etc.ppp/pap-secrets $pkgdir/etc/ppp/pap-secrets
73 install -D -m600 etc.ppp/chap-secrets $pkgdir/etc/ppp/chap-secrets
74 install -D -m755 $srcdir/ppp $pkgdir/etc/rc.d/ppp
75 install -D -m644 $srcdir/pon.1 $pkgdir/usr/share/man/man1/pon.1
76 install -d -m755 $pkgdir/etc/ppp/peers