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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Feb 16 10:24:00 2006 UTC (8 years, 5 months ago) by kang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
1.2.5 stable, fixed KEYWORDS.stupid, removed 1.2.4
(Portage version: 2.1_pre4-r1)

1 # Copyright 1999-2005 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.4.ebuild,v 1.6 2005/05/05 15:57:06 swegener Exp $
4
5 inherit eutils
6
7 IUSE="debug 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://rsbac.org/download/code/v${PV}/rsbac-admin-v${PV}.tar.bz2"
15
16 SLOT="0"
17 LICENSE="GPL-2"
18 KEYWORDS="x86"
19 NSS="1.2.4"
20
21 DEPEND="dev-util/dialog
22 pam? ( sys-libs/pam )
23 sys-apps/baselayout
24 || (
25 >=sys-kernel/rsbac-sources-2.4.29-r1
26 >=sys-kernel/rsbac-dev-sources-2.6.10-r3
27 )"
28
29 RDEPEND=">=sys-libs/ncurses-5.2"
30
31 src_unpack() {
32 cd ${WORKDIR}
33 unpack ${ADMIN}.tar.bz2 || die "cannot unpack rsbac-admin tool"
34 cd ${WORKDIR}/${ADMIN}
35 }
36
37 src_compile() {
38 cd ${WORKDIR}/${ADMIN}
39 econf || die "cannot ./configure RSBAC Admin Tools."
40 cd ${WORKDIR}/${ADMIN}/contrib/rsbac-klogd-2.0; econf || die "cannot ./configure rsbac-klogd"
41 cd ${WORKDIR}/${ADMIN}/contrib/nss_rsbac; econf || die "cannot ./configure nss_rsbac"
42 cd ${WORKDIR}/${ADMIN}
43 emake || die "cannot make RSBAC Admin tools: Did you really already compiled
44 a RSBAC-enabled kernel ? Please check the documentation at:
45 http://hardened.gentoo.org/rsbac"
46 emake -C contrib/rsbac-klogd-2.0 || die "cannot make rsbac-klogd"
47 cd contrib/nss_rsbac
48 LD="../../src/librsbac.so.$NSS" econf || die "cannot conf nss_rsbac"
49 cd ${WORKDIR}/${ADMIN}
50 emake -C contrib/nss_rsbac || die "cannot make nss_rsbac"
51 use pam && {
52 emake -C contrib/pam_rsbac || die "cannot make pam_rsbac"
53 }
54 if use debug; then
55 emake -C contrib/regression || die "cannot make regression"
56 fi
57 }
58
59 src_install() {
60 cd ${WORKDIR}/${ADMIN}
61 einstall || die "cannot make install"
62 einstall -C contrib/rsbac-klogd-2.0 || die "cannot install rsbac-klogd"
63 einstall -C contrib/nss_rsbac || die "cannot install nss_rsbac"
64 if use debug; then
65 exeinto /usr/share/rsbac-admin-dev/regression
66 doexe contrib/regression/*_test
67 fi
68 insinto /etc
69 newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
70 exeinto /etc/init.d
71 newinitd ${FILESDIR}/rklogd.init rklogd
72 use pam && {
73 insinto /lib/security
74 newins ${WORKDIR}/${ADMIN}/contrib/pam_rsbac/pam_rsbac.so pam_rsbac.so
75 }
76 dodir /secoff
77 keepdir /secoff
78 dodir /secoff/log
79 keepdir /secoff/log
80 }
81
82 pkg_postinst() {
83 enewgroup secoff 400 || die "problem adding group secoff"
84 enewuser secoff 400 /bin/bash /secoff secoff || die "problem adding user secoff"
85
86 chmod 700 /secoff /secoff/log || die "problem changing permissions of /secoff and/or /secoff/log"
87 chown secoff:secoff -R /secoff || die "problem changing ownership of /secoff"
88 }

  ViewVC Help
Powered by ViewVC 1.1.20