Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/p0f/, net-analyzer/p0f/files/
Date: Thu, 04 May 2017 14:51:58
Message-Id: 1493909500.7fffd3de0ef918d5f7035b08572e9e470cfd6e9b.jer@gentoo
1 commit: 7fffd3de0ef918d5f7035b08572e9e470cfd6e9b
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 4 14:51:40 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu May 4 14:51:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fffd3de
7
8 net-analyzer/p0f: Old.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 net-analyzer/p0f/Manifest | 3 --
13 net-analyzer/p0f/files/p0f.confd | 3 --
14 net-analyzer/p0f/files/p0f.initd3 | 41 ----------------------
15 net-analyzer/p0f/p0f-2.0.8-r2.ebuild | 64 -----------------------------------
16 net-analyzer/p0f/p0f-3.06_beta.ebuild | 52 ----------------------------
17 net-analyzer/p0f/p0f-3.07_beta.ebuild | 52 ----------------------------
18 6 files changed, 215 deletions(-)
19
20 diff --git a/net-analyzer/p0f/Manifest b/net-analyzer/p0f/Manifest
21 index a1974503a48..2072b73ecc6 100644
22 --- a/net-analyzer/p0f/Manifest
23 +++ b/net-analyzer/p0f/Manifest
24 @@ -1,4 +1 @@
25 -DIST p0f-2.0.8.tgz 136877 SHA256 6c4d8745f04e59f2ba68d56fd1554551592f08a0497c9fc21b84498f47d1aee0 SHA512 ccfc512a79df7acfad007c6d67398c5c0745be165095adc9dc4ba62cf165c962f98d92e038b3be4eb23cd13e3a9231827c4bd8a0a3bf0cdf68a38286188cde4f WHIRLPOOL 4e813f799e6fdec2728a72a720a5538eff637d8089bacc485c922fce1b64a58018e1dcff51c79e5551fd01d7647e681db507574873ffc020c3c710ea7398ffdd
26 -DIST p0f-3.06b.tgz 92054 SHA256 d151931be2557ac45f9baa0a9384b8643979f4227c391ed395792874f2c6cde7 SHA512 2fe9ed6049c8680ec994b071761f8351ad2f771a0ef2a423b007878c4a3b900d3c6a1a638fe4d72e4c300ce383ad19a7b4a1bf72e65acfa0bd11453a43cd46cc WHIRLPOOL c281f072af04ba8ba4ebcab87c0ed381d91cbd38eb306a43fa2d9a47083d642f539096282d218604ad6bba1800cd34962432bf5697996c930a5e7a2c4e425dc0
27 -DIST p0f-3.07b.tgz 92414 SHA256 5cfc9a4b32e0e789d6ae3240e22c531e7dfb7906d833a026e45a5504379f0ba2 SHA512 79dd0637015055a5bf1f017ea3ae9d5b916c4299df0b364450ffb4a9d736c95a27a2874ac537cfcaec5e588fd507891ee7012d6d41459c6dd68638efc1a708da WHIRLPOOL 68b11ebde6ab356bd1c82173c6c2c8b4a840e251e60931c16b1989781b12a14b4f6a592050c729c17afbab2965390d21c0e4a18bac6c915ffd93ab9d0fd51079
28 DIST p0f-3.09b.tgz 92896 SHA256 543b68638e739be5c3e818c3958c3b124ac0ccb8be62ba274b4241dbdec00e7f SHA512 2a688baa865f27c91c023a7c53e530649f56a681e6ca2533152ab07b42883857b20c378b636e87dda8d1d5dfac17e426d09ee032b363d0b7d98e57a9ff6164d0 WHIRLPOOL 139fd50748b4dc84ddc31f0a4c093adf7ea8c3bedf2d83415aff6497534147734fa74a0804917d27afd5690248d3e547027dfbec03e68af69aea0c8625004782
29
30 diff --git a/net-analyzer/p0f/files/p0f.confd b/net-analyzer/p0f/files/p0f.confd
31 deleted file mode 100644
32 index 01c02896ec0..00000000000
33 --- a/net-analyzer/p0f/files/p0f.confd
34 +++ /dev/null
35 @@ -1,3 +0,0 @@
36 -P0FLOGFILE=/var/log/p0f-audit.log
37 -P0FDEVICE=eth0
38 -P0FOPTIONS="-tl"
39
40 diff --git a/net-analyzer/p0f/files/p0f.initd3 b/net-analyzer/p0f/files/p0f.initd3
41 deleted file mode 100644
42 index e8187503b7b..00000000000
43 --- a/net-analyzer/p0f/files/p0f.initd3
44 +++ /dev/null
45 @@ -1,41 +0,0 @@
46 -#!/sbin/openrc-run
47 -# Copyright 1999-2004 Gentoo Foundation
48 -# Distributed under the terms of the GNU General Public License v2
49 -
50 -start() {
51 - ebegin "Starting p0f"
52 - # The 'tcp and tcp[13] & 2 = 2' requires at least syn set.
53 - # An alternative would be 'tcp and tcp[13] & 0x3f = 2', which
54 - # is syn and no other major flags (but ECN enabled packets are OK)
55 - if [ -z "$BpfFilter" ]; then
56 - BpfFilter='tcp and tcp[13] & 2 = 2'
57 - else
58 - BpfFilter="$BpfFilter and tcp and tcp[13] & 2 = 2"
59 - fi
60 -
61 - # The command in backticks returns all the local IP addresses on this machine.
62 - for OneIP in `/sbin/ifconfig 2>/dev/null | grep 'inet addr' | sed -e 's/.*addr://' -e 's/ .*//'` ; do
63 - BpfFilter="$BpfFilter and not src host $OneIP"
64 - done
65 -
66 -
67 - # Create a lock file.
68 - mkdir -p /var/lock/subsys
69 - touch /var/lock/subsys/p0f
70 -
71 - # Start up p0f and filter out all packets originating from any of this machines IP's.
72 - if [ -z "${P0FLOGFILE}" ]; then
73 - P0FLOGFILE="/var/log/p0f"
74 - fi
75 - einfo "Logfile: ${P0FLOGFILE}"
76 - start-stop-daemon --start --quiet --pidfile /var/run/p0f.pid --exec /usr/sbin/p0f -- -i "${P0FDEVICE}" \
77 - ${P0FOPTIONS} -o "${P0FLOGFILE}" -d "${BpfFilter}" 2>/dev/null
78 - eend ${?}
79 -}
80 -
81 -stop() {
82 - ebegin "Stopping p0f"
83 - start-stop-daemon --stop --quiet --pidfile /var/run/p0f.pid
84 - rm -f /var/lock/subsys/p0f
85 - eend ${?}
86 -}
87
88 diff --git a/net-analyzer/p0f/p0f-2.0.8-r2.ebuild b/net-analyzer/p0f/p0f-2.0.8-r2.ebuild
89 deleted file mode 100644
90 index f41d46219e2..00000000000
91 --- a/net-analyzer/p0f/p0f-2.0.8-r2.ebuild
92 +++ /dev/null
93 @@ -1,64 +0,0 @@
94 -# Copyright 1999-2014 Gentoo Foundation
95 -# Distributed under the terms of the GNU General Public License v2
96 -
97 -EAPI="3"
98 -
99 -inherit eutils toolchain-funcs
100 -
101 -DESCRIPTION="p0f performs passive OS detection based on SYN packets"
102 -HOMEPAGE="http://lcamtuf.coredump.cx/p0f.shtml"
103 -SRC_URI="http://lcamtuf.coredump.cx/p0f/${P}.tgz"
104 -
105 -LICENSE="LGPL-2.1"
106 -SLOT="0"
107 -KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
108 -IUSE="static"
109 -
110 -DEPEND="net-libs/libpcap"
111 -
112 -S="${WORKDIR}/${PN}"
113 -
114 -src_prepare() {
115 - sed -i p0f.c -e 's;#include <net/bpf.h>;;' || die "sed p0f.c"
116 -
117 - # The first script ensures only p0f is built
118 - sed -i mk/* \
119 - -e 's|^\(all: $(FILE)\).*$|\1|' \
120 - -e 's|^CFLAGS.*=.*|CFLAGS += \\|g' \
121 - -e '/$(CC).* -o /s|$(CFLAGS)|& $(LDFLAGS)|g' \
122 - || die "sed makefiles"
123 -
124 - sed -i Build -e "s|\"/usr/|\"${EPREFIX}/usr/|g" || die "sed Build"
125 -
126 - sed -i config.h \
127 - -e "s|\"/etc/|\"${EPREFIX}/etc/|g" \
128 - -e "s|\"/var/|\"${EPREFIX}/var/|g" \
129 - || die "sed config.h"
130 -}
131 -
132 -src_compile() {
133 - # Set -j1 to supress a warning that would not be useful in this case
134 - emake -j1 CC=$(tc-getCC) \
135 - $(use static && echo static || echo all) p0fq \
136 - || die "emake failed"
137 -}
138 -
139 -src_install () {
140 - use static && mv p0f-static p0f
141 - dosbin p0f p0frep test/p0fq || die
142 -
143 - insinto /etc/p0f
144 - doins p0f.fp p0fa.fp p0fr.fp
145 -
146 - doman p0f.1 || die
147 - cd doc
148 - dodoc ChangeLog CREDITS KNOWN_BUGS README TODO
149 -
150 - newconfd "${FILESDIR}"/${PN}.confd ${PN} || die "newconfd failed"
151 - newinitd "${FILESDIR}"/${PN}.initd3 ${PN} || die "newinitd failed"
152 -}
153 -
154 -pkg_postinst(){
155 - elog "Adjust /etc/conf.d/p0f to your liking before using the"
156 - elog "init script. For more information on options, read man p0f."
157 -}
158
159 diff --git a/net-analyzer/p0f/p0f-3.06_beta.ebuild b/net-analyzer/p0f/p0f-3.06_beta.ebuild
160 deleted file mode 100644
161 index 967ee045ac9..00000000000
162 --- a/net-analyzer/p0f/p0f-3.06_beta.ebuild
163 +++ /dev/null
164 @@ -1,52 +0,0 @@
165 -# Copyright 1999-2013 Gentoo Foundation
166 -# Distributed under the terms of the GNU General Public License v2
167 -
168 -EAPI=5
169 -inherit toolchain-funcs
170 -
171 -MY_P=${P/_beta/b}
172 -
173 -DESCRIPTION="A tool to perform passive OS detection based on SYN packets"
174 -HOMEPAGE="http://lcamtuf.coredump.cx/p0f3/"
175 -SRC_URI="http://lcamtuf.coredump.cx/p0f3/releases/${MY_P}.tgz"
176 -
177 -LICENSE="LGPL-2.1"
178 -SLOT="0"
179 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos"
180 -IUSE="debug ipv6"
181 -
182 -RDEPEND="net-libs/libpcap"
183 -DEPEND="${RDEPEND}"
184 -
185 -S=${WORKDIR}/${MY_P}
186 -
187 -src_prepare() {
188 - sed -i \
189 - -e 's:-g -ggdb::' \
190 - -e 's:-O3::' \
191 - -e '/^CC/s:=:?=:' \
192 - -e '/^CFLAGS/s:=:+=:' \
193 - -e '/^LDFLAGS/s:=:+=:' \
194 - build.sh tools/Makefile || die
195 -
196 - sed -i -e "/FP_FILE/s:p0f.fp:${EPREFIX}/etc/&:" config.h || die
197 -}
198 -
199 -src_compile() {
200 - tc-export CC
201 - ./build.sh $(use debug && echo debug) || die
202 - emake -C tools p0f-client p0f-sendsyn $(use ipv6 && echo p0f-sendsyn6)
203 -}
204 -
205 -src_install() {
206 - dosbin p0f tools/p0f-{client,sendsyn}
207 - use ipv6 && dosbin tools/p0f-sendsyn6
208 -
209 - insinto /etc
210 - doins p0f.fp
211 -
212 - #newconfd "${FILESDIR}"/${PN}.confd ${PN}
213 - #newinitd "${FILESDIR}"/${PN}.initd3 ${PN}
214 -
215 - dodoc docs/{ChangeLog,README,TODO,*.txt} tools/README-TOOLS
216 -}
217
218 diff --git a/net-analyzer/p0f/p0f-3.07_beta.ebuild b/net-analyzer/p0f/p0f-3.07_beta.ebuild
219 deleted file mode 100644
220 index 8dc66045ce0..00000000000
221 --- a/net-analyzer/p0f/p0f-3.07_beta.ebuild
222 +++ /dev/null
223 @@ -1,52 +0,0 @@
224 -# Copyright 1999-2014 Gentoo Foundation
225 -# Distributed under the terms of the GNU General Public License v2
226 -
227 -EAPI=5
228 -inherit toolchain-funcs
229 -
230 -MY_P=${P/_beta/b}
231 -
232 -DESCRIPTION="A tool to perform passive OS detection based on SYN packets"
233 -HOMEPAGE="http://lcamtuf.coredump.cx/p0f3/"
234 -SRC_URI="http://lcamtuf.coredump.cx/p0f3/releases/${MY_P}.tgz"
235 -
236 -LICENSE="LGPL-2.1"
237 -SLOT="0"
238 -KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos"
239 -IUSE="debug ipv6"
240 -
241 -RDEPEND="net-libs/libpcap"
242 -DEPEND="${RDEPEND}"
243 -
244 -S=${WORKDIR}/${MY_P}
245 -
246 -src_prepare() {
247 - sed -i \
248 - -e 's:-g -ggdb::' \
249 - -e 's:-O3::' \
250 - -e '/^CC/s:=:?=:' \
251 - -e '/^CFLAGS/s:=:+=:' \
252 - -e '/^LDFLAGS/s:=:+=:' \
253 - build.sh tools/Makefile || die
254 -
255 - sed -i -e "/FP_FILE/s:p0f.fp:${EPREFIX}/etc/&:" config.h || die
256 -}
257 -
258 -src_compile() {
259 - tc-export CC
260 - ./build.sh $(use debug && echo debug) || die
261 - emake -C tools p0f-client p0f-sendsyn $(use ipv6 && echo p0f-sendsyn6)
262 -}
263 -
264 -src_install() {
265 - dosbin p0f tools/p0f-{client,sendsyn}
266 - use ipv6 && dosbin tools/p0f-sendsyn6
267 -
268 - insinto /etc
269 - doins p0f.fp
270 -
271 - #newconfd "${FILESDIR}"/${PN}.confd ${PN}
272 - #newinitd "${FILESDIR}"/${PN}.initd3 ${PN}
273 -
274 - dodoc docs/{ChangeLog,README,TODO,*.txt} tools/README-TOOLS
275 -}