From 38b3cc30a0e85358888fb4ffe18e913e52d60744 Mon Sep 17 00:00:00 2001 From: Eldad Zack Date: Mon, 22 Nov 2004 16:26:37 +0000 Subject: Fix to use bind-now for suid binaries. Using dobin instead of make install. --- net-analyzer/netselect/ChangeLog | 5 ++++- net-analyzer/netselect/netselect-0.3-r1.ebuild | 15 ++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'net-analyzer') diff --git a/net-analyzer/netselect/ChangeLog b/net-analyzer/netselect/ChangeLog index 62f47dc817cb..f85e86652c71 100644 --- a/net-analyzer/netselect/ChangeLog +++ b/net-analyzer/netselect/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-analyzer/netselect # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netselect/ChangeLog,v 1.19 2004/10/19 10:40:35 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netselect/ChangeLog,v 1.20 2004/11/22 16:26:37 eldad Exp $ + + 22 Nov 2004; Eldad Zack netselect-0.3-r1.ebuild: + Fix to use bind-now for suid binaries. Using dobin instead of make install. 19 Oct 2004; Dylan Carlson netselect-0.3-r1.ebuild: Stable on amd64. diff --git a/net-analyzer/netselect/netselect-0.3-r1.ebuild b/net-analyzer/netselect/netselect-0.3-r1.ebuild index e5811d4150cf..a1d02c1ad329 100644 --- a/net-analyzer/netselect/netselect-0.3-r1.ebuild +++ b/net-analyzer/netselect/netselect-0.3-r1.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netselect/netselect-0.3-r1.ebuild,v 1.7 2004/10/19 10:40:35 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netselect/netselect-0.3-r1.ebuild,v 1.8 2004/11/22 16:26:37 eldad Exp $ + +inherit flag-o-matic DESCRIPTION="Ultrafast implementation of ping." HOMEPAGE="http://www.worldvisions.ca/~apenwarr/netselect/" @@ -13,24 +15,23 @@ IUSE="" S="${WORKDIR}/${PN}" -src_unpack() { - unpack ${A} - cd "${S}" +src_compile() { + append-ldflags "-Wl,-z,now" + sed -i \ -e "s:PREFIX =.*:PREFIX = ${D}usr:" \ -e "s:CFLAGS =.*:CFLAGS = -Wall -I. -g ${CFLAGS}:" \ + -e "s:LDFLAGS =.*:LDFLAGS = -g ${LDFLAGS}:" \ -e '23,27d' \ -e '34d' \ Makefile \ || die "sed Makefile failed" -} -src_compile() { emake || die "emake failed" } src_install () { - make install || die "make install failed" + dobin netselect || die "dobin failed" fowners root:wheel /usr/bin/netselect fperms 4710 /usr/bin/netselect dodoc ChangeLog HISTORY README* -- cgit v1.2.3-65-gdbad