Fix to use bind-now for suid binaries. Using dobin instead of make install.
authorEldad Zack <eldad@gentoo.org>
Mon, 22 Nov 2004 16:26:37 +0000 (16:26 +0000)
committerEldad Zack <eldad@gentoo.org>
Mon, 22 Nov 2004 16:26:37 +0000 (16:26 +0000)
net-analyzer/netselect/ChangeLog
net-analyzer/netselect/netselect-0.3-r1.ebuild

index 62f47dc817cbba978188a48e5e8a58685b58b61a..f85e86652c714c9a7e2529a92a4cb90d8b234baf 100644 (file)
@@ -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 <eldad@gentoo.org> netselect-0.3-r1.ebuild:
+  Fix to use bind-now for suid binaries. Using dobin instead of make install.
 
   19 Oct 2004; Dylan Carlson <absinthe@gentoo.org> netselect-0.3-r1.ebuild:
   Stable on amd64.
index e5811d4150cf3f32018f02c1c05509f76e9db1b0..a1d02c1ad329df06031d35881e96c427e3cbe95d 100644 (file)
@@ -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*