wok-current annotate poptop/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | 080c1dff8494 |
children |
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" |
pascal@25460 | 10 WEB_SITE="https://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@24396 | 22 # What is the latest version available today? |
pascal@24396 | 23 current_version() |
pascal@24396 | 24 { |
pascal@24396 | 25 wget -O - https://sourceforge.net/projects/poptop/files/pptpd/ 2>/dev/null | \ |
pascal@24396 | 26 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 27 sed '/scope="row/!d;s|.*/pptpd-||;s|.tar.*||;q' |
pascal@24396 | 28 } |
pascal@24396 | 29 |
pascal@3763 | 30 # Rules to configure and make the package. |
pascal@3763 | 31 compile_rules() |
pascal@3763 | 32 { |
pascal@18135 | 33 PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION) |
pascal@18135 | 34 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \ |
pascal@18135 | 35 plugins/patchlevel.h |
pascal@15219 | 36 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile |
Hans-G?nter@23441 | 37 |
Hans-G?nter@23441 | 38 ./configure \ |
Hans-G?nter@23441 | 39 --prefix=/usr \ |
Hans-G?nter@23441 | 40 --mandir=/usr/share/man \ |
pascal@18016 | 41 $CONFIGURE_ARGS && |
pascal@3763 | 42 make && |
pascal@15219 | 43 make DESTDIR=$DESTDIR install |
pascal@3763 | 44 } |
pascal@3763 | 45 |
pascal@3763 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3763 | 47 genpkg_rules() |
pascal@3763 | 48 { |
Hans-G?nter@23441 | 49 mkdir -p $fs/usr |
Hans-G?nter@23441 | 50 mkdir -p $fs/etc/ppp |
Hans-G?nter@23441 | 51 mkdir -p $fs/etc/init.d |
Hans-G?nter@23441 | 52 mkdir -p $install/usr/share/doc |
Hans-G?nter@23441 | 53 |
Hans-G?nter@23441 | 54 cp $src/README* $install/usr/share/doc |
Hans-G?nter@23441 | 55 cp $src/AUTHORS $install/usr/share/doc |
Hans-G?nter@23441 | 56 cp $src/NEWS $install/usr/share/doc |
Hans-G?nter@23441 | 57 cp $src/samples/* $install/usr/share/doc |
Hans-G?nter@23441 | 58 cp $src/tools/* $install/usr/share/doc |
Hans-G?nter@23441 | 59 cp $src/html/* $install/usr/share/doc |
Hans-G?nter@23441 | 60 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23441 | 61 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@23441 | 62 rm -f $fs/usr/sbin/bcrelay |
Hans-G?nter@23441 | 63 cp $src/samples/pptpd.conf $fs/etc |
Hans-G?nter@23441 | 64 cp $src/samples/options.pptpd $fs/etc/ppp |
Hans-G?nter@23441 | 65 ln -s daemon $fs/etc/init.d/pptpd |
pascal@3763 | 66 } |