aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-10-14 18:58:18 +0000
committerpsykose <alice@ayaya.dev>2022-10-14 22:25:15 +0200
commit34e60c684d4a99fd486b7ccef89c6da5c237d951 (patch)
treea58fdc1fc68d92529641c95c1112825dd2fcd69f
parent34bc9da4728b9e44b906c1f175628b17bb5912b2 (diff)
community/accel-ppp: build with samurai
-rw-r--r--community/accel-ppp/APKBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/community/accel-ppp/APKBUILD b/community/accel-ppp/APKBUILD
index 0fdbafafccf..baef82fbef5 100644
--- a/community/accel-ppp/APKBUILD
+++ b/community/accel-ppp/APKBUILD
@@ -4,13 +4,21 @@ pkgname=accel-ppp
_pkgver=1.12.0-181-g85beb6b
pkgver=${_pkgver%-*}
pkgver=${pkgver/-/.}
-pkgrel=1
+pkgrel=2
pkgdesc="PPtP/L2TP/PPPoE/SSTP server for Linux"
url="https://accel-ppp.org/"
arch="all"
license="GPL-2.0-or-later"
-makedepends="cmake lua5.4-dev openssl-dev>3 pcre-dev net-snmp-dev linux-headers
- libucontext-dev"
+makedepends="
+ cmake
+ libucontext-dev
+ linux-headers
+ lua5.4-dev
+ net-snmp-dev
+ openssl-dev>3
+ pcre-dev
+ samurai
+ "
subpackages="$pkgname-doc $pkgname-openrc"
source="accel-ppp-$_pkgver.tar.gz::https://github.com/accel-ppp/accel-ppp/archive/refs/tags/$_pkgver.tar.gz
0001-ucontext.patch
@@ -26,7 +34,7 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
- cmake -B build \
+ cmake -B build -G Ninja \
-DLIB_SUFFIX= \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
@@ -37,7 +45,7 @@ build() {
-DLUA=5.4 \
-DNETSNMP=TRUE \
$CMAKE_CROSSOPTS .
- make -C build
+ cmake --build build
}
check() {
@@ -46,7 +54,7 @@ check() {
}
package() {
- make -C build install DESTDIR="$pkgdir"
+ DESTDIR="$pkgdir" cmake --install build
mv "$pkgdir"/etc/accel-ppp.conf.dist "$pkgdir"/etc/accel-ppp.conf
install -Dm755 "$srcdir"/accel-pppd.initd "$pkgdir"/etc/init.d/accel-pppd
}