summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Vermeulen <swift@gentoo.org>2013-11-04 21:54:54 +0000
committerSven Vermeulen <swift@gentoo.org>2013-11-04 21:54:54 +0000
commit5d27b13f03f8e327d7b7aabbf0cd6b1895b55f84 (patch)
tree47adbed3be5f7028c1f6bf5abab467907d62f552 /sys-libs
parentNew libselinux release (diff)
downloadhistorical-5d27b13f03f8e327d7b7aabbf0cd6b1895b55f84.tar.gz
historical-5d27b13f03f8e327d7b7aabbf0cd6b1895b55f84.tar.bz2
historical-5d27b13f03f8e327d7b7aabbf0cd6b1895b55f84.zip
New libsemanage release
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x2EDD52403B68AF47
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libsemanage/ChangeLog7
-rw-r--r--sys-libs/libsemanage/Manifest22
-rw-r--r--sys-libs/libsemanage/libsemanage-2.2.ebuild139
3 files changed, 162 insertions, 6 deletions
diff --git a/sys-libs/libsemanage/ChangeLog b/sys-libs/libsemanage/ChangeLog
index d22d762b0a8f..a1f5eba9f62b 100644
--- a/sys-libs/libsemanage/ChangeLog
+++ b/sys-libs/libsemanage/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-libs/libsemanage
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.57 2013/07/07 17:59:46 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.58 2013/11/04 21:54:51 swift Exp $
+
+*libsemanage-2.2 (04 Nov 2013)
+
+ 04 Nov 2013; Sven Vermeulen <swift@gentoo.org> +libsemanage-2.2.ebuild:
+ New libsemanage release
07 Jul 2013; Sven Vermeulen <swift@gentoo.org> -libsemanage-2.1.6.ebuild,
-libsemanage-2.1.6-r2.ebuild:
diff --git a/sys-libs/libsemanage/Manifest b/sys-libs/libsemanage/Manifest
index 755e2603b920..85d7cf0fb716 100644
--- a/sys-libs/libsemanage/Manifest
+++ b/sys-libs/libsemanage/Manifest
@@ -3,14 +3,26 @@ Hash: SHA256
DIST libsemanage-2.1.10.tar.gz 136757 SHA256 de2e8077245581e94576276f54e80a53c23c28d6961d2dfbe2f004eaba452e91 SHA512 5f20863bdabb825ff53abea5b21b4a6c73e3e065f502969eb992f0e3403f2f8a1b85059f2bc036f3756aab8a4d8c62d6dbcbd46570330a2957d454589f4f8d8d WHIRLPOOL 45526503c61fb43c6ddbcb4a25756286c7c041abc0e6c1b276b17c0af4fbacc3c589a2d6ce50e95c466e5622411016519e8de26dbaa8884ed923cb269c9589ac
DIST libsemanage-2.1.9.tar.gz 136240 SHA256 6f01d17f9751412f7b76e6e7daafeb2faf301b9bfeea83506160c81becf035cc SHA512 71e097941a68a0cd7deed1a04e0db292e81bf43078fc234e54074952e83d70981f27f63db01832ad33bbb816fed774c57aa037f8c19959a9641c09cac93ad043 WHIRLPOOL 72487d200e52929611a7364c017444d9a2bceb36988acbc76e3f525323eb1df05f4d42272cc8f549c1b708b3c64393f27cf782b5999e5f0787e349efbd3c6b18
+DIST libsemanage-2.2.tar.gz 138208 SHA256 11f60bfa0f1c6063cd9bd99ce0cb4acc9d6d9e9b8d7743d39e847bcd7803bd75 SHA512 09032b1b322fec7346164939ade118034812cb538ebc72121640d4ac5c89d2a66b59caa465027cfbebb590dee039a26d4345eafedf365d7f6ad0b5e90377d50f WHIRLPOOL 49170c5ee9ff57dcc4a15aa72386f37993f76436f0da25808c60dab2d03ba52932d0d4fa753c326900d83d2fae30f8bcf659251f17327783f2e2be3deb4842f4
EBUILD libsemanage-2.1.10.ebuild 3884 SHA256 b0a3467e46df2105fa9d12561a1f1782874c92bbcf4d961ea94ad52a232ef0aa SHA512 cc97afe63df1dbfa3fa2b5809b09078a837c4d3f9c092b04e87e9ef598f2389a39eeab7e5b81224dff8c48b2970c5f5242615112a80fa0d1eb3069469f770144 WHIRLPOOL e7b6103c495be1f2449caac3497d769a453bd81b119aa420848d6ceaf0d1b6ce5013daed1eb2c037e74024b54cb9c058e5ce1b1b759d3d269f0a7f5ab2f921f5
EBUILD libsemanage-2.1.9.ebuild 3883 SHA256 13c741f391a307dcea139b8c229c8da2346422698d3a65bb3d69c71d956041eb SHA512 0a6d2b5f45e87cf89d5156805ea50201e20ddaa26007f37c83a129f8d78be3ed533305dd202b1ed70532430016330f19c92ff4d45fc2bbd7e439af3a39ce5f90 WHIRLPOOL 2a7fbc94408162c5d21a174e52972aaab5f7857cb3cbd58afd38d1606eefdac2abc8d2745788b0a4a8a40f42e378626796524568293ad5f392342a9879ddc1f0
-MISC ChangeLog 7782 SHA256 93620c4fec2d95f94fffad2b8ce0bd085a0f5f973c009d0d16f37f2ca9f28ca7 SHA512 dda935d1a8da50518272651a1c1c447e847eae0ab8acb56ebcd5f479e3a4182a15cf65eb49de274fe0d51f56cccc456e44abe77ce323e38918874b22acb26ebb WHIRLPOOL 68b6a66d0d158df9452dd3c37e8ba45dde992f5b449c61651509ebef02309c8982528cd6e7f652919f982d4056e44183e33666cd235d5d02b18bb5ac5c33044d
+EBUILD libsemanage-2.2.ebuild 4074 SHA256 76ad5556fc93a5be28c4ef717b1f1afb1192cdfd82121f70286dde3975d783a4 SHA512 36584aa39724ce42e59bce1b7fccf5276fe6fa6075c52bd0ced8c544a46bb67c270f4cc29a0e3415dc684096030426bad61a49353ee0538005a21ee1de352fed WHIRLPOOL c08d1d0201f5df49e7c8de62094150fdb0872b65de1248d0682551f046895cff7a63a8b292c2cda16c8932dd005362ead86744ba027bc4c283a0dccd36a4e32e
+MISC ChangeLog 7915 SHA256 dcc5718b2b3751407975903d23ea600d479ce0f4893b92bc674fe0aa3c05659d SHA512 9658c4bed04bff453e4647a75d3d8dbe46f846f18ddf2d234f2c7a55a99d274b1ea5b3363223998620a911defcece3a17df5c72eb813ea023c507397bb3a7158 WHIRLPOOL d5f57f128f2b111e624f9815af984f645bff1ebc5971d4a6620dbbb764489516b9d55a879103b74a67007a25fa60f3c8c8d29b868227c9e45f8fb094374fa859
MISC metadata.xml 233 SHA256 c5a240155da9b7588e31ff668d3656486a16868654c076f7e1aea823a6b85ae9 SHA512 96a2805dfeebf2e9458e4b602da2cff381f9a3a2e05feb0b36d22b25cac15417e54c8f0572f14f3f944ca7d20377f20ef217ad51105e273a40525b1174df714a WHIRLPOOL 1e68c6d8f1f0446a8be9a001f4c89d641a2055fc9d440be286f753fbf8a216f9d0ed530694f1ff5859a1604eff125316fdcf9593cb91113e4735cc3fa8e8b9a3
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.20 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlHZrJAACgkQXfqz7M26L9uCnACdEf5AGZESJ5/xcJc1tyCdZG0L
-5hcAn1OYBhquSnVmv/dogR7B9mKG2aRJ
-=6K3c
+iQIcBAEBCAAGBQJSeBeOAAoJEC7dUkA7aK9H3nsP/jnmaUA1rfMYyh7zV3V98fbm
+bhVQb1bDP9n0RAZe77QsvtjgUafIecE89GkepgjfQaCmSceyrqFP+detRPb1Jfag
+1muBSHEnw6MW6dlDJjnv2qoFj61P4Y7YQbL95pUysdTiubDCMz/o5DXhQvyyqcx4
+QZgyO38ll2S8VrYCwPCSIoG2gAuv8OTERw0lF86AEoTlAIKxMDJIRAIco+epEubz
+FKDDq+LxGw1PMltLhzU7gPCd72RkBeKQf0wEChrlINMuzdAGpUfZsCkdC+BoRJNb
+oM5g4kQj/JCZSF505j1oa16dnIPpkBpGNo0/X++lhY93fwnkn87a9mLKNX1KtHM+
+Zg7TncziqzPbyMpzNosfWtAFCrJfkqGbN28ZgotjwW5jeqfW4DS4w/lFsUy/JViW
+NUwKDYi0QESM6jfurwYQKquwOO0msyx3SowaWbUhqnPUr2cz/JoK0odJvD+V+gVh
+G0t3HAkXd4o1+jrHaOhZlu8XbwESHq3EhOYT8TuN8OHCbui3O1sH67ZT08l+cdU8
+di51sri6sDFqPfS12C07CltrJFtdLPin3rgyKTCv/cFQoKgOvXaoeqhIbdotu/Zz
+PcZn9cxYn+47tL9wLp0kziMv9c4lul+cUsz5nKwaDoWQE6AtAqtUzyJTkt4XnBcb
+BhlvIjr04iTXgkgPh10R
+=VWFP
-----END PGP SIGNATURE-----
diff --git a/sys-libs/libsemanage/libsemanage-2.2.ebuild b/sys-libs/libsemanage/libsemanage-2.2.ebuild
new file mode 100644
index 000000000000..59848852ebd0
--- /dev/null
+++ b/sys-libs/libsemanage/libsemanage-2.2.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.2.ebuild,v 1.1 2013/11/04 21:54:51 swift Exp $
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 python3_2 )
+USE_RUBY="ruby18 ruby19"
+RUBY_OPTIONAL="yes"
+
+inherit multilib python-r1 toolchain-funcs eutils ruby-ng
+
+SEPOL_VER="2.2"
+SELNX_VER="2.2"
+
+DESCRIPTION="SELinux kernel and policy management library"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${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? (
+ $(ruby_implementations_depend)
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ ruby? ( >=dev-lang/swig-2.0.4-r1 )
+ python? (
+ >=dev-lang/swig-2.0.4-r1
+ ${PYTHON_DEPS}
+ )"
+
+S="${WORKDIR}/${P}"
+
+# tests are not meant to be run outside of the
+# full SELinux userland repo
+RESTRICT="test"
+
+pkg_setup() {
+ # prevent ruby-ng to mess if ruby is not asked for
+ if use ruby; then
+ ruby-ng_pkg_setup
+ fi
+}
+
+src_unpack() {
+ default
+}
+
+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_user
+
+ if use python; then
+ BUILD_DIR="${S}/src"
+ python_copy_sources
+ fi
+}
+
+each_ruby_compile() {
+ local RUBYLIBVER=$(${RUBY} -e 'print RUBY_VERSION.split(".")[0..1].join(".")')
+ cd "${WORKDIR}/${P}"
+ cp -r src src-ruby-${RUBYLIBVER}
+ cd src-ruby-${RUBYLIBVER}
+
+ emake -C src CC="$(tc-getCC)" RUBY="${RUBY}" rubywrap || die
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
+
+ if use python; then
+ building() {
+ python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
+ emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLBIDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" "$@"
+ }
+ python_foreach_impl building swigify
+ python_foreach_impl building pywrap
+ fi
+
+ if use ruby; then
+ ruby-ng_src_compile
+ fi
+}
+
+each_ruby_install() {
+ local RUBYLIBVER=$(${RUBY} -e 'print RUBY_VERSION.split(".")[0..1].join(".")')
+
+ cd "${WORKDIR}/${P}/src-ruby-${RUBYLIBVER}"
+ emake -C src RUBY="${RUBY}" DESTDIR="${D}" install-rubywrap || die
+}
+
+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}" install-pywrap
+ }
+ python_foreach_impl installation
+ fi
+
+ if use ruby; then
+ ruby-ng_src_install
+ fi
+}