# HG changeset patch # User Pascal Bellard # Date 1434210786 -7200 # Node ID e910a929d291bf90fa1bb9df18a52c4d4e3b1d16 # Parent 9065576fe94bc9007e5411f562729a77ee1e125f poptop: fix plugin version diff -r 9065576fe94b -r e910a929d291 poptop/receipt --- a/poptop/receipt Sat Jun 13 17:27:08 2015 +0200 +++ b/poptop/receipt Sat Jun 13 17:53:06 2015 +0200 @@ -11,6 +11,7 @@ WEB_SITE="http://poptop.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="vpn tunnel" +WANTED="ppp" # need VERSION CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd" DEPENDS="ppp bcrelay" @@ -18,6 +19,9 @@ # Rules to configure and make the package. compile_rules() { + PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION) + sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \ + plugins/patchlevel.h sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile ./configure --prefix=/usr \ --mandir=/usr/share/man \