wok-next annotate rp-l2tp/receipt @ rev 4924

Add rp-l2tp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 16 10:29:20 2010 +0100 (2010-02-16)
parents
children f6df330ed424
rev   line source
pascal@4924 1 # SliTaz package receipt.
pascal@4924 2
pascal@4924 3 PACKAGE="rp-l2tp"
pascal@4924 4 VERSION="0.4"
pascal@4924 5 CATEGORY="network"
pascal@4924 6 SHORT_DESC="L2TP tunnel (vpn)."
pascal@4924 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@4924 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4924 9 WEB_SITE="http://rp-l2tp.sourceforge.net/"
pascal@4924 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@4924 11
pascal@4924 12 # Rules to configure and make the package.
pascal@4924 13 compile_rules()
pascal@4924 14 {
pascal@4924 15 cd $src
pascal@4924 16 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@4924 17 --mandir=/usr/share/man \
pascal@4924 18 $CONFIGURE_ARGS &&
pascal@4924 19 make &&
pascal@4924 20 make DESTDIR=$PWD/_pkg install
pascal@4924 21 }
pascal@4924 22
pascal@4924 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4924 24 genpkg_rules()
pascal@4924 25 {
pascal@4924 26 mkdir -p $fs/usr $fs/usr/lib/l2tp/plugins
pascal@4924 27 cp -a $_pkg/etc $fs
pascal@4924 28 cp -a $_pkg/usr/sbin $fs/usr
pascal@4924 29 cp -a $src/handlers/l2tp-control $fs/usr/sbin
pascal@4924 30 cp -a $src/handlers/*.so $fs/usr/lib/l2tp/plugins
pascal@4924 31 }
pascal@4924 32