wok-stable annotate wvstreams/receipt @ rev 9218
wvstreams: patch wvunixdgsocket & wvatomicfile
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 11 16:44:33 2011 +0100 (2011-03-11) |
parents | 187c96358d69 |
children | 93057273cccb |
rev | line source |
---|---|
jozee@5089 | 1 # SliTaz package receipt. |
jozee@5089 | 2 |
jozee@5089 | 3 PACKAGE="wvstreams" |
jozee@5089 | 4 VERSION="4.6.1" |
jozee@5089 | 5 CATEGORY="network" |
jozee@5089 | 6 SHORT_DESC="makes modem-based connection to Internet" |
jozee@5089 | 7 MAINTAINER="jozee@slitaz.org" |
jozee@5099 | 8 DEPENDS="ppp gcc-lib-base openssl zlib xplc readline" |
jozee@5089 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@5089 | 10 WEB_SITE="http://wvstreams.googlecode.com" |
jozee@5089 | 11 WGET_URL="http://wvstreams.googlecode.com/files/$TARBALL" |
jozee@5089 | 12 TAGS="network 3g" |
jozee@5089 | 13 |
jozee@5089 | 14 # Rules to configure and make the package. |
jozee@5089 | 15 compile_rules() |
jozee@5089 | 16 { |
jozee@5089 | 17 cd $src |
pascal@5485 | 18 sed -i 's/ X509V3_EXT_METHOD/ const X509V3_EXT_METHOD/' crypto/wvx509.cc |
pascal@9218 | 19 sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \ |
pascal@9218 | 20 ipstreams/wvunixdgsocket.c |
jozee@5089 | 21 ./configure --prefix=/usr \ |
jozee@5089 | 22 --without-dbus \ |
jozee@5089 | 23 --without-tcl \ |
jozee@5089 | 24 --without-qt \ |
jozee@5089 | 25 --without-pam \ |
jozee@5089 | 26 --without-valgrind && |
jozee@5089 | 27 |
pascal@9173 | 28 make -j1 && |
pascal@9173 | 29 make -j1 DESTDIR=$PWD/_pkg install |
jozee@5089 | 30 } |
jozee@5089 | 31 |
jozee@5089 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@5089 | 33 genpkg_rules() |
jozee@5089 | 34 { |
jozee@5089 | 35 mkdir -p $fs/usr/lib $fs/etc $fs/var |
jozee@5089 | 36 cp -a $_pkg/usr/bin $fs/usr |
jozee@5089 | 37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
jozee@5089 | 38 cp -a $_pkg/usr/lib/valgrind $fs/usr/lib |
jozee@5089 | 39 cp -a $_pkg/usr/sbin $fs/usr |
jozee@5089 | 40 cp -a $_pkg/usr/etc/* $fs/etc |
jozee@5089 | 41 cp -a $_pkg/usr/var/* $fs/var |
jozee@5089 | 42 } |
jozee@5089 | 43 |
jozee@5089 | 44 post_remove() |
jozee@5089 | 45 { |
slaxemulator@8648 | 46 rm -rf $1/etc/ppp/peers/wvdial |
jozee@5089 | 47 } |