void-packages/srcpkgs/xl2tpd/template
2017-02-09 21:24:18 +01:00

29 lines
952 B
Bash

# Template file for 'xl2tpd'
pkgname=xl2tpd
version=1.3.9
revision=1
makedepends="libpcap-devel"
short_desc="Open source implementation of the Layer 2 Tunnelling Protocol"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2"
homepage="https://www.xelerance.com/services/software/xl2tpd/"
distfiles="https://github.com/xelerance/xl2tpd/archive/v${version}.tar.gz"
checksum=62f683ab4cda2941261e37828f2939b5a2e85b437e9a3cd86bbd660c26e04a1e
conf_files="
/etc/${pkgname}/${pkgname}.conf
/etc/ppp/options.l2tp"
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/704/steps/shell_3/logs/stdio"
esac
do_build() {
make LDFLAGS="${LDFLAGS}" KERNELSRC="${XBPS_CROSS_BASE}/usr" ${makejobs}
}
do_install() {
make DESTDIR="${DESTDIR}" PREFIX=/usr SBINDIR="${DESTDIR}/usr/bin" install
vsv xl2tpd
vinstall examples/xl2tpd.conf 644 etc/xl2tpd
vinstall "${FILESDIR}/options.l2tp" 644 etc/ppp
}