wok rev 18135
poptop: fix plugin version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 13 17:53:06 2015 +0200 (2015-06-13) |
parents | 9065576fe94b |
children | 9c008d2424ac |
files | poptop/receipt |
line diff
1.1 --- a/poptop/receipt Sat Jun 13 17:27:08 2015 +0200 1.2 +++ b/poptop/receipt Sat Jun 13 17:53:06 2015 +0200 1.3 @@ -11,6 +11,7 @@ 1.4 WEB_SITE="http://poptop.sourceforge.net/" 1.5 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.6 TAGS="vpn tunnel" 1.7 +WANTED="ppp" # need VERSION 1.8 CONFIG_FILES="/etc/pptpd.conf /etc/ppp/options.pptpd" 1.9 1.10 DEPENDS="ppp bcrelay" 1.11 @@ -18,6 +19,9 @@ 1.12 # Rules to configure and make the package. 1.13 compile_rules() 1.14 { 1.15 + PPPVER=$(. $WOK/ppp/receipt ; echo $VERSION) 1.16 + sed -i "s/#define VERSION.*/#define VERSION \"${PPPVER:-2.4.3}\"/" \ 1.17 + plugins/patchlevel.h 1.18 sed -i "s|^LIBDIR.*|LIBDIR=$DESTDIR/usr/lib/pptpd|" plugins/Makefile 1.19 ./configure --prefix=/usr \ 1.20 --mandir=/usr/share/man \