wok-6.x annotate liboping/receipt @ rev 19758
Up: libmagic (5.30)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Feb 19 09:04:43 2017 +0000 (2017-02-19) |
parents | ee1714bf5cb2 |
children | c61851b23eb6 |
rev | line source |
---|---|
paul@19207 | 1 # SliTaz package receipt. |
paul@19207 | 2 |
paul@19207 | 3 PACKAGE="liboping" |
paul@19667 | 4 VERSION="1.8.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 { |
paul@19207 | 19 ./configure \ |
paul@19207 | 20 --prefix=/usr \ |
paul@19207 | 21 $CONFIGURE_ARGS && |
paul@19207 | 22 make && |
paul@19207 | 23 make DESTDIR=$DESTDIR install |
paul@19207 | 24 } |
paul@19207 | 25 |
paul@19207 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@19207 | 27 genpkg_rules() |
paul@19207 | 28 { |
paul@19207 | 29 mkdir -p $fs/usr/lib |
paul@19207 | 30 cp -a $install/usr/bin $fs/usr |
paul@19207 | 31 cp -a $install/usr/lib/*.so* $fs/usr/lib |
paul@19207 | 32 } |
paul@19207 | 33 |
paul@19207 | 34 post_install() |
paul@19207 | 35 { |
paul@19207 | 36 chroot "$1/" setcap cap_net_raw=ep /usr/bin/oping |
paul@19207 | 37 chroot "$1/" setcap cap_net_raw=ep /usr/bin/noping |
paul@19207 | 38 } |
paul@19207 | 39 |