diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-06-03 20:15:56 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-06-03 20:15:56 +0000 |
commit | 9eed575d329117a8db6ea006d0f8d5247a6acf97 (patch) | |
tree | d6f36211a0a37a0ce3586433c444570e609775b6 /net-analyzer/fwlogwatch | |
parent | Version bump, drop old (#471954 by Ivan Atienza) (diff) | |
download | gentoo-2-9eed575d329117a8db6ea006d0f8d5247a6acf97.tar.gz gentoo-2-9eed575d329117a8db6ea006d0f8d5247a6acf97.tar.bz2 gentoo-2-9eed575d329117a8db6ea006d0f8d5247a6acf97.zip |
Version bump. Add LINGUAS support.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/fwlogwatch')
-rw-r--r-- | net-analyzer/fwlogwatch/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild | 92 |
2 files changed, 99 insertions, 2 deletions
diff --git a/net-analyzer/fwlogwatch/ChangeLog b/net-analyzer/fwlogwatch/ChangeLog index d47eb8edcadf..a885ed52733a 100644 --- a/net-analyzer/fwlogwatch/ChangeLog +++ b/net-analyzer/fwlogwatch/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/fwlogwatch -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog,v 1.24 2011/12/16 16:47:04 jer Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fwlogwatch/ChangeLog,v 1.25 2013/06/03 20:15:56 jer Exp $ + +*fwlogwatch-1.4 (03 Jun 2013) + + 03 Jun 2013; Jeroen Roovers <jer@gentoo.org> +fwlogwatch-1.4.ebuild: + Version bump. Add LINGUAS support. *fwlogwatch-1.3 (16 Dec 2011) diff --git a/net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild b/net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild new file mode 100644 index 000000000000..69565a0e4b4a --- /dev/null +++ b/net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fwlogwatch/fwlogwatch-1.4.ebuild,v 1.1 2013/06/03 20:15:56 jer Exp $ + +EAPI=5 + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A packet filter and firewall log analyzer" +HOMEPAGE="http://fwlogwatch.inside-security.de/" +SRC_URI="${HOMEPAGE}sw/${P}.tar.bz2" + +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +LICENSE="GPL-1" +SLOT="0" +IUSE="adns nls zlib" + +RDEPEND=" + adns? ( net-libs/adns ) + zlib? ( sys-libs/zlib ) +" +DEPEND=" + ${RDEPEND} + sys-devel/flex + nls? ( sys-devel/gettext ) +" + +src_prepare() { + if use nls; then + strip-linguas -i po/ + local lingua pofile + for pofile in po/*.po; do + lingua=${pofile/po\/} + lingua=${lingua/.po} + if ! has ${lingua} ${LINGUAS}; then + sed -i \ + -e "/${lingua}.[mp]o/d" \ + Makefile po/Makefile || die + fi + done + fi + + sed -i \ + -e '/^INSTALL_/s|$| -D|g' \ + -e 's|make|$(MAKE)|g ' \ + Makefile || die +} + +src_configure() { + if use adns; then + sed -i Makefile -e '/^LIBS/ s|#-ladns |-ladns #|g' || die + append-cflags -DHAVE_ADNS + fi + if ! use zlib; then + sed -i Makefile -e '/^LIBS/ s|-lz||g' || die + else + append-cflags -DHAVE_ZLIB + fi + + use nls && append-cflags -DHAVE_GETTEXT +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" + use nls && emake -C po +} + +src_install() { + emake \ + LOCALE_DIR="${D}/usr" INSTALL_DIR="${D}/usr" \ + install + use nls && emake \ + LOCALE_DIR="${D}/usr" INSTALL_DIR="${D}/usr" \ + install-i18n + + dosbin contrib/fwlw_notify + dosbin contrib/fwlw_respond + + dodoc AUTHORS ChangeLog CREDITS README + + insinto /usr/share/fwlogwatch/contrib + + doins contrib/fwlogsummary.cgi + doins contrib/fwlogsummary_small.cgi + doins contrib/fwlogwatch.php + + insinto /etc + doins fwlogwatch.config +} |