diff options
-rw-r--r-- | sys-libs/libsemanage/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libsemanage/libsemanage-2.0.46.ebuild | 121 | ||||
-rw-r--r-- | sys-libs/libsepol/Manifest | 10 |
3 files changed, 134 insertions, 5 deletions
diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog index b515036958c1..c35867c44c0f 100644 --- a/sys-libs/libsemanage/ChangeLog +++ b/sys-libs/libsemanage/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-libs/libsemanage # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.36 2011/06/30 10:40:52 blueness Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.37 2011/07/15 21:00:46 blueness Exp $ + +*libsemanage-2.0.46 (15 Jul 2011) + + 15 Jul 2011; Anthony G. Basile <blueness@gentoo.org> + +libsemanage-2.0.46.ebuild: + Bump to 2.0.46 - proxy for SwifT 30 Jun 2011; Anthony G. Basile <blueness@gentoo.org> libsemanage-2.0.45.ebuild: diff --git a/sys-libs/libsemanage/libsemanage-2.0.46.ebuild b/sys-libs/libsemanage/libsemanage-2.0.46.ebuild new file mode 100644 index 000000000000..827ae27066cd --- /dev/null +++ b/sys-libs/libsemanage/libsemanage-2.0.46.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.0.46.ebuild,v 1.1 2011/07/15 21:00:46 blueness Exp $ + +EAPI="3" +# Support for 4 depends on python.eclass +PYTHON_DEPEND="python? *" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="*-jython" + +inherit multilib python toolchain-funcs + +SEPOL_VER="2.0.42" +SELNX_VER="2.0.98" + +DESCRIPTION="SELinux kernel and policy management library" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="http://userspace.selinuxproject.org/releases/20101221/devel/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python ruby" + +RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} + >=sys-libs/libselinux-${SELNX_VER} + dev-libs/ustr + ruby? ( dev-lang/ruby )" +DEPEND="${RDEPEND} + ruby? ( dev-lang/swig )" + +# tests are not meant to be run outside of the +# full SELinux userland repo +RESTRICT="test" + +pkg_setup() { + if use python; then + python_pkg_setup + fi +} + +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" +} + +src_compile() { + emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die + + if use python; then + python_copy_sources src + building() { + emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" "$@" + } + python_execute_function -s --source-dir src building -- swigify + python_execute_function -s --source-dir src building -- pywrap + fi + + if use ruby; then + emake -C src CC="$(tc-getCC)" rubywrap || die + fi +} + +src_install() { + emake \ + DESTDIR="${D}" \ + LIBDIR="${D}usr/$(get_libdir)" \ + SHLIBDIR="${D}$(get_libdir)" \ + install || die + dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die + + if use python; then + installation() { + emake \ + DESTDIR="${D}" \ + PYLIBVER="python$(python_get_version)" \ + LIBDIR="${D}usr/$(get_libdir)" \ + install-pywrap + } + python_execute_function -s --source-dir src installation + fi + + if use ruby; then + emake -C src \ + DESTDIR="${D}" \ + LIBDIR="${D}usr/$(get_libdir)" \ + install-rubywrap || die + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize semanage.py + fi +} + +pkg_postrm() { + if use python; then + python_mod_cleanup semanage.py + fi +} diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest index 71a3e59d9cdf..9b79140d96b9 100644 --- a/sys-libs/libsepol/Manifest +++ b/sys-libs/libsepol/Manifest @@ -5,15 +5,17 @@ AUX libsepol-2.0.32-expand_rule.diff 1330 RMD160 751ee7e7bbb38a2e9b0773fe6e6d858 DIST libsepol-2.0.32.tar.gz 189663 RMD160 7baf263024446f608eecd1ecc4d8106e01765688 SHA1 482b13b721da2954ffeef9f8ed3b2e4ea1953cad SHA256 ed6ca0e33b14fc5ffbf4aa5515131625248f307e7fc837b1e4fb9c717e6b8672 DIST libsepol-2.0.37.tar.gz 192872 RMD160 74b2c0224050ec348019437fa6ba3b0064e44837 SHA1 839e0f1c71bac85d6435de8230ced3b8780ee954 SHA256 106859378bb23298705ee7c664b50d941e92c01696af6dd3b3b05843ba5e2fa4 DIST libsepol-2.0.41.tar.gz 194700 RMD160 ca93bb9b05ec3e144dc1015dfc60fb52ff12d97e SHA1 0afe6285e93092f6ca1c62d60ca0748b97279845 SHA256 a84c2d50684b0c33e5499fa442c5eda1638ba509aede712b813c64b1134d41ce +DIST libsepol-2.0.42.tar.gz 194808 RMD160 f60f4e614fe00067dd4e7911d69a7ce00bbefad0 SHA1 369a3d0b4cd0611724712bea04803071a89c0c37 SHA256 083097a12b090ecdf1485aff51c81e2248d3b835596945ef26d0439c560de669 EBUILD libsepol-2.0.32.ebuild 1082 RMD160 f6cacf26d7c8ef3f25aa3e18492a2c526dc64b33 SHA1 573f5aae447c6df33fa2efdd8d8805fe666a2b38 SHA256 ee76e7e51712004a381efd681b0c3e8003acb617d8eedf53c48ed68e0c6ced69 EBUILD libsepol-2.0.37.ebuild 1085 RMD160 abcf558a9f56461fe8b124cbd9d172c7082c8b1e SHA1 ab61eae841dfbae85370a740c9f6eb202ef52e0a SHA256 7865f4eac9fafb5d5198eb1de9ad56fc2c8177ca17308d76fee9544b2b4834d3 EBUILD libsepol-2.0.41.ebuild 1004 RMD160 ac43e5e4ca1ec3d3a85c749fe6440281ebbc19c6 SHA1 5d82fe06d528e49e2f60483385b40e4c65e41d67 SHA256 1bd8690f0a70b4b2e7d1f9512b85d97697df66bae9d565f577ccf17612dddcfc -MISC ChangeLog 5540 RMD160 b4e2cb2315f0a27e61406e8f980f1fc0edbb749f SHA1 f45972d129b068ad2480feefe54a6949555bc752 SHA256 cc19dac1c9eaada7ff872625e711999e924bade29b329d5051206a93d96d0e99 +EBUILD libsepol-2.0.42.ebuild 1006 RMD160 78ed16a980ce1f4947bdf3b97101c87cfe8a1622 SHA1 d22aac4657c05fbfd6db213254c5231ac8cf99da SHA256 d02f39399d3c68071687e8a395c29eb722cb90fa5785605851407e784468073c +MISC ChangeLog 5688 RMD160 a9dc6704d4db34075e4af46c9538ba86b15a20f2 SHA1 19055f681017198072ad59fc544d0c0c900710be SHA256 568c48384aa2469566db8380b8b2b581dd66dca620d48f8cba5d503fe132c96d MISC metadata.xml 255 RMD160 63b24fd464aad68d53e3cfcc78a1ef87d77e6cd3 SHA1 9963929c485768b00c0d6cbbaad2193aa3c31149 SHA256 34be115c595485e6f130e95be8e55b8cad13a3a80a04b538c42f3544ad0936c9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEAREIAAYFAk3gkSQACgkQl5yvQNBFVTV8LACbB6Nsxyt2AkIKX5IwCVLri0fa -mPAAoJ3fOsBHst7s2QDa1fc6pVDelRzu -=ZQMv +iEYEAREIAAYFAk4gqxYACgkQl5yvQNBFVTX/dgCfYjfHvt6P6h5fi/686hTGQxRT +CHwAmgNzhBNY8XvtLUuAzQ2Qh43N0Ifz +=Zn+G -----END PGP SIGNATURE----- |