# SliTaz package receipt.

PACKAGE="l2tpd"
VERSION="0.69"
CATEGORY="network"
SHORT_DESC="Layer 2 Virtual Private Network."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://sourceforge.net/projects/$PACKAGE/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
TAGS="vpn tunnel"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's/dont know how to handle mandatory attribute.*"$/&,/' avp.c
	sed -i 's/static struct addr_ent/struct addr_ent/' aaa.c
	sed -i 's/recv packet from.*,$/&\\n \\/' network.c
	sed -i 's/If you do, please$/&\\n \\/' call.c
	make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/sbin
	cp -a $src/l2tpd $fs/usr/sbin
}