diff options
-rw-r--r-- | sys-libs/libsemanage/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/libsemanage/Manifest | 31 | ||||
-rw-r--r-- | sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild | 115 |
3 files changed, 136 insertions, 17 deletions
diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog index 831f0b25267a..4da41616fdb8 100644 --- a/sys-libs/libsemanage/ChangeLog +++ b/sys-libs/libsemanage/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/libsemanage # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.82 2014/11/22 13:27:42 perfinion Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.83 2014/11/27 14:14:04 swift Exp $ + +*libsemanage-2.4_rc6-r2 (27 Nov 2014) + + 27 Nov 2014; Sven Vermeulen <swift@gentoo.org> +libsemanage-2.4_rc6-r2.ebuild: + Migrate store as soon as possible, but do not reload policy (bug 530864) *libsemanage-2.4_rc6-r1 (22 Nov 2014) diff --git a/sys-libs/libsemanage/Manifest b/sys-libs/libsemanage/Manifest index a2499a8e7682..13b4217d103d 100644 --- a/sys-libs/libsemanage/Manifest +++ b/sys-libs/libsemanage/Manifest @@ -13,25 +13,24 @@ EBUILD libsemanage-2.3-r3.ebuild 3537 SHA256 00c6826ae6646ec7ddcf6c176035a705896 EBUILD libsemanage-2.4_rc2.ebuild 3549 SHA256 282783f8df0962d5035954cedaed996c119ae8806fdb40d6e9656543e0b3943c SHA512 dc265873655347c4aed4da4072df9ae047a781b1d0aff042d0fc750f58211c7163081d8a3df12ee28e9e45925fa2de5f43957ad17c0a8f76e4bc819902a4b61b WHIRLPOOL 84058341789f3fe9bec16c2f18d8f67f4cf0a983244da199737d04dc4af1750b8dc5d50e9b1a7a5b2ed08255dae0961df722a45103b576c1a396c1233f9647d8 EBUILD libsemanage-2.4_rc5.ebuild 3549 SHA256 6a473e9697e607c3b03cc40c1ee1562716128daf099dcec82444af64a250e0ad SHA512 c57689f340b6174ac41edb75517197827cdb6cc0511e0968f6431355c6dc43b412c0628ea63a58fe084433c184e343312af9dc92a0435d5ca34ed2aeeba3a465 WHIRLPOOL 1464e71d68a32f854515d211f141f070e8a84f7d309823e3b9f84869fdc293f8d9b0198c6a3741afcdab56152799969a5437c7736bc594d448a668e4ff954fcb EBUILD libsemanage-2.4_rc6-r1.ebuild 3652 SHA256 8d0804838976890c6ae68c73ec221eb831ee03d9e5330bfe9dc303ab39948348 SHA512 66ef53255ff51cec3d6ab1e7e34a432d24e9d72777a2020de96f8ff0c31a4e99c728deaee664f3c306ad1e0fdc42c6baa6656986902572b537efa248597817ce WHIRLPOOL b98d3494a644324a264074427ba2ecd37c0898ad89d3b16146ae515d777dcc7178aed73c7ff091a1f50738bbb5cf49ab8e7e6a38bd28912ed20e3dbbf8026a64 +EBUILD libsemanage-2.4_rc6-r2.ebuild 4019 SHA256 b99b52c81fec829eba2b1a90c844ed5d3f2a5deda0c13c4780b31e231f23e98c SHA512 4f7752c6fc2953d8f0f98bff5f27e33875bbc56747646fb130b9f28bc97c4243a86cfb382f0e23032e9602f989fd4b0e29bc956e9f109edbe9d61ef79a1dddd9 WHIRLPOOL 6a995c3c51420c2480dfddb4f9b46674fdd01f657d496e4b6b71bdabb864c4d7dd6a19235e885d1fc23ba2ec5f45cfd3cc3528550010a7f58b5abc183216cd74 EBUILD libsemanage-2.4_rc6.ebuild 3559 SHA256 74bfae2b3a00d2f8867aa8b01418ab66192a6f0e95154a39c5be276a8e07e28b SHA512 b5f9ba1d57a13d2fe91ce5f6a027bfbe29dd07a205c303e8a1c35cd97dadff22fc81f81c02e160133f5ee65ae1fe8eb5c697a48d9328fdfb6a2d73de6f3a8f84 WHIRLPOOL 514e7fe1d288525f0a13ac71c98823a26ae9580de4ecf8725a18a3a97cce351c44d0828acd061d475d03d02843c01bb9d7bd18e43b7a9c23df8a984c48b3aac6 -MISC ChangeLog 11831 SHA256 b055bf1eda0e312e338f77e867e96b0a88f75408ec787c0579dd4172d5a2d8e4 SHA512 78a6e89adeec466b6c03c3b801a06bccbf0e61fb4b642d5824a779435879e66b8876262fb517578c60195f2ea73aaa7b8a58ba527db3d6e72f0c1fe0b5026736 WHIRLPOOL 82b475266956d399980c0b516f85c9a3d67c445886d41cd20db37ce27c52bfddf8b6c45eb974cdf6811917d980e3260478d4478aa8698cc4510f4e4c9dc46ede +MISC ChangeLog 12023 SHA256 cdb814e932de01e46d66a25fe817dcf9c38cf151ce2143a35e4398aa824e1646 SHA512 4f45e4403470f364b936803d60cd4a6d702c937a63c5507bf3e1e284d2c16e14630ba6e9410888ac535f0e53c84f8ec8a03432eab0f9059b60c3b2a0f148323a WHIRLPOOL e3971673f349439790773910ab78c08f99feb09c65bc398bccb84a2c28f7f712dfd61d4de9349a44e4f3ffe0f3ce107825ed0f777d1c2cd68812323ab3239f35 MISC metadata.xml 233 SHA256 c5a240155da9b7588e31ff668d3656486a16868654c076f7e1aea823a6b85ae9 SHA512 96a2805dfeebf2e9458e4b602da2cff381f9a3a2e05feb0b36d22b25cac15417e54c8f0572f14f3f944ca7d20377f20ef217ad51105e273a40525b1174df714a WHIRLPOOL 1e68c6d8f1f0446a8be9a001f4c89d641a2055fc9d440be286f753fbf8a216f9d0ed530694f1ff5859a1604eff125316fdcf9593cb91113e4735cc3fa8e8b9a3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0 -iQJ8BAEBCABmBQJUcI9PXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFMTYyREVBRDFDQ0REMTEzRjA0QjNENDky -QkJFRDlDQjFBNjhFRjU1AAoJECu+2csaaO9VccEQAKDVhrR4UXCABpWExBKJiCzM -RD2otLACzqc/ZdtylMwyZYCLZRXi8SB0H0Sqf0WjHn3aXTQ8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AocUL3kaCt5y1iMYK +QoOSaGTWYXiaVlMj5c7uD67w495gBmNYT/dx4lypy/Md+XjDddlN+JN/qpAWWxGv +dkRKq9wAR/ypH3Ubm4Omis7G7AXKSPMr/jSnbURMHCGKjCdLSY5BAbD1pNpmeVaF +WPjpBKiKCb0ffNt+UCy+miRYwZtDPTq6dpWbDOulMdcZm39BrCqGDBwh2F6gFQqt +IgWR/ukg1xXXL7mn71GBB2sGsQ/Z8usF0StIG6+uCZwfxCikIOHwWI4fDops406P +3quUUqOt82bQzl0ac5vd +=5RWY -----END PGP SIGNATURE----- diff --git a/sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild b/sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild new file mode 100644 index 000000000000..1a06cb000f87 --- /dev/null +++ b/sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild,v 1.1 2014/11/27 14:14:04 swift Exp $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 python3_2 python3_3 python3_4 ) + +inherit multilib python-r1 toolchain-funcs eutils multilib-minimal + +MY_P="${P//_/-}" + +SEPOL_VER="2.4_rc6" +SELNX_VER="2.4_rc6" + +DESCRIPTION="SELinux kernel and policy management library" +HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" +SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python" + +RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}] + >=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}] + >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] + >=dev-libs/ustr-1.0.4-r2[${MULTILIB_USEDEP}] + " +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + python? ( + >=dev-lang/swig-2.0.4-r1 + virtual/pkgconfig + ${PYTHON_DEPS} + )" + +# tests are not meant to be run outside of the +# full SELinux userland repo +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf" + echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf" + echo "# or debugging of policy." >> "${S}/src/semanage.conf" + echo "save-linked=false" >> "${S}/src/semanage.conf" + echo >> "${S}/src/semanage.conf" + echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf" + echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf" + echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf" + echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf" + echo "# would catch." >> "${S}/src/semanage.conf" + echo "expand-check=1" >> "${S}/src/semanage.conf" + echo >> "${S}/src/semanage.conf" + echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf" + echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf" + echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf" + echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf" + echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf" + echo "bzip-blocksize=0" >> "${S}/src/semanage.conf" + echo >> "${S}/src/semanage.conf" + echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf" + echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf" + echo "bzip-small=true" >> "${S}/src/semanage.conf" + + epatch "${FILESDIR}/0002-semanage_migrate_store-Python3-support.patch" # bug 529252 + + epatch_user + + multilib_copy_sources +} + +multilib_src_compile() { + emake \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ + all + + if multilib_is_native_abi && use python; then + building_py() { + python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH + emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLBIDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" "$@" + } + python_foreach_impl building_py swigify + python_foreach_impl building_py pywrap + fi +} + +multilib_src_install() { + emake \ + LIBDIR="${ED}/usr/$(get_libdir)" \ + SHLIBDIR="${ED}/usr/$(get_libdir)" \ + DESTDIR="${ED}" install + + if multilib_is_native_abi && use python; then + installation_py() { + emake DESTDIR="${ED}" LIBDIR="${ED}/usr/$(get_libdir)" \ + SHLIBDIR="${ED}/usr/$(get_libdir)" install-pywrap + } + python_foreach_impl installation_py + fi +} + +pkg_postinst() { + # Run the store migration without rebuilds + for POLICY_TYPE in ${POLICY_TYPES} ; do + if [ ! -d "${ROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; then + einfo "Migrating store ${POLICY_TYPE} (without policy rebuild)." + /usr/libexec/selinux/semanage_migrate_store -n -s "${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}" + fi + done +} |