diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-01-15 08:02:04 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-01-15 08:02:32 +0100 |
commit | 21233a7d552f20a2c885eeb01b24c9555bb6f7ed (patch) | |
tree | 3abd2c6889d97e21dd5d8a98614180a3da25321e /net-libs | |
parent | net-libs/liboping: Ebuild rewritten for EAPI=6 (diff) | |
download | gentoo-21233a7d552f20a2c885eeb01b24c9555bb6f7ed.tar.gz gentoo-21233a7d552f20a2c885eeb01b24c9555bb6f7ed.tar.bz2 gentoo-21233a7d552f20a2c885eeb01b24c9555bb6f7ed.zip |
net-libs/liboping: Bump to v1.9.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/liboping/Manifest | 1 | ||||
-rw-r--r-- | net-libs/liboping/liboping-1.9.0.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/net-libs/liboping/Manifest b/net-libs/liboping/Manifest index 5eef357cb4b1..d13eb9ce3dda 100644 --- a/net-libs/liboping/Manifest +++ b/net-libs/liboping/Manifest @@ -1,2 +1,3 @@ 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.9.0.ebuild b/net-libs/liboping/liboping-1.9.0.ebuild new file mode 100644 index 000000000000..141475405edb --- /dev/null +++ b/net-libs/liboping/liboping-1.9.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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.2" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+filecaps ncurses perl" + +DEPEND="ncurses? ( sys-libs/ncurses:0= )" +RDEPEND=${DEPEND} + +PATCHES=( + "${FILESDIR}/${PN}-1.6.2-nouidmagic.patch" + "${FILESDIR}/${PN}-1.8.0-remove-ncurses-automagic.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" + fcaps "${_caps_str}" \ + "${EROOT%/}/usr/bin/oping" \ + "${EROOT%/}/usr/bin/noping" + elog "Capabilities for" + elog "" + elog " ${EROOT%/}/usr/bin/oping" + elog " ${EROOT%/}/usr/bin/oping" + elog "" + elog "set to ${_caps_str}+EP due to set 'filecaps' USE flag." + elog + fi +} |