blob: 87f1eb09338703cebfb64f9580ea941f55324566 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sal-client/sal-client-1.0_rc3.ebuild,v 1.5 2003/06/22 05:25:36 seemant Exp $
MY_P=${P/_/-}
DESCRIPTION="Client side programs for SAL, the Secure Auditing for Linux project."
HOMEPAGE="http://secureaudit.sourceforge.net/"
SRC_URI="http://belnet.dl.sourceforge.net/sourceforge/secureaudit/${MY_P/rc3/RC3}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""
DEPEND="virtual/glibc
dev-libs/openssl"
RDEPEND="${DEPEND}"
# put a depend on hardened sources -- repoman doesn't like it, and we've got
# critical issues so blah
S=${WORKDIR}/sal-client
src_compile() {
emake || die
#make || die
}
src_install() {
dosbin ${S}/daemon/auditd
dosbin ${S}/client/auditclient
exeinto /etc/init.d; newexe ${FILESDIR}/sal-client-init auditd
insinto /etc/conf.d; newins ${FILESDIR}/auditd.confd auditd
mv ${S}/patches/README ${S}/patches/README.patches
mv ${S}/patches/README.todo ${S}/patches/README.todo.patches
dodoc ${S}/README
dodoc ${S}/README.todo
dodoc ${S}/patches/README.patches
dodoc ${S}/patches/README.todo.patches
}
pkg_postinst() {
echo
einfo "To create the necessary secure directory to hold your buffered logs,"
einfo "please remember to configure using the following line:"
echo
einfo "ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config"
echo
ewarn "Please note that using the above method is NOT secure. You will need to explore"
ewarn "either a crypto loopback filesystem, or other means of creating a secure jail"
ewarn "for these temporary log files. We assume no responsibility for security breaches"
ewarn "if you just use the above configure script."
}
pkg_config() {
einfo "Creating default temporary log directory in ${ROOT}/var/lib/auditd"
/bin/mkdir ${ROOT}/var/lib/auditd
/bin/chown root:root ${ROOT}/var/lib/auditd
/bin/chmod 0600 ${ROOT}/var/lib/auditd
}
|