Gentoo Archives: gentoo-commits

From: "Cedric Krier (cedk)" <cedk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/tcpdump: ChangeLog tcpdump-3.9.8-r1.ebuild
Date: Sun, 30 Mar 2008 21:12:35
Message-Id: E1Jg4pM-00088t-T7@stork.gentoo.org
1 cedk 08/03/30 21:12:32
2
3 Modified: ChangeLog
4 Added: tcpdump-3.9.8-r1.ebuild
5 Log:
6 Add chroot USE for bug #199172
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.127 net-analyzer/tcpdump/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.127&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/ChangeLog?rev=1.127&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/ChangeLog?r1=1.126&r2=1.127
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v
19 retrieving revision 1.126
20 retrieving revision 1.127
21 diff -u -r1.126 -r1.127
22 --- ChangeLog 14 Nov 2007 16:34:58 -0000 1.126
23 +++ ChangeLog 30 Mar 2008 21:12:32 -0000 1.127
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-analyzer/tcpdump
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.126 2007/11/14 16:34:58 jer Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.127 2008/03/30 21:12:32 cedk Exp $
30 +
31 +*tcpdump-3.9.8-r1 (30 Mar 2008)
32 +
33 + 30 Mar 2008; Cédric Krier <cedk@g.o> +tcpdump-3.9.8-r1.ebuild:
34 + Add chroot USE for bug #199172
35
36 14 Nov 2007; Jeroen Roovers <jer@g.o> tcpdump-3.9.8.ebuild:
37 Stable for HPPA (bug #198476).
38
39
40
41 1.1 net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: tcpdump-3.9.8-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild,v 1.1 2008/03/30 21:12:32 cedk Exp $
51
52 inherit flag-o-matic toolchain-funcs eutils
53
54 DESCRIPTION="A Tool for network monitoring and data acquisition"
55 HOMEPAGE="http://www.tcpdump.org/"
56 SRC_URI="http://www.tcpdump.org/release/${P}.tar.gz
57 http://www.jp.tcpdump.org/release/${P}.tar.gz"
58
59 LICENSE="BSD"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
62 IUSE="chroot ssl ipv6 samba"
63
64 DEPEND="net-libs/libpcap
65 ssl? ( >=dev-libs/openssl-0.9.6m )"
66
67 pkg_setup() {
68 if use samba ; then
69 ewarn
70 ewarn "CAUTION !!! CAUTION !!! CAUTION"
71 ewarn
72 ewarn "You're about to compile tcpdump with samba printing support"
73 ewarn "Upstream tags it as 'possibly-buggy SMB printer'"
74 ewarn "So think twice whether this is fine with you"
75 ewarn
76 ewarn "CAUTION !!! CAUTION !!! CAUTION"
77 ewarn
78 ewarn "(Giving you 10 secs to think about it)"
79 ewarn
80 ebeep 5
81 epause 5
82 fi
83 }
84
85 src_compile() {
86 # tcpdump needs some optymalization. see bug #108391
87 ( ! is-flag -O? || is-flag -O0 ) && append-flags -O
88
89 replace-flags -O[3-9] -O2
90 filter-flags -finline-functions
91
92 # Fix wrt bug #48747
93 if [[ $(gcc-major-version) -gt 3 ]] || \
94 [[ $(gcc-major-version) -eq 3 && $(gcc-minor-version) -ge 4 ]]
95 then
96 filter-flags -funit-at-a-time
97 append-flags -fno-unit-at-a-time
98 fi
99
100 local myconf
101 if ! use ssl ; then
102 myconf="--without-crypto"
103 fi
104
105 if use chroot; then
106 myconf="${myconf} --with-chroot=/var/lib/tcpdump"
107 fi
108
109 econf --with-user=tcpdump \
110 $(use_enable ipv6) \
111 $(use_enable samba smb) \
112 ${myconf} || die "configure failed"
113
114 make CCOPT="$CFLAGS" || die "make failed"
115 }
116
117 pkg_preinst() {
118 enewgroup tcpdump || die "Failed to add group tcpdump"
119 enewuser tcpdump -1 -1 -1 tcpdump || die "Failed to add user tcpdump"
120 }
121
122 src_install() {
123 dosbin tcpdump
124 doman tcpdump.1
125 dodoc *.awk
126 dodoc README FILES VERSION CHANGES CREDITS TODO
127
128 keepdir /var/lib/tcpdump
129 fperms 700 /var/lib/tcpdump
130 fowners tcpdump:tcpdump /var/lib/tcpdump
131 }
132
133
134
135 --
136 gentoo-commits@l.g.o mailing list