wok annotate liboping/receipt @ rev 25615

Add libslirp (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 03 12:03:26 2023 +0000 (15 months ago)
parents ede1d184d5c5
children
rev   line source
paul@19207 1 # SliTaz package receipt.
paul@19207 2
paul@19207 3 PACKAGE="liboping"
Hans-G?nter@21269 4 VERSION="1.10.0"
paul@19207 5 CATEGORY="network"
paul@19207 6 SHORT_DESC="Library to ping IPv4 and IPv6 hosts in parallel."
paul@19207 7 MAINTAINER="paul@slitaz.org"
paul@19207 8 LICENSE="LGPL2.1"
Hans-G?nter@21269 9 WEB_SITE="https://noping.cc/"
paul@19207 10
Hans-G?nter@21269 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21269 12 WGET_URL="https://noping.cc/files/$TARBALL"
Hans-G?nter@21269 13
Hans-G?nter@21269 14 DEPENDS="libcap ncurses"
Hans-G?nter@21269 15 BUILD_DEPENDS="libcap-dev ncurses-dev perl"
paul@19207 16
pascal@24447 17 # What is the latest version available today?
pascal@24447 18 current_version()
pascal@24447 19 {
pascal@24447 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24447 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24447 22 }
pascal@24447 23
paul@19207 24 # Rules to configure and make the package.
paul@19207 25 compile_rules()
paul@19207 26 {
pascal@19940 27 export LDFLAGS="$LDFLAGS -lrt" # for clock_gettime
Hans-G?nter@21269 28
pascal@25190 29 patch -p0 < $stuff/format-extra-args.u
Hans-G?nter@21269 30 ./configure \
Hans-G?nter@21269 31 --prefix=/usr \
paul@19207 32 $CONFIGURE_ARGS &&
Hans-G?nter@21269 33 make -j 1 &&
paul@19207 34 make DESTDIR=$DESTDIR install
paul@19207 35 }
paul@19207 36
paul@19207 37 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@19207 38 genpkg_rules()
paul@19207 39 {
paul@19207 40 mkdir -p $fs/usr/lib
Hans-G?nter@21269 41
Hans-G?nter@21269 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21269 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
paul@19207 44 }
paul@19207 45
paul@19207 46 post_install()
paul@19207 47 {
paul@19207 48 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
paul@19207 49 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
paul@19207 50 }