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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed Nov 30 09:56:03 2005 UTC (12 years, 9 months ago) by chriswhite
Changes since 1.1: +35 -46 lines
*** empty log message ***

1 # Copyright 1999-2005 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.99.ebuild,v 1.2 2005/11/17 22:21:18 kang Exp $
4
5 inherit eutils
6 inherit subversion
7
8 IUSE="pam"
9
10 # RSBAC Adming packet name
11 #ADMIN=rsbac-admin-v${PV}
12
13 DESCRIPTION="Rule Set Based Access Control (RSBAC) Admin Tools"
14 HOMEPAGE="http://www.rsbac.org/ http://hardened.gentoo.org/rsbac"
15
16 SLOT="0"
17 LICENSE="GPL-2"
18 KEYWORDS="-*"
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
28 src_unpack() {
29 ESVN_REPO_URI="svn://rsbac.de/rsbac1/rsbac-admin/trunk"
30 subversion_src_unpack
31 cd ${WORKDIR}/${P}/${ADMIN}
32 }
33
34
35 src_compile() {
36 local rsbacmakeargs
37 rsbacmakeargs="libs tools"
38 use pam && {
39 rsbacmakeargs="${makeargs} pam nss"
40 }
41 emake PREFIX=/usr ${rsbacmakeargs} || die "cannot build (${rsbacmakeargs})"
42 }
43
44 src_install() {
45 local rsabacinstallargs
46 rsbacinstallargs="headers-install libs-install tools-install"
47 use pam && {
48 rsbacinstallargs="${rsbacinstallargs} pam-install nss-install"
49 }
50 make PREFIX=${D}/usr DESTDIR=${D} ${rsbacinstallargs} || \
51 die "cannot install (${rsbacinstallargs})"
52 insinto /etc
53 newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
54 dodir /secoff
55 keepdir /secoff
56 dodir /var/log/rsbac
57 keepdir /var/log/rsbac
58 }
59
60 pkg_postinst() {
61 enewgroup secoff 400 || die "problem adding group secoff"
62 enewuser secoff 400 /bin/bash /secoff secoff || \
63 die "problem adding user secoff"
64 enewgroup audit 404 || die "problem adding group audit"
65 enewuser audit 404 /bin/false /dev/null audit || \
66 die "problem adding user audit"
67
68 chmod 700 /secoff /var/log/rsbac || \
69 die "problem changing permissions of /secoff and/or /secoff/log"
70 chown secoff:secoff -R /secoff || \
71 die "problem changing ownership of /secoff"
72 einfo "It is suggested to run (for example) a separate copy of syslog-ng to"
73 einfo "log RSBAC messages, as user audit (uid 404) instead of using the deprecated"
74 einfo "rklogd. See http://rsbac.org/documentation/administration_examples/syslog-ng"
75 einfo "for more information."
76 }

  ViewVC Help
Powered by ViewVC 1.1.20