/[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.7 - (hide annotations) (download)
Tue Jul 24 09:41:34 2007 UTC (11 years, 2 months ago) by kang
Branch: MAIN
Changes since 1.6: +2 -2 lines
rsbac-admin-1.3.4-r1.ebuild stable (for 1.3.4+ rsbac kernels #186428)
(Portage version: 2.1.3_rc8)

1 kang 1.7 # Copyright 1999-2007 Gentoo Foundation
2 kang 1.1 # Distributed under the terms of the GNU General Public License v2
3 kang 1.7 # $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.2.99.ebuild,v 1.6 2007/07/12 05:10:21 mr_bones_ Exp $
4 kang 1.1
5 mr_bones_ 1.5 inherit eutils subversion
6 kang 1.1
7 kang 1.2 IUSE="pam"
8 kang 1.1
9     # RSBAC Adming packet name
10 kang 1.2 #ADMIN=rsbac-admin-v${PV}
11 kang 1.1
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 kang 1.4 KEYWORDS="~x86 ~amd64"
18 kang 1.1 NSS="1.2.5"
19    
20     DEPEND="dev-util/dialog
21     pam? ( sys-libs/pam )
22 kang 1.2 sys-apps/baselayout"
23 kang 1.1
24     RDEPEND=">=sys-libs/ncurses-5.2"
25    
26     src_unpack() {
27 kang 1.2 ESVN_REPO_URI="svn://rsbac.de/rsbac1/rsbac-admin/trunk"
28 kang 1.1 subversion_src_unpack
29     cd ${WORKDIR}/${P}/${ADMIN}
30     }
31    
32     src_compile() {
33 kang 1.2 local rsbacmakeargs
34     rsbacmakeargs="libs tools"
35 kang 1.1 use pam && {
36 kang 1.2 rsbacmakeargs="${makeargs} pam nss"
37 kang 1.1 }
38 kang 1.2 emake PREFIX=/usr ${rsbacmakeargs} || die "cannot build (${rsbacmakeargs})"
39 kang 1.1 }
40    
41     src_install() {
42 kang 1.2 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 kang 1.1 insinto /etc
50     newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
51     dodir /secoff
52     keepdir /secoff
53 kang 1.2 dodir /var/log/rsbac
54     keepdir /var/log/rsbac
55 kang 1.1 }
56    
57     pkg_postinst() {
58     enewgroup secoff 400 || die "problem adding group secoff"
59 kang 1.2 enewuser secoff 400 /bin/bash /secoff secoff || \
60     die "problem adding user secoff"
61     enewgroup audit 404 || die "problem adding group audit"
62 flameeyes 1.3 enewuser audit 404 -1 /dev/null audit || \
63 kang 1.2 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 kang 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20