wok-next annotate liboping/receipt @ rev 21312
inkscape: added build dependency dbus-glib-dev
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 15:00:13 2019 +0100 (2019-12-10) |
parents | 5841522533ec |
children |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
paul@19207 | 2 |
paul@19207 | 3 PACKAGE="liboping" |
al@19606 | 4 VERSION="1.9.0" |
paul@19207 | 5 CATEGORY="network" |
al@20464 | 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@21020 | 9 WEB_SITE="https://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 |
pascal@19967 | 14 BUILD_DEPENDS="ncurses-dev perl-dev libcap-dev" |
al@21020 | 15 SPLIT="$PACKAGE-dev" |
paul@19207 | 16 |
al@20464 | 17 compile_rules() { |
al@19606 | 18 ./configure $CONFIGURE_ARGS && |
al@20595 | 19 fix libtool && |
paul@19207 | 20 make && |
al@21020 | 21 make DESTDIR=$install install |
paul@19207 | 22 } |
paul@19207 | 23 |
al@20464 | 24 genpkg_rules() { |
al@20464 | 25 case $PACKAGE in |
al@20464 | 26 liboping) |
al@20557 | 27 copy @std |
al@20464 | 28 DEPENDS="ncurses libcap" |
al@20464 | 29 ;; |
al@20464 | 30 *-dev) |
al@20557 | 31 copy @dev |
al@20464 | 32 ;; |
al@20464 | 33 esac |
paul@19207 | 34 } |
paul@19207 | 35 |
al@20464 | 36 post_install_liboping() { |
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 } |