# Copyright 1999-2004 Gentoo Foundation # 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.10 2004/08/24 03:33:04 swegener Exp $ MY_P=${P/_/-} DESCRIPTION="Client side programs for SAL, the Secure Auditing for Linux project." HOMEPAGE="http://secureaudit.sourceforge.net/" SRC_URI="mirror://sourceforge/secureaudit/${MY_P/rc3/RC3}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="virtual/libc dev-libs/openssl" # 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 }