wok-next annotate poptop/receipt @ rev 20178
sctp-tools: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 02 09:44:39 2017 +0100 (2017-11-02) |
parents | 9c008d2424ac |
children | d5aab818505e |
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" |
pascal@3763 | 6 SHORT_DESC="Microsoft Point-to-Point Tunneling Protocol server." |
pascal@3763 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15219 | 8 LICENSE="GPL2" |
pascal@3763 | 9 SOURCE="pptpd" |
pascal@3763 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@18016 | 11 WEB_SITE="http://poptop.sourceforge.net/" |
pascal@3763 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@3765 | 13 TAGS="vpn tunnel" |
pascal@15219 | 14 |
pascal@20178 | 15 SPLIT="poptop bcrelay poptop-man" |
pascal@3763 | 16 |
pascal@3763 | 17 # Rules to configure and make the package. |
pascal@3763 | 18 compile_rules() |
pascal@3763 | 19 { |
pascal@18135 | 20 PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION) |
pascal@18135 | 21 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \ |
pascal@18135 | 22 plugins/patchlevel.h |
pascal@15219 | 23 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile |
pascal@3763 | 24 ./configure --prefix=/usr \ |
pascal@18016 | 25 --mandir=/usr/share/man \ |
pascal@18016 | 26 $CONFIGURE_ARGS && |
pascal@3763 | 27 make && |
pascal@15219 | 28 make DESTDIR=$DESTDIR install |
pascal@3763 | 29 } |
pascal@3763 | 30 |
pascal@3763 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3763 | 32 genpkg_rules() |
pascal@3763 | 33 { |
pascal@20178 | 34 case $PACKAGE in |
pascal@20178 | 35 poptop) |
pascal@20178 | 36 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd" |
pascal@20178 | 37 DEPENDS="ppp bcrelay" |
pascal@20178 | 38 mkdir -p $fs/usr $fs/etc/ppp $fs/etc/init.d |
pascal@20178 | 39 cp -a $install/usr/lib $fs/usr |
pascal@20178 | 40 cp -a $install/usr/sbin $fs/usr |
pascal@20178 | 41 rm -f $fs/usr/sbin/bcrelay |
pascal@20178 | 42 cp $src/samples/pptpd.conf $fs/etc |
pascal@20178 | 43 cp $src/samples/options.pptpd $fs/etc/ppp |
pascal@20178 | 44 ln -s daemon $fs/etc/init.d/pptpd |
pascal@20178 | 45 ;; |
pascal@20178 | 46 bcrelay) |
pascal@20178 | 47 CAT="network|Broadcast relay daemon." |
pascal@20178 | 48 mkdir -p $fs/usr/sbin |
pascal@20178 | 49 cp -a $install/usr/sbin/bcrelay $fs/usr/sbin |
pascal@20178 | 50 ;; |
pascal@20178 | 51 poptop-man) |
pascal@20178 | 52 CAT="network|PPTP server man pages." |
pascal@20178 | 53 mkdir -p $fs/usr/ |
pascal@20178 | 54 cp -a $install/usr/share $fs/usr/ |
pascal@20178 | 55 ;; |
pascal@20178 | 56 esac |
pascal@3763 | 57 } |