diff options
Diffstat (limited to 'net-analyzer/daemonlogger/daemonlogger-1.2.1.ebuild')
-rw-r--r-- | net-analyzer/daemonlogger/daemonlogger-1.2.1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/net-analyzer/daemonlogger/daemonlogger-1.2.1.ebuild b/net-analyzer/daemonlogger/daemonlogger-1.2.1.ebuild new file mode 100644 index 000000000..d3b3b3546 --- /dev/null +++ b/net-analyzer/daemonlogger/daemonlogger-1.2.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="Libpcap-based packet logger and soft tap" +HOMEPAGE="http://www.snort.org/users/roesch/Site/Daemonlogger/Daemonlogger.html" +SRC_URI="http://www.snort.org/users/roesch/code/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/libdnet + net-libs/libpcap" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup daemonlogger + enewuser daemonlogger -1 /dev/null -1 daemonlogger +} + +src_install () { + emake DESTDIR="${D}" install || die + dodir /etc/daemonlogger/ /var/log/daemonlogger/ || die + touch "${D}"/etc/daemonlogger/daemonlogger.bpf || die + fowners daemonlogger:daemonlogger /etc/daemonlogger/ \ + /etc/daemonlogger/daemonlogger.bpf \ + /var/log/daemonlogger/ || die + dodoc AUTHORS ChangeLog README || die + newconfd "${FILESDIR}/daemonlogger.confd.1" daemonlogger || die + newinitd "${FILESDIR}/daemonlogger.rc.1" daemonlogger || die +} + +pkg_postinst() { + elog "Configuration options can be set in /etc/conf.d/daemonlogger." +} |