From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/sancp: ChangeLog sancp-1.6.1-r4.ebuild sancp-1.6.1-r3.ebuild |
Date: | Wed, 21 Nov 2012 04:22:17 |
Message-Id: | 20121121042206.1714E20C65@flycatcher.gentoo.org |
1 | jer 12/11/21 04:22:06 |
2 | |
3 | Modified: ChangeLog |
4 | Added: sancp-1.6.1-r4.ebuild |
5 | Removed: sancp-1.6.1-r3.ebuild |
6 | Log: |
7 | Add copyright info to conf.d script. Add GPL-2 to LICENSE (bug #425992). Move tc-export to src_prepare(). Fix DESCRIPTION. Remove pointless elog message. |
8 | |
9 | (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
10 | |
11 | Revision Changes Path |
12 | 1.15 net-analyzer/sancp/ChangeLog |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sancp/ChangeLog?rev=1.15&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sancp/ChangeLog?rev=1.15&content-type=text/plain |
16 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sancp/ChangeLog?r1=1.14&r2=1.15 |
17 | |
18 | Index: ChangeLog |
19 | =================================================================== |
20 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/sancp/ChangeLog,v |
21 | retrieving revision 1.14 |
22 | retrieving revision 1.15 |
23 | diff -u -r1.14 -r1.15 |
24 | --- ChangeLog 12 Jun 2012 02:59:01 -0000 1.14 |
25 | +++ ChangeLog 21 Nov 2012 04:22:05 -0000 1.15 |
26 | @@ -1,6 +1,13 @@ |
27 | # ChangeLog for net-analyzer/sancp |
28 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sancp/ChangeLog,v 1.14 2012/06/12 02:59:01 zmedico Exp $ |
30 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/sancp/ChangeLog,v 1.15 2012/11/21 04:22:05 jer Exp $ |
31 | + |
32 | +*sancp-1.6.1-r4 (21 Nov 2012) |
33 | + |
34 | + 21 Nov 2012; Jeroen Roovers <jer@g.o> -sancp-1.6.1-r3.ebuild, |
35 | + +sancp-1.6.1-r4.ebuild, files/sancp.confd: |
36 | + Add copyright info to conf.d script. Add GPL-2 to LICENSE (bug #425992). Move |
37 | + tc-export to src_prepare(). Fix DESCRIPTION. Remove pointless elog message. |
38 | |
39 | 12 Jun 2012; Zac Medico <zmedico@g.o> sancp-1.6.1-r3.ebuild: |
40 | inherit user for enewgroup and enewuser |
41 | |
42 | |
43 | |
44 | 1.1 net-analyzer/sancp/sancp-1.6.1-r4.ebuild |
45 | |
46 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sancp/sancp-1.6.1-r4.ebuild?rev=1.1&view=markup |
47 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sancp/sancp-1.6.1-r4.ebuild?rev=1.1&content-type=text/plain |
48 | |
49 | Index: sancp-1.6.1-r4.ebuild |
50 | =================================================================== |
51 | # Copyright 1999-2012 Gentoo Foundation |
52 | # Distributed under the terms of the GNU General Public License v2 |
53 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/sancp/sancp-1.6.1-r4.ebuild,v 1.1 2012/11/21 04:22:05 jer Exp $ |
54 | |
55 | EAPI=4 |
56 | |
57 | inherit eutils toolchain-funcs user |
58 | |
59 | DESCRIPTION="collect statistical information regarding network traffic and collect it in pcap format" |
60 | HOMEPAGE="http://www.metre.net/sancp.html" |
61 | SRC_URI=" |
62 | http://www.metre.net/files/${P}.tar.gz |
63 | http://sancp.sourceforge.net/${PN}-1.6.1.fix200511.a.patch |
64 | http://sancp.sourceforge.net/${PN}-1.6.1.fix200511.b.patch |
65 | http://sancp.sourceforge.net/${PN}-1.6.1.fix200601.c.patch |
66 | http://sancp.sourceforge.net/${PN}-1.6.1.fix200606.d.patch |
67 | " |
68 | |
69 | LICENSE="QPL GPL-2" |
70 | |
71 | SLOT="0" |
72 | KEYWORDS="~amd64 ~x86" |
73 | |
74 | IUSE="sguil" |
75 | |
76 | RDEPEND="net-libs/libpcap" |
77 | DEPEND="${RDEPEND}" |
78 | |
79 | pkg_setup() { |
80 | enewgroup sancp |
81 | enewuser sancp -1 -1 /dev/null sancp |
82 | } |
83 | |
84 | src_prepare() { |
85 | epatch "${DISTDIR}"/${PN}-1.6.1.fix200511.a.patch |
86 | epatch "${DISTDIR}"/${PN}-1.6.1.fix200511.b.patch |
87 | # bug 138337 |
88 | epatch "${DISTDIR}"/${PN}-1.6.1.fix200601.c.patch |
89 | epatch "${DISTDIR}"/${PN}-1.6.1.fix200606.d.patch |
90 | epatch "${FILESDIR}"/${P}-compiler.patch |
91 | |
92 | tc-export CXX CC |
93 | } |
94 | |
95 | src_install() { |
96 | keepdir /var/log/sancp/ |
97 | dodoc docs/CHANGES docs/fields.LIST docs/README docs/SETUP \ |
98 | "${FILESDIR}"/sguil_sancp.conf etc/sancp/sancp.conf |
99 | |
100 | insinto /etc/sancp |
101 | if use sguil ; then |
102 | newins "${FILESDIR}"/sguil_sancp.conf sancp.conf |
103 | else |
104 | doins etc/sancp/sancp.conf |
105 | fi |
106 | |
107 | dobin sancp |
108 | |
109 | newinitd "${FILESDIR}"/sancp.rc1 sancp |
110 | newconfd "${FILESDIR}"/sancp.confd sancp |
111 | if use sguil ; then |
112 | sed -i -e /^SANCP_OPTS/s:'sancp':"sguil":g \ |
113 | -e s:'-d $LOGDIR/today':"-d /var/lib/sguil/$(hostname)/sancp": \ |
114 | "${D}/etc/conf.d/sancp" |
115 | fi |
116 | |
117 | fowners sancp:sancp /var/log/sancp |
118 | fperms 0770 /var/log/sancp |
119 | } |