diff options
-rw-r--r-- | sys-apps/checkpolicy/ChangeLog | 6 | ||||
-rw-r--r-- | sys-apps/checkpolicy/Manifest | 34 | ||||
-rw-r--r-- | sys-apps/checkpolicy/checkpolicy-2.4_rc6.ebuild | 51 | ||||
-rw-r--r-- | sys-apps/checkpolicy/checkpolicy-2.4_rc7.ebuild | 51 | ||||
-rw-r--r-- | sys-apps/policycoreutils/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/policycoreutils/Manifest | 35 | ||||
-rw-r--r-- | sys-apps/policycoreutils/policycoreutils-2.3-r2.ebuild | 152 | ||||
-rw-r--r-- | sys-apps/policycoreutils/policycoreutils-2.4_rc6-r1.ebuild | 171 | ||||
-rw-r--r-- | sys-apps/policycoreutils/policycoreutils-2.4_rc7.ebuild | 151 |
9 files changed, 43 insertions, 615 deletions
diff --git a/sys-apps/checkpolicy/ChangeLog b/sys-apps/checkpolicy/ChangeLog index 54a13d71fc6d..feaeed716204 100644 --- a/sys-apps/checkpolicy/ChangeLog +++ b/sys-apps/checkpolicy/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/checkpolicy # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.85 2015/03/04 16:00:26 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.86 2015/04/18 21:52:08 perfinion Exp $ + + 18 Apr 2015; Jason Zaman <perfinion@gentoo.org> -checkpolicy-2.4_rc6.ebuild, + -checkpolicy-2.4_rc7.ebuild: + Drop old RCs 04 Mar 2015; Sven Vermeulen <swift@gentoo.org> checkpolicy-2.4.ebuild: Fix build failure on x32 (bug #541618) diff --git a/sys-apps/checkpolicy/Manifest b/sys-apps/checkpolicy/Manifest index 8f1eaca123aa..6fb0bdc025a9 100644 --- a/sys-apps/checkpolicy/Manifest +++ b/sys-apps/checkpolicy/Manifest @@ -3,30 +3,28 @@ Hash: SHA256 DIST checkpolicy-2.2.tar.gz 64458 SHA256 9ff6698f4d4cb59c9c916e348187d533ada4107f90c253ef7304905934e9adf8 SHA512 a6f70e1b6581673af515d7d192237e2d47c0e07bb589c64b92f90f3a450ef8c312eabc2384479faed8bb909b98c15b676cea77e7dcb5304a51314601e93bef59 WHIRLPOOL 18c13139e8b75bb5bd45a9ddbf0c17c07fa86da66e792ece4a1d1204d211766fec27f6fce7db248957e7d2b2847c91b4c9d0ef45cf64e106aee52bc29be7992c DIST checkpolicy-2.3.tar.gz 64970 SHA256 90632d11afecb66997971d4c5c5d70dfb02d3969ec610ee2918ba6df99c8207b SHA512 9b10cee8ec9d555c810712131eec0e7e1bf900e4675804b8f57b04988543ba784f4bf76030f196868cef91a1c4ec370f77da12ef9e79362bf7a1cc38c7cafcff WHIRLPOOL 49ca9fa1695bedf141d397ca679ba769b748dc39ec7d462718f6b90af9c31c1da64d1ff67b3b4e426f758a9d305dc9e19d755e1127bfcd5e492dccf09ac75d09 -DIST checkpolicy-2.4-rc6.tar.gz 65124 SHA256 be931814c6ac290575953f940cde38217a4855445630ac3f4d1780a88fc5008a SHA512 fc75b54002eb0a338bf63f787e52cccdc263512657d87c678225d2a8bbae7a20f16f489de7a56831106698fe9e7737ddef02df8a1d9c11c363c68787fa5a4ac7 WHIRLPOOL 18d473411899a5c349e4659de7242f624555029aff21d3a8f9ff85463ef46d2865555f8018cd307231d93846b157373756d0ff7a6e0e0c0f23f8a69951b696d9 -DIST checkpolicy-2.4-rc7.tar.gz 65125 SHA256 a7f8d44f6276b348ef99e9920c7dfd3a8409704e2fc1e993d777759478434ada SHA512 af0f73049a005f7a01de073c5e6aca17b3ecdd17e8288cc1b7e94db2a1ca0502b67ec0d03ebd10513f6b6de34c72ce55493a15c137070548e5889e9eec401521 WHIRLPOOL 94de0348af5e4f84cb18d59b9d8acec56360a82c33285d3abf12caa9d3e7b76dd6bf007017f7f4d885764f485f8e1da34ca5378e6fc9cc85bfd76fb137806ff0 DIST checkpolicy-2.4.tar.gz 65238 SHA256 9bbdac28a88de4c405c769730863f3adcd266adbfa45881a5de67e3a4895bcd4 SHA512 8c5c22d9510305e7f518d1a5818f5b36895210f48835d8d24a43b2d34e79881cebcc8cd588bb663c0613a4f878db125c22a4b4df3d0f63b8fb8f88350abc61cc WHIRLPOOL b717428b4411e526cc47ed2be88d7e7e4d48153404b90d50e510fd0cc10cc0452661d0b6b0cc200bb09ae1cc040ae59aae68a8c748611db3ca4cd262f8e8f932 EBUILD checkpolicy-2.2.ebuild 1022 SHA256 0ec473da351b94f092f06cdfd506f97c48abb539efc3cc791fcc0b4be1d63145 SHA512 cfb60407488ee37b1844eb216b21ac1440240437cad176955b9689e4744bf23b35326159d0602c4939ffe19659614257c60fdb37eedabb4a02ecbde313eac137 WHIRLPOOL a1894e2759bde98d5bd0bf02f2c76cd78e38536a28b0d0c5f8c2b9a16d6ec1e07e02fd299128a59279ef38d1746a40c4e5100925aa1dabae3e60787d01c9cf3b EBUILD checkpolicy-2.3.ebuild 1099 SHA256 da1088f0cb65989b859c8269da0856e552fa0072a87dcef0ed96c024c7a5051a SHA512 f5f1e1a6be77ca36bde1ff940b717ec693a4e18289580524076b12f28614ba08b824d8bd0327e0b9bce6f98993b522f8dca88c3b54b56ce8190202707223cd78 WHIRLPOOL 89b9d09e30066fd72fb209f5cb9704f9089138f6f071884d6906fadf6f5fcb73213ad15c9e25c0858a4f80c80586276b6ec5b5cb30f88643e41ac1877eb94d2f EBUILD checkpolicy-2.4.ebuild 1125 SHA256 cf8721eff9b55072d489cb64216186335d2b3df967d5d428f5d083545d9c11d2 SHA512 7e9a12b10b65665765718a045343bc036d1cf96d3dff691c5eb702ef99550b262a39ddcceb616e426b5f460fe249b51dd8a6026686c5358af5983aa5a28e37b7 WHIRLPOOL 9d8763bce96bc686eb5d2a57b91ad47e67d9ff5bc9f5d0f1818df157c574395cd56d713f2eac81442e4bb632c17340193ccb3dc0c9c9e871973ba2a530132911 -EBUILD checkpolicy-2.4_rc6.ebuild 1113 SHA256 88c51abd56ecb7bbcfdbbd83f9a2078fc1b745064b0e473b61d3c126bef963fb SHA512 1c0b64218885d0dc97404bb147228f48b05c7b2278259b7d6042f722591920e7cd5521aeca2a77b394397a29a7eea8a42475ff742efb4307bd3453bad97ed019 WHIRLPOOL 41db078139022b3f6bf89300070a5bad2d6b66013ecff1b5c94ba799a1e9e8b046b302db356f342879405a4fca061493f2e34f16a0eead2441cb3e074e9e3434 -EBUILD checkpolicy-2.4_rc7.ebuild 1099 SHA256 942e0c9bf461eddbc1bf7ef66c8e86fa71f35527bca8d8f56dd47436e9a09bbe SHA512 293e99f28a8ec7f3c5ea6c26a111429a6b8f7578a660bd022fd59cdab5b1ab796ba5bf2eba50b1c098d585311beb2ea7c388158bedc2b77430aab62f1b6de1c3 WHIRLPOOL b13b0b3dd63e91c3e799842403e47e9d4359ef914b328f5e321e10cc2eed405fbc0e62937ccf00b9bf03cb809521e4a0024bf57c4b6dfa234ba7069437edd440 -MISC ChangeLog 11032 SHA256 25baa9a9eac6922e76b50e0b801d63a0cf4d6e3d80ab2209503aa42011f071e9 SHA512 1f5f6bd3dbe5f6a6698939c8c9120ff971efafeba92267a8eefbfa1cd99deea9db8fe4a8d22929e98384802afc992aff3a256c7315f46113e742ec9865a77c9d WHIRLPOOL 0d140e715214817b32820731bf1cf721784c77bbe43c89bbbb72ed8d318ce0d2fa7850076561573c849529a480274924f97301c4df95e02a82cab4ae0aa21a55 +MISC ChangeLog 11162 SHA256 b227ae0272997461c16be6a82beaf60054c6b1ba240fc55f177c402f8ab87027 SHA512 1c2edc28f89dad38498a0050f19e4186f5e57f2672317c645737f5be3e46b526d5eee6a6af1a61588065eba43466340637e31521962c42779ff96864f3736b5f WHIRLPOOL 8ef4074e8c196490b6b3482d32e844dc7dc21952ba1101c27d0b4cdd083af4a9867feb63e0954edb881f21f8a31fa6d898972ed60095a861655cfc7c24c1cb3d MISC metadata.xml 222 SHA256 b469c6bbb142dd5bab69af655d21fdddef8cec44c97750747e14649e0e5c2098 SHA512 6f61c65cfc7902e6439446cde64c83860a90d95be8494b8d16ae895ccc9eef0fd78c7fdbb0c17650967a1235d761245bb8cada1ab6aa19fa746f0ccf2ae68830 WHIRLPOOL 87cec6bffd811035d71e73d15fa753087731f704360ec53343c08e84682bab0a4f83546380cc1969abd93364ac7e1a2b5a448d531840a9f2dfbb5f987de5761e -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0 -iQIcBAEBCAAGBQJU9ywXAAoJEC7dUkA7aK9HOaQP/3Q01DmG/4zvEjAB6VtocnjQ -wVftiUMiJeUq83JEAdMuDe9+w5EsAcM+tuBa1fETplCkEbGwuQLnrk8CQpz/xNqm -eDAjVNQb1KXJT81jcAiZA7QZ2laPe+lcOZNr6TKmCn7wjbFh+1Ykynbq381LJKvK -rOLQflC6R0rw6IXrFxGY0NC/TUwRmjUg8GI1fneIJzbbUhWqNmu651zoLGJ4g+Ab -Ft543/SeDa7Mf7H7ZAoA0JqXTVmfav8Y5bKgQKcYIlQkDkJeiKpEBsB622MwsaYM -vYjOmSRcqOVC2Wh62qSdaWwHTi69pljkrAIHJYkt9sPYv94e3gv8shUOlq9IuozB -D0Wc/aiDBcXrKexvcBwhFvrK5b6SZlswpbyjNpodv/ZNMIbg9qaaoZGfxJkgsw2O -xLeb0Z8quv66EVpfHdLTvubLhs6Sz0LypxMIKzKaolhgsIsnIYsg/kFljF616ge4 -2F3Ejcrl2xyabYXtplVnOvu5kN50e+KeYSYmzIW5hLJ+/hQVYlA79f3I+2dF37LW -Wb9KLyFHq2SkYYJIbAI1IMLJYAH/pINg/3M1R0KpRUacvIifUqpCRzdOfuYs2ek+ -lFgyrrlrLweB+HQrGK36E/C7koLb4b8FkmCOgHQCyQTO8+EL4wbxNnBHVhd6/zlO -wDNP2BfnucLL1kRJ1XS6 -=tXAo +iQJ8BAEBCABmBQJVMtIJXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFMTYyREVBRDFDQ0REMTEzRjA0QjNENDky +QkJFRDlDQjFBNjhFRjU1AAoJECu+2csaaO9VrokQAMLg0bqW/Swb+Bq3h+zjYJ4P +jRCJ2vyJeMit9Js1kIlZUPrNidPGMvwEmcLji3bc/zZ0MoNPubVbPT6Pq89DICBI +v5/3astF0YP6zleUjcAfwq2OjNY7YVMvh8VZ+YvubA01LonyAvNwKVfit5pjx+Rz +A8xHnFeHeDbiAUhttH3D10UdmCuY6Q45v8ZMrn3SQ4msd3jlCXLRKDx4/8zxrvlj +DvFGJLa0VWYEVB4sSrRLNZDQuzMrlqyEN5ON2c+MKcmZB5vwgCiBPAqpwMhHUNSF +tFsMP8t99wfi0BWP3ONqlBQO7ycBywkJzmEC4AKFTezGnEAeVDexBTH+Cl7KEzH9 +dps2/+Ldf0JCKZNuA7ozFna4kKcmQ8+757oE7PeddlRguPAA9KUq2R5ItyYZML1O +rg8aponDqY+4hQSYze+vsNtWKbsONTxJRLhHoqy6CbqPwcdzwjDqrB/YllVhuU4B +UqTWnpsI01afYb9krDoS8OeDunquYeODxbhW6sxpjF/4p8K/UXh9jWSPt1Ijzepq +YQYF/8cCmp1muDCNwB64U9ziqP/LHrTFvupkr06gJ57lFeclHBFyVhZiVTNDXyT7 +xRAEzb2d9uX1aKG6YPAjrisgFzMVmjFZ/bYOdzxcNBifhxdbfocAC7RfOBeRR0jd +2Df5/bGAOPoQWgRM5Zof +=PTFW -----END PGP SIGNATURE----- diff --git a/sys-apps/checkpolicy/checkpolicy-2.4_rc6.ebuild b/sys-apps/checkpolicy/checkpolicy-2.4_rc6.ebuild deleted file mode 100644 index 480e3a9bbd4b..000000000000 --- a/sys-apps/checkpolicy/checkpolicy-2.4_rc6.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.4_rc6.ebuild,v 1.1 2014/11/14 19:20:03 swift Exp $ - -EAPI="5" - -inherit toolchain-funcs eutils - -MY_P="${P//_/-}" - -SEPOL_VER="2.4_rc4" -SEMNG_VER="2.4_rc4" - -DESCRIPTION="SELinux policy compiler" -HOMEPAGE="http://userspace.selinuxproject.org" -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="debug" - -DEPEND=">=sys-libs/libsepol-${SEPOL_VER} - >=sys-libs/libsemanage-${SEMNG_VER} - sys-devel/flex - sys-devel/bison" - -RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}" - -S="${WORKDIR}/${MY_P}" - -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/checkpolicy/checkpolicy-2.4_rc7.ebuild b/sys-apps/checkpolicy/checkpolicy-2.4_rc7.ebuild deleted file mode 100644 index 8ab6f4cbda6a..000000000000 --- a/sys-apps/checkpolicy/checkpolicy-2.4_rc7.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.4_rc7.ebuild,v 1.1 2014/12/06 23:25:46 perfinion Exp $ - -EAPI="5" - -inherit toolchain-funcs eutils - -MY_P="${P//_/-}" - -SEPOL_VER="${PV}" -SEMNG_VER="${PV}" - -DESCRIPTION="SELinux policy compiler" -HOMEPAGE="http://userspace.selinuxproject.org" -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="debug" - -DEPEND=">=sys-libs/libsepol-${SEPOL_VER} - >=sys-libs/libsemanage-${SEMNG_VER} - sys-devel/flex - sys-devel/bison" - -RDEPEND=">=sys-libs/libsemanage-${SEMNG_VER}" - -S="${WORKDIR}/${MY_P}" - -src_prepare() { - epatch_user -} - -src_compile() { - emake CC="$(tc-getCC)" YACC="bison -y" -} - -src_install() { - emake DESTDIR="${D}" install - - 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 f35190fe7010..8d32c1f651eb 100644 --- a/sys-apps/policycoreutils/ChangeLog +++ b/sys-apps/policycoreutils/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/policycoreutils # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.150 2015/03/04 16:05:39 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.151 2015/04/18 21:49:41 perfinion Exp $ + + 18 Apr 2015; Jason Zaman <perfinion@gentoo.org> + -policycoreutils-2.3-r2.ebuild, -policycoreutils-2.4_rc6-r1.ebuild, + -policycoreutils-2.4_rc7.ebuild: + Drop old RCs 04 Mar 2015; Sven Vermeulen <swift@gentoo.org> policycoreutils-2.4.ebuild: Fix build failure on x32 (bug #541618) diff --git a/sys-apps/policycoreutils/Manifest b/sys-apps/policycoreutils/Manifest index e32e3407d5cb..008c95c3d645 100644 --- a/sys-apps/policycoreutils/Manifest +++ b/sys-apps/policycoreutils/Manifest @@ -13,33 +13,30 @@ DIST patchbundle-policycoreutils-2.2.5-gentoo-r1.tar.gz 7287 SHA256 cb6915c46a5e DIST patchbundle-policycoreutils-3.tar.gz 7294 SHA256 44db261c87f583a7620690fc5041d8a21b1c935e741fe7b594aa2cc958e3deb7 SHA512 24e4c73e97441a1042618f6a4179d71672c81f821ffc2f97a54116bf6b33a93bd7f3e2030dbdb362da5e2a7d8936604e5b0283261c7b2447cc4f7594966c73bc WHIRLPOOL d38416ff9707d7d2bbf04f5d582944a87d27de06f3d70677341d38dacc6501dd78ef01fd8a7bb044d49b1f2a8c95181e2cb1b4b81dae49819409dbcf9d7abcb7 DIST policycoreutils-2.2.5.tar.gz 4948944 SHA256 bbf850a8c3c2f371f439d6525663eecdd3a737acd594d2f27f8d8f3a07830cc4 SHA512 88a32fbbede56f3e717394f134212ed9df9b06cbb5532168ccc03ef2a465f4320b54a561348ea5c319b5b641f7661565ad29fbdc5aae50190a6d21d076cf2c3f WHIRLPOOL 0eb0e0c7e1fc1514cb28bbda7a10066ad23a9ccfecc92dee606e3f0e71632e07fe1c4ba7ac89993adf15e9520fc9e527e16d623d56b4e96cc882bf82dea4cb14 DIST policycoreutils-2.3.tar.gz 4984980 SHA256 864cfaee58b5d2f15b140c354e59666e57143293c89f2b2e85bc0d0e4beefcd2 SHA512 3256849d13856ec47ac85470632a57e26952c5dafffb51df4eb8e32467196ff3ef725cc582798727fe45fd6284c1893d12eae2c89088ae1758ad39faec385659 WHIRLPOOL 1dd9bfd67ebb744b8c47144966f09d8361e9018e8d941355080c274b9ac891c18eb95771f3dc8b136683224bc5f12f3fb58fa00666b5815d65e7141c31d9293d -DIST policycoreutils-2.4-rc6.tar.gz 5004643 SHA256 192efeee0e4f83c2aca59b53e7b4b40bb4b5980d9dcf95b17b544e244a038316 SHA512 4530f5b138ea30c2d3f033bad70fb31be54957b83742cea587c76756010669011c862c9c4090d52ea8ba9f3ed9a3e31cf6ac306355cfb12dccb4aea576a758d1 WHIRLPOOL efef6bf91d04a0c07091e4a538c23d1e11cb60e593592519b9cd880d6df4a98b7eb1ae13ba671a879cc7a1cc6460829f8b99665663cb04f9c62d6def0cb51716 -DIST policycoreutils-2.4-rc7.tar.gz 5004811 SHA256 2842f089b0c407e7e691a8bc2105563c4f32d68b74be07fd6451c825ab09b086 SHA512 b16240fd256ac1e89640c80f448feddfd327772d985ecb3daeee93e250b2925dda9f40b7136d392b43a9a5aed712c757d48fd646cc81a35c7a5f53b2f084a498 WHIRLPOOL 58f3ea5cfc93bf1cb7e17344042ea6d5bc48e421e0e1ddb0fe59c52405f08fb75692423104234068471ee4d98427d07e3a298ff9e40bb596067823f4fa718604 DIST policycoreutils-2.4.tar.gz 5004280 SHA256 b819f876f12473783ccce9f63b9a79cd77177477cd6d46818441f808cc4c3479 SHA512 0eb0ea569c1699ed78e5e9798d9f182b3a8bfa6dcd387bcc78923755b3a1cad982673db88857745154d3769d44402b87e52d5fe3024874001f61f783aa25cce6 WHIRLPOOL d101080973ef6248617b5bca9d8b76e59008061b3411aec4ed95343af09b941a34acb3bb0001da5468595c4c37684ab6f34204e18ccb3cbbd5b3d31df0cb5e7f DIST policycoreutils-extra-1.31.tar.bz2 16080 SHA256 ad0a78d96fd01aa51fe774e1701bd23934cd72182b2bad68112006f0ea17cc7b SHA512 520f93f1a2ce3c60a1d192b09cb9a968d207fbc6ab1f01861be95a50b65264f706335620ccbca48ce38f81581a4cf5128e5db9e5b0564460c9f05f04038abfba WHIRLPOOL 56e713b9bd8f1af1496f383f45f1ef8d373b3f45148237bfd28c016f4becaa87d932b363d165b46c657ea3a08503e7bc60b1c5a5a2a814a659770bedf33d4202 DIST policycoreutils-extra-1.33.tar.bz2 16191 SHA256 743c3930277102f5545907314b21e98955e88be7972e30264c6cb5dca370b788 SHA512 3f6f19ae33d5b1043f2979fb3e79bc061767f7051cbd0981e5c5663b4391fa29544b2184b384c9fce7b4100623bc776748d77a01865dcee78b0756d73ee10886 WHIRLPOOL e74b9c3a6dff563b81bf3ce85119fbdfc658191ac063763f2916a7dcd90584f98cbccd1d6cd5ef3aecb00366a82c949c62ab9b907cb98800cb53d3e9ab63b492 EBUILD policycoreutils-2.2.5-r4.ebuild 4708 SHA256 2287c153ef9ce72a15e1fb0d681942c79c26393dfa00436b414389334606b5e4 SHA512 d69a0cd51e9e995f59535e6e72a3e62d4a5e3f75aeb8a98f9e6dd6ce7f02b4ca19d479395bcfccdeba7b932c484bc90308a3f563d621c0f3f626c4aa5b927c5a WHIRLPOOL c34a44c55bc221274f3f19e8f72fbf1d649b16978d6d080ff66ba47185b0bc7e069431a818ebce1fd23ef590f656fa23e86ebef42bca870050ff2a792bf20072 -EBUILD policycoreutils-2.3-r2.ebuild 4348 SHA256 46b1814453fef44d27a90c818d4948e5a448967b5b3305f71017da9788ff18ea SHA512 8ac7acafb331a746ef03bfb016b098425cd0c6f25fb02b20c79f22d4f82a97cdd4c272f27a289a0172b375002a6a3bc3f1f4e4b2f27d6fba52a7bc26819ff8fd WHIRLPOOL 41bd78021c5ac52e4778d5b0648c8af6f5e40298d71446486e2b1ed5da9183c4b8b337850b59f1a275823c536b4eb22800dacfaf656911a5288d61ae65d35d29 EBUILD policycoreutils-2.3-r3.ebuild 4388 SHA256 2b87e99e95421c093aed5fca66c6506261ded68dccc11d309f7e106947664093 SHA512 b00da0cb9bae1f3aa4149b178bf904a90133b7aa7985635c342cb0f5a9e135b3ebb82e14cfdc224684820c1d4085cb8532023793440eaa5e1df8f3f130887b35 WHIRLPOOL 3c8fb7ed0c0ca20985b2f6556a95e623cd04bf83c53822cacfd7702bab50ac55f025ddb15d20799292f4dfdeee702112abf80e269b5493eac128eb9f2df3dfa7 EBUILD policycoreutils-2.4.ebuild 5199 SHA256 60a5c8ed0d12dbc6494e5ec64912cffb3e65682e5d03c88e91bf327da5e57b17 SHA512 b22e5ee33e00774176c2ad113783773307a3f07269588816ddf386382c6fd82f371e8b5bf86a84725e035c6bd076c4b7095ef30f10ffe1986f2c02507991f54b WHIRLPOOL 7ac5e1451215f8d69d3b3d813852e4c9675073764686eceb3a5c03ea4f6da661a2cfcded6b3e8dd978b44b0344970a8779775988dd3aed1c5fe71010f45bb8d5 -EBUILD policycoreutils-2.4_rc6-r1.ebuild 5658 SHA256 d1e1140248b4b7946b55ab3fc5155d92fc7b02212dca63a98bf25616a59a98d0 SHA512 8a2bc4e2a7ac90b6a5874d54c70e354e324f868984b46e38858da75a32b98b8602b62455f0d23b188ae3130be258052606989dfaf25c7a18c8ec2396ee2fa276 WHIRLPOOL 94554fef9e727d9c6b2485d2681212199dd374f4a64371c604f096988874c862c98b9ea461c0e87c5d6dd5db52f70d8a0610240b564549b756381765199fea73 -EBUILD policycoreutils-2.4_rc7.ebuild 5126 SHA256 9e21cd374e5580060128f7aa9ad7419759c43c253789e2ac051d86758c0ab94d SHA512 0734b373f7b52eb7ec27a940203c9dff21b3aa95a2c13f4686b638a42c67925dcc92a63e655480359bd53ea85e5f956d64568d686d87bc9e1999a324279af828 WHIRLPOOL f053ec1d1a5a7e48afc127d207227c1dfdb8c839067b2c4bad8fd188b9156600cf954b8a5b42a6c359f8c035624d4c6863fd8b1653261fca60ea2fe882a2c6c4 -MISC ChangeLog 25986 SHA256 b109c6aa54614a756ab79218712cf80b12afad4758f616ad1c40e186165cfa09 SHA512 9ca5e81d0b7096405a3a16ed3c3c782105314146367a468e213f102a0777ce31be998afe61981d88a786d848ceb16168a3217fa4a42e253645d698b5c48f7166 WHIRLPOOL 4ed2aff74a29eebd5bddbc2123328651385c12a8a122710106e694702273d037b8b9fc23ddf8e60524297a6f2b862175df97fda7eb746c0fd8482cb883dee448 +MISC ChangeLog 26161 SHA256 3baa77156e509893f8f1202d399ea42c0d277a8481a38808dba06df48da4fdd9 SHA512 dcc18599dbffdd35e85a6e7f68a07e95453d9dba244633752d36f4287e29c6c463e1ce2d76e90f8643da776eaedeed098679d44a5e38128257fb6241f06a325e WHIRLPOOL 4308c71282bbebffa3e5b55ca70286a6173d0f80c2d3ae730a035e45882c0808bc5b053c5c8156666ab02bf3e60644b4012493f6a354e1eae0c0f5c13569c4b3 MISC metadata.xml 971 SHA256 9d2157deddd1a457ff3d7b1232ec23e71367852b743ef6b4b8290349c3c9c698 SHA512 79fbbb6285a75f84fdd103ed704d62ede2695e7b8fe03f989ac4a065261a5e870675c1186173c1d4a65b88ac98f8bc2153146010513926e1a1b53efa52564a03 WHIRLPOOL eadde5fe3a3a2a71031d46f7e7c602f8069138914e62c44dff4be09afb8e23391a36d7c358a011722151437ee51be9f404ee1360a2d918078de3f783ff7e062f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0 -iQIcBAEBCAAGBQJU9y1NAAoJEC7dUkA7aK9H3kUP/0ez/v+c5NOdypEwd10hPsQz -ZA10rI3f5ydQJOsX5PiQAhW4BmOSW2N4wS9MwSNWL4ZXMQRjBbr2a9Jf1m7MMw/w -IXAUbW0fmqaxg1ee69UveQi+LOEUGqD0HKct4ahk8OJiRxyClp0Akvu9zT4Oo5+D -M8ln4+njF/l4txoLE5Z+eOmebY/7u7bZF6v+LKx5A82prIfzIWHHROeMltaOD1Be -znxcZKtz+6gsbA3P+7zpOM6cUvEX+B7ukg1DQ4XrCqYhZHsZ0xIlk7Sw8q9Xi2nP -Kbz9gU9mXIXxeG6gre+IBqrJOL+9+zexawAUDLTQp9S3Pxw0k3pR7Wou8i1X90cr -Mv4W1gy31qK3y29rqxHuQ4M6NbLtBlqhTeG91o1KCmkL3VMNXTJCDN+ymiFa1Nmw -rLKKl8czQ6FAkYr6XWzSfuKoRTS1ITyRjH6mK9nz7BO5GIlcTOprhsWRT8sOBHOs -NrA7XeM7XuRokr0l+8YBmFoTfY4Dpm2pjz2o9uRtIQmBOZGNytOc9y3YukbrajeA -KyWyvNEu8wF7l/YqEPLd9N05ZlsEhJlSnmtz5fu9N003aXK3jDMDe8fCFbAZc1n6 -3zX7sB31z+0lPbXKsXvtZpZ/neQjfUhOxPXKNEjCrzXGTy1WB9PltkPczxW/ZKJ0 -9t6kpTy21LXa/hvNY362 -=U8pp +iQJ8BAEBCABmBQJVMtF9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFMTYyREVBRDFDQ0REMTEzRjA0QjNENDky +QkJFRDlDQjFBNjhFRjU1AAoJECu+2csaaO9VII0P/AlwnwQDxdTAgJ+I5diOfN8T +DeRqCLz48vbduG/0cA7+A7qW81fzEv8bF6da/hXdrj7JTTFuJVXyfaP4162slCxt +gH3gmWhkv6ozbeYJgStnfnMJq0w5zKSCC4GQttgLLwGVFVRVSmyzZMqeRPGWdWbg +EksMoLLlXVLtt6yvsesRXEkj1GRE2IxmW1Q51+Eql17lRdEgJNH+b6AdIg1nRi8d ++0mt0ZXJMs3W6nZCZVr/UDIJp+Wn1NbX0zf+eylam3sbgy3qhQvlzqtoDKyIa/et +n5ORVJ6LiPFuG+5ofP5dgrI8+/5uoc+Oa2VxQR3Br5Bb9B6Hq1urFUwmx9taoAqX +MtlT5+vIMcYzjd/fZKk47SBJ8oZQvZRTrzBeqVAkRw/6TVR80/xpTVB39xvfuky4 +BZWWNgBsQgvYiK0UrYVzzpbraMjEmcNyo18KCMqtWZsuRiRiDq/M7MutaqQx6Ci9 +ghNUTOoqP2nFPjmOQcC/OnDFR0fRPp2EVDHdN9mCYLfzVrfZ484LdOWPO0he5bwH +W6grrPdmvHIpSYVYtITLUemRNTe8clARvRPkqUvOz60A315AxUcGg6cY7NKmQnGu +lM1H3QgY45t76YlvyR5ixep4v5giq5f2Dw++if3vBb7LbRB10BE+ufnpyNiPGkxj +2eZ4h5oHhp4vrApaAtph +=+egX -----END PGP SIGNATURE----- diff --git a/sys-apps/policycoreutils/policycoreutils-2.3-r2.ebuild b/sys-apps/policycoreutils/policycoreutils-2.3-r2.ebuild deleted file mode 100644 index 61dca5b8501b..000000000000 --- a/sys-apps/policycoreutils/policycoreutils-2.3-r2.ebuild +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.3-r2.ebuild,v 1.3 2014/09/21 10:22:57 swift Exp $ - -EAPI="5" -PYTHON_COMPAT=( python2_7 ) -PYTHON_REQ_USE="xml" - -inherit multilib python-r1 toolchain-funcs eutils - -MY_P="${P//_/-}" - -EXTRAS_VER="1.33" -SEMNG_VER="2.3" -SELNX_VER="2.3" -SEPOL_VER="2.3" -PATCHBUNDLE="3" - -IUSE="audit pam dbus" - -DESCRIPTION="SELinux core utilities" -HOMEPAGE="http://userspace.selinuxproject.org" -SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140506/${MY_P}.tar.gz -http://dev.gentoo.org/~swift/patches/policycoreutils/patchbundle-${PN}-${PATCHBUNDLE}.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 - dbus? ( - sys-apps/dbus - dev-libs/dbus-glib - ) - audit? ( >=sys-process/audit-1.5.1 ) - pam? ( sys-libs/pam ) - ${PYTHON_DEPS}" - -### libcgroup -> seunshare -### dbus -> restorecond - -# pax-utils for scanelf used by rlpkg -RDEPEND="${COMMON_DEPS} - dev-python/sepolgen - app-misc/pax-utils" - -DEPEND="${COMMON_DEPS}" - -S="${WORKDIR}/${MY_P}" -S1="${WORKDIR}/${MY_P}" -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 - - epatch_user - - python_copy_sources - # Our extra code is outside the regular directory, so set it to the extra - # directory. We really should optimize this as it is ugly, but the extra - # code is needed for Gentoo at the same time that policycoreutils is present - # (so we cannot use an additional package for now). - S="${S2}" - python_copy_sources -} - -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"; - - building() { - emake -C "${BUILD_DIR}" AUDIT_LOG_PRIVS="y" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" CC="$(tc-getCC)" PYLIBVER="${EPYTHON}" || die - } - S="${S1}" # Regular policycoreutils - python_foreach_impl building - S="${S2}" # Extra set - python_foreach_impl 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"; - - # Python scripts are present in many places. There are no extension modules. - installation-policycoreutils() { - einfo "Installing policycoreutils" - emake -C "${BUILD_DIR}" DESTDIR="${D}" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" AUDIT_LOG_PRIV="y" PYLIBVER="${EPYTHON}" install || return 1 - } - - installation-extras() { - einfo "Installing policycoreutils-extra" - emake -C "${BUILD_DIR}" DESTDIR="${D}" INOTIFYH="${use_dbus}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1 - } - - S="${S1}" # policycoreutils - python_foreach_impl installation-policycoreutils - S="${S2}" # extras - python_foreach_impl installation-extras - S="${S1}" # back for later - - # 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 - - # Set version-specific scripts - for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do - python_replicate_script "${ED}/usr/bin/${pyscript}" - done - for pyscript in semanage rlpkg; do - python_replicate_script "${ED}/usr/sbin/${pyscript}" - done - - dodir /usr/share/doc/${PF}/mcstrans/examples - cp -dR "${S1}"/mcstrans/share/examples/* "${D}/usr/share/doc/${PF}/mcstrans/examples" -} diff --git a/sys-apps/policycoreutils/policycoreutils-2.4_rc6-r1.ebuild b/sys-apps/policycoreutils/policycoreutils-2.4_rc6-r1.ebuild deleted file mode 100644 index e37cc263a32f..000000000000 --- a/sys-apps/policycoreutils/policycoreutils-2.4_rc6-r1.ebuild +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc6-r1.ebuild,v 1.2 2014/12/06 23:28:23 perfinion Exp $ - -EAPI="5" -PYTHON_COMPAT=( python2_7 ) -PYTHON_REQ_USE="xml" - -inherit multilib python-r1 toolchain-funcs eutils - -MY_P="${P//_/-}" - -EXTRAS_VER="1.33" -SEMNG_VER="2.4_rc6" -SELNX_VER="2.4_rc6" -SEPOL_VER="2.4_rc6" -PATCHBUNDLE="4" - -IUSE="audit pam dbus" - -DESCRIPTION="SELinux core utilities" -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" -SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${MY_P}.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[${PYTHON_USEDEP}] - dbus? ( - sys-apps/dbus - dev-libs/dbus-glib - ) - audit? ( >=sys-process/audit-1.5.1 ) - pam? ( sys-libs/pam ) - ${PYTHON_DEPS}" - -### libcgroup -> seunshare -### dbus -> restorecond - -# pax-utils for scanelf used by rlpkg -RDEPEND="${COMMON_DEPS} - dev-python/sepolgen - app-misc/pax-utils" - -DEPEND="${COMMON_DEPS}" - -S="${WORKDIR}/${MY_P}" -S1="${WORKDIR}/${MY_P}" -S2="${WORKDIR}/policycoreutils-extra" - -src_prepare() { - epatch "${FILESDIR}/0010-remove-sesandbox-support.patch" - epatch "${FILESDIR}/0020-disable-autodetection-of-pam-and-audit.patch" - epatch "${FILESDIR}/0030-make-inotify-check-use-flag-triggered.patch" - epatch "${FILESDIR}/0040-reverse-access-check-in-run_init.patch" - epatch "${FILESDIR}/0070-remove-symlink-attempt-fails-with-gentoo-sandbox-approach.patch" - epatch "${FILESDIR}/0110-build-mcstrans-bug-472912.patch" - epatch "${FILESDIR}/0120-build-failure-for-mcscolor-for-CONTEXT__CONTAINS.patch" - epatch "${FILESDIR}/0001-policycoreutils-pp-add-roletype-statements-for-both-.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" - - epatch_user - - python_copy_sources - # Our extra code is outside the regular directory, so set it to the extra - # directory. We really should optimize this as it is ugly, but the extra - # code is needed for Gentoo at the same time that policycoreutils is present - # (so we cannot use an additional package for now). - S="${S2}" - python_copy_sources -} - -src_compile() { - local use_audit="no"; - local use_pam="no"; - local use_dbus="no"; - local use_sesandbox="no"; - - use audit && use_audit="yes"; - use pam && use_pam="yes"; - use dbus && use_dbus="yes"; - - building() { - emake -C "${BUILD_DIR}" AUDIT_LOG_PRIVS="y" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" CC="$(tc-getCC)" PYLIBVER="${EPYTHON}" || die - } - S="${S1}" # Regular policycoreutils - python_foreach_impl building - S="${S2}" # Extra set - python_foreach_impl building -} - -src_install() { - local use_audit="no"; - local use_pam="no"; - local use_dbus="no"; - local use_sesandbox="no"; - - use audit && use_audit="yes"; - use pam && use_pam="yes"; - use dbus && use_dbus="yes"; - - # Python scripts are present in many places. There are no extension modules. - installation-policycoreutils() { - einfo "Installing policycoreutils" - emake -C "${BUILD_DIR}" DESTDIR="${D}" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" AUDIT_LOG_PRIV="y" PYLIBVER="${EPYTHON}" install || return 1 - } - - installation-extras() { - einfo "Installing policycoreutils-extra" - emake -C "${BUILD_DIR}" DESTDIR="${D}" INOTIFYH="${use_dbus}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1 - } - - S="${S1}" # policycoreutils - python_foreach_impl installation-policycoreutils - S="${S2}" # extras - python_foreach_impl installation-extras - S="${S1}" # back for later - - # 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 - - # Set version-specific scripts - for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do - python_replicate_script "${ED}/usr/bin/${pyscript}" - done - for pyscript in semanage rlpkg; do - python_replicate_script "${ED}/usr/sbin/${pyscript}" - done - - dodir /usr/share/doc/${PF}/mcstrans/examples - cp -dR "${S1}"/mcstrans/share/examples/* "${D}/usr/share/doc/${PF}/mcstrans/examples" -} - -pkg_postinst() { - # The selinux_gentoo init script is no longer needed with recent OpenRC - elog "The selinux_gentoo init script will be removed in future versions when OpenRC 0.13.x is stabilized." - - # Migrate the SELinux semanage configuration store if not done already - local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' /etc/selinux/config); - if [ -n "${selinuxtype}" ] && [ ! -d /var/lib/selinux/${mcs}/active ] ; then - ewarn "Since the 2.4 SELinux userspace, the policy module store is moved" - ewarn "from /etc/selinux to /var/lib/selinux. In order to continue with" - ewarn "the 2.4 userspace, please migrate the necessary files by executing" - ewarn "/usr/libexec/selinux/semanage_migrate_store. Warnings about 'else'" - ewarn "blocks can be safely ignored." - ewarn "For more information, please see" - ewarn "- https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration" - fi -} diff --git a/sys-apps/policycoreutils/policycoreutils-2.4_rc7.ebuild b/sys-apps/policycoreutils/policycoreutils-2.4_rc7.ebuild deleted file mode 100644 index 78885a25c04c..000000000000 --- a/sys-apps/policycoreutils/policycoreutils-2.4_rc7.ebuild +++ /dev/null @@ -1,151 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc7.ebuild,v 1.1 2014/12/06 23:28:23 perfinion Exp $ - -EAPI="5" -PYTHON_COMPAT=( python2_7 ) -PYTHON_REQ_USE="xml" - -inherit multilib python-r1 toolchain-funcs eutils - -MY_P="${P//_/-}" - -EXTRAS_VER="1.33" -SEMNG_VER="${PV}" -SELNX_VER="${PV}" -SEPOL_VER="${PV}" - -IUSE="audit pam dbus" - -DESCRIPTION="SELinux core utilities" -HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" -SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${MY_P}.tar.gz - mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND=">=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[${PYTHON_USEDEP}] - dbus? ( - sys-apps/dbus - dev-libs/dbus-glib - ) - audit? ( >=sys-process/audit-1.5.1 ) - pam? ( sys-libs/pam ) - ${PYTHON_DEPS}" - -### libcgroup -> seunshare -### dbus -> restorecond - -# pax-utils for scanelf used by rlpkg -RDEPEND="${DEPEND} - dev-python/sepolgen - app-misc/pax-utils" - -S="${WORKDIR}/${MY_P}" -S1="${WORKDIR}/${MY_P}" -S2="${WORKDIR}/policycoreutils-extra" - -src_prepare() { - epatch "${FILESDIR}/0010-remove-sesandbox-support.patch" - epatch "${FILESDIR}/0020-disable-autodetection-of-pam-and-audit.patch" - epatch "${FILESDIR}/0030-make-inotify-check-use-flag-triggered.patch" - epatch "${FILESDIR}/0040-reverse-access-check-in-run_init.patch" - epatch "${FILESDIR}/0070-remove-symlink-attempt-fails-with-gentoo-sandbox-approach.patch" - epatch "${FILESDIR}/0110-build-mcstrans-bug-472912.patch" - epatch "${FILESDIR}/0120-build-failure-for-mcscolor-for-CONTEXT__CONTAINS.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" - - epatch_user - - python_copy_sources - # Our extra code is outside the regular directory, so set it to the extra - # directory. We really should optimize this as it is ugly, but the extra - # code is needed for Gentoo at the same time that policycoreutils is present - # (so we cannot use an additional package for now). - S="${S2}" - python_copy_sources -} - -src_compile() { - building() { - emake -C "${BUILD_DIR}" AUDIT_LOG_PRIVS="y" AUDITH="$(usex audit)" PAMH="$(usex pam)" INOTIFYH="$(usex dbus)" SESANDBOX="n" CC="$(tc-getCC)" PYLIBVER="${EPYTHON}" - } - S="${S1}" # Regular policycoreutils - python_foreach_impl building - S="${S2}" # Extra set - python_foreach_impl building -} - -src_install() { - # Python scripts are present in many places. There are no extension modules. - installation-policycoreutils() { - einfo "Installing policycoreutils" - emake -C "${BUILD_DIR}" DESTDIR="${D}" AUDITH="$(usex audit)" PAMH="$(usex pam)" INOTIFYH="$(usex dbus)" SESANDBOX="n" AUDIT_LOG_PRIV="y" PYLIBVER="${EPYTHON}" install - python_optimize - } - - installation-extras() { - einfo "Installing policycoreutils-extra" - emake -C "${BUILD_DIR}" DESTDIR="${D}" INOTIFYH="$(usex dbus)" SHLIBDIR="${D}$(get_libdir)/rc" install - python_optimize - } - - S="${S1}" # policycoreutils - python_foreach_impl installation-policycoreutils - S="${S2}" # extras - python_foreach_impl installation-extras - S="${S1}" # back for later - - # 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 policy definitions - dodir /var/lib/selinux - keepdir /var/lib/selinux - - # Set version-specific scripts - for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do - python_replicate_script "${ED}/usr/bin/${pyscript}" - done - for pyscript in semanage rlpkg; do - python_replicate_script "${ED}/usr/sbin/${pyscript}" - done - - dodir /usr/share/doc/${PF}/mcstrans/examples - cp -dR "${S1}"/mcstrans/share/examples/* "${D}/usr/share/doc/${PF}/mcstrans/examples" -} - -pkg_postinst() { - # The selinux_gentoo init script is no longer needed with recent OpenRC - elog "The selinux_gentoo init script will be removed in future versions when OpenRC 0.13.x is stabilized." - - # Migrate the SELinux semanage configuration store if not done already - local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' /etc/selinux/config); - if [ -n "${selinuxtype}" ] && [ ! -d /var/lib/selinux/${mcs}/active ] ; then - ewarn "Since the 2.4 SELinux userspace, the policy module store is moved" - ewarn "from /etc/selinux to /var/lib/selinux. In order to continue with" - ewarn "the 2.4 userspace, please migrate the necessary files by executing" - ewarn "/usr/libexec/selinux/semanage_migrate_store. Warnings about 'else'" - ewarn "blocks can be safely ignored." - ewarn "For more information, please see" - ewarn "- https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration" - fi -} |