From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/p0f: ChangeLog p0f-2.0.8-r2.ebuild |
Date: | Mon, 30 Aug 2010 04:00:22 |
Message-Id: | 20100830040014.88EBB20051@flycatcher.gentoo.org |
1 | jer 10/08/30 04:00:14 |
2 | |
3 | Modified: ChangeLog |
4 | Added: p0f-2.0.8-r2.ebuild |
5 | Log: |
6 | Respect LDFLAGS (bug #335184). Call emake just once. Set -j1 because it does not matter. Add comments where needed. |
7 | |
8 | (Portage version: 2.2_rc71/cvs/Linux i686) |
9 | |
10 | Revision Changes Path |
11 | 1.44 net-analyzer/p0f/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/p0f/ChangeLog?rev=1.44&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/p0f/ChangeLog?rev=1.44&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/p0f/ChangeLog?r1=1.43&r2=1.44 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v |
20 | retrieving revision 1.43 |
21 | retrieving revision 1.44 |
22 | diff -u -r1.43 -r1.44 |
23 | --- ChangeLog 1 Jan 2010 17:43:16 -0000 1.43 |
24 | +++ ChangeLog 30 Aug 2010 04:00:14 -0000 1.44 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for net-analyzer/p0f |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.43 2010/01/01 17:43:16 fauli Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/p0f/ChangeLog,v 1.44 2010/08/30 04:00:14 jer Exp $ |
30 | + |
31 | +*p0f-2.0.8-r2 (30 Aug 2010) |
32 | + |
33 | + 30 Aug 2010; Jeroen Roovers <jer@g.o> +p0f-2.0.8-r2.ebuild: |
34 | + Respect LDFLAGS (bug #335184). Call emake just once. Set -j1 because it |
35 | + does not matter. Add comments where needed. |
36 | |
37 | 01 Jan 2010; Christian Faulhammer <fauli@g.o> p0f-2.0.8-r1.ebuild: |
38 | Transfer Prefix keywords |
39 | |
40 | |
41 | |
42 | 1.1 net-analyzer/p0f/p0f-2.0.8-r2.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/p0f/p0f-2.0.8-r2.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/p0f/p0f-2.0.8-r2.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: p0f-2.0.8-r2.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2010 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $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 $ |
52 | |
53 | EAPI="2" |
54 | |
55 | inherit eutils toolchain-funcs |
56 | |
57 | DESCRIPTION="p0f performs passive OS detection based on SYN packets." |
58 | HOMEPAGE="http://lcamtuf.coredump.cx/p0f.shtml" |
59 | SRC_URI="http://lcamtuf.coredump.cx/p0f/${P}.tgz" |
60 | |
61 | LICENSE="LGPL-2.1" |
62 | SLOT="0" |
63 | KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
64 | IUSE="static" |
65 | |
66 | DEPEND="net-libs/libpcap" |
67 | |
68 | S="${WORKDIR}/${PN}" |
69 | |
70 | src_prepare() { |
71 | sed -i p0f.c -e 's;#include <net/bpf.h>;;' || die "sed p0f.c" |
72 | |
73 | # The first script ensures only p0f is built |
74 | sed -i mk/* \ |
75 | -e 's|^\(all: $(FILE)\).*$|\1|' \ |
76 | -e 's|^CFLAGS.*=.*|CFLAGS += \\|g' \ |
77 | -e '/$(CC).* -o /s|$(CFLAGS)|& $(LDFLAGS)|g' \ |
78 | || die "sed makefiles" |
79 | } |
80 | |
81 | src_compile() { |
82 | # Set -j1 to supress a warning that would not be useful in this case |
83 | emake -j1 CC=$(tc-getCC) \ |
84 | $(use static && echo static || echo all) p0fq \ |
85 | || die "emake failed" |
86 | } |
87 | |
88 | src_install () { |
89 | use static && mv p0f-static p0f |
90 | dosbin p0f p0frep test/p0fq || die |
91 | |
92 | insinto /etc/p0f |
93 | doins p0f.fp p0fa.fp p0fr.fp |
94 | |
95 | doman p0f.1 || die |
96 | cd doc |
97 | dodoc ChangeLog CREDITS KNOWN_BUGS README TODO |
98 | |
99 | newconfd "${FILESDIR}"/${PN}.confd ${PN} || die "newconfd failed" |
100 | newinitd "${FILESDIR}"/${PN}.initd3 ${PN} || die "newinitd failed" |
101 | } |
102 | |
103 | pkg_postinst(){ |
104 | elog "Adjust /etc/conf.d/p0f to your liking before using the" |
105 | elog "init script. For more information on options, read man p0f." |
106 | } |