summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2012-06-11 19:21:44 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2012-06-11 19:21:44 +0000
commitdcb255c2da803c550cda8ecd09478b9ff7d38eb1 (patch)
tree72ed7fb44a30bc5716cc29477a76dfa83cadc6bc /net-libs
parentDrop -Werror introduced by new automake-1.12. Bug #420583 (diff)
downloadgentoo-2-dcb255c2da803c550cda8ecd09478b9ff7d38eb1.tar.gz
gentoo-2-dcb255c2da803c550cda8ecd09478b9ff7d38eb1.tar.bz2
gentoo-2-dcb255c2da803c550cda8ecd09478b9ff7d38eb1.zip
Version bump
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/liboping/ChangeLog10
-rw-r--r--net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch19
-rw-r--r--net-libs/liboping/liboping-1.6.2.ebuild43
3 files changed, 70 insertions, 2 deletions
diff --git a/net-libs/liboping/ChangeLog b/net-libs/liboping/ChangeLog
index 6f0b6716b95f..64768fc85f17 100644
--- a/net-libs/liboping/ChangeLog
+++ b/net-libs/liboping/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-libs/liboping
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/liboping/ChangeLog,v 1.7 2011/08/30 22:55:57 dilfridge Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/liboping/ChangeLog,v 1.8 2012/06/11 19:21:44 dilfridge Exp $
+
+*liboping-1.6.2 (11 Jun 2012)
+
+ 11 Jun 2012; Andreas K. Huettel <dilfridge@gentoo.org>
+ +liboping-1.6.2.ebuild, +files/liboping-1.6.2-nouidmagic.patch:
+ Version bump
30 Aug 2011; Andreas K. Huettel <dilfridge@gentoo.org>
-liboping-1.6.0.ebuild, liboping-1.6.1.ebuild:
diff --git a/net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch b/net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch
new file mode 100644
index 000000000000..2cb1b25e12e0
--- /dev/null
+++ b/net-libs/liboping/files/liboping-1.6.2-nouidmagic.patch
@@ -0,0 +1,19 @@
+diff -ruN liboping-1.6.2.orig/src/Makefile.am liboping-1.6.2/src/Makefile.am
+--- liboping-1.6.2.orig/src/Makefile.am 2012-01-31 17:20:44.000000000 +0100
++++ liboping-1.6.2/src/Makefile.am 2012-06-11 21:21:08.000000000 +0200
+@@ -52,15 +52,3 @@
+ endif
+ endif # BUILD_WITH_LIBNCURSES
+
+-install-exec-hook:
+- @if test "x0" = "x$$UID"; then \
+- if test "xLinux" = "x`uname -s`"; then \
+- echo "Setting CAP_NET_RAW capability on binaries."; \
+- setcap cap_net_raw=ep $(DESTDIR)$(bindir)/oping || true; \
+- setcap cap_net_raw=ep $(DESTDIR)$(bindir)/noping || true; \
+- else \
+- echo "Setting set-UID bit on binaries."; \
+- chmod u+s $(DESTDIR)$(bindir)/oping || true; \
+- chmod u+s $(DESTDIR)$(bindir)/noping || true; \
+- fi; \
+- fi
diff --git a/net-libs/liboping/liboping-1.6.2.ebuild b/net-libs/liboping/liboping-1.6.2.ebuild
new file mode 100644
index 000000000000..0725579ffeb5
--- /dev/null
+++ b/net-libs/liboping/liboping-1.6.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/liboping/liboping-1.6.2.ebuild,v 1.1 2012/06/11 19:21:44 dilfridge Exp $
+
+EAPI=4
+
+inherit base autotools
+
+DESCRIPTION="C library and ncurses based program to generate ICMP echo requests and ping multiple hosts at once"
+HOMEPAGE="http://verplant.org/liboping"
+SRC_URI="http://verplant.org/${PN}/files/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="perl"
+
+DEPEND="
+ sys-libs/ncurses
+ perl? ( dev-lang/perl sys-devel/libperl )
+"
+RDEPEND=${DEPEND}
+
+PATCHES=( "${FILESDIR}/${P}-nouidmagic.patch" )
+
+src_prepare() {
+ base_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with perl perl-bindings INSTALLDIRS=vendor) \
+ --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+
+ fperms u+s,og-r /usr/bin/oping
+ fperms u+s,og-r /usr/bin/noping
+}