summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-07-24 08:19:55 +0000
committerChristian Heim <phreak@gentoo.org>2007-07-24 08:19:55 +0000
commit2f697ae5a098139de21c294a5a74ac865b580fff (patch)
tree38028f99d1f65455d93458eee4eec852e8e2cd64 /sys-apps/rsbac-admin
parentstable x86, bug 1861202 (diff)
downloadgentoo-2-2f697ae5a098139de21c294a5a74ac865b580fff.tar.gz
gentoo-2-2f697ae5a098139de21c294a5a74ac865b580fff.tar.bz2
gentoo-2-2f697ae5a098139de21c294a5a74ac865b580fff.zip
Version bump, as a precaution for #186428. Also fixing the metadata.
(Portage version: 2.1.3_rc9)
Diffstat (limited to 'sys-apps/rsbac-admin')
-rw-r--r--sys-apps/rsbac-admin/ChangeLog8
-rw-r--r--sys-apps/rsbac-admin/files/digest-rsbac-admin-1.3.53
-rw-r--r--sys-apps/rsbac-admin/metadata.xml6
-rw-r--r--sys-apps/rsbac-admin/rsbac-admin-1.3.5.ebuild80
4 files changed, 95 insertions, 2 deletions
diff --git a/sys-apps/rsbac-admin/ChangeLog b/sys-apps/rsbac-admin/ChangeLog
index 8137f335aabe..ee0508a02591 100644
--- a/sys-apps/rsbac-admin/ChangeLog
+++ b/sys-apps/rsbac-admin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/rsbac-admin
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/ChangeLog,v 1.30 2007/06/20 17:05:40 kang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/ChangeLog,v 1.31 2007/07/24 08:19:55 phreak Exp $
+
+*rsbac-admin-1.3.5 (24 Jul 2007)
+
+ 24 Jul 2007; Christian Heim <phreak@gentoo.org> metadata.xml,
+ +rsbac-admin-1.3.5.ebuild:
+ Version bump, as a precaution for #186428. Also fixing the metadata.
*rsbac-admin-1.3.4-r1 (20 Jun 2007)
diff --git a/sys-apps/rsbac-admin/files/digest-rsbac-admin-1.3.5 b/sys-apps/rsbac-admin/files/digest-rsbac-admin-1.3.5
new file mode 100644
index 000000000000..df9766ea42d8
--- /dev/null
+++ b/sys-apps/rsbac-admin/files/digest-rsbac-admin-1.3.5
@@ -0,0 +1,3 @@
+MD5 5bd46bcd85c7b10c3830b4120d330266 rsbac-admin-1.3.5.tar.bz2 279824
+RMD160 b5bb373290082cf9df580592fe8008c182c6ffc4 rsbac-admin-1.3.5.tar.bz2 279824
+SHA256 da85c0353c5752171b3a9ac5946319528519b3d1dd49c9dc3cd2024cb08c383d rsbac-admin-1.3.5.tar.bz2 279824
diff --git a/sys-apps/rsbac-admin/metadata.xml b/sys-apps/rsbac-admin/metadata.xml
index 191d9d0695c5..c002bca61a72 100644
--- a/sys-apps/rsbac-admin/metadata.xml
+++ b/sys-apps/rsbac-admin/metadata.xml
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>hardened</herd>
+ <herd>hardened</herd>
+ <maintainer>
+ <name>Guillaume Destuynder</name>
+ <email>kang@gentoo.org</email>
+ </maintainer>
</pkgmetadata>
diff --git a/sys-apps/rsbac-admin/rsbac-admin-1.3.5.ebuild b/sys-apps/rsbac-admin/rsbac-admin-1.3.5.ebuild
new file mode 100644
index 000000000000..4b0a69583370
--- /dev/null
+++ b/sys-apps/rsbac-admin/rsbac-admin-1.3.5.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.3.5.ebuild,v 1.1 2007/07/24 08:19:55 phreak Exp $
+
+inherit eutils libtool toolchain-funcs
+
+IUSE="pam"
+
+# RSBAC Adming packet name
+#ADMIN=rsbac-admin-v${PV}
+
+DESCRIPTION="Rule Set Based Access Control (RSBAC) Admin Tools"
+HOMEPAGE="http://www.rsbac.org/ http://hardened.gentoo.org/rsbac"
+SRC_URI="http://download.rsbac.org/code/${PV}/rsbac-admin-${PV}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+NSS="1.3.4"
+
+DEPEND="dev-util/dialog
+ pam? ( sys-libs/pam )
+ sys-apps/baselayout"
+
+RDEPEND=">=sys-libs/ncurses-5.2"
+
+src_unpack() {
+ unpack $A
+ cd ${S}
+ elibtoolize
+}
+
+src_compile() {
+ local rsbacmakeargs
+ rsbacmakeargs="libs tools"
+ use pam && {
+ rsbacmakeargs="${makeargs} pam nss"
+ }
+ emake PREFIX=/usr ${rsbacmakeargs} || die "cannot build (${rsbacmakeargs})"
+}
+
+src_install() {
+ local rsabacinstallargs
+ rsbacinstallargs="headers-install libs-install tools-install"
+ use pam && {
+ rsbacinstallargs="${rsbacinstallargs} pam-install nss-install"
+ }
+ make PREFIX=/usr DESTDIR=${D} ${rsbacinstallargs} || \
+ die "cannot install (${rsbacinstallargs})"
+ insinto /etc
+ newins ${FILESDIR}/rsbac.conf rsbac.conf ${FILESDIR}/nsswitch.conf
+ dodir /secoff
+ keepdir /secoff
+ dodir /var/log/rsbac
+ keepdir /var/log/rsbac
+ #FHS compliance
+ dodir /usr/lib
+ mv ${D}/lib/librsbac.la ${D}/lib/librsbac.a ${D}/usr/lib
+ mv ${D}/lib/libnss_rsbac.la ${D}/lib/libnss_rsbac.a ${D}/usr/lib
+ gen_usr_ldscript librsbac.so
+ gen_usr_ldscript libnss_rsbac.so
+}
+
+pkg_postinst() {
+ enewgroup secoff 400 || die "problem adding group secoff"
+ enewuser secoff 400 /bin/bash /secoff secoff || \
+ die "problem adding user secoff"
+ enewgroup audit 404 || die "problem adding group audit"
+ enewuser audit 404 -1 /dev/null audit || \
+ die "problem adding user audit"
+
+ chmod 700 /secoff /var/log/rsbac || \
+ die "problem changing permissions of /secoff and/or /secoff/log"
+ chown secoff:secoff -R /secoff || \
+ die "problem changing ownership of /secoff"
+ einfo "It is suggested to run (for example) a separate copy of syslog-ng to"
+ einfo "log RSBAC messages, as user audit (uid 404) instead of using the deprecated"
+ einfo "rklogd. See http://www.rsbac.org/documentation/administration_examples/syslog-ng"
+ einfo "for more information."
+}