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