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/liboping-1.10.0.ebuild | |
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/liboping-1.10.0.ebuild')
-rw-r--r-- | net-libs/liboping/liboping-1.10.0.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
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 +} |