From: | "Tim Harder (radhermit)" <radhermit@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/tcpdump: ChangeLog tcpdump-4.2.1.ebuild |
Date: | Wed, 04 Jan 2012 02:43:33 |
Message-Id: | 20120104024323.531612004C@flycatcher.gentoo.org |
1 | radhermit 12/01/04 02:43:23 |
2 | |
3 | Modified: ChangeLog |
4 | Added: tcpdump-4.2.1.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.149 net-analyzer/tcpdump/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.149&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.149&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/ChangeLog?r1=1.148&r2=1.149 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v |
20 | retrieving revision 1.148 |
21 | retrieving revision 1.149 |
22 | diff -u -r1.148 -r1.149 |
23 | --- ChangeLog 17 Dec 2011 14:22:46 -0000 1.148 |
24 | +++ ChangeLog 4 Jan 2012 02:43:23 -0000 1.149 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for net-analyzer/tcpdump |
27 | -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.148 2011/12/17 14:22:46 jer Exp $ |
29 | +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.149 2012/01/04 02:43:23 radhermit Exp $ |
31 | + |
32 | +*tcpdump-4.2.1 (04 Jan 2012) |
33 | + |
34 | + 04 Jan 2012; Tim Harder <radhermit@g.o> +tcpdump-4.2.1.ebuild: |
35 | + Version bump. |
36 | |
37 | 17 Dec 2011; Jeroen Roovers <jer@g.o> tcpdump-4.2.0.ebuild, |
38 | +files/tcpdump-4.2.0-ipv6.patch: |
39 | |
40 | |
41 | |
42 | 1.1 net-analyzer/tcpdump/tcpdump-4.2.1.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.2.1.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.2.1.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: tcpdump-4.2.1.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2012 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/tcpdump-4.2.1.ebuild,v 1.1 2012/01/04 02:43:23 radhermit Exp $ |
52 | |
53 | EAPI="4" |
54 | inherit flag-o-matic |
55 | |
56 | DESCRIPTION="A Tool for network monitoring and data acquisition" |
57 | HOMEPAGE="http://www.tcpdump.org/" |
58 | SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz |
59 | http://www.jp.tcpdump.org/release/${P}.tar.gz" |
60 | |
61 | LICENSE="BSD" |
62 | SLOT="0" |
63 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux" |
64 | IUSE="+chroot smi ssl ipv6 -samba suid test" |
65 | |
66 | RDEPEND=" |
67 | net-libs/libpcap |
68 | smi? ( net-libs/libsmi ) |
69 | ssl? ( >=dev-libs/openssl-0.9.6m ) |
70 | " |
71 | DEPEND=" |
72 | ${RDEPEND} |
73 | test? ( |
74 | || ( app-arch/sharutils sys-freebsd/freebsd-ubin ) |
75 | dev-lang/perl |
76 | ) |
77 | " |
78 | |
79 | pkg_setup() { |
80 | if use samba ; then |
81 | ewarn |
82 | ewarn "CAUTION !!! CAUTION !!! CAUTION" |
83 | ewarn |
84 | ewarn "You're about to compile tcpdump with samba printing support" |
85 | ewarn "Upstream tags it as 'possibly-buggy SMB printer'" |
86 | ewarn "So think twice whether this is fine with you" |
87 | ewarn |
88 | ewarn "CAUTION !!! CAUTION !!! CAUTION" |
89 | ewarn |
90 | fi |
91 | enewgroup tcpdump |
92 | enewuser tcpdump -1 -1 -1 tcpdump |
93 | } |
94 | |
95 | src_configure() { |
96 | # tcpdump needs some optymalization. see bug #108391 |
97 | ( ! is-flag -O? || is-flag -O0 ) && append-flags -O2 |
98 | |
99 | replace-flags -O[3-9] -O2 |
100 | filter-flags -finline-functions |
101 | |
102 | econf \ |
103 | --with-user=tcpdump \ |
104 | $(use_with ssl crypto) \ |
105 | $(use_with smi) \ |
106 | $(use_enable ipv6) \ |
107 | $(use_enable samba smb) \ |
108 | $(use_with chroot chroot /var/lib/tcpdump) |
109 | } |
110 | |
111 | src_test() { |
112 | sed '/^\(espudp1\|eapon1\)/d;' -i tests/TESTLIST |
113 | emake check |
114 | } |
115 | |
116 | src_install() { |
117 | dosbin tcpdump |
118 | doman tcpdump.1 |
119 | dodoc *.awk |
120 | dodoc CHANGES CREDITS README |
121 | |
122 | if use chroot; then |
123 | keepdir /var/lib/tcpdump |
124 | fperms 700 /var/lib/tcpdump |
125 | fowners tcpdump:tcpdump /var/lib/tcpdump |
126 | fi |
127 | if use suid; then |
128 | fowners root:tcpdump /usr/sbin/tcpdump |
129 | fperms 4110 /usr/sbin/tcpdump |
130 | fi |
131 | } |
132 | |
133 | pkg_postinst() { |
134 | use suid && elog "To let normal users run tcpdump add them into tcpdump group." |
135 | } |