wok-next annotate poptop/receipt @ rev 21276
try to build gens-gs again
author | Hans-G?nter Theisgen |
---|---|
date | Sat Dec 07 15:51:18 2019 +0100 (2019-12-07) |
parents | 85b9676f2614 |
children |
rev | line source |
---|---|
pascal@20178 | 1 # SliTaz package receipt v2. |
pascal@3763 | 2 |
pascal@3763 | 3 PACKAGE="poptop" |
pascal@3763 | 4 VERSION="1.3.4" |
pascal@3766 | 5 CATEGORY="network" |
al@21020 | 6 SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol server" |
pascal@3763 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15219 | 8 LICENSE="GPL2" |
al@21020 | 9 WEB_SITE="http://poptop.sourceforge.net/" |
al@21020 | 10 |
pascal@3763 | 11 SOURCE="pptpd" |
pascal@3763 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@3763 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15219 | 14 |
al@21020 | 15 SPLIT="bcrelay" |
pascal@3763 | 16 |
al@21020 | 17 compile_rules() { |
al@21020 | 18 PPPVER=$(. $WOK/ppp/receipt; echo $VERSION) |
pascal@18135 | 19 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \ |
pascal@18135 | 20 plugins/patchlevel.h |
al@21020 | 21 sed -i "s|^LIBDIR.*|LIBDIR=$install/usr/lib/pptpd|" plugins/Makefile |
al@21020 | 22 |
al@21020 | 23 ./configure \ |
al@21020 | 24 --prefix=/usr \ |
pascal@18016 | 25 --mandir=/usr/share/man \ |
pascal@18016 | 26 $CONFIGURE_ARGS && |
pascal@3763 | 27 make && |
al@21020 | 28 make DESTDIR=$install install || return 1 |
al@21020 | 29 |
al@21020 | 30 install -Dm644 samples/pptpd.conf $install/etc/pptpd.conf |
al@21020 | 31 install -Dm644 samples/options.pptpd $install/etc/ppp/options.pptpd |
al@21020 | 32 |
al@21020 | 33 mkdir -p $install/etc/init.d/ |
al@21020 | 34 ln -s daemon $install/etc/init.d/pptpd |
pascal@3763 | 35 } |
pascal@3763 | 36 |
al@21020 | 37 genpkg_rules() { |
pascal@20178 | 38 case $PACKAGE in |
al@21020 | 39 bcrelay) |
al@21020 | 40 copy bcrelay |
al@21020 | 41 CAT="network|broadcast relay daemon" |
al@21020 | 42 ;; |
al@21020 | 43 poptop) |
al@21020 | 44 copy @std @rm |
al@21020 | 45 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd" |
al@21020 | 46 DEPENDS="ppp bcrelay" |
al@21020 | 47 TAGS="vpn tunnel" |
al@21020 | 48 ;; |
pascal@20178 | 49 esac |
pascal@3763 | 50 } |