From 4007db0c30157d797cccb72abccb0196fd87389f Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 15 Nov 2015 23:17:53 +0100 Subject: [PATCH] New package: xl2tpd-1.3.6 --- srcpkgs/xl2tpd/files/options.l2tp | 17 +++++++++++++++++ srcpkgs/xl2tpd/files/xl2tpd/run | 3 +++ srcpkgs/xl2tpd/template | 23 +++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 srcpkgs/xl2tpd/files/options.l2tp create mode 100644 srcpkgs/xl2tpd/files/xl2tpd/run create mode 100644 srcpkgs/xl2tpd/template diff --git a/srcpkgs/xl2tpd/files/options.l2tp b/srcpkgs/xl2tpd/files/options.l2tp new file mode 100644 index 0000000000..425a56e087 --- /dev/null +++ b/srcpkgs/xl2tpd/files/options.l2tp @@ -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 diff --git a/srcpkgs/xl2tpd/files/xl2tpd/run b/srcpkgs/xl2tpd/files/xl2tpd/run new file mode 100644 index 0000000000..e175b1ad47 --- /dev/null +++ b/srcpkgs/xl2tpd/files/xl2tpd/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec xl2tpd -D "${OPTS:=-c /etc/xl2tpd/xl2tpd.conf}" diff --git a/srcpkgs/xl2tpd/template b/srcpkgs/xl2tpd/template new file mode 100644 index 0000000000..7172ae1ed8 --- /dev/null +++ b/srcpkgs/xl2tpd/template @@ -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 " +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 ;;' 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 +}