aboutsummaryrefslogtreecommitdiffstats
path: root/main/rp-pppoe/APKBUILD
blob: 8171e65e1b74db3e0b3e047bd0f658a0d526dba4 (plain) (blame)
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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=rp-pppoe
pkgver=3.12
pkgrel=2
pkgdesc="PPP over Ethernet client (for xDSL support)"
url="http://www.roaringpenguin.com/pppoe/"
arch="all"
license="LGPL"
makedepends="ppp-dev linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://www.roaringpenguin.com/files/download/rp-pppoe-$pkgver.tar.gz
	musl-fix.patch
	rp-pppoe.initd"
builddir="$srcdir"/$pkgname-$pkgver

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
	make all
}

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

sha512sums="1b9e4c806fcbad1bc21f7b74a780ae98682b10a69d91fb08df6dbd1fff86f6271995ebded43f926f8249a17cdddb541edccbbb3ee28e1a2dc89173ad61cd3de1  rp-pppoe-3.12.tar.gz
5f7e9d50be7c4b007bc2f86cee42b8e5dc4ead6a8def618441c0db0ecb083a6631bd90d6292279c2188986820f7b8f488b41ff6cb186bb541e3e705858a21034  musl-fix.patch
6d3457af1353f875cc007b69322636a89534f9c0cd4d598ad24fb29de4a38bdfabc8a717ca17896ca859eac2aea4a037e113c61c4d322cdf7247ca78a8609fa6  rp-pppoe.initd"