wok-next view poptop/receipt @ rev 21084
Add librefox
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Dec 25 14:44:32 2018 +0200 (2018-12-25) |
parents | 85b9676f2614 |
children |
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 WEB_SITE="http://poptop.sourceforge.net/"
11 SOURCE="pptpd"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 SPLIT="bcrelay"
17 compile_rules() {
18 PPPVER=$(. $WOK/ppp/receipt; echo $VERSION)
19 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \
20 plugins/patchlevel.h
21 sed -i "s|^LIBDIR.*|LIBDIR=$install/usr/lib/pptpd|" plugins/Makefile
23 ./configure \
24 --prefix=/usr \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$install install || return 1
30 install -Dm644 samples/pptpd.conf $install/etc/pptpd.conf
31 install -Dm644 samples/options.pptpd $install/etc/ppp/options.pptpd
33 mkdir -p $install/etc/init.d/
34 ln -s daemon $install/etc/init.d/pptpd
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 bcrelay)
40 copy bcrelay
41 CAT="network|broadcast relay daemon"
42 ;;
43 poptop)
44 copy @std @rm
45 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd"
46 DEPENDS="ppp bcrelay"
47 TAGS="vpn tunnel"
48 ;;
49 esac
50 }