aboutsummaryrefslogtreecommitdiffstats
path: root/main/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'main/ppp')
-rw-r--r--main/ppp/APKBUILD13
1 files changed, 11 insertions, 2 deletions
diff --git a/main/ppp/APKBUILD b/main/ppp/APKBUILD
index f13950f549..c3907106ca 100644
--- a/main/ppp/APKBUILD
+++ b/main/ppp/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ppp
pkgver=2.4.5
-pkgrel=5
+pkgrel=6
pkgdesc="A daemon which implements the PPP protocol for dial-up networking"
url="http://www.samba.org/ppp/"
arch="all"
@@ -22,13 +22,22 @@ _builddir="$srcdir"/$pkgname-$pkgver
build () {
cd "$_builddir"
+ # fix CFLAGS
+ # -D_GNU_SOURCE is needed for IPv6 to work apparently
+ export CFLAGS="$CFLAGS -D_GNU_SOURCE"
+ 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
# enable active filter
sed -i "s:^#FILTER=y:FILTER=y:" pppd/Makefile.linux
# enable ipv6 support
sed -i "s:^#HAVE_INET6=y:HAVE_INET6=y:" pppd/Makefile.linux
# Enable Microsoft proprietary Callback Control Protocol
sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux
-
+ # Fix build error with recent kernels
+ rm include/linux/if_pppol2tp.h
./configure --prefix=/usr
make COPTS="$CFLAGS" || return 1
}