/[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.8 - (show annotations) (download)
Wed Feb 11 23:26:10 2009 UTC (5 years, 5 months ago) by gengor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Remove sys-apps/rsbac-admin

1 # Copyright 1999-2007 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.7 2007/07/24 09:41:34 kang Exp $
4
5 inherit eutils subversion
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
15 SLOT="0"
16 LICENSE="GPL-2"
17 KEYWORDS="~x86 ~amd64"
18 NSS="1.2.5"
19
20 DEPEND="dev-util/dialog
21 pam? ( sys-libs/pam )
22 sys-apps/baselayout"
23
24 RDEPEND=">=sys-libs/ncurses-5.2"
25
26 src_unpack() {
27 ESVN_REPO_URI="svn://rsbac.de/rsbac1/rsbac-admin/trunk"
28 subversion_src_unpack
29 cd ${WORKDIR}/${P}/${ADMIN}
30 }
31
32 src_compile() {
33 local rsbacmakeargs
34 rsbacmakeargs="libs tools"
35 use pam && {
36 rsbacmakeargs="${makeargs} pam nss"
37 }
38 emake PREFIX=/usr ${rsbacmakeargs} || die "cannot build (${rsbacmakeargs})"
39 }
40
41 src_install() {
42 local rsabacinstallargs
43 rsbacinstallargs="headers-install libs-install tools-install"
44 use pam && {
45 rsbacinstallargs="${rsbacinstallargs} pam-install nss-install"
46 }
47 make PREFIX=${D}/usr DESTDIR=${D} ${rsbacinstallargs} || \
48 die "cannot install (${rsbacinstallargs})"
49 insinto /etc
50 newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
51 dodir /secoff
52 keepdir /secoff
53 dodir /var/log/rsbac
54 keepdir /var/log/rsbac
55 }
56
57 pkg_postinst() {
58 enewgroup secoff 400 || die "problem adding group secoff"
59 enewuser secoff 400 /bin/bash /secoff secoff || \
60 die "problem adding user secoff"
61 enewgroup audit 404 || die "problem adding group audit"
62 enewuser audit 404 -1 /dev/null audit || \
63 die "problem adding user audit"
64
65 chmod 700 /secoff /var/log/rsbac || \
66 die "problem changing permissions of /secoff and/or /secoff/log"
67 chown secoff:secoff -R /secoff || \
68 die "problem changing ownership of /secoff"
69 einfo "It is suggested to run (for example) a separate copy of syslog-ng to"
70 einfo "log RSBAC messages, as user audit (uid 404) instead of using the deprecated"
71 einfo "rklogd. See http://rsbac.org/documentation/administration_examples/syslog-ng"
72 einfo "for more information."
73 }

  ViewVC Help
Powered by ViewVC 1.1.20