summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Destuynder <kang@gentoo.org>2004-06-15 20:03:45 +0000
committerGuillaume Destuynder <kang@gentoo.org>2004-06-15 20:03:45 +0000
commite404747d985686c9f7883e365b15e70372117faf (patch)
treebb04c6b2fb205b43ed74d69d30d20726a9bb7fec /sys-apps/rsbac-admin
parentFix bugs 18823 (lesspipe.sh misdetects troff files) and 38854 (lesspipe encha... (diff)
downloadgentoo-2-e404747d985686c9f7883e365b15e70372117faf.tar.gz
gentoo-2-e404747d985686c9f7883e365b15e70372117faf.tar.bz2
gentoo-2-e404747d985686c9f7883e365b15e70372117faf.zip
Version bump to 1.2.3_pre5
Diffstat (limited to 'sys-apps/rsbac-admin')
-rw-r--r--sys-apps/rsbac-admin/ChangeLog9
-rw-r--r--sys-apps/rsbac-admin/Manifest10
-rw-r--r--sys-apps/rsbac-admin/files/digest-rsbac-admin-1.2.3_pre51
-rw-r--r--sys-apps/rsbac-admin/files/rklogd.init41
-rw-r--r--sys-apps/rsbac-admin/files/rsbac.conf7
-rw-r--r--sys-apps/rsbac-admin/metadata.xml2
-rw-r--r--sys-apps/rsbac-admin/rsbac-admin-1.2.1.ebuild4
-rw-r--r--sys-apps/rsbac-admin/rsbac-admin-1.2.3_pre5.ebuild64
8 files changed, 131 insertions, 7 deletions
diff --git a/sys-apps/rsbac-admin/ChangeLog b/sys-apps/rsbac-admin/ChangeLog
index 55c394fa3b56..2bc237c4264f 100644
--- a/sys-apps/rsbac-admin/ChangeLog
+++ b/sys-apps/rsbac-admin/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/rsbac-admin
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/ChangeLog,v 1.3 2003/02/12 15:45:23 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/ChangeLog,v 1.4 2004/06/15 20:03:45 kang Exp $
+
+*rsbac-admin-1.2.3_pre5 (15 Jun 2004)
+
+ 15 Jun 2004; Guillaume Destuynder <kang@gentoo.org>
+ rsbac-admin-1.2.3_pre5.ebuild, files/rsbac.conf, files/rklogd.init:
+ Version bump, new ebuild submitted by Michal Purzynski <albeiro@gentoo.pl>
+ Now supports rklogd.
*rsbac-admin-1.2.1 (07 Dec 2002)
diff --git a/sys-apps/rsbac-admin/Manifest b/sys-apps/rsbac-admin/Manifest
index cfe61b98e751..caa548353623 100644
--- a/sys-apps/rsbac-admin/Manifest
+++ b/sys-apps/rsbac-admin/Manifest
@@ -1,4 +1,8 @@
-MD5 8ee6ab4c4af8b3757e9e660412208e13 ChangeLog 700
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 e8709320e728d90b869149ecaa7de5c1 rsbac-admin-1.2.1.ebuild 1128
+MD5 7deec57701167fcf31fc77dbdb10b2ab ChangeLog 963
+MD5 035ff78da2388cc0585f93ef2247332d metadata.xml 161
+MD5 8860c7a32605aba3e5da20e822113aac rsbac-admin-1.2.1.ebuild 1127
+MD5 6ecf9e60a4745df336a5d0856826d420 rsbac-admin-1.2.3_pre5.ebuild 2069
MD5 1ef42cb872e4d23179e0a27d6dbb8d02 files/digest-rsbac-admin-1.2.1 71
+MD5 39e9a96b67ef8a159eb266fa66065c76 files/rsbac.conf 165
+MD5 0e08e45fef77cb295acb86e5e9c572b8 files/rklogd.init 920
+MD5 bfb2ca643b1171d7eb526396d5b3401a files/digest-rsbac-admin-1.2.3_pre5 76
diff --git a/sys-apps/rsbac-admin/files/digest-rsbac-admin-1.2.3_pre5 b/sys-apps/rsbac-admin/files/digest-rsbac-admin-1.2.3_pre5
new file mode 100644
index 000000000000..330ba139ce4b
--- /dev/null
+++ b/sys-apps/rsbac-admin/files/digest-rsbac-admin-1.2.3_pre5
@@ -0,0 +1 @@
+MD5 f485f42734de66da4c50fb1b62d4d6a5 rsbac-admin-v1.2.3-pre5.tar.bz2 801138
diff --git a/sys-apps/rsbac-admin/files/rklogd.init b/sys-apps/rsbac-admin/files/rklogd.init
new file mode 100644
index 000000000000..87f54d263b55
--- /dev/null
+++ b/sys-apps/rsbac-admin/files/rklogd.init
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/files/rklogd.init,v 1.1 2004/06/15 20:03:45 kang Exp $
+
+opts="depend checkconfig start stop reload"
+
+depend() {
+ need clock hostname
+}
+
+checkconfig() {
+ if [ ! -d /secoff/log ]; then
+ eerror "Please first create /secoff/log directory"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting rklogd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/rklogd
+ eend $? "Failed to start rklogd"
+}
+
+stop() {
+ ebegin "Stopping rklogd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/rklogd.pid
+ eend $? "Failed to stop rklogd"
+ sleep 1 # needed for rklogd to stop in case we're restarting
+}
+
+reload() {
+ if [ ! -f /var/run/rklogd.pid ]; then
+ eerror "rklogd isn't running"
+ return 1
+ fi
+ ebegin "Reloading configuration and re-opening log files"
+ kill -HUP `cat /var/run/rklogd.pid` &>/dev/null
+ eend $?
+}
diff --git a/sys-apps/rsbac-admin/files/rsbac.conf b/sys-apps/rsbac-admin/files/rsbac.conf
new file mode 100644
index 000000000000..18e9e06f2407
--- /dev/null
+++ b/sys-apps/rsbac-admin/files/rsbac.conf
@@ -0,0 +1,7 @@
+# RSBAC menu configuration
+RSBACMOD="GEN FF RC AUTH CAP JAIL "
+DIALOG="dialog"
+# RSBACLANG is not set
+TMPDIR="/tmp"
+# RSBACPATH is not set
+# RSBACLOGFILE is not set
diff --git a/sys-apps/rsbac-admin/metadata.xml b/sys-apps/rsbac-admin/metadata.xml
index 96a2d586367d..191d9d0695c5 100644
--- a/sys-apps/rsbac-admin/metadata.xml
+++ b/sys-apps/rsbac-admin/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>base-system</herd>
+<herd>hardened</herd>
</pkgmetadata>
diff --git a/sys-apps/rsbac-admin/rsbac-admin-1.2.1.ebuild b/sys-apps/rsbac-admin/rsbac-admin-1.2.1.ebuild
index fd5289639ba1..1dd4a37773e7 100644
--- a/sys-apps/rsbac-admin/rsbac-admin-1.2.1.ebuild
+++ b/sys-apps/rsbac-admin/rsbac-admin-1.2.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.2.1.ebuild,v 1.6 2003/09/07 02:26:54 msterret Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.2.1.ebuild,v 1.7 2004/06/15 20:03:45 kang Exp $
IUSE="ncurses"
diff --git a/sys-apps/rsbac-admin/rsbac-admin-1.2.3_pre5.ebuild b/sys-apps/rsbac-admin/rsbac-admin-1.2.3_pre5.ebuild
new file mode 100644
index 000000000000..d8b6b50ff81c
--- /dev/null
+++ b/sys-apps/rsbac-admin/rsbac-admin-1.2.3_pre5.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.2.3_pre5.ebuild,v 1.1 2004/06/15 20:03:45 kang Exp $
+
+IUSE="ncurses"
+
+# RSBAC Adming packet name
+RSBACV=1.2.3
+REL="-pre5"
+
+DESCRIPTION="RSBAC Admin Tools"
+HOMEPAGE="http://www.gentoo.org/proj/en/hardened/rsbac/"
+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"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+DEPEND="dev-util/dialog
+ >=sys-kernel/rsbac-dev-sources-2.6.5"
+RDEPEND=">=sys-libs/ncurses-5.2"
+
+src_unpack() {
+ cd ${WORKDIR}
+ unpack rsbac-admin-v${RSBACV}${REL}.tar.bz2 || die "cannot unpack rsbac-admin tool"
+
+}
+
+src_compile() {
+ cd ${WORKDIR}/rsbac-admin-v${RSBACV}
+ econf || die "cannot ./configure RSBAC Admin Tools"
+ cd contrib/rsbac-klogd-2.0; econf || die "cannot ./configure rsbac-klogd"
+ cd ${WORKDIR}/rsbac-admin-v${RSBACV}
+ 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"
+
+ emake -C contrib/rsbac-klogd-2.0 || die "cannot make rsbac-klogd"
+}
+
+src_install() {
+ cd ${WORKDIR}/rsbac-admin-v${RSBACV}
+ einstall || die "cannot make install"
+ einstall -C contrib/rsbac-klogd-2.0 || die "cannot install rsbac-klogd"
+ instinto /etc
+ newinst ${FILESDIR}/rsbac.conf rsbac.conf
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/rklogd.init rklogd
+ dodir /secoff
+ dodir /secoff/log
+ keepdir /secoff
+ ewarn "Please see http://www.gentoo.org/proj/en/hardened/rsbac and emerge the corresponding rsbac-dev-sources before you start using RSBAC"
+}
+
+pkg_postinst() {
+ if ! groupmod secoff; then
+ groupadd -g 400 secoff || die "problem adding group secoff"
+ fi
+
+ if ! id secoff; then
+ useradd -c "Security Officer" -d /secoff -s /bin/bash -g secoff -u 400 secoff
+ assert "problem adding user secoff"
+ chmod 700 /secoff /secoff/log || die "problem changing permissions of /secoff and /secoff/log"
+ chown secoff:secoff -R /secoff || die "problem changing ownership of /secoff"
+ fi
+}