wok-current view wvstreams/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | b7f1bd1b9ac7 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="wvstreams"
4 VERSION="4.6.1"
5 CATEGORY="network"
6 SHORT_DESC="makes modem-based connection to Internet"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20110504183753/http://alumnit.ca:80/wiki/index.php?page=WvDial"
11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"
12 TAGS="network 3G"
14 DEPENDS="ppp libssl xplc readline"
15 BUILD_DEPENDS="ppp-dev openssl-dev xplc-dev readline-dev bash"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/apenwarr/wvstreams/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[a-z-]*-\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 sed -i 's/ X509V3_EXT_METHOD/ const X509V3_EXT_METHOD/' crypto/wvx509.cc
29 sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \
30 ipstreams/wvunixdgsocket.cc
31 ./configure $CONFIGURE_ARGS \
32 --prefix=/usr \
33 --without-dbus \
34 --without-tcl \
35 --without-qt \
36 --without-pam \
37 --without-valgrind &&
38 make -j1 && make -j1 install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib $fs/etc $fs/var
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 cp -a $install/usr/lib/valgrind $fs/usr/lib
48 cp -a $install/usr/sbin $fs/usr
49 cp -a $install/usr/etc/* $fs/etc
50 cp -a $install/usr/var/* $fs/var
51 }
53 post_remove()
54 {
55 rm -rf "$1/etc/ppp/peers/wvdial"
56 }