Skip to content
Snippets Groups Projects
Commit 34e60c68 authored by alice's avatar alice
Browse files

community/accel-ppp: build with samurai

parent 34bc9da4
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment