/[gentoo-x86]/sys-apps/rsbac-admin/rsbac-admin-1.2.5.ebuild
Gentoo

Contents of /sys-apps/rsbac-admin/rsbac-admin-1.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Jul 27 15:03:02 2007 UTC (7 years ago) by kang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
1.3.5 changed the way FHS, libtool and /lib was handled. fixed to reflect this change (or libs wouldn't work anyway.) Pruned old 1.2 ebuilds.
(Portage version: 2.1.3_rc8)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.2.5.ebuild,v 1.6 2006/02/16 10:24:00 kang Exp $
4
5 inherit eutils
6
7 IUSE="pam"
8
9 # RSBAC Adming packet name
10 #ADMIN=rsbac-admin-v${PV}
11
12 DESCRIPTION="Rule Set Based Access Control (RSBAC) Admin Tools"
13 HOMEPAGE="http://www.rsbac.org/ http://hardened.gentoo.org/rsbac"
14 SRC_URI="http://download.rsbac.org/code/${PV}/rsbac-admin-${PV}.tar.bz2"
15
16 SLOT="0"
17 LICENSE="GPL-2"
18 KEYWORDS="x86 amd64"
19 NSS="1.2.5"
20
21 DEPEND="dev-util/dialog
22 pam? ( sys-libs/pam )
23 sys-apps/baselayout"
24
25 RDEPEND=">=sys-libs/ncurses-5.2"
26
27 src_compile() {
28 local rsbacmakeargs
29 rsbacmakeargs="libs tools"
30 use pam && {
31 rsbacmakeargs="${makeargs} pam nss"
32 }
33 emake PREFIX=/usr ${rsbacmakeargs} || die "cannot build (${rsbacmakeargs})"
34 }
35
36 src_install() {
37 local rsabacinstallargs
38 rsbacinstallargs="headers-install libs-install tools-install"
39 use pam && {
40 rsbacinstallargs="${rsbacinstallargs} pam-install nss-install"
41 }
42 make PREFIX=${D}/usr DESTDIR=${D} ${rsbacinstallargs} || \
43 die "cannot install (${rsbacinstallargs})"
44 insinto /etc
45 newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
46 dodir /secoff
47 keepdir /secoff
48 dodir /var/log/rsbac
49 keepdir /var/log/rsbac
50 }
51
52 pkg_postinst() {
53 enewgroup secoff 400 || die "problem adding group secoff"
54 enewuser secoff 400 /bin/bash /secoff secoff || \
55 die "problem adding user secoff"
56 enewgroup audit 404 || die "problem adding group audit"
57 enewuser audit 404 -1 /dev/null audit || \
58 die "problem adding user audit"
59
60 chmod 700 /secoff /var/log/rsbac || \
61 die "problem changing permissions of /secoff and/or /secoff/log"
62 chown secoff:secoff -R /secoff || \
63 die "problem changing ownership of /secoff"
64 einfo "It is suggested to run (for example) a separate copy of syslog-ng to"
65 einfo "log RSBAC messages, as user audit (uid 404) instead of using the deprecated"
66 einfo "rklogd. See http://rsbac.org/documentation/administration_examples/syslog-ng"
67 einfo "for more information."
68 }

  ViewVC Help
Powered by ViewVC 1.1.20