diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2008-10-03 03:51:23 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2008-10-03 03:51:23 +0000 |
commit | ccb31c24afe7179ff5ff8ce02f5f2917a91ee894 (patch) | |
tree | b7f4d00463c2a2f9162e3b373c75c40bdfb05477 /sys-apps/policycoreutils | |
parent | initial commit of dev-python/sepolgen. (diff) | |
download | historical-ccb31c24afe7179ff5ff8ce02f5f2917a91ee894.tar.gz historical-ccb31c24afe7179ff5ff8ce02f5f2917a91ee894.tar.bz2 historical-ccb31c24afe7179ff5ff8ce02f5f2917a91ee894.zip |
Initial commit of policycoreutils 2.0.
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.24-gentoo-r3 x86_64
Diffstat (limited to 'sys-apps/policycoreutils')
-rw-r--r-- | sys-apps/policycoreutils/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/policycoreutils/Manifest | 11 | ||||
-rw-r--r-- | sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild | 107 |
3 files changed, 121 insertions, 5 deletions
diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutils/ChangeLog index 38ce9c58f7eb..dfe906c12461 100644 --- a/sys-apps/policycoreutils/ChangeLog +++ b/sys-apps/policycoreutils/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/policycoreutils # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.70 2008/05/29 17:58:30 hawking Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.71 2008/10/03 03:51:23 pebenito Exp $ + +*policycoreutils-2.0.55 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito <pebenito@gentoo.org> + +policycoreutils-2.0.55.ebuild: + Initial commit of policycoreutils 2.0. 29 May 2008; Ali Polatel <hawking@gentoo.org> policycoreutils-1.34.15.ebuild: diff --git a/sys-apps/policycoreutils/Manifest b/sys-apps/policycoreutils/Manifest index e8f4be9fc393..081310cebebc 100644 --- a/sys-apps/policycoreutils/Manifest +++ b/sys-apps/policycoreutils/Manifest @@ -2,14 +2,17 @@ Hash: SHA1 DIST policycoreutils-1.34.15.tgz 317142 RMD160 5ba97a754773a31740521d00fd84779c47f6f29a SHA1 dcedba4cd50c57ad3ff321a3ac91282026a2e967 SHA256 bdeda76caeb7ea2b8950b47991c85c9429d092e19f8be06d62366780548a3606 +DIST policycoreutils-2.0.55.tar.gz 306314 RMD160 f4f8e5eec52603e4a23424c7d0e419ee088bcad7 SHA1 b2eacc4d0e520749b182945ca7aebe537ac27ffc SHA256 4f1a880f4784bec8a06241438a854e5b438c039193e53d0c3b1b68324418f19f DIST policycoreutils-extra-1.18.tar.bz2 17109 RMD160 150a443b3942808ab3ef2a1fec8da789776861f5 SHA1 71174bb943b0c0dcdde2781ad8cf45b5e574d9d0 SHA256 0835baaef5ad93e130cf399048752f0821a545cf33ce53760ae46d43c043e8eb +DIST policycoreutils-extra-1.19.tar.bz2 19139 RMD160 26a696ce304392f3fb2345cf4937420dbd0cdc16 SHA1 8fd3e22bb58c36eabdd9f18d7c55c8a565a71cb1 SHA256 7461733113f273b297c843cd90447d24110650ed6f1bf2ccd4bc94b4807eac5c EBUILD policycoreutils-1.34.15.ebuild 2504 RMD160 677f8f6ff4a7c87ba95eff2f1454c8e42fc8614f SHA1 6a1f1e6e461fcff0a13d8e1b6f86c8946149f91f SHA256 ca32f22b03f0b8352f3a0cb44c94c9a44973cddb0b6677c0dc0756bec13b70b4 -MISC ChangeLog 11006 RMD160 fbe8b14cefcfdbd5cc1898cda97d3de42e596e20 SHA1 6624a7ed989c625e49b339cc69470a7144fc1b97 SHA256 fba4c6271853c5f23033b9bd8bd0344f99d747c8d9a07a961036b7bd20358cbb +EBUILD policycoreutils-2.0.55.ebuild 2724 RMD160 542a50e2ffb0e878379c854589356e185eb4cd87 SHA1 e44f56aa9893c78e9cabc910a683755895425b84 SHA256 861301d47b5efe8b417b0977f5a493d71b4b6e9673aef7c67e911097335134bb +MISC ChangeLog 11174 RMD160 24d5cefc657335e94a13abae1408e5e095b2401b SHA1 509597f58820872f5d9b42dfc0e4d34e68c4a78c SHA256 3d1b09d5955603a5e6b2312f1ca510530a078e20eac575de8116733a06da24e8 MISC metadata.xml 836 RMD160 421e492e89112f8436f8c5535aa2340cc8795929 SHA1 91c830f5358b9786f2b61e1967214f49212c4e3a SHA256 1d14250f52ecf63b67bed2289833d6f1ff2eba3cad9a80794b356e747917cdb7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) -iEYEARECAAYFAkg+7skACgkQQU4yORhF8iCOIACfcYI9iVyuzeW+qrl4wlEguoNy -fgsAoMWdSyvJIGIc8yxH9zNIUdabhSUt -=M1Fl +iEYEARECAAYFAkjllsEACgkQXifbxvYVSbQliACeIx2tfDrHjIciJUvJm0LH4gIy +C0gAn0f40RYv7jt3wb9zuNQJ5JwVfG7c +=DrCu -----END PGP SIGNATURE----- diff --git a/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild b/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild new file mode 100644 index 000000000000..968526ea8f0f --- /dev/null +++ b/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild,v 1.1 2008/10/03 03:51:23 pebenito Exp $ + +IUSE="nls" + +inherit eutils python + +EXTRAS_VER="1.19" +SEMNG_VER="2.0" +SELNX_VER="2.0" + +# BUGFIX_PATCH="${FILESDIR}/policycoreutils-1.30.6.diff" + +DESCRIPTION="SELinux core utilities" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="http://userspace.selinuxproject.org/releases/current/devel/${P}.tar.gz + mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86" + +COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER} + >=sys-libs/glibc-2.4 + >=sys-process/audit-1.5.1 + >=sys-libs/libcap-1.10-r10 + sys-libs/pam + =sys-libs/libsemanage-${SEMNG_VER}*" + +RDEPEND="${COMMON_DEPS} + dev-python/sepolgen" + +DEPEND="${COMMON_DEPS} + nls? ( sys-devel/gettext )" + +S2=${WORKDIR}/policycoreutils-extra + +src_unpack() { + unpack ${A} + cd "${S}" + + [ ! -z "${BUGFIX_PATCH}" ] && epatch "${BUGFIX_PATCH}" + + # rlpkg is more useful than fixfiles + 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" + + local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`" + + if ! useq nls; then + for i in ${SUBDIRS}; do + # disable locale stuff + sed -i -e s/-DUSE_NLS// "${S}/${i}/Makefile" \ + || die "${i} NLS sed failed" + done + fi + + # Gentoo Fixes + for i in ${SUBDIRS}; do + # add in CFLAGS + sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" "${S}/${i}/Makefile" \ + || die "${i} Makefile CFLAGS fix failed." + done +} + +src_compile() { + python_version + + einfo "Compiling policycoreutils" + emake -C "${S}" PYLIBVER="python${PYVER}" AUDIT_LOG_PRIV=y || die + einfo "Compiling policycoreutils-extra" + emake -C "${S2}" || die +} + +src_install() { + python_version + + einfo "Installing policycoreutils" + make DESTDIR="${D}" -C "${S}" PYLIBVER="python${PYVER}" AUDIT_LOG_PRIV=y install || die + einfo "Installing policycoreutils-extra" + make DESTDIR="${D}" -C "${S2}" install || die + + # remove redhat-style init script + rm -fR "${D}/etc/rc.d" + + # compatibility symlinks + dosym /sbin/setfiles /usr/sbin/setfiles + dosym /lib/rc/runscript_selinux.so /lib/rcscripts/runscript_selinux.so + + if has_version '<sys-libs/pam-0.99'; then + # install compat pam.d entries + # for older pam + make DESTDIR="${D}" -C "${S2}/pam.d" install || die + fi +} + +pkg_postinst() { + python_version + python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages +} + +pkg_postrm() { + python_version + python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages +} |