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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jan 19 13:58:00 2005 UTC (10 years, 1 month ago) by kang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Cleaned dir, marked ~ppc.

1 # Copyright 1999-2004 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_pre5.ebuild,v 1.3 2004/07/15 02:30:02 agriffis Exp $
4
5 IUSE=""
6
7 # RSBAC Adming packet name
8 RSBACV=1.2.3
9 REL="-pre5"
10
11 DESCRIPTION="RSBAC Admin Tools"
12 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/rsbac/"
13 SRC_URI="mirror://rsbac-admin-v${RSBACV}${REL}.tar.bz2 http://zeus.polsl.gliwice.pl/~albeiro/rsbac/v1.2.3/rsbac-admin-v${RSBACV}${REL}.tar.bz2"
14
15 SLOT="0"
16 LICENSE="GPL-2"
17 KEYWORDS="~x86"
18
19 DEPEND="dev-util/dialog
20 >=sys-kernel/rsbac-dev-sources-2.6.5"
21 RDEPEND=">=sys-libs/ncurses-5.2"
22
23 src_unpack() {
24 cd ${WORKDIR}
25 unpack rsbac-admin-v${RSBACV}${REL}.tar.bz2 || die "cannot unpack rsbac-admin tool"
26
27 }
28
29 src_compile() {
30 cd ${WORKDIR}/rsbac-admin-v${RSBACV}
31 econf || die "cannot ./configure RSBAC Admin Tools"
32 cd contrib/rsbac-klogd-2.0; econf || die "cannot ./configure rsbac-klogd"
33 cd ${WORKDIR}/rsbac-admin-v${RSBACV}
34 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"
35
36 emake -C contrib/rsbac-klogd-2.0 || die "cannot make rsbac-klogd"
37 }
38
39 src_install() {
40 cd ${WORKDIR}/rsbac-admin-v${RSBACV}
41 einstall || die "cannot make install"
42 einstall -C contrib/rsbac-klogd-2.0 || die "cannot install rsbac-klogd"
43 instinto /etc
44 newinst ${FILESDIR}/rsbac.conf rsbac.conf
45 exeinto /etc/init.d
46 newexe ${FILESDIR}/rklogd.init rklogd
47 dodir /secoff
48 dodir /secoff/log
49 keepdir /secoff
50 ewarn "Please see http://www.gentoo.org/proj/en/hardened/rsbac and emerge the corresponding rsbac-dev-sources before you start using RSBAC"
51 }
52
53 pkg_postinst() {
54 if ! groupmod secoff; then
55 groupadd -g 400 secoff || die "problem adding group secoff"
56 fi
57
58 if ! id secoff; then
59 useradd -c "Security Officer" -d /secoff -s /bin/bash -g secoff -u 400 secoff
60 assert "problem adding user secoff"
61 chmod 700 /secoff /secoff/log || die "problem changing permissions of /secoff and /secoff/log"
62 chown secoff:secoff -R /secoff || die "problem changing ownership of /secoff"
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20