summaryrefslogtreecommitdiff
blob: 618587ff87a10d14661161c1f43505f1934add78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-0.97.ebuild,v 1.2 2002/07/11 06:30:09 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="iptables daemon for ULOG target for userspace iptables filter logging"
SRC_URI="ftp://ftp.netfilter.org/pub/ulogd/ulogd-0.97.tar.gz"
HOMEPAGE="http://www.gnumonks.org/gnumonks/projects/project_details?p_id=1"

DEPEND="sys-apps/iptables"
RDEPEND=${DEPEND}

LICENSE="GPL-2"

src_compile() {
	use mysql && myconf="--with-mysql=/usr/share/mysql "
	./configure ${myconf} \
		--prefix=/usr \
		--sysconfdir=/etc ||die
	make all || die "make failed"
}

src_install() {
	#the Makefile seems to be "broken" - it relies on the existance of /usr, /etc ..
	mkdir -p ${D}/usr/sbin
	mkdir -p ${D}/etc
	mkdir -p ${D}/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
	dohtml ulogd.html
}