From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/fwlogwatch: ChangeLog fwlogwatch-1.4.ebuild |
Date: | Mon, 03 Jun 2013 20:16:02 |
Message-Id: | 20130603201557.0A6192171D@flycatcher.gentoo.org |
1 | jer 13/06/03 20:15:56 |
2 | |
3 | Modified: ChangeLog |
4 | Added: fwlogwatch-1.4.ebuild |
5 | Log: |
6 | Version bump. Add LINGUAS support. |
7 | |
8 | (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
9 | |
10 | Revision Changes Path |
11 | 1.25 net-analyzer/fwlogwatch/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog?rev=1.25&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog?rev=1.25&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog?r1=1.24&r2=1.25 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog,v |
20 | retrieving revision 1.24 |
21 | retrieving revision 1.25 |
22 | diff -u -r1.24 -r1.25 |
23 | --- ChangeLog 16 Dec 2011 16:47:04 -0000 1.24 |
24 | +++ ChangeLog 3 Jun 2013 20:15:56 -0000 1.25 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for net-analyzer/fwlogwatch |
27 | -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog,v 1.24 2011/12/16 16:47:04 jer Exp $ |
29 | +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog,v 1.25 2013/06/03 20:15:56 jer Exp $ |
31 | + |
32 | +*fwlogwatch-1.4 (03 Jun 2013) |
33 | + |
34 | + 03 Jun 2013; Jeroen Roovers <jer@g.o> +fwlogwatch-1.4.ebuild: |
35 | + Version bump. Add LINGUAS support. |
36 | |
37 | *fwlogwatch-1.3 (16 Dec 2011) |
38 | |
39 | |
40 | |
41 | |
42 | 1.1 net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: fwlogwatch-1.4.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2013 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild,v 1.1 2013/06/03 20:15:56 jer Exp $ |
52 | |
53 | EAPI=5 |
54 | |
55 | inherit eutils flag-o-matic toolchain-funcs |
56 | |
57 | DESCRIPTION="A packet filter and firewall log analyzer" |
58 | HOMEPAGE="http://fwlogwatch.inside-security.de/" |
59 | SRC_URI="${HOMEPAGE}sw/${P}.tar.bz2" |
60 | |
61 | KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
62 | LICENSE="GPL-1" |
63 | SLOT="0" |
64 | IUSE="adns nls zlib" |
65 | |
66 | RDEPEND=" |
67 | adns? ( net-libs/adns ) |
68 | zlib? ( sys-libs/zlib ) |
69 | " |
70 | DEPEND=" |
71 | ${RDEPEND} |
72 | sys-devel/flex |
73 | nls? ( sys-devel/gettext ) |
74 | " |
75 | |
76 | src_prepare() { |
77 | if use nls; then |
78 | strip-linguas -i po/ |
79 | local lingua pofile |
80 | for pofile in po/*.po; do |
81 | lingua=${pofile/po\/} |
82 | lingua=${lingua/.po} |
83 | if ! has ${lingua} ${LINGUAS}; then |
84 | sed -i \ |
85 | -e "/${lingua}.[mp]o/d" \ |
86 | Makefile po/Makefile || die |
87 | fi |
88 | done |
89 | fi |
90 | |
91 | sed -i \ |
92 | -e '/^INSTALL_/s|$| -D|g' \ |
93 | -e 's|make|$(MAKE)|g ' \ |
94 | Makefile || die |
95 | } |
96 | |
97 | src_configure() { |
98 | if use adns; then |
99 | sed -i Makefile -e '/^LIBS/ s|#-ladns |-ladns #|g' || die |
100 | append-cflags -DHAVE_ADNS |
101 | fi |
102 | if ! use zlib; then |
103 | sed -i Makefile -e '/^LIBS/ s|-lz||g' || die |
104 | else |
105 | append-cflags -DHAVE_ZLIB |
106 | fi |
107 | |
108 | use nls && append-cflags -DHAVE_GETTEXT |
109 | } |
110 | |
111 | src_compile() { |
112 | emake \ |
113 | CC=$(tc-getCC) \ |
114 | CFLAGS="${CFLAGS}" \ |
115 | LDFLAGS="${LDFLAGS}" |
116 | use nls && emake -C po |
117 | } |
118 | |
119 | src_install() { |
120 | emake \ |
121 | LOCALE_DIR="${D}/usr" INSTALL_DIR="${D}/usr" \ |
122 | install |
123 | use nls && emake \ |
124 | LOCALE_DIR="${D}/usr" INSTALL_DIR="${D}/usr" \ |
125 | install-i18n |
126 | |
127 | dosbin contrib/fwlw_notify |
128 | dosbin contrib/fwlw_respond |
129 | |
130 | dodoc AUTHORS ChangeLog CREDITS README |
131 | |
132 | insinto /usr/share/fwlogwatch/contrib |
133 | |
134 | doins contrib/fwlogsummary.cgi |
135 | doins contrib/fwlogsummary_small.cgi |
136 | doins contrib/fwlogwatch.php |
137 | |
138 | insinto /etc |
139 | doins fwlogwatch.config |
140 | } |