wok-next view poptop/receipt @ rev 20696

hm, no liblzma-dev package yet
author Erkan Yilmaz <erkan@slitaz.org>
date Wed May 23 14:24:19 2018 +0000 (2018-05-23)
parents 9c008d2424ac
children d5aab818505e
line source
1 # SliTaz package receipt v2.
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"
15 SPLIT="poptop bcrelay poptop-man"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION)
21 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \
22 plugins/patchlevel.h
23 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile
24 ./configure --prefix=/usr \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 poptop)
36 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd"
37 DEPENDS="ppp bcrelay"
38 mkdir -p $fs/usr $fs/etc/ppp $fs/etc/init.d
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/sbin $fs/usr
41 rm -f $fs/usr/sbin/bcrelay
42 cp $src/samples/pptpd.conf $fs/etc
43 cp $src/samples/options.pptpd $fs/etc/ppp
44 ln -s daemon $fs/etc/init.d/pptpd
45 ;;
46 bcrelay)
47 CAT="network|Broadcast relay daemon."
48 mkdir -p $fs/usr/sbin
49 cp -a $install/usr/sbin/bcrelay $fs/usr/sbin
50 ;;
51 poptop-man)
52 CAT="network|PPTP server man pages."
53 mkdir -p $fs/usr/
54 cp -a $install/usr/share $fs/usr/
55 ;;
56 esac
57 }