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