blob: 36c1755e4fb7e33a9f7f591d797c5b9cc8c4521b (
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
37
38
39
|
# Copyright 1999-2012 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."
}
|