# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-1.24.ebuild,v 1.4 2007/02/06 16:14:29 antarus Exp $ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" inherit eutils flag-o-matic autotools DESCRIPTION="A userspace logging daemon for netfilter/iptables related logging" SRC_URI="http://ftp.netfilter.org/pub/ulogd/${P}.tar.bz2" HOMEPAGE="http://netfilter.org/projects/ulogd/index.html" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc -sparc ~x86" IUSE="mysql postgres" DEPEND="net-firewall/iptables mysql? ( virtual/mysql ) postgres? ( dev-db/postgresql )" src_compile() { # enables logfiles over 2G (#74924) append-lfs-flags epatch "${FILESDIR}/configure-fixes.patch" ewarn "Regenerating build system (this may take a bit)..." eautoconf || die "Autoreconf failed" econf \ $(use_with mysql) \ $(use_with postgres pgsql) \ || die "configure failed" # Configure uses incorrect syntax for ld use mysql && sed -i -e "s:-Wl,::g" Rules.make # EPATCH_OPTS="-F3" \ # epatch "${FILESDIR}/glsa-200701.patch" # not parallel make safe: bug #128976 emake -j1 || die "make failed" } src_install() { # the Makefile seems to be "broken" - # it relies on the existance of /usr, /etc .. dodir /usr/sbin make DESTDIR="${D}" install || die "install failed" exeinto /etc/init.d/ newexe "${FILESDIR}"/ulogd-0.98 ulogd dodoc README AUTHORS Changes cd doc/ dodoc ulogd.txt ulogd.a4.ps if use mysql; then dodoc mysql.table mysql.table.ipaddr-as-string fi if use postgres; then dodoc pgsql.table fi dohtml ulogd.html }