wok-6.x annotate poptop/receipt @ rev 18480
syslinux: fix post-install when upgrade the package
No more "XXXXXXXX" here, so post_install() fails
No more "XXXXXXXX" here, so post_install() fails
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 08 03:44:14 2015 +0300 (2015-10-08) |
parents | e910a929d291 |
children | be4846d01eb1 |
rev | line source |
---|---|
pascal@3763 | 1 # SliTaz package receipt. |
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@18136 | 14 #WANTED="ppp" # need VERSION |
pascal@18016 | 15 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd" |
pascal@15219 | 16 |
pascal@18132 | 17 DEPENDS="ppp bcrelay" |
pascal@3763 | 18 |
pascal@3763 | 19 # Rules to configure and make the package. |
pascal@3763 | 20 compile_rules() |
pascal@3763 | 21 { |
pascal@18135 | 22 PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION) |
pascal@18135 | 23 sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \ |
pascal@18135 | 24 plugins/patchlevel.h |
pascal@15219 | 25 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile |
pascal@3763 | 26 ./configure --prefix=/usr \ |
pascal@18016 | 27 --mandir=/usr/share/man \ |
pascal@18016 | 28 $CONFIGURE_ARGS && |
pascal@3763 | 29 make && |
pascal@15219 | 30 make DESTDIR=$DESTDIR install |
pascal@3763 | 31 } |
pascal@3763 | 32 |
pascal@3763 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3763 | 34 genpkg_rules() |
pascal@3763 | 35 { |
pascal@18132 | 36 mkdir -p $fs/usr $fs/etc/ppp $fs/etc/init.d |
pascal@18134 | 37 cp -a $install/usr/lib $fs/usr |
pascal@15219 | 38 cp -a $install/usr/sbin $fs/usr |
pascal@18132 | 39 rm -f $fs/usr/sbin/bcrelay |
pascal@18016 | 40 cp $src/samples/pptpd.conf $fs/etc |
pascal@18016 | 41 cp $src/samples/options.pptpd $fs/etc/ppp |
pascal@18132 | 42 ln -s daemon $fs/etc/init.d/pptpd |
pascal@3763 | 43 } |