summaryrefslogtreecommitdiffstats
path: root/main/rp-pppoe/APKBUILD
blob: 581fd1ea3345bb6a60faae90e348bb8dbd10d348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=rp-pppoe
pkgver=3.11
pkgrel=1
pkgdesc="Roaring Penguin\'s Point-to-Point Protocol over Ethernet client"
url="http://www.roaringpenguin.com/pppoe/"
arch="all"
license="LGPL"
depends=
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
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-plugin=/usr/include/pppd \
		|| return 1
	make all || return 1
}

package() {
	cd "$_builddir"/src
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

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"