# SliTaz package receipt.

PACKAGE="poptop"
VERSION="1.3.4"
CATEGORY="network"
SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol server."
MAINTAINER="pascal.bellard@slitaz.org"
SOURCE="pptpd"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.poptop.org/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
TAGS="vpn tunnel"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i "s|^LIBDIR.*|LIBDIR=$PWD/_pkg/usr/lib/pptpd|" plugins/Makefile
	./configure --prefix=/usr \
	--mandir=/usr/share/man \
	$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$PWD/_pkg install
}

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