wok-current annotate liboping/receipt @ rev 23525

updated python-pastescript (1.7.3 -> 3.2.0)
author Hans-G?nter Theisgen
date Mon Apr 06 14:09:12 2020 +0100 (2020-04-06)
parents 828da114adaa
children ede1d184d5c5
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
paul@19207 17 # Rules to configure and make the package.
paul@19207 18 compile_rules()
paul@19207 19 {
pascal@19940 20 export LDFLAGS="$LDFLAGS -lrt" # for clock_gettime
Hans-G?nter@21269 21
Hans-G?nter@21269 22 ./configure \
Hans-G?nter@21269 23 --prefix=/usr \
paul@19207 24 $CONFIGURE_ARGS &&
Hans-G?nter@21269 25 make -j 1 &&
paul@19207 26 make DESTDIR=$DESTDIR install
paul@19207 27 }
paul@19207 28
paul@19207 29 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@19207 30 genpkg_rules()
paul@19207 31 {
paul@19207 32 mkdir -p $fs/usr/lib
Hans-G?nter@21269 33
Hans-G?nter@21269 34 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21269 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
paul@19207 36 }
paul@19207 37
paul@19207 38 post_install()
paul@19207 39 {
paul@19207 40 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping
paul@19207 41 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping
paul@19207 42 }