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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Nov 17 22:21:18 2005 UTC (8 years, 10 months ago) by kang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
  marked 1.2.5 ~amd64. Updated SVN ebuild to match the new, new server.
(Portage version: 2.0.53_rc7)

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.3.ebuild,v 1.6 2005/01/24 10:29:36 kang Exp $
4
5 inherit eutils
6
7 IUSE="debug"
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 ~ppc"
19
20 DEPEND="dev-util/dialog
21 || ( sys-kernel/rsbac-sources
22 sys-kernel/rsbac-dev-sources )"
23
24
25 RDEPEND=">=sys-libs/ncurses-5.2"
26
27 src_unpack() {
28 cd ${WORKDIR}
29 unpack ${ADMIN}.tar.bz2 || die "cannot unpack rsbac-admin tool"
30 cd ${WORKDIR}/${ADMIN}
31 epatch "${FILESDIR}/rsbac-bugfix-v1.2.3-5.diff"
32 }
33
34 src_compile() {
35 cd ${WORKDIR}/${ADMIN}
36 econf || die "cannot ./configure RSBAC Admin Tools."
37 cd contrib/rsbac-klogd-2.0; econf || die "cannot ./configure rsbac-klogd"
38 cd ${WORKDIR}/${ADMIN}
39 emake || die "cannot make RSBAC Admin tools: Did you really already compiled a RSBAC-enabled kernel ? Please check the documentation at: http://hardened.gentoo.org/rsbac"
40 emake -C contrib/rsbac-klogd-2.0 || die "cannot make rsbac-klogd"
41 if use debug; then
42 emake -C contrib/regression || die "cannot make regression"
43 fi
44 }
45
46 src_install() {
47 cd ${WORKDIR}/${ADMIN}
48 einstall || die "cannot make install"
49 einstall -C contrib/rsbac-klogd-2.0 || die "cannot install rsbac-klogd"
50 if use debug; then
51 exeinto /usr/share/rsbac-admin-dev/regression
52 doexe contrib/regression/*_test
53 fi
54 insinto /etc
55 newins ${FILESDIR}/rsbac.conf rsbac.conf
56 exeinto /etc/init.d
57 newinitd ${FILESDIR}/rklogd.init rklogd
58
59 dodir /secoff
60 keepdir /secoff
61 dodir /secoff/log
62 keepdir /secoff/log
63 }
64
65 pkg_postinst() {
66 if ! groupmod secoff; then
67 enewgroup secoff 400 || die "problem adding group secoff"
68 fi
69
70 if ! id secoff; then
71 enewuser secoff 400 /bin/bash /secoff secoff || die "problem adding user secoff"
72 fi
73
74 chmod 700 /secoff /secoff/log || die "problem changing permissions of /secoff and/or /secoff/log"
75 chown secoff:secoff -R /secoff || die "problem changing ownership of /secoff"
76 }

  ViewVC Help
Powered by ViewVC 1.1.20