wok view wget/receipt @ rev 25735

Remove iptraf: replaced by iptraf-ng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 23 09:39:49 2024 +0000 (2 months ago)
parents 1ab5edec3cba
children
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.21.3"
5 CATEGORY="network"
6 SHORT_DESC="An utility for retrieving files using HTTP, HTTPS or FTP."
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/wget/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="wget-lang"
15 DEPENDS="libidn libssl pcre util-linux-uuid zlib"
16 BUILD_DEPENDS="flex libidn-dev openssl-dev util-linux-uuid-dev"
18 CONFIG_FILES="/etc/wgetrc"
20 HOST_ARCH="i486 arm"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
31 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --with-ssl=openssl \
39 --with-openssl \
40 --sysconfdir=/etc \
41 $CONFIGURE_ARGS \
42 $ARCH_ARGS &&
43 make install DESTDIR=$DESTDIR
45 gzip -9 $install/usr/share/man/man1/wget.1
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 cook_copy_folders etc
52 cook_copy_folders bin
53 }
55 post_remove()
56 {
57 ln -s /bin/busybox "$1/usr/bin/wget"
58 }