wok-current view poptop/receipt @ rev 20373

gcc??-lib-base: restore previous libgcc_s.so.1
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 10 15:08:22 2018 +0200 (2018-06-10)
parents e910a929d291
children be4846d01eb1
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 #WANTED="ppp" # need VERSION
15 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd"
17 DEPENDS="ppp bcrelay"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION)
23 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \
24 plugins/patchlevel.h
25 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile
26 ./configure --prefix=/usr \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr $fs/etc/ppp $fs/etc/init.d
37 cp -a $install/usr/lib $fs/usr
38 cp -a $install/usr/sbin $fs/usr
39 rm -f $fs/usr/sbin/bcrelay
40 cp $src/samples/pptpd.conf $fs/etc
41 cp $src/samples/options.pptpd $fs/etc/ppp
42 ln -s daemon $fs/etc/init.d/pptpd
43 }