# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-0.97-r1.ebuild,v 1.20 2004/06/24 21:41:17 agriffis Exp $ DESCRIPTION="iptables daemon for ULOG target for userspace iptables filter logging" SRC_URI="ftp://ftp.netfilter.org/pub/ulogd/${P}.tar.gz" HOMEPAGE="http://www.gnumonks.org/gnumonks/projects/project_details?p_id=1" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ppc sparc" IUSE="mysql" DEPEND="net-firewall/iptables" src_compile() { sed -i -e "s:/usr/local/lib/:/usr/lib/:" ulogd.conf local myconf use mysql && myconf="--with-mysql" econf ${myconf} || die "econf failed" make all || die "make failed" } src_install() { # the Makefile seems to be "broken" - # it relies on the existance of /usr, /etc .. dodir /usr/sbin /etc/init.d make DESTDIR=${D} install || die "install failed" cp ${FILESDIR}/ulogd ${D}/etc/init.d/ulogd dodoc README AUTHORS Changes cd doc/ dodoc ulogd.txt ulogd.a4.ps mysql.table mysql.table.ipaddr-as-string dohtml ulogd.html }