From: Anthony G. Basile Date: Sat, 7 Jan 2012 20:14:04 +0000 (+0000) Subject: Initial resurrection X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b647e563b893cd51d1a8de8ee9efec48c459e20;p=gentoo.git Initial resurrection Package-Manager: portage-2.1.10.41/cvs/Linux x86_64 --- diff --git a/sys-apps/rsbac-admin/ChangeLog b/sys-apps/rsbac-admin/ChangeLog new file mode 100644 index 000000000000..d3077828c66b --- /dev/null +++ b/sys-apps/rsbac-admin/ChangeLog @@ -0,0 +1,9 @@ + + +*rsbac-admin-1.4.6 (07 Jan 2012) + + 07 Jan 2012; Anthony G. Basile + +rsbac-admin-1.4.6.ebuild, +files/nsswitch.conf, +files/rsbac.conf, + +metadata.xml: + Initial resurrection + diff --git a/sys-apps/rsbac-admin/Manifest b/sys-apps/rsbac-admin/Manifest new file mode 100644 index 000000000000..023c9dbcbbcb --- /dev/null +++ b/sys-apps/rsbac-admin/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX nsswitch.conf 487 RMD160 b45ed6660f60c6b3fbee2218d250e27f7746a2d1 SHA1 ff7f331e26b5008b1665c8a1857eef924d511e76 SHA256 a92f145853fab10e1110b2ff3607a411a6fb4b4b97927d391e788e0bff019954 +AUX rsbac.conf 209 RMD160 fb3ae78191f308ef488832eb844c6f3c7c3ccedf SHA1 82fc8195e237d749cd86650699d0ee172f7ddc18 SHA256 7ce39c310463001cffb2f8db01c8ff5154abdbede48a7e5c7b7a0252c8a80c19 +DIST rsbac-admin-1.4.6.tar.bz2 325844 RMD160 62107c09d2b824d0283b6433241085e13a34892b SHA1 7e9738a77068c01975b9dc0dc5b77b23c53c8c2e SHA256 5edde3c5f84a3ebca8ff2c1164665dd4386d8cae1e215cd0784b613867ef03c1 +EBUILD rsbac-admin-1.4.6.ebuild 1924 RMD160 8431289a27babc2a7d8690145da88043cd0deca4 SHA1 a7a1880e134c5c8bccc043dcaa0dcd7c8502cb3e SHA256 8fdf9d95c6ad049d2fa552d814faf93fcbfbf1992ae3355c63520ec589c9ae71 +MISC ChangeLog 202 RMD160 de115e1ca36fc1c608af101168d7af0897be6e08 SHA1 d84f31aecf2f41e302338d2b37d529833fba1fe0 SHA256 c961af11d185bace42169e3420052c0c3af7d9993f33588a894106bfd0a6eccd +MISC metadata.xml 349 RMD160 74c5b7d98c48912b9e8114a27122085890f2b4f0 SHA1 a0bebf1fca1f7d2c2caba50e49016fb9049f4c4e SHA256 8ee9c6d3ede9f9980227d67737a2b2d5a73eaa1594aa945790566ea5703ce807 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iEYEAREIAAYFAk8Ip5cACgkQl5yvQNBFVTUWKgCgjIJfq6ZrX7pahmTHZntDUXB/ +V7gAn2y51dPG5txCc0Wm8i06UVv8ZJMO +=WM0u +-----END PGP SIGNATURE----- diff --git a/sys-apps/rsbac-admin/files/nsswitch.conf b/sys-apps/rsbac-admin/files/nsswitch.conf new file mode 100644 index 000000000000..43c5b172f0ab --- /dev/null +++ b/sys-apps/rsbac-admin/files/nsswitch.conf @@ -0,0 +1,24 @@ +# /etc/nsswitch.conf: + +passwd: compat rsbac [NOTFOUND=continue SUCCESS=continue] +shadow: compat rsbac +group: compat rsbac [NOTFOUND=continue SUCCESS=continue] + +# passwd: db files nis +# shadow: db files nis +# group: db files nis + +hosts: files dns +networks: files dns + +services: db files +protocols: db files +rpc: db files +ethers: db files + +netmasks: files +netgroup: files +bootparams: files + +automount: files +aliases: files diff --git a/sys-apps/rsbac-admin/files/rsbac.conf b/sys-apps/rsbac-admin/files/rsbac.conf new file mode 100644 index 000000000000..e646c003898a --- /dev/null +++ b/sys-apps/rsbac-admin/files/rsbac.conf @@ -0,0 +1,8 @@ +# RSBAC menu configuration +# Thu Jun 17 01:36:19 CEST 2004 +RSBACMOD="PAX DAZ FF RC ACL AUTH CAP JAIL RES " +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 new file mode 100644 index 000000000000..b7f395284f49 --- /dev/null +++ b/sys-apps/rsbac-admin/metadata.xml @@ -0,0 +1,12 @@ + + + + hardened + + blueness@gentoo.org + Anthony G. Basile + + + Administrative tool for RSBAC system + + diff --git a/sys-apps/rsbac-admin/rsbac-admin-1.4.6.ebuild b/sys-apps/rsbac-admin/rsbac-admin-1.4.6.ebuild new file mode 100644 index 000000000000..965c2dafc4be --- /dev/null +++ b/sys-apps/rsbac-admin/rsbac-admin-1.4.6.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2012 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.4.6.ebuild,v 1.1 2012/01/07 20:14:04 blueness Exp $ + +EAPI="4" + +inherit user multilib toolchain-funcs + +DESCRIPTION="Rule Set Based Access Control (RSBAC) Admin Tools" +HOMEPAGE="http://www.rsbac.org/" +SRC_URI="http://www.rsbac.org/dl.php?file=code/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pam" + +DEPEND=" + dev-util/dialog + pam? ( sys-libs/pam ) + sys-apps/baselayout" + +RDEPEND=" + ${DEPEND} + >=sys-libs/ncurses-5.2" + +src_compile() { + local rsbacmakeargs="libs tools" + use pam && rsbacmakeargs="${makeargs} pam nss" + emake PREFIX=/usr LIBDIR=/$(get_libdir) ${rsbacmakeargs} +} + +src_install() { + local rsbacinstallargs="headers-install libs-install tools-install" + use pam && rsbacinstallargs="${rsbacinstallargs} pam-install nss-install" + emake PREFIX=/usr LIBDIR=/$(get_libdir) DESTDIR="${D}" ${rsbacinstallargs} + + insinto /etc + doins "${FILESDIR}"/rsbac.conf + doins "${FILESDIR}"/nsswitch.conf + + dodir /secoff + keepdir /secoff + + dodir /var/log/rsbac + keepdir /var/log/rsbac + + #FHS compliance + dodir /usr/$(get_libdir) + mv "${D}"/$(get_libdir)/librsbac.{,l}a "${D}"/usr/$(get_libdir) + mv "${D}"/$(get_libdir)/libnss_rsbac.{,l}a "${D}"/usr/$(get_libdir) + gen_usr_ldscript librsbac.so + gen_usr_ldscript libnss_rsbac.so +} + +pkg_postinst() { + enewgroup secoff 400 + enewuser secoff 400 /bin/bash /secoff secoff + enewgroup audit 404 + enewuser audit 404 -1 /dev/null audit + + chmod 700 /secoff /var/log/rsbac + chown secoff:secoff -R /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." +}