wok-6.x annotate liboping/receipt @ rev 20354
Up e2fsprogs (1.44.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 09 16:13:52 2018 +0200 (2018-06-09) |
parents | c61851b23eb6 |
children | fafbb5087ce7 |
rev | line source |
---|---|
paul@19207 | 1 # SliTaz package receipt. |
paul@19207 | 2 |
paul@19207 | 3 PACKAGE="liboping" |
paul@19938 | 4 VERSION="1.9.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" |
paul@19207 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@19207 | 10 WEB_SITE="http://noping.cc/" |
paul@19207 | 11 WGET_URL="http://noping.cc/files/$TARBALL" |
paul@19207 | 12 |
paul@19207 | 13 DEPENDS="ncurses libcap" |
paul@19207 | 14 BUILD_DEPENDS="ncurses-dev perl libcap-dev" |
paul@19207 | 15 |
paul@19207 | 16 # Rules to configure and make the package. |
paul@19207 | 17 compile_rules() |
paul@19207 | 18 { |
pascal@19940 | 19 export LDFLAGS="$LDFLAGS -lrt" # for clock_gettime |
paul@19207 | 20 ./configure \ |
paul@19207 | 21 --prefix=/usr \ |
paul@19207 | 22 $CONFIGURE_ARGS && |
paul@19207 | 23 make && |
paul@19207 | 24 make DESTDIR=$DESTDIR install |
paul@19207 | 25 } |
paul@19207 | 26 |
paul@19207 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@19207 | 28 genpkg_rules() |
paul@19207 | 29 { |
paul@19207 | 30 mkdir -p $fs/usr/lib |
paul@19207 | 31 cp -a $install/usr/bin $fs/usr |
paul@19207 | 32 cp -a $install/usr/lib/*.so* $fs/usr/lib |
paul@19207 | 33 } |
paul@19207 | 34 |
paul@19207 | 35 post_install() |
paul@19207 | 36 { |
paul@19207 | 37 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping |
paul@19207 | 38 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping |
paul@19207 | 39 } |
paul@19207 | 40 |