29 lines
1.1 KiB
Bash
29 lines
1.1 KiB
Bash
# Template file for 'NetworkManager-l2tp'
|
|
pkgname=NetworkManager-l2tp
|
|
version=1.8.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--runstatedir=/run"
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
|
makedepends="gtk+3-devel glib-devel libglib-devel libsecret-devel
|
|
network-manager-applet-devel libressl-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=1d80986dc88951e298446833d314bab7af0a933e736960d6b3b025e6b7faca94
|
|
|
|
# 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}
|
|
}
|
|
|
|
post_install() {
|
|
mv $DESTDIR/etc/dbus-1 $DESTDIR/usr/share
|
|
}
|