New package: xl2tpd-1.3.6

This commit is contained in:
Duncaen 2015-11-15 23:17:53 +01:00
parent b98679bdb4
commit 4007db0c30
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,17 @@
ipcp-accept-local
ipcp-accept-remote
ms-dns 192.168.1.1
ms-dns 192.168.1.3
ms-wins 192.168.1.2
ms-wins 192.168.1.4
noccp
auth
crtscts
idle 1800
mtu 1410
mru 1410
nodefaultroute
debug
lock
proxyarp
connect-delay 5000

View File

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec xl2tpd -D "${OPTS:=-c /etc/xl2tpd/xl2tpd.conf}"

23
srcpkgs/xl2tpd/template Normal file
View File

@ -0,0 +1,23 @@
# Template file for 'xl2tpd'
pkgname=xl2tpd
version=1.3.6
revision=1
makedepends="libpcap-devel kernel-libc-headers"
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=49b069aa8d873e1d8f615ccc4212351e427bf681ba453fdd211256a8345bb7fb
do_build() {
sed -i -e 's;# include <bsd/signal.h>;;' xl2tpd.c
make LDFLAGS="${LDFLAGS}" KERNELSRC="${XBPS_CROSS_BASE}/usr"
}
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
}