/[gentoo-x86]/app-admin/ulogd/ulogd-1.23-r1.ebuild
Gentoo

Contents of /app-admin/ulogd/ulogd-1.23-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Jul 2 10:27:29 2011 UTC (2 years, 9 months ago) by flameeyes
Branch: MAIN
Changes since 1.8: +3 -11 lines
QA: do not try to guess whether the package will work with the kernel or not; cross-compilation is common and this doesn't even look entirely right; don't execute econf during src_unpack phase.

(Portage version: 2.2.0_alpha42/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-1.23-r1.ebuild,v 1.8 2010/10/07 15:45:42 mr_bones_ Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="iptables daemon for ULOG target for userspace iptables filter logging"
8 SRC_URI="http://ftp.netfilter.org/pub/ulogd/${P}.tar.bz2
9 mirror://gentoo/${PN}-glsa-200701.patch.bz2"
10 HOMEPAGE="http://www.gnumonks.org/gnumonks/projects/project_details?p_id=1"
11
12 SLOT="0"
13 LICENSE="GPL-2"
14 KEYWORDS="amd64 ppc -sparc x86"
15 IUSE="mysql postgres"
16
17 DEPEND="net-firewall/iptables
18 mysql? ( virtual/mysql )
19 postgres? ( dev-db/postgresql-server )"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24
25 epatch "${FILESDIR}/${P}-gcc41.patch"
26 EPATCH_OPTS="-F3" \
27 epatch "${WORKDIR}/${PN}-glsa-200701.patch"
28 }
29
30 src_compile() {
31 # enables logfiles over 2G (#74924)
32 append-lfs-flags
33
34 econf \
35 `use_with mysql` \
36 `use_with postgres pgsql` \
37 || die "configure failed"
38
39 # not parallel make safe: bug #128976
40 emake -j1 || die "make failed"
41 }
42
43 src_install() {
44 # the Makefile seems to be "broken" -
45 # it relies on the existance of /usr, /etc ..
46 dodir /usr/sbin
47
48 make DESTDIR="${D}" install || die "install failed"
49
50 newinitd "${FILESDIR}"/ulogd-0.98 ulogd
51
52 dodoc README AUTHORS Changes
53 cd doc/
54 dodoc ulogd.txt ulogd.a4.ps
55
56 if use mysql; then
57 dodoc mysql.table mysql.table.ipaddr-as-string
58 fi
59
60 if use postgres; then
61 dodoc pgsql.table
62 fi
63
64 dohtml ulogd.html
65 }

  ViewVC Help
Powered by ViewVC 1.1.20