wok-current view poptop/receipt @ rev 24196
updated perl-datetime-locale (0.45 -> 1.33)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 15:04:43 2021 +0100 (2021-12-31) |
parents | be4846d01eb1 |
children | 080c1dff8494 |
line source
1 # SliTaz package receipt.
3 PACKAGE="poptop"
4 VERSION="1.4.0"
5 CATEGORY="network"
6 TAGS="vpn tunnel"
7 SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol server."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://poptop.sourceforge.net/"
12 SOURCE="pptpd"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
16 DEPENDS="ppp bcrelay"
17 BUILD_DEPENDS="ppp-dev"
18 #WANTED="ppp" # need VERSION
20 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION)
26 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \
27 plugins/patchlevel.h
28 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile
30 ./configure \
31 --prefix=/usr \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 mkdir -p $fs/etc/ppp
43 mkdir -p $fs/etc/init.d
44 mkdir -p $install/usr/share/doc
46 cp $src/README* $install/usr/share/doc
47 cp $src/AUTHORS $install/usr/share/doc
48 cp $src/NEWS $install/usr/share/doc
49 cp $src/samples/* $install/usr/share/doc
50 cp $src/tools/* $install/usr/share/doc
51 cp $src/html/* $install/usr/share/doc
52 cp -a $install/usr/lib $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 rm -f $fs/usr/sbin/bcrelay
55 cp $src/samples/pptpd.conf $fs/etc
56 cp $src/samples/options.pptpd $fs/etc/ppp
57 ln -s daemon $fs/etc/init.d/pptpd
58 }