diff options
Diffstat (limited to 'net-analyzer/daemonlogger/daemonlogger-1.0-r1.ebuild')
-rw-r--r-- | net-analyzer/daemonlogger/daemonlogger-1.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net-analyzer/daemonlogger/daemonlogger-1.0-r1.ebuild b/net-analyzer/daemonlogger/daemonlogger-1.0-r1.ebuild new file mode 100644 index 000000000..0af19d4af --- /dev/null +++ b/net-analyzer/daemonlogger/daemonlogger-1.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="Simple packet logger & soft tap" +HOMEPAGE="http://www.snort.org/users/roesch/Site/Daemonlogger/Daemonlogger.html" +SRC_URI="http://www.snort.org/dl/${PN}/${P}.tar.gz + http://www.snort.org/users/roesch/code/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/libdnet + net-libs/libpcap" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup daemonlogger + enewuser daemonlogger -1 -1 /sbin/nologin daemonlogger +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-version.patch" +} + +src_install() { + dosbin daemonlogger + dodoc AUTHORS ChangeLog NEWS README + + keepdir /var/log/daemonlogger + + newinitd "${FILESDIR}"/daemonlogger-initd daemonlogger + newconfd "${FILESDIR}"/daemonlogger-confd daemonlogger + + fowners daemonlogger:daemonlogger /var/log/daemonlogger + fperms 0700 /var/log/daemonlogger +} |