Feature #365
L2TP Package
| Status: | Closed | Start date: | 06/22/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | Aports | |||
| Target version: | Alpine 2.3.0 |
Description
I think it is useful to have l2tp server/client package to build a VPN server
Related issues
History
Updated by Natanael Copa over 1 year ago
link?
Updated by Francesco Boscarino over 1 year ago
Here it is: http://www.openl2tp.org/
Updated by Natanael Copa over 1 year 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.
Updated by Lingbing Jiang 8 months ago
I am using xl2tpd, which works fine in Alpine.
Updated by Jeff Bilyk 5 months ago
- Category set to Aports
- Status changed from New to Resolved
- Target version set to Alpine 2.3.0
Bug #699 has xl2tpd, and since it's confirmed working by Lingbing Jiang above, this ticket should be safe to close.
Updated by Jeff Bilyk 5 months ago
- % Done changed from 0 to 100
Updated by Natanael Copa 4 months ago
- Status changed from Resolved to Closed