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

Contents of /sys-apps/rsbac-admin/rsbac-admin-1.3.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Feb 11 23:26:10 2009 UTC (5 years, 7 months ago) by gengor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove sys-apps/rsbac-admin

1 # Copyright 1999-2008 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.3.5-r1.ebuild,v 1.3 2008/02/15 17:46:42 kang Exp $
4
5 inherit eutils libtool multilib toolchain-funcs
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.3.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_unpack() {
28 unpack $A
29 cd ${S}
30 elibtoolize
31 }
32
33 src_compile() {
34 local rsbacmakeargs
35 rsbacmakeargs="libs tools"
36 use pam && {
37 rsbacmakeargs="${makeargs} pam nss"
38 }
39 emake PREFIX=/usr LIBDIR=/$(get_libdir) ${rsbacmakeargs} || die "cannot build (${rsbacmakeargs})"
40 }
41
42 src_install() {
43 local rsabacinstallargs
44 rsbacinstallargs="headers-install libs-install tools-install"
45 use pam && {
46 rsbacinstallargs="${rsbacinstallargs} pam-install nss-install"
47 }
48 make PREFIX=/usr LIBDIR=/$(get_libdir) DESTDIR=${D} ${rsbacinstallargs} || \
49 die "cannot install (${rsbacinstallargs})"
50 insinto /etc
51 newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
52 dodir /secoff
53 keepdir /secoff
54 dodir /var/log/rsbac
55 keepdir /var/log/rsbac
56 #FHS compliance
57 dodir /usr/$(get_libdir)
58 mv ${D}/$(get_libdir)/librsbac.{,l}a ${D}/usr/$(get_libdir)
59 mv ${D}/$(get_libdir)/libnss_rsbac.{,l}a ${D}/usr/$(get_libdir)
60 gen_usr_ldscript librsbac.so
61 gen_usr_ldscript libnss_rsbac.so
62 }
63
64 pkg_postinst() {
65 enewgroup secoff 400 || die "problem adding group secoff"
66 enewuser secoff 400 /bin/bash /secoff secoff || \
67 die "problem adding user secoff"
68 enewgroup audit 404 || die "problem adding group audit"
69 enewuser audit 404 -1 /dev/null audit || \
70 die "problem adding user audit"
71
72 chmod 700 /secoff /var/log/rsbac || \
73 die "problem changing permissions of /secoff and/or /secoff/log"
74 chown secoff:secoff -R /secoff || \
75 die "problem changing ownership of /secoff"
76 einfo "It is suggested to run (for example) a separate copy of syslog-ng to"
77 einfo "log RSBAC messages, as user audit (uid 404) instead of using the deprecated"
78 einfo "rklogd. See http://www.rsbac.org/documentation/administration_examples/syslog-ng"
79 einfo "for more information."
80 }

  ViewVC Help
Powered by ViewVC 1.1.20