summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/dietsniff/dietsniff-0.4.ebuild')
-rw-r--r--net-analyzer/dietsniff/dietsniff-0.4.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/net-analyzer/dietsniff/dietsniff-0.4.ebuild b/net-analyzer/dietsniff/dietsniff-0.4.ebuild
new file mode 100644
index 000000000000..7609f701f5b6
--- /dev/null
+++ b/net-analyzer/dietsniff/dietsniff-0.4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs vcs-snapshot
+
+DESCRIPTION="small and static packet sniffer based on dietlibc and libowfat"
+HOMEPAGE="https://github.com/hynek/dietsniff"
+SRC_URI="https://github.com/hynek/dietsniff/tarball/a80c0e64b3 -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="dev-libs/libowfat
+ dev-libs/dietlibc"
+
+src_prepare() {
+ sed -e '/^prefix=/s:=.*:=/usr:' \
+ -e '/^MAN1DIR=/s:man/man1:share/man/man1:' \
+ -e '/^CC/s:=:?=:' \
+ -e '/^CFLAGS/s:=:+=:' \
+ -e '/^LDFLAGS/s:=-s:+=:' \
+ -e '/^dietsniff/,+3s: -o : $(LDFLAGS) -o :' \
+ -e '/^dietsniff/,+3s:strip:#strip:' \
+ -i Makefile
+ export CC="diet -Os $(tc-getCC)"
+}
+
+src_install() {
+ default
+
+ dodoc AUTHORS ChangeLog README
+}