24 lines
1 KiB
Bash
24 lines
1 KiB
Bash
# Template file for 'NetworkManager-l2tp'
|
|
pkgname=NetworkManager-l2tp
|
|
version=1.8.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--runstatedir=/run"
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
|
makedepends="glib-devel gtk+3-devel libglib-devel libnma-devel libressl-devel
|
|
libsecret-devel nss-devel ppp-devel"
|
|
depends="strongswan xl2tpd ppp"
|
|
short_desc="NetworkManager VPN plugin for L2TP/IPsec"
|
|
maintainer="Douglas Kosovic <doug@uq.edu.au>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/nm-l2tp/NetworkManager-l2tp"
|
|
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=e345263c440ef8f48bcd95661d7772ffdbdd65e37d0a3eca813a542a3357ac23
|
|
|
|
# Automatically determine the pppd plugin dir location, but will need to
|
|
# revbump this package whenever version of ppp package is updated.
|
|
do_configure() {
|
|
PPP_VERSION=$(awk '/VERSION/{print $3}' ${XBPS_CROSS_BASE}/usr/include/pppd/patchlevel.h)
|
|
|
|
./configure ${configure_args} --with-pppd-plugin-dir=/usr/lib/pppd/${PPP_VERSION}
|
|
}
|