summaryrefslogtreecommitdiffstats
path: root/main/rp-pppoe
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-04 12:58:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-04 12:58:24 +0000
commitb142b567f05fb4abbe39ad92a3d576d1156ca50a (patch)
treea7ef48e6bdc12db62c244d0aa45250ce34e67223 /main/rp-pppoe
parent4b6138a5f4f5cd11d49d7f96e13da661fd37655e (diff)
downloadaports-b142b567f05fb4abbe39ad92a3d576d1156ca50a.tar.bz2
aports-b142b567f05fb4abbe39ad92a3d576d1156ca50a.tar.xz
main/rp-pppoe: build fix for musl
Diffstat (limited to 'main/rp-pppoe')
-rw-r--r--main/rp-pppoe/APKBUILD18
-rw-r--r--main/rp-pppoe/musl-fix.patch13
2 files changed, 30 insertions, 1 deletions
diff --git a/main/rp-pppoe/APKBUILD b/main/rp-pppoe/APKBUILD
index c1b7b5159..581fd1ea3 100644
--- a/main/rp-pppoe/APKBUILD
+++ b/main/rp-pppoe/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=rp-pppoe
pkgver=3.11
-pkgrel=0
+pkgrel=1
pkgdesc="Roaring Penguin\'s Point-to-Point Protocol over Ethernet client"
url="http://www.roaringpenguin.com/pppoe/"
arch="all"
@@ -12,10 +12,19 @@ makedepends="ppp-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.roaringpenguin.com/files/download/rp-pppoe-$pkgver.tar.gz
+ musl-fix.patch
rp-pppoe.initd
"
_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
build() {
cd "$_builddir"/src
@@ -38,4 +47,11 @@ package() {
}
md5sums="13b5900c56bd602df6cc526e5e520722 rp-pppoe-3.11.tar.gz
+0fd2db3b31e05b7968ddcbee4551e851 musl-fix.patch
f558de3e8cbb74e38218f8232c2da271 rp-pppoe.initd"
+sha256sums="86a1a4d92fcea74fa6dd45516c5975933fa978b36fafe71f76ea70b4b4747720 rp-pppoe-3.11.tar.gz
+1ac61bb7591771c251f723ef7c119d3b4369220e68b0b655c9ff52359a972902 musl-fix.patch
+e5a2006c5e1eb98aa8adf3ef474eba45a129dc3987d5665144ba1186297f64dc rp-pppoe.initd"
+sha512sums="cb9579ad94f6b6cfd709e8061aacac0a007f1f58ffd50bd0603f5a2b612c0cf4831febdbfeee290b97932fd30f8ae7f707d532a291124c4aeae2333131d53905 rp-pppoe-3.11.tar.gz
+5f7e9d50be7c4b007bc2f86cee42b8e5dc4ead6a8def618441c0db0ecb083a6631bd90d6292279c2188986820f7b8f488b41ff6cb186bb541e3e705858a21034 musl-fix.patch
+1fa7de5af80926bf5dca27998f01058008327c3795da385d8c9e2323d43eebafd97610f622680fdbf9cab14500de0339b9f689cfe6c929d43f4fbeb92bd53cd8 rp-pppoe.initd"
diff --git a/main/rp-pppoe/musl-fix.patch b/main/rp-pppoe/musl-fix.patch
new file mode 100644
index 000000000..d62fc8293
--- /dev/null
+++ b/main/rp-pppoe/musl-fix.patch
@@ -0,0 +1,13 @@
+--- ./src/pppoe.h.orig
++++ ./src/pppoe.h
+@@ -127,10 +127,6 @@
+ #error Could not find a 32-bit integer type
+ #endif
+
+-#ifdef HAVE_LINUX_IF_ETHER_H
+-#include <linux/if_ether.h>
+-#endif
+-
+ #include <netinet/in.h>
+
+ #ifdef HAVE_NETINET_IF_ETHER_H