blob: cec0516d87a3437a2bdae27221a91151b58dde76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dietsniff/dietsniff-0.4.ebuild,v 1.2 2012/06/13 12:01:31 xmw Exp $
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
}
|