Feature #365
L2TP Package
| Status: | New | Start: | 06/22/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
I think it is useful to have l2tp server/client package to build a VPN server
Watchers
History
Updated by Natanael Copa 2 months ago
This package is tricky. It seems to trigger a bug in rpcgen:
... make -C cli - --jobserver-fds=3,4 -j EXTRA_CFLAGS=" -DL2TP_ASYNC_RPC" stack smashing detected: rpcgen terminated() make: *** [l2tp_rpc_server.c] Abortedd() ...
Here is what i got so far, in case someone feels to work on this:
pkgname=openl2tp
pkgver=1.7
pkgrel=0
pkgdesc="l2tp plugin for pppd"
url="http://www.openl2tp.org"
license="GPL"
depends=
makedepends="rpcgen linux-grsec-dev flex bison ppp-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.openl2tp.org/releases/openl2tp-$pkgver/openl2tp-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
build() {
cd "$_builddir"
local _kabiver=$(cat /usr/share/kernel/grsec/kernel.release)
local _ksrc=/usr/src/linux-headers-$_kabiver
make RPCGENFLAGS="-N -C -L" \
KERNEL_BLDDIR=$_ksrc \
KERNEL_SRCDIR=$_ksrc \
|| return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
# remove the 2 lines below (and this) if there is no init.d script
# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="2fd12112cf50c67dc3c7d848beb34947 openl2tp-1.7.tar.gz"
Other options to greate vpns are openvpn and opennhrp+ipsec-tools.