wok-next annotate liboping/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | f463de72afe3 |
children | 4396aed7eb01 |
rev | line source |
---|---|
paul@19207 | 1 # SliTaz package receipt. |
paul@19207 | 2 |
paul@19207 | 3 PACKAGE="liboping" |
al@19606 | 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" |
al@19606 | 9 WEB_SITE="http://noping.cc/" |
al@19606 | 10 |
paul@19207 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@19207 | 12 WGET_URL="http://noping.cc/files/$TARBALL" |
paul@19207 | 13 |
paul@19207 | 14 DEPENDS="ncurses libcap" |
pascal@19967 | 15 BUILD_DEPENDS="ncurses-dev perl-dev libcap-dev" |
paul@19207 | 16 |
paul@19207 | 17 # Rules to configure and make the package. |
paul@19207 | 18 compile_rules() |
paul@19207 | 19 { |
al@19606 | 20 ./configure $CONFIGURE_ARGS && |
paul@19207 | 21 make && |
paul@19207 | 22 make DESTDIR=$DESTDIR install |
paul@19207 | 23 } |
paul@19207 | 24 |
paul@19207 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@19207 | 26 genpkg_rules() |
paul@19207 | 27 { |
al@19783 | 28 copy oping noping *.so* |
paul@19207 | 29 } |
paul@19207 | 30 |
paul@19207 | 31 post_install() |
paul@19207 | 32 { |
paul@19207 | 33 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping |
paul@19207 | 34 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping |
paul@19207 | 35 } |