diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-05-15 12:14:15 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-05-15 12:14:15 +0200 |
commit | 2332e191df61cbd4ccdb4bde0d4daaaea9602606 (patch) | |
tree | 15c427e73634ade98e36005e8e37ed79904a38b2 /net-libs/liboping | |
parent | dev-libs/libfastjson: Bump to v0.99.6 (diff) | |
download | gentoo-2332e191df61cbd4ccdb4bde0d4daaaea9602606.tar.gz gentoo-2332e191df61cbd4ccdb4bde0d4daaaea9602606.tar.bz2 gentoo-2332e191df61cbd4ccdb4bde0d4daaaea9602606.zip |
net-libs/liboping: Bump to v1.10.0
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-libs/liboping')
-rw-r--r-- | net-libs/liboping/Manifest | 1 | ||||
-rw-r--r-- | net-libs/liboping/liboping-1.10.0.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/net-libs/liboping/Manifest b/net-libs/liboping/Manifest index d13eb9ce3dda..99827b064388 100644 --- a/net-libs/liboping/Manifest +++ b/net-libs/liboping/Manifest @@ -1,3 +1,4 @@ +DIST liboping-1.10.0.tar.bz2 318150 SHA256 eb38aa93f93e8ab282d97e2582fbaea88b3f889a08cbc9dbf20059c3779d5cd8 SHA512 f1e9984cf0c1df89b29f7bc657c19a5439019db7643680744d8f353664b6a53070581f40b51e72f896c7df88799c6868257f6308e1a9d84b4d2a0666491214d8 WHIRLPOOL 59562503d30b1e05d0052e28d5d93cc3379e03528376a056f7d64d588154d9ab75cb9a2f2c3725f8968900db3b731bbeca7e93d565f641bda2393b14c411f7c1 DIST liboping-1.7.0.tar.bz2 306359 SHA256 60089a544522abced4aecbb554f494632968371e5ade7bea27015cd6aa598db3 SHA512 74ca6184fc192cabc0edb289aaab7b7d6f743a69cd0e1c0de82d768e7fd599229fbb974fbc0e1f3f5a3377c47cc8871c8cd1b16982f7b67167cd7cc5808eb38e WHIRLPOOL cf845b01582cf207c2409e1e5ee71ca9e7fb402ff8fb0131778246aa8931aa3b1c59e6318fea6923ed3f83721f8a0928991ecefb87f7ec13f2f8c4f3f8df4fdc DIST liboping-1.8.0.tar.bz2 316441 SHA256 1dcb9182c981b31d67522ae24e925563bed57cf950dc681580c4b0abb6a65bdb SHA512 94170de6e23c1c2380866e5195a3cdac795f30bda560ee3869bcdd9aa42b831fa3aac1a351033f72ed81d501b8e3e02db9bb5e5ada29e51ea4b1d2cca7af6217 WHIRLPOOL 724144216788a3837e2afb45b88a9ea757984e45841a365cfc7b17b43269069600dd9ed261f4b108527eb5f19b151500b24e4544c8e3f944cc1d7392e39b6c4a DIST liboping-1.9.0.tar.bz2 313884 SHA256 44bb1d88b56b88fda5533edb3aa005c69b3cd396f20453a157d7e31e536f3530 SHA512 dcbadeea5154d4f4c31f806cae4ee5b8d5a8dfe243a9de4dad4b81b5b227538e1bb0c20afef121bd8ad841346da39fd5fb4710db981b89c11acc573c4f401c85 WHIRLPOOL 11421367b3e5128a0158ab76305bde2431dd3e2e2e0f8665cc5fbf9871a0a60fab6e1887d4a3537cc5d1e56dbf1431d6b51885b0c93e25b21e93c9e0b678834d diff --git a/net-libs/liboping/liboping-1.10.0.ebuild b/net-libs/liboping/liboping-1.10.0.ebuild new file mode 100644 index 000000000000..35dda9d3a1f5 --- /dev/null +++ b/net-libs/liboping/liboping-1.10.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools fcaps perl-module + +DESCRIPTION="Protocol independent ANSI-C ping library and command line utility" +HOMEPAGE="https://noping.cc/" +SRC_URI="https://noping.cc/files/${P}.tar.bz2" + +LICENSE="LGPL-2.1 GPL-2" +SLOT="0/0.3" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+filecaps ncurses perl" + +DEPEND="ncurses? ( sys-libs/ncurses:0= )" +RDEPEND=${DEPEND} + +PATCHES=( + "${FILESDIR}/${PN}-1.6.2-nouidmagic.patch" +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + econf \ + $(use_with perl perl-bindings INSTALLDIRS=vendor) \ + $(use_with ncurses) +} + +src_test() { + if use perl; then + pushd bindings/perl >/dev/null || die + perl-module_src_test + popd >/dev/null || die + fi +} + +src_install() { + default + + find "${ED}"usr/lib* -name '*.la' -o -name '*.a' -delete || die +} + +pkg_postinst() { + if use filecaps; then + local _caps_str="CAP_NET_RAW" + _files=( "${EROOT%/}/usr/bin/oping") + + if use ncurses; then + _files+=( "${EROOT%/}/usr/bin/noping") + fi + + fcaps "${_caps_str}" "${_files[@]}" + + elog "Capabilities for" + elog "" + + local _file= + for _file in "${_files[@]}"; do + elog " ${_file}" + done + + elog "" + elog "set to ${_caps_str}+EP due to set 'filecaps' USE flag." + elog + fi +} |