aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-10-31 15:37:29 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-10-31 15:37:29 +0000
commit96fee7fb6ced2465dc79c8b28a3330b8d300c713 (patch)
treee5c132ee910775f6b01766a14f09f038f87d0afd
parent0b0750073627fe0fe1fea1ac2e2d67d5e5c04e38 (diff)
downloadaports-96fee7fb6ced2465dc79c8b28a3330b8d300c713.tar.bz2
aports-96fee7fb6ced2465dc79c8b28a3330b8d300c713.tar.xz
main/rp-pppoe: updated APKBUILD, added -openrc subpackage
-rw-r--r--main/rp-pppoe/APKBUILD32
1 files changed, 7 insertions, 25 deletions
diff --git a/main/rp-pppoe/APKBUILD b/main/rp-pppoe/APKBUILD
index 04d1d2c332..c2f0dba990 100644
--- a/main/rp-pppoe/APKBUILD
+++ b/main/rp-pppoe/APKBUILD
@@ -2,31 +2,20 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=rp-pppoe
pkgver=3.12
-pkgrel=0
+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 linux-headers"
-install=""
-subpackages="$pkgname-doc"
+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
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"/src
+ cd "$builddir"/src
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -34,23 +23,16 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --enable-plugin=/usr/include/pppd \
- || return 1
- make all || return 1
+ --enable-plugin=/usr/include/pppd
+ make all
}
package() {
- cd "$_builddir"/src
+ cd "$builddir"/src
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
-md5sums="216eb52b69062b92a64ee37fd71f4b66 rp-pppoe-3.12.tar.gz
-0fd2db3b31e05b7968ddcbee4551e851 musl-fix.patch
-2ba0421b132b1057d0ac666e0ccdf5f3 rp-pppoe.initd"
-sha256sums="00794e04031546b0e9b8cf286f2a6d1ccfc4a621b2a3abb2d7ef2a7ab7cc86c2 rp-pppoe-3.12.tar.gz
-1ac61bb7591771c251f723ef7c119d3b4369220e68b0b655c9ff52359a972902 musl-fix.patch
-9619face947111a546f381794fbced839a8b4a1639ca7975979997a3985fa2f0 rp-pppoe.initd"
sha512sums="1b9e4c806fcbad1bc21f7b74a780ae98682b10a69d91fb08df6dbd1fff86f6271995ebded43f926f8249a17cdddb541edccbbb3ee28e1a2dc89173ad61cd3de1 rp-pppoe-3.12.tar.gz
5f7e9d50be7c4b007bc2f86cee42b8e5dc4ead6a8def618441c0db0ecb083a6631bd90d6292279c2188986820f7b8f488b41ff6cb186bb541e3e705858a21034 musl-fix.patch
6d3457af1353f875cc007b69322636a89534f9c0cd4d598ad24fb29de4a38bdfabc8a717ca17896ca859eac2aea4a037e113c61c4d322cdf7247ca78a8609fa6 rp-pppoe.initd"