wok annotate poptop/receipt @ rev 18134

poptop: add plugin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 13 17:27:08 2015 +0200 (2015-06-13)
parents ee3b11a5d1d1
children e910a929d291
rev   line source
pascal@3763 1 # SliTaz package receipt.
pascal@3763 2
pascal@3763 3 PACKAGE="poptop"
pascal@3763 4 VERSION="1.3.4"
pascal@3766 5 CATEGORY="network"
pascal@3763 6 SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol server."
pascal@3763 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15219 8 LICENSE="GPL2"
pascal@3763 9 SOURCE="pptpd"
pascal@3763 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@18016 11 WEB_SITE="http://poptop.sourceforge.net/"
pascal@3763 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@3765 13 TAGS="vpn tunnel"
pascal@18016 14 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd"
pascal@15219 15
pascal@18132 16 DEPENDS="ppp bcrelay"
pascal@3763 17
pascal@3763 18 # Rules to configure and make the package.
pascal@3763 19 compile_rules()
pascal@3763 20 {
pascal@15219 21 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile
pascal@3763 22 ./configure --prefix=/usr \
pascal@18016 23 --mandir=/usr/share/man \
pascal@18016 24 $CONFIGURE_ARGS &&
pascal@3763 25 make &&
pascal@15219 26 make DESTDIR=$DESTDIR install
pascal@3763 27 }
pascal@3763 28
pascal@3763 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3763 30 genpkg_rules()
pascal@3763 31 {
pascal@18132 32 mkdir -p $fs/usr $fs/etc/ppp $fs/etc/init.d
pascal@18134 33 cp -a $install/usr/lib $fs/usr
pascal@15219 34 cp -a $install/usr/sbin $fs/usr
pascal@18132 35 rm -f $fs/usr/sbin/bcrelay
pascal@18016 36 cp $src/samples/pptpd.conf $fs/etc
pascal@18016 37 cp $src/samples/options.pptpd $fs/etc/ppp
pascal@18132 38 ln -s daemon $fs/etc/init.d/pptpd
pascal@3763 39 }