summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Vermeulen <swift@gentoo.org>2013-04-25 18:56:40 +0000
committerSven Vermeulen <swift@gentoo.org>2013-04-25 18:56:40 +0000
commit4783be0b7b40b3103fe73f51528e010737d0a990 (patch)
treee0cfaee908f5e0770709f49577795d413d2c4dea
parentFix autoreconf failures with automake-1.13 (bug #467006). (diff)
downloadhistorical-4783be0b7b40b3103fe73f51528e010737d0a990.tar.gz
historical-4783be0b7b40b3103fe73f51528e010737d0a990.tar.bz2
historical-4783be0b7b40b3103fe73f51528e010737d0a990.zip
New upstream release
Package-Manager: portage-2.1.11.60/cvs/Linux x86_64 Manifest-Sign-Key: 0xCDBA2FDB
-rw-r--r--sys-apps/checkpolicy/ChangeLog9
-rw-r--r--sys-apps/checkpolicy/Manifest10
-rw-r--r--sys-apps/checkpolicy/checkpolicy-2.1.12.ebuild45
-rw-r--r--sys-apps/policycoreutils/ChangeLog8
-rw-r--r--sys-apps/policycoreutils/Manifest11
-rw-r--r--sys-apps/policycoreutils/policycoreutils-2.1.14-r1.ebuild140
6 files changed, 212 insertions, 11 deletions
diff --git a/sys-apps/checkpolicy/ChangeLog b/sys-apps/checkpolicy/ChangeLog
index c2365fa97456..8ed2ef6b0eec 100644
--- a/sys-apps/checkpolicy/ChangeLog
+++ b/sys-apps/checkpolicy/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/checkpolicy
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.69 2012/11/17 16:57:55 swift Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.70 2013/04/25 18:56:30 swift Exp $
+
+*checkpolicy-2.1.12 (25 Apr 2013)
+
+ 25 Apr 2013; Sven Vermeulen <swift@gentoo.org> +checkpolicy-2.1.12.ebuild:
+ New upstream release
17 Nov 2012; Sven Vermeulen checkpolicy-2.1.11.ebuild:
Stabilize SELinux userspace utilities
diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest
index 5ba984e9f962..a51b5b01a44c 100644
--- a/sys-apps/checkpolicy/Manifest
+++ b/sys-apps/checkpolicy/Manifest
@@ -2,15 +2,17 @@
Hash: SHA256
DIST checkpolicy-2.1.11.tar.gz 64151 SHA256 06acbc776134464d133669de82b7f7c7ebca376c307a3a3478544a42c5d050f1 SHA512 1147e80b49cbb4f44e3774bc585ceb9e214ed70c87ada0734216eb312a4072ed02aa2070b6e242d608ea335d75cc1032dced025fbfff535efac25de88684ce08 WHIRLPOOL 186487aad85af7016b0f75ebc5d3afcfbe064cc558c7b398814ced5050b447d77dd567776bf399cbef4e289b714c30bca700f46c9b5dcec1e4fb0fd54e42e518
+DIST checkpolicy-2.1.12.tar.gz 64354 SHA256 e6a0ac539b74859b4262b317eb90d9914deb15e7aa509659f47724d50fe2ecc6 SHA512 c9cc0c277b18893f9d130ff03f92cb68b52cdaa807e6145ff951dc5e452a8f24ea364af2afa9530dd3ee2e0dd87d7c5415ac5cbcf2e306397efc81953014180e WHIRLPOOL 116bf9f889fdb80bacaf345a2ddf777759f537e3e6c7c21439c8a01b71a4cf066022b13a694fb8dd2f646197a558582124cdc9c8949ba866b372901407c14e5b
DIST checkpolicy-2.1.8.tar.gz 62947 SHA256 8ed586fd2ccf9900f86e38b72af4aa5cc3bade35d0fa19c53ac1a3d59fe0013a SHA512 88b5e49a98a8d5d4f913963ce624e8d0dd658597263abaa5017738e8fb332db1eda3ee8224c3b9130ba660006ea308c9de39791a3fca0b35d5ef53719b07dfa6 WHIRLPOOL d214c05dc8ae4a611974787a3550c95e436dbe5d4b89fe11e8d412e876cb4e8a4eb271fb39f9b231a01e036c7af85e871191fee8b62bc7e8aaeca7a4600513cb
EBUILD checkpolicy-2.1.11.ebuild 1019 SHA256 5c9ed7fe0708214a2101088b80bb0f65a69108423fda954421fe4e96642a7e4d SHA512 53a667a900dc0490dcd993189e746b68347b92674ab680938a8f057876f80d26ef534183513e509e3e22f00887b190244515709a2eba755c8898c59a597591ca WHIRLPOOL 74bf92cd762f2d266ab66a2eaec5cfe8def687cfc165c2c51acbb64583de4222a09c111b9d10763584244916aa43d0ca406069807b1d60dd75c7fe76d3b25eed
+EBUILD checkpolicy-2.1.12.ebuild 1022 SHA256 de15515b70ae3d3ea9a21185f86f22076f6f5a605d8a501867d236f846c61ade SHA512 d134d49e5ece8ce09d5c7f7da5a200d9388e4060e3e121f4f83179a5b3552d085112150a639fdc966c1fcc3196a695bf50ac64b4feaae275099e43d102a1bf8d WHIRLPOOL 3a8ad2c60815721577c07018a2589561dbb6fbdd7a4c3fa4c8be4a15fb15dcfc056a8f2dc43c0ab255efeb49c8c8b48419507047771b0f58cd9040330a820ec6
EBUILD checkpolicy-2.1.8.ebuild 979 SHA256 7e816e78ed73a9a41f90d5f8ce4fb335808a86f832d2c7186b29ea390ad71080 SHA512 46f7fcf079c40c6bfd5255871a032b05662b78517dddf4bf6811e38e9622c54cb1fa4160384806c56cb5f0cc4b4fdbdb00c17ced74127a744967e67d35ad929d WHIRLPOOL 0de9c29940bb14ace02a7a6a2f73c7fa9ad0110ccc2be4d3640d01b9a542d91568c8e6cf96d855fa74b86a5fd9af907efee1e49b24dd146b272ad60da9048d5d
-MISC ChangeLog 8951 SHA256 1f16a468895c2d1c8cc2d6d447ecfdadda326e677ce3d84c636bbc6ec78ccfc7 SHA512 cf4c998587a0135f6e7fd21d5e73c9bda02ea1ae2de6b01bcde5843ab4db0b4655440e1d28275f9bbe9b2b5a235c6344340348552ab18038d686ba66a620efa9 WHIRLPOOL 303461cbe579ac8ad57227ab1109822be1e06b59f03ea6418a18d591e48f39a03e71815e9066cad1403a75f01c85519d74d8ba70a23885e7f4504ad64f5d2e5a
+MISC ChangeLog 9087 SHA256 5ddb38a5bd3922c9589404257f8563fd49e7be564faf03988a10d8a8e80e8c6f SHA512 4db388b5fc318fa601e7a8cc1e322b698617b99b7ccd3c2423361bae6228d360c46e137f2e78304f8c54781f47e81673696852ec4cf5c362e38161b3dd4716fa WHIRLPOOL 3df5e28e2d1c3bd5cc381c9255ced0dab1926a3badeeb4ecb36d2a6638213f37627b5e66b8162d19e4398169699e8784c05759cd3dcbad4d38184df3b6ce4c51
MISC metadata.xml 222 SHA256 b469c6bbb142dd5bab69af655d21fdddef8cec44c97750747e14649e0e5c2098 SHA512 6f61c65cfc7902e6439446cde64c83860a90d95be8494b8d16ae895ccc9eef0fd78c7fdbb0c17650967a1235d761245bb8cada1ab6aa19fa746f0ccf2ae68830 WHIRLPOOL 87cec6bffd811035d71e73d15fa753087731f704360ec53343c08e84682bab0a4f83546380cc1969abd93364ac7e1a2b5a448d531840a9f2dfbb5f987de5761e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlCnwgkACgkQXfqz7M26L9sD0QCfao0JYFz8qH+Pi0uSSdkrdTuP
-1+4An3X7gsJ/GovIG6ZCOWnRltg7mSjV
-=rKE/
+iEYEAREIAAYFAlF5fD0ACgkQXfqz7M26L9unAACfV8VCGrsiHwfxXdGCGeEPI7p+
+7sIAnjgY2G3lYPBk4T/ywYf4YkD1n7ZO
+=AF7m
-----END PGP SIGNATURE-----
diff --git a/sys-apps/checkpolicy/checkpolicy-2.1.12.ebuild b/sys-apps/checkpolicy/checkpolicy-2.1.12.ebuild
new file mode 100644
index 000000000000..3eba631b6a1c
--- /dev/null
+++ b/sys-apps/checkpolicy/checkpolicy-2.1.12.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.1.12.ebuild,v 1.1 2013/04/25 18:56:30 swift Exp $
+
+inherit toolchain-funcs eutils
+
+SEPOL_VER="2.1.9"
+SEMNG_VER="2.1.10"
+
+DESCRIPTION="SELinux policy compiler"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20130423/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND=">=sys-libs/libsepol-${SEPOL_VER}
+ >=sys-libs/libsemanage-${SEMNG_VER}
+ sys-devel/flex
+ sys-devel/bison"
+
+RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}"
+
+src_compile() {
+ emake CC="$(tc-getCC)" YACC="bison -y" || die
+}
+
+src_prepare() {
+ epatch_user
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ if use debug; then
+ dobin "${S}/test/dismod"
+ dobin "${S}/test/dispol"
+ fi
+}
+
+pkg_postinst() {
+ einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."
+}
diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutils/ChangeLog
index 18b6c829d9da..6fb60161e20a 100644
--- a/sys-apps/policycoreutils/ChangeLog
+++ b/sys-apps/policycoreutils/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/policycoreutils
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.117 2013/04/19 10:27:45 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.118 2013/04/25 18:55:43 swift Exp $
+
+*policycoreutils-2.1.14-r1 (25 Apr 2013)
+
+ 25 Apr 2013; Sven Vermeulen <swift@gentoo.org>
+ +policycoreutils-2.1.14-r1.ebuild:
+ New upstream release
*policycoreutils-2.1.13-r11 (19 Apr 2013)
diff --git a/sys-apps/policycoreutils/Manifest b/sys-apps/policycoreutils/Manifest
index d3d8363fca74..62c0d8919e5c 100644
--- a/sys-apps/policycoreutils/Manifest
+++ b/sys-apps/policycoreutils/Manifest
@@ -6,8 +6,10 @@ DIST patchbundle-policycoreutils-2.1.10-gentoo-r3.tar.gz 26116 SHA256 661e18c14a
DIST patchbundle-policycoreutils-2.1.13-gentoo-r3.tar.gz 35961 SHA256 75022f9af208cbeddb770f1504a51845865ec2fac51ca1bde9c562f6af2e340e SHA512 1c81f41f7e9ea70be492bee9eafe6421d516a009f8cd4f5d5c636490acc8819bcb75bc16fac5398ea275c7336f1eb0604b725399028f12ce3c0be2190d3998e8 WHIRLPOOL 1e6a1c2a57f6d314ba2df1b42421c219748cf840d20a5e62c01acb28deb4816b4c1720a97877a7c3ae8a033f6c294c3496a633e54a9b61708fb4272bb4787831
DIST patchbundle-policycoreutils-2.1.13-gentoo-r4.tar.gz 7075 SHA256 922cc5a08e9c973957ef06dc00ee92e11df2a5f0347c9002cbff758a48407db1 SHA512 d32095869a9c10ba35b2862875dccfc4ee744d16c6a106dd9ec4b93465a7429d6f035ffc49e9dfc62a003aaa344b2353d38842f43f959c2c9f4d4a4139029383 WHIRLPOOL ab072e56aeba07066a84ebb45b27815a1b7a257e50721fa61aa558c6265261b1187b07561dd3add398360af814ccc6ab713aac0132dc8854dd3d06e2b9cc7288
DIST patchbundle-policycoreutils-2.1.13-gentoo-r5.tar.gz 7290 SHA256 349bd3ff7cabc91766a195b3c48b9cc5a5487fa0737036869e44f8f2e5904997 SHA512 3a30b2dbaedced8d18e0ced3c3784d9f917eb83987ba10a144283b67423ed8571d2b46fe8d5920b85fcc0b698e5b4996899f9213a94b7adea26c8fb93c790808 WHIRLPOOL 1eb224aa8e99b82eda2cfa765ad7b81b8bf38921637513d3df7191d06eeefb8eacfa2eed6ad27165bf01818bfed65eb216304a24eefea3cdd79b02fa21c69818
+DIST patchbundle-policycoreutils-2.1.14-gentoo-r1.tar.gz 7366 SHA256 47ed230f9cc416f5565e0b314de8cb7fd482ec9034a06c31aba8a1875fd4a04a SHA512 c1b6ae16118f9d61bf19c42d12baa32125833ad4ccf1a3bbdb314c6a5a870b1096de82cec5234fb5ea0a36cab15b0811d04640aeeb0cbcfb1cc5172610ffeb41 WHIRLPOOL 14aece5c402a742178771fd0c2799c800d2f80125a85e924a133304c588dc88d41db3ec0b3dc51ad296802677ce091c07a2c3acfec3e20a59931c37a3165bf77
DIST policycoreutils-2.1.10.tar.gz 907554 SHA256 8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1 SHA512 7dd06daf2094f21703c9e84b7f591a4f31a4ea8813aac7c26e2264a0c972f5b566e981b5fdcc38ae2924ec45f0d3f2c0ac08accaaa647f9e5b4e99072dc49534 WHIRLPOOL a3208af4effb2c949fce25937872b9d849cfa57e043a5b41993cfe07b5b0763571354904147e005d8e8cefbf979e228dd2310b966399d13deb2b858ba6e9930f
DIST policycoreutils-2.1.13.tar.gz 1188940 SHA256 34040f06f3111d9ee957576e4095841d35b9ca9141ee8d80aab036cbefb28584 SHA512 901a966ee61dc0935767f2ee8e8659fca13c96b6ce464a00060a0005764c0d7a0cfce0e2b6b00850ff2b4b20675a16d9a6da427284818e93efd83864ab086c1b WHIRLPOOL e123e474830e66fec70ee850674b0767ab3e115966dc8cae9c6aa6cdd4f9297d7c22a92a41cea9a1b24c994cc44d06af23459a0184546bbd263e4f74b756419e
+DIST policycoreutils-2.1.14.tar.gz 1675951 SHA256 b6881741f9f9988346a73bfeccb0299941dc117349753f0ef3f23ee86f06c1b5 SHA512 d4d1710ff6974a829efcff87c5c33ae47a2e0bfe881e4babe6e2b2f0991c8c1d6f9101bb34f41ec11eb26c9c989c85c5fff0157a354c40c403393d75203cef45 WHIRLPOOL bf92ea6870194c68d5faf4a0e7ba158028d5449570c73abf77fcc78385857209365000121fec21b09d5944d262476dedf5d096241bc0342f814a41b2e0adf0b4
DIST policycoreutils-extra-1.22.tar.bz2 12858 SHA256 7013f77fbbc0eceeffdae6ad7eb31547d1334afe4a6929654440540f6e50b8df SHA512 c9fb2f75ab11e82b6ef366f7ef891a046ade41b87f4c82680ea79c1e3f0cf24edec5d3b68c7f5c8e5da01e754a2100dd8adfc90ac4b2b353745ee4f8c468b036 WHIRLPOOL dd3a30c9f4f57d1640838b755646f33a173012d745ca1a93bf95faea50e01c4d430d4361c77c14e994323b00cfba2c6bb1d9db276ee499dee1a318f02e0b24f8
DIST policycoreutils-extra-1.23.tar.bz2 12865 SHA256 ad758323fe88ecc5c8689e9a8cdabaaa919d14ade9cc2c6d39761f7d7f14ae9f SHA512 ee92796be2b4eb77f8f25e5174b752fda5bffd5941860a20ebc550e3c0e6e836997f636aeafbaa7ecc51e65786fe0a67915e6d4c01a15c0c7a45a16baf06a762 WHIRLPOOL 70de6a6fb922429af6cda42a3e4e2ad10c49834f37e82de15f88a9f3e4ea02e3668c5e1432c1e5fa21fd62acebb7c1f15256170a26ae47d5e2ef88738410a369
DIST policycoreutils-extra-1.24.tar.bz2 12884 SHA256 d11cd8eae33c1237685ae8cafc26fe25cc3b97d743678985d8963f0676b1a7c7 SHA512 043e3cbf0bed256b5322a7553b82d190c5f9cc4fdf3d31a3144143cabbb738861ea89faf81af008318c0af0fe2abe09528891f93c45ca186757928134501180b WHIRLPOOL 372262a4ff8c0295d689ef6786a8a94b2b11a9bf45e41f4f5682b16304f025c93c8407d1c72754da05669f62a01b45821d62d9aa2c2a05350d392742b1476c28
@@ -25,12 +27,13 @@ EBUILD policycoreutils-2.1.13-r6.ebuild 4251 SHA256 32aa76856d93e38817ef13901dd8
EBUILD policycoreutils-2.1.13-r7.ebuild 4251 SHA256 6f10ab09b54b2dcc2a9f13a4f0f20a6e4e252aead58800be11763449eeda5e3d SHA512 438fca9fcfbadbbf40864a3f3a158d7f6047d6eac4551bf0076ddee779b0bf2324c1b77893b71ef62421c6ade36bd48005e4a36ae592c63f942a355c78fb0b55 WHIRLPOOL 9d6db5fa3ac4d9f813acdc4d977cf0b5bf0cd31d7949f6381b3d8412128532df5b51ea103d2e409d62df4feb1e0f26c0f1a82e7b49cf66ef033bf6609818aa4d
EBUILD policycoreutils-2.1.13-r8.ebuild 4251 SHA256 603e0ae76517cc9fc7eb925de09bda9c37db0253d94b0be3975bf0c94fccb096 SHA512 530c58553e71bf1eea121a1bd61dac004592172b46237b834fc13f7be03d71c33bcb4234cccf8d147b87a3bb9937676dc7dd6d3d1f30b8d751cb940e1e974ab3 WHIRLPOOL d3002ead8435ca849b8dd3edddc1800e6fb4b38bd99288da1033820d4b74607ba83fdcb0a1d5fd0be80d9ffe1ae1a9f1a9feff986f75699a35584b1a44b98c67
EBUILD policycoreutils-2.1.13-r9.ebuild 4249 SHA256 c421a149fd21e4d85042c336bf74a2a5d6d557b269c1b312b451cf40ef0042ea SHA512 22619dcf963571720bd8c3641be2b1d7a6d74b924b38dfc5a07852dac49e7aa58f1b8172dc00c545def3ec595d84a1320825adf889acd0644605faca3332a30a WHIRLPOOL 51ce06f2f13eb2c0b40b93113734e5b075585d1a23c40134483d39da6cee55850b6efd87106312b019ab57df7b7d0cd80beb22a0293716c6a3da40c095954bd7
-MISC ChangeLog 19154 SHA256 ffcb9e2dc4d2efe955b7472c7c92639e357f5c9809327aa642d08bbff855713e SHA512 2be97d23f176703d72af6c29a6572b26d83ce81caa02d5e9c32504d489c0027b03c414a0d11e73b937aacd52e421e049c0fd5872281db42e4946a552ad1822c4 WHIRLPOOL 215959df1883293844f6e35806049e5dbc0d3ec98ff780257ef169427e5d78f2c80ba4d112922cf36f88c1c4695c24b0abe7e52ed5fbc772e71c87769a866b0c
+EBUILD policycoreutils-2.1.14-r1.ebuild 4255 SHA256 077b2ed1463c504972b66a42375ceb954c778be3462ce614be90d3faff42826b SHA512 b709c1f22b29510905eecd193ea11a2f82d1ca3d99abe32c94eda85e8291780f1e49cb2e557e3dc08be0ffb466748d46298c9fd8e7f6cfdc2a12f01308c81693 WHIRLPOOL e6f02dad2cdd5b3762a6f1d5cd4ef98fef08e186003e46449ec3caf85ee98f24e4b2d87a8b2b03be2a861c6508b99ced38e884adb0da0b00f1b560b065dcff2a
+MISC ChangeLog 19306 SHA256 bd937bfc0788f7c1167079385b59c616e7b007076282bccf236284b18c252b8f SHA512 8e0704296ca77c1a386f5ea5b9eb702e70b6e311f4e9a6d192eed772c0019c22de27b8a01dae9ade35437f8b092ed816e47c84691a1ecb215bae65022496c27b WHIRLPOOL dfa26ef53d39e6aecffac7526f997dda603ff7752453832e0876b07038bf3ceaa01d712342d51ea93bea559c8033bf4e6dea42617f17b89cc140fabc408df2bb
MISC metadata.xml 959 SHA256 6683014987dd67dfbeb80ad329550fc20a0b09f5eaa7828054be62fff6aee391 SHA512 d44168511571036289259b0709fcb12f934bd789d872e256bf00b7b88247f08b5c5f6bbcf60e0ed654f391606f6c41baca92aa7208a80526ef01c2c34f06b962 WHIRLPOOL 59c9757a028d1731dac9abd05ee768fd153c303257a14acf4d53290e4108eecc45abbb879ef2143141b9d03cf3dc94e0ba1bdc8ed7b01f0d2ad84db5fb9f347e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlFxHA4ACgkQXfqz7M26L9sa/wCfRYTPRL2SoOJ/GK4947i6Mk1P
-5EkAn2LJMSVKxzkioiQrisqbBpYTqwZj
-=+epk
+iEYEAREIAAYFAlF5fA4ACgkQXfqz7M26L9tfawCdGP9BIStiNcCovA3zOGXwS7gS
+guEAmwWpwwE2rOUwmFK/dtjFEP5SwTdQ
+=6iIz
-----END PGP SIGNATURE-----
diff --git a/sys-apps/policycoreutils/policycoreutils-2.1.14-r1.ebuild b/sys-apps/policycoreutils/policycoreutils-2.1.14-r1.ebuild
new file mode 100644
index 000000000000..7d6bb6713208
--- /dev/null
+++ b/sys-apps/policycoreutils/policycoreutils-2.1.14-r1.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.1.14-r1.ebuild,v 1.1 2013/04/25 18:55:43 swift Exp $
+
+EAPI="4"
+PYTHON_DEPEND="2:2.7"
+PYTHON_USE_WITH="xml"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython *-pypy-* 3.*"
+
+inherit multilib python toolchain-funcs eutils
+
+EXTRAS_VER="1.28"
+SEMNG_VER="2.1.10"
+SELNX_VER="2.1.13"
+SEPOL_VER="2.1.9"
+
+IUSE="audit pam dbus sesandbox"
+
+DESCRIPTION="SELinux core utilities"
+HOMEPAGE="http://userspace.selinuxproject.org"
+SRC_URI="http://userspace.selinuxproject.org/releases/20130423/${P}.tar.gz
+http://dev.gentoo.org/~swift/patches/policycoreutils/patchbundle-${P}-gentoo-r1.tar.gz
+ mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}[python]
+ >=sys-libs/glibc-2.4
+ >=sys-libs/libcap-1.10-r10
+ >=sys-libs/libsemanage-${SEMNG_VER}[python]
+ sys-libs/libcap-ng
+ >=sys-libs/libsepol-${SEPOL_VER}
+ sys-devel/gettext
+ dev-python/ipy
+ sesandbox? ( dev-libs/libcgroup )
+ dbus? (
+ sys-apps/dbus
+ dev-libs/dbus-glib
+ )
+ audit? ( >=sys-process/audit-1.5.1 )
+ pam? ( sys-libs/pam )"
+
+### libcgroup -> seunshare
+### dbus -> restorecond
+
+# pax-utils for scanelf used by rlpkg
+RDEPEND="${COMMON_DEPS}
+ dev-python/sepolgen
+ app-misc/pax-utils"
+
+DEPEND="${COMMON_DEPS}"
+
+S2=${WORKDIR}/policycoreutils-extra
+
+src_prepare() {
+ # 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"
+
+ EPATCH_MULTI_MSG="Applying policycoreutils patches ... " \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
+ EPATCH_FORCE="yes" \
+ epatch
+
+ # Overwrite gl.po, id.po and et.po with valid PO file
+ #cp "${S}/po/sq.po" "${S}/po/gl.po" || die "failed to copy ${S}/po/sq.po to gl.po"
+ #cp "${S}/po/sq.po" "${S}/po/id.po" || die "failed to copy ${S}/po/sq.po to id.po"
+ #cp "${S}/po/sq.po" "${S}/po/et.po" || die "failed to copy ${S}/po/sq.po to et.po"
+
+ epatch_user
+}
+
+src_compile() {
+ local use_audit="n";
+ local use_pam="n";
+ local use_dbus="n";
+ local use_sesandbox="n";
+
+ use audit && use_audit="y";
+ use pam && use_pam="y";
+ use dbus && use_dbus="y";
+ use sesandbox && use_sesandbox="y";
+
+ python_copy_sources semanage sandbox
+ building() {
+ einfo "Compiling policycoreutils"
+ emake -C "${S}" AUDIT_LOG_PRIVS="y" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" || die
+ einfo "Compiling policycoreutils-extra "
+ emake -C "${S2}" AUDIT_LOG_PRIVS="y" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" || die
+ }
+ python_execute_function -s --source-dir semanage building
+}
+
+src_install() {
+ local use_audit="n";
+ local use_pam="n";
+ local use_dbus="n";
+ local use_sesandbox="n";
+
+ use audit && use_audit="y";
+ use pam && use_pam="y";
+ use dbus && use_dbus="y";
+ use sesandbox && use_sesandbox="y";
+
+ # Python scripts are present in many places. There are no extension modules.
+ installation() {
+ einfo "Installing policycoreutils"
+ emake -C "${S}" DESTDIR="${T}/images/${PYTHON_ABI}" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" AUDIT_LOG_PRIV="y" PYLIBVER="python$(python_get_version)" install || return 1
+
+ einfo "Installing policycoreutils-extra"
+ emake -C "${S2}" DESTDIR="${T}/images/${PYTHON_ABI}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1
+ }
+ python_execute_function installation
+ python_merge_intermediate_installation_images "${T}/images"
+
+ # remove redhat-style init script
+ rm -fR "${D}/etc/rc.d"
+
+ # compatibility symlinks
+ dosym /sbin/setfiles /usr/sbin/setfiles
+ dosym /$(get_libdir)/rc/runscript_selinux.so /$(get_libdir)/rcscripts/runscript_selinux.so
+
+ # location for permissive definitions
+ dodir /var/lib/selinux
+ keepdir /var/lib/selinux
+}
+
+pkg_postinst() {
+ python_mod_optimize seobject.py
+}
+
+pkg_postrm() {
+ python_mod_cleanup seobject.py
+}