summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/rsbac-admin/rsbac-admin-1.2.4.ebuild')
-rw-r--r--sys-apps/rsbac-admin/rsbac-admin-1.2.4.ebuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys-apps/rsbac-admin/rsbac-admin-1.2.4.ebuild b/sys-apps/rsbac-admin/rsbac-admin-1.2.4.ebuild
index 4a7aa9cf8329..5d6880279b86 100644
--- a/sys-apps/rsbac-admin/rsbac-admin-1.2.4.ebuild
+++ b/sys-apps/rsbac-admin/rsbac-admin-1.2.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 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.2.4.ebuild,v 1.2 2005/03/21 17:30:04 kang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/rsbac-admin/rsbac-admin-1.2.4.ebuild,v 1.3 2005/04/04 11:25:06 kang Exp $
inherit eutils
@@ -16,6 +16,7 @@ SRC_URI="http://rsbac.org/download/code/v${PV}/rsbac-admin-v${PV}.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
+NSS="1.2.4"
DEPEND="dev-util/dialog
sys-libs/pam
@@ -42,6 +43,8 @@ src_compile() {
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"
+ LD="../../src/librsbac.so.$NSS" econf contrib/nss_rsbac \
+ || die "cannot conf nss_rsbac"
emake -C contrib/nss_rsbac || die "cannot make nss_rsbac"
emake -C contrib/pam_rsbac || die "cannot make pam_rsbac"
if use debug; then
@@ -72,13 +75,8 @@ src_install() {
}
pkg_postinst() {
- if ! groupmod secoff; then
- enewgroup secoff 400 || die "problem adding group secoff"
- fi
-
- if ! id secoff; then
- enewuser secoff 400 /bin/bash /secoff secoff || die "problem adding user secoff"
- fi
+ enewgroup secoff 400 || die "problem adding group secoff"
+ enewuser secoff 400 /bin/bash /secoff secoff || die "problem adding user secoff"
chmod 700 /secoff /secoff/log || die "problem changing permissions of /secoff and/or /secoff/log"
chown secoff:secoff -R /secoff || die "problem changing ownership of /secoff"