summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2004-09-08 00:47:45 +0000
committerChris PeBenito <pebenito@gentoo.org>2004-09-08 00:47:45 +0000
commit7c0aca36484bb5266ba42cdd2677cdecde1a5fbc (patch)
tree5cb4ba1042d352e030c7478a317f9064bd123b0d /sys-apps/policycoreutils
parentnew upstream release (diff)
downloadhistorical-7c0aca36484bb5266ba42cdd2677cdecde1a5fbc.tar.gz
historical-7c0aca36484bb5266ba42cdd2677cdecde1a5fbc.tar.bz2
historical-7c0aca36484bb5266ba42cdd2677cdecde1a5fbc.zip
new upstream release
Diffstat (limited to 'sys-apps/policycoreutils')
-rw-r--r--sys-apps/policycoreutils/ChangeLog9
-rw-r--r--sys-apps/policycoreutils/Manifest13
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.12-r12
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.162
-rw-r--r--sys-apps/policycoreutils/files/policycoreutils-1.16-genhomedircon-compat.diff50
-rw-r--r--sys-apps/policycoreutils/policycoreutils-1.16.ebuild (renamed from sys-apps/policycoreutils/policycoreutils-1.12-r1.ebuild)18
6 files changed, 79 insertions, 15 deletions
diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutils/ChangeLog
index ce13aa37383d..b5d6e1fd20a7 100644
--- a/sys-apps/policycoreutils/ChangeLog
+++ b/sys-apps/policycoreutils/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/policycoreutils
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.33 2004/08/08 00:38:07 slarti Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.34 2004/09/08 00:47:45 pebenito Exp $
+
+*policycoreutils-1.16 (07 Sep 2004)
+
+ 07 Sep 2004; Chris PeBenito <pebenito@gentoo.org>
+ +files/policycoreutils-1.16-genhomedircon-compat.diff,
+ +policycoreutils-1.16.ebuild:
+ New upstream release.
08 Aug 2004; Tom Martin <slarti@gentoo.org> policycoreutils-1.12-r1.ebuild,
policycoreutils-1.12-r2.ebuild, policycoreutils-1.14.ebuild,
diff --git a/sys-apps/policycoreutils/Manifest b/sys-apps/policycoreutils/Manifest
index d14a646206f4..82f61d9a470f 100644
--- a/sys-apps/policycoreutils/Manifest
+++ b/sys-apps/policycoreutils/Manifest
@@ -1,13 +1,12 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 584bf3a6caf9c7ddc688c86bac9234f8 ChangeLog 5204
+MD5 2b43361a2a2c302fca77460dc5eb9722 ChangeLog 5409
MD5 2eeb1df30e87ba2861eddbdc34a48bb8 metadata.xml 836
-MD5 77f5acba6bf633b6aad9be6bedc1b24d policycoreutils-1.12-r1.ebuild 1597
MD5 b2b198550f93781096752f9975c0b065 policycoreutils-1.12-r2.ebuild 1651
MD5 9c17c3196df6f13d65e4c529ddaba233 policycoreutils-1.14.ebuild 1639
MD5 44a699f533824446b88029447bae0a74 policycoreutils-1.4-r1.ebuild 1554
-MD5 2873e1b7a7e78c17527934e8daa919e3 files/digest-policycoreutils-1.12-r1 144
+MD5 c6b7aab88f1954f0b7b323114ebff559 policycoreutils-1.16.ebuild 1769
MD5 2873e1b7a7e78c17527934e8daa919e3 files/digest-policycoreutils-1.12-r2 144
MD5 4f60b120c053af5e96772b15f2019cc5 files/digest-policycoreutils-1.14 144
MD5 b9c41decc251443bb9535f415b9b1896 files/digest-policycoreutils-1.4-r1 143
@@ -15,10 +14,12 @@ MD5 440f1bd6fdf23f39dde7bd50aefc5731 files/policycoreutils-1.10-genhomedircon-re
MD5 98c9b5772013d9f3a4e1fec905eed9c9 files/policycoreutils-1.14-genhomedircon-compat.diff 1520
MD5 01f1dcbb3909023b95a6ff521874fc61 files/runscript-selinux.diff 633
MD5 cf2a576401fcd4b41435a50549f43c40 files/selinux-init 907
+MD5 b3fb897ca820d6d94105ecf7103cab70 files/digest-policycoreutils-1.16 144
+MD5 308dfedc40a02c48b8cc5118feb8f9ef files/policycoreutils-1.16-genhomedircon-compat.diff 1744
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
-iD8DBQFBO7s2GFJQsIJWJy4RAsNnAJ9luAT03jCc1U8YNnaWgDuTKGV+OACfUCmP
-MoLGeAGBJokMzZfKVTJz/+M=
-=Dxj0
+iD8DBQFBPla9GFJQsIJWJy4RAnZWAJ4ryEcwO7dQKebEcwIvD9JkaLLYoACfVYga
+QBO/h98C4oS917SGuU5TPrA=
+=9aK9
-----END PGP SIGNATURE-----
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.12-r1 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.12-r1
deleted file mode 100644
index 7dac90c32def..000000000000
--- a/sys-apps/policycoreutils/files/digest-policycoreutils-1.12-r1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 db69756ca36d460ebe2fc0fd7cdbf2b9 policycoreutils-1.12.tgz 40518
-MD5 9a0de2580023c53d04aab04e96b420a8 policycoreutils-extra-1.5.tar.bz2 8704
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.16 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.16
new file mode 100644
index 000000000000..93bc71fc58e3
--- /dev/null
+++ b/sys-apps/policycoreutils/files/digest-policycoreutils-1.16
@@ -0,0 +1,2 @@
+MD5 37441e21fefa413b67cd13118022ea3e policycoreutils-1.16.tgz 44139
+MD5 f8838030033c7c223f9451ec800b1be5 policycoreutils-extra-1.8.tar.bz2 9938
diff --git a/sys-apps/policycoreutils/files/policycoreutils-1.16-genhomedircon-compat.diff b/sys-apps/policycoreutils/files/policycoreutils-1.16-genhomedircon-compat.diff
new file mode 100644
index 000000000000..ea94820b1687
--- /dev/null
+++ b/sys-apps/policycoreutils/files/policycoreutils-1.16-genhomedircon-compat.diff
@@ -0,0 +1,50 @@
+diff -urN policycoreutils-1.16.orig/scripts/genhomedircon policycoreutils-1.16/scripts/genhomedircon
+--- policycoreutils-1.16.orig/scripts/genhomedircon 2004-09-06 02:19:00.927379664 -0400
++++ policycoreutils-1.16/scripts/genhomedircon 2004-09-06 02:28:25.143605760 -0400
+@@ -87,7 +87,13 @@
+ return rc
+
+ try:
+- if len(sys.argv) != 3:
++ if len(sys.argv) == 2:
++ FILECONTEXTDIR="."
++ FILECONTEXTS=sys.argv[1]
++ elif len(sys.argv) == 3:
++ FILECONTEXTDIR=sys.argv[1]
++ FILECONTEXTS=sys.argv[2]
++ else:
+ print len(sys.argv)
+ usage("Incorrect parameters")
+
+@@ -97,13 +103,6 @@
+ else:
+ STARTING_UID=500
+
+- rc=commands.getstatusoutput("grep -h '^UID_MIN' /etc/login.defs | sed -e 's/^UID_MIN[^0-9]*//'")
+- if rc[0] == 0:
+- STARTING_UID=rc[1]
+- else:
+- STARTING_UID=500
+-
+- FILECONTEXTDIR=sys.argv[1]
+ prefixes = getPrefixes()
+
+ rc=commands.getstatusoutput("grep -h '^HOME' /etc/default/useradd")
+@@ -124,7 +123,7 @@
+ sed_dir = "h; s|^HOME_DIR|%s/[^/]+|; s|ROLE_|user_|" % (string.join(prefixes.keys(), "/[^/]+|; s|ROLE_|user_|; p; g; s|^HOME_DIR|"),)
+
+ # Fill in HOME_ROOT, HOME_DIR, and ROLE for users not explicitly defined in /etc/security/selinux/src/policy/users
+- rc=commands.getstatusoutput("sed -e \"/^HOME_ROOT/{%s}\" -e \"/^HOME_DIR/{%s}\" %s" % (sed_root, sed_dir, sys.argv[2]))
++ rc=commands.getstatusoutput("sed -e \"/^HOME_ROOT/{%s}\" -e \"/^HOME_DIR/{%s}\" %s" % (sed_root, sed_dir, FILECONTEXTS))
+ if rc[0] == 0:
+ print rc[1]
+ else:
+@@ -135,7 +134,7 @@
+
+ # Fill in HOME and ROLE for users that are defined
+ for u in users.keys():
+- update(sys.argv[2], u, users[u])
++ update(FILECONTEXTS, u, users[u])
+ except ValueError, error:
+ errorExit(string.join("ValueError ", error))
+ except IndexError, error:
diff --git a/sys-apps/policycoreutils/policycoreutils-1.12-r1.ebuild b/sys-apps/policycoreutils/policycoreutils-1.16.ebuild
index 89af62ebc386..555e8e67f8a8 100644
--- a/sys-apps/policycoreutils/policycoreutils-1.12-r1.ebuild
+++ b/sys-apps/policycoreutils/policycoreutils-1.16.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.12-r1.ebuild,v 1.2 2004/08/08 00:38:07 slarti Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.16.ebuild,v 1.1 2004/09/08 00:47:45 pebenito Exp $
IUSE="build"
inherit eutils
-EXTRAS_VER="1.5"
+EXTRAS_VER="1.8"
DESCRIPTION="SELinux core utilities"
HOMEPAGE="http://www.nsa.gov/selinux"
@@ -14,9 +14,10 @@ SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz
mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ppc sparc"
+KEYWORDS="~x86 ~ppc ~sparc"
DEPEND=">=sys-libs/libselinux-${PV}
+ sys-libs/libsepol
sys-devel/gettext
!build? ( sys-libs/pam )"
@@ -26,10 +27,15 @@ src_unpack() {
unpack ${A}
cd ${S}
- epatch ${FILESDIR}/policycoreutils-1.10-genhomedircon-reverse.diff
- # Change script paths POLICYDIR
- sed -i -e "s:/etc/security/selinux/src/policy/:${POLICYDIR}:g" ${S}/scripts/genhomedircon
+ # add compatibility for number of genhomedircon command line args
+ epatch ${FILESDIR}/policycoreutils-1.16-genhomedircon-compat.diff
+
+ # dont install fixfiles cron script
+ sed -i -e '/^all/s/fixfiles//' ${S}/scripts/Makefile \
+ || die "fixfiles sed 1 failed"
+ sed -i -e '/fixfiles/d' ${S}/scripts/Makefile \
+ || die "fixfiles sed 2 failed"
# fix up to accept Gentoo CFLAGS
local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"