wok-6.x view poptop/receipt @ rev 24461
updated daloradius (0.9-9 -> 1.1-2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 17:15:55 2022 +0100 (2022-02-16) |
parents | fda8ee7004a1 |
children | 7dd01dedad38 |
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://sourceforge.net/projects/poptop/files/pptpd/ 2>/dev/null | \
26 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
27 sed '/scope="row/!d;s|.*/pptpd-||;s|.tar.*||;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION)
34 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \
35 plugins/patchlevel.h
36 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile
38 ./configure \
39 --prefix=/usr \
40 --mandir=/usr/share/man \
41 $CONFIGURE_ARGS &&
42 make &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
50 mkdir -p $fs/etc/ppp
51 mkdir -p $fs/etc/init.d
52 mkdir -p $install/usr/share/doc
54 cp $src/README* $install/usr/share/doc
55 cp $src/AUTHORS $install/usr/share/doc
56 cp $src/NEWS $install/usr/share/doc
57 cp $src/samples/* $install/usr/share/doc
58 cp $src/tools/* $install/usr/share/doc
59 cp $src/html/* $install/usr/share/doc
60 cp -a $install/usr/lib $fs/usr
61 cp -a $install/usr/sbin $fs/usr
62 rm -f $fs/usr/sbin/bcrelay
63 cp $src/samples/pptpd.conf $fs/etc
64 cp $src/samples/options.pptpd $fs/etc/ppp
65 ln -s daemon $fs/etc/init.d/pptpd
66 }