/[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.5 - (hide annotations) (download)
Tue Jun 6 15:59:23 2006 UTC (12 years, 3 months ago) by mr_bones_
Branch: MAIN
Changes since 1.4: +2 -3 lines
only one inherit line allowed
(Portage version: 2.1_rc4)

1 kang 1.4 # Copyright 1999-2006 Gentoo Foundation
2 kang 1.1 # Distributed under the terms of the GNU General Public License v2
3 mr_bones_ 1.5 # $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.2.99.ebuild,v 1.4 2006/02/16 10:24:00 kang 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 kang 1.2
27 kang 1.1 src_unpack() {
28 kang 1.2 ESVN_REPO_URI="svn://rsbac.de/rsbac1/rsbac-admin/trunk"
29 kang 1.1 subversion_src_unpack
30     cd ${WORKDIR}/${P}/${ADMIN}
31     }
32    
33 kang 1.2
34 kang 1.1 src_compile() {
35 kang 1.2 local rsbacmakeargs
36     rsbacmakeargs="libs tools"
37 kang 1.1 use pam && {
38 kang 1.2 rsbacmakeargs="${makeargs} pam nss"
39 kang 1.1 }
40 kang 1.2 emake PREFIX=/usr ${rsbacmakeargs} || die "cannot build (${rsbacmakeargs})"
41 kang 1.1 }
42    
43     src_install() {
44 kang 1.2 local rsabacinstallargs
45     rsbacinstallargs="headers-install libs-install tools-install"
46     use pam && {
47     rsbacinstallargs="${rsbacinstallargs} pam-install nss-install"
48     }
49     make PREFIX=${D}/usr DESTDIR=${D} ${rsbacinstallargs} || \
50     die "cannot install (${rsbacinstallargs})"
51 kang 1.1 insinto /etc
52     newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
53     dodir /secoff
54     keepdir /secoff
55 kang 1.2 dodir /var/log/rsbac
56     keepdir /var/log/rsbac
57 kang 1.1 }
58    
59     pkg_postinst() {
60     enewgroup secoff 400 || die "problem adding group secoff"
61 kang 1.2 enewuser secoff 400 /bin/bash /secoff secoff || \
62     die "problem adding user secoff"
63     enewgroup audit 404 || die "problem adding group audit"
64 flameeyes 1.3 enewuser audit 404 -1 /dev/null audit || \
65 kang 1.2 die "problem adding user audit"
66    
67     chmod 700 /secoff /var/log/rsbac || \
68     die "problem changing permissions of /secoff and/or /secoff/log"
69     chown secoff:secoff -R /secoff || \
70     die "problem changing ownership of /secoff"
71     einfo "It is suggested to run (for example) a separate copy of syslog-ng to"
72     einfo "log RSBAC messages, as user audit (uid 404) instead of using the deprecated"
73     einfo "rklogd. See http://rsbac.org/documentation/administration_examples/syslog-ng"
74     einfo "for more information."
75 kang 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20