--- hping-3_pre20051105-r3.ebuild 2011-05-05 16:15:48.000000000 -0400 +++ hping-3_pre20051105-r4.ebuild 2011-05-05 16:49:36.000000000 -0400 @@ -14,7 +14,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" -IUSE="tcl" +IUSE="tcl suid" S="${WORKDIR}/${MY_P}" @@ -31,6 +31,10 @@ "${FILESDIR}"/${P}-libtcl.patch \ "${FILESDIR}"/${P}-scan-overflow.patch + if use suid ; then + epatch "${FILESDIR}"/${P}-allow-when-suid.patch + fi + # Correct hard coded values sed -i Makefile.in \ -e '/^CC=/d' \ @@ -69,6 +73,11 @@ dosym /usr/sbin/hping3 /usr/sbin/hping dosym /usr/sbin/hping3 /usr/sbin/hping2 + if use suid ; then + fowners root:wheel /usr/sbin/hping3 + fperms 4110 /usr/sbin/hping3 + fi + newman docs/hping3.8 hping.8 dodoc INSTALL NEWS README TODO AUTHORS BUGS CHANGES