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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 7 20:14:04 2012 UTC (2 years, 10 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Initial resurrection

(Portage version: 2.1.10.41/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="4"
6
7 inherit user multilib toolchain-funcs
8
9 DESCRIPTION="Rule Set Based Access Control (RSBAC) Admin Tools"
10 HOMEPAGE="http://www.rsbac.org/"
11 SRC_URI="http://www.rsbac.org/dl.php?file=code/${PV}/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="pam"
17
18 DEPEND="
19 dev-util/dialog
20 pam? ( sys-libs/pam )
21 sys-apps/baselayout"
22
23 RDEPEND="
24 ${DEPEND}
25 >=sys-libs/ncurses-5.2"
26
27 src_compile() {
28 local rsbacmakeargs="libs tools"
29 use pam && rsbacmakeargs="${makeargs} pam nss"
30 emake PREFIX=/usr LIBDIR=/$(get_libdir) ${rsbacmakeargs}
31 }
32
33 src_install() {
34 local rsbacinstallargs="headers-install libs-install tools-install"
35 use pam && rsbacinstallargs="${rsbacinstallargs} pam-install nss-install"
36 emake PREFIX=/usr LIBDIR=/$(get_libdir) DESTDIR="${D}" ${rsbacinstallargs}
37
38 insinto /etc
39 doins "${FILESDIR}"/rsbac.conf
40 doins "${FILESDIR}"/nsswitch.conf
41
42 dodir /secoff
43 keepdir /secoff
44
45 dodir /var/log/rsbac
46 keepdir /var/log/rsbac
47
48 #FHS compliance
49 dodir /usr/$(get_libdir)
50 mv "${D}"/$(get_libdir)/librsbac.{,l}a "${D}"/usr/$(get_libdir)
51 mv "${D}"/$(get_libdir)/libnss_rsbac.{,l}a "${D}"/usr/$(get_libdir)
52 gen_usr_ldscript librsbac.so
53 gen_usr_ldscript libnss_rsbac.so
54 }
55
56 pkg_postinst() {
57 enewgroup secoff 400
58 enewuser secoff 400 /bin/bash /secoff secoff
59 enewgroup audit 404
60 enewuser audit 404 -1 /dev/null audit
61
62 chmod 700 /secoff /var/log/rsbac
63 chown secoff:secoff -R /secoff
64
65 einfo "It is suggested to run (for example) a separate copy of syslog-ng to"
66 einfo "log RSBAC messages, as user audit (uid 404) instead of using the deprecated"
67 einfo "rklogd. See http://www.rsbac.org/documentation/administration_examples/syslog-ng"
68 einfo "for more information."
69 }

  ViewVC Help
Powered by ViewVC 1.1.20