New package: NetworkManager-l2tp-1.8.2

Close: #23646
This commit is contained in:
Douglas Kosovic 2020-07-19 19:02:03 +10:00 committed by Đoàn Trần Công Danh
parent d3cedcd224
commit 832c484c66

View file

@ -0,0 +1,28 @@
# 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
}