--- /usr/portage/net-analyzer/ettercap/ettercap-0.7.3.ebuild 2006-11-18 22:06:52.000000000 +0100 +++ /usr/portage/net-analyzer/ettercap/ettercap-0.7.3.ebuild 2006-11-18 23:36:32.000000000 +0100 @@ -7,7 +7,9 @@ # since 'ettercap NG' has to be intended as an upgrade to 0.6.x series and not as # a new project or branch, this will be fine... -inherit flag-o-matic +WANT_AUTOMAKE="1.8" + +inherit flag-o-matic autotools MY_P="${PN}-NG-${PV}" S="${WORKDIR}/${MY_P}" @@ -18,13 +20,11 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha ~amd64 arm hppa ppc sparc x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" IUSE="ssl ncurses gtk debug" # libtool is needed because it provides libltdl (needed for plugins) -RDEPEND="virtual/libc - sys-libs/zlib - >=sys-devel/libtool-1.4.3 +RDEPEND=">=sys-devel/libtool-1.4.3 >=net-libs/libnet-1.1.2.1-r1 net-libs/libpcap ncurses? ( sys-libs/ncurses ) @@ -34,6 +34,15 @@ DEPEND=">=sys-apps/sed-4.0.5 ${RDEPEND}" +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-as-needed.patch + + eautomake +} + src_compile() { strip-flags @@ -55,5 +64,5 @@ } src_install() { - make DESTDIR="${D}" install || die "make install failed" + emake DESTDIR="${D}" install || die "make install failed" }