summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-05 05:56:12 +0000
committerZac Medico <zmedico@gentoo.org>2011-08-05 05:56:12 +0000
commit89c324b86292dfddb15f3d986431f5b3f47292ef (patch)
tree2f1acd4a331674cf33368775b2722eaa985e3f8e /net-analyzer/p0f/p0f-2.0.8-r2.ebuild
parentVersion bump and remove old. (diff)
downloadgentoo-2-89c324b86292dfddb15f3d986431f5b3f47292ef.tar.gz
gentoo-2-89c324b86292dfddb15f3d986431f5b3f47292ef.tar.bz2
gentoo-2-89c324b86292dfddb15f3d986431f5b3f47292ef.zip
Bump to EAPI 3 and fix for prefix.
(Portage version: 2.2.0_alpha50_p4/cvs/Linux i686)
Diffstat (limited to 'net-analyzer/p0f/p0f-2.0.8-r2.ebuild')
-rw-r--r--net-analyzer/p0f/p0f-2.0.8-r2.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/net-analyzer/p0f/p0f-2.0.8-r2.ebuild b/net-analyzer/p0f/p0f-2.0.8-r2.ebuild
index e901fafe6906..0e24ae0326bc 100644
--- a/net-analyzer/p0f/p0f-2.0.8-r2.ebuild
+++ b/net-analyzer/p0f/p0f-2.0.8-r2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/p0f-2.0.8-r2.ebuild,v 1.1 2010/08/30 04:00:14 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/p0f-2.0.8-r2.ebuild,v 1.2 2011/08/05 05:56:12 zmedico Exp $
-EAPI="2"
+EAPI="3"
inherit eutils toolchain-funcs
@@ -28,6 +28,13 @@ src_prepare() {
-e 's|^CFLAGS.*=.*|CFLAGS += \\|g' \
-e '/$(CC).* -o /s|$(CFLAGS)|& $(LDFLAGS)|g' \
|| die "sed makefiles"
+
+ sed -i Build -e "s|\"/usr/|\"${EPREFIX}/usr/|g" || die "sed Build"
+
+ sed -i config.h \
+ -e "s|\"/etc/|\"${EPREFIX}/etc/|g" \
+ -e "s|\"/var/|\"${EPREFIX}/var/|g" \
+ || die "sed config.h"
}
src_compile() {