diff options
author | Sven Vermeulen <swift@gentoo.org> | 2013-03-09 11:00:16 +0000 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2013-03-09 11:00:16 +0000 |
commit | 9e729b64a61d43702466d3c59ab83ceb1d47ce6e (patch) | |
tree | 5bf37064c5f4da07e7bc20ac4d26637271eb10fc /app-admin | |
parent | Fix build failure when USE=-pam is set, see bug #457786 (diff) | |
download | historical-9e729b64a61d43702466d3c59ab83ceb1d47ce6e.tar.gz historical-9e729b64a61d43702466d3c59ab83ceb1d47ce6e.tar.bz2 historical-9e729b64a61d43702466d3c59ab83ceb1d47ce6e.zip |
New upstream release of setools
Package-Manager: portage-2.1.11.52/cvs/Linux x86_64
Manifest-Sign-Key: 0xCDBA2FDB
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/setools/ChangeLog | 9 | ||||
-rw-r--r-- | app-admin/setools/Manifest | 12 | ||||
-rw-r--r-- | app-admin/setools/setools-3.3.8-r1.ebuild | 175 |
3 files changed, 190 insertions, 6 deletions
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog index f62ff86d9a8e..f9486d0bb0f9 100644 --- a/app-admin/setools/ChangeLog +++ b/app-admin/setools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/setools -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.82 2012/12/30 15:23:55 swift Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.83 2013/03/09 11:00:11 swift Exp $ + +*setools-3.3.8-r1 (09 Mar 2013) + + 09 Mar 2013; Sven Vermeulen <swift@gentoo.org> +setools-3.3.8-r1.ebuild: + New upstream release (3.3.8) 30 Dec 2012; Sven Vermeulen setools-3.3.7-r6.ebuild: Stabilize diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest index ac7e949f003a..519b89766205 100644 --- a/app-admin/setools/Manifest +++ b/app-admin/setools/Manifest @@ -8,16 +8,20 @@ DIST setools-3.3.7-03-gentoo-patches.tar.gz 5889 SHA256 bcca7a53655a351915771577 DIST setools-3.3.7-05-gentoo-patches.tar.gz 35221 SHA256 0e2c9bf22009a67a616d45eeb17f49c72d0c29af702884178341f61b24309a5e SHA512 6591bf07be3f924c7dca2386b85b93becaeb1d2efff360ee0edbea16aec1ab1363246850468bdc3a4e9745ccb3d61c332681f5f6d37a0bf34dca33462628c226 WHIRLPOOL 7070e3e3cd1dea3b9457f33ccac66c935025970648f4afe0258f879f8cb5420b0e0d2a1f2449332315fb3d15abdf6380a7528dfad8b678c643ce77ee3b87bb3d DIST setools-3.3.7-06-gentoo-patches.tar.gz 6081 SHA256 466241e8c59eb78d7ecbbbbaada4d9e9cf1980a5800b2e4628fd33d22908eb2f SHA512 70ba539d26b09fc1470739281d73cc0cf8ea37e83a77ee5f37abd59f1b398d31f10def8fde90083aefdd32c804813b4e7b130454aa89a234722004d90d2562dd WHIRLPOOL dd3d8f7857601485bcb4ce13957fc8ae1f595b230a4354f1cf8d0468dc528783a6974d13e93ce575b08f4e8337e12f6c7e4916ddc6c8c25b719d92d95ce2f175 DIST setools-3.3.7.tar.bz2 940657 SHA256 2bfa0918746bdcc910b16b26a51109a4ffd07404c306141ada584cb36e3c895a SHA512 ae45a8ae11a3b7952da61b6b4c51adbb6b1b7caa6b15fdbfa71f6f150b6bc55d2d918e9e7720f868b4f432a5df6ed35d63d53a1c7640f015d9fa9c415d6e6a21 WHIRLPOOL a524e948c804a268c5308c1b544552b295e954d98a6fbb606bce2bd3cf33d37ebd3a0805226396c70f03d895a9ab8403d9ceeef4dd0117097851bb2ebb7660a1 +DIST setools-3.3.8-01-fedora-patches.tar.gz 1128 SHA256 420b852d4209d07b73cec84586e000e7a6a719135ea677711abf97d420840bb6 SHA512 1aa2cc50c307929b522e029a552bfd545aef07656d1983289b0ea9be67aa94c07272a59c17630fc09fd79b06845ada318cdfa48d6cc243a24026e015c23b9634 WHIRLPOOL 25ae2b15fb15060fd0d34c55f4cc098b70a3a616f5334b092657a9c5df037b7fcf00fd185f33ba142e47d46c36b2fb7e9434021d6e987832fe833367a50d7449 +DIST setools-3.3.8-01-gentoo-patches.tar.gz 5798 SHA256 3b8fa933617e42f1fe857b2b8b9ae949ea01324f98f17837e988714562b076b8 SHA512 bcca3678b3f3a3abdbac2d05b1007329249e0dda4f84a9c40c3030cdf22f7815a47bcfa68d7c70836ec1b8b2cbfd8c370d7cd7d09c41b3d4983ec23d79468e56 WHIRLPOOL 5a6072e512754caf7af32a626b3213d6a543c51cc0ff67bbd9b3f6bb822a0b8e406f7e245c9d459be27e2d6ecef527633b889aface5bffc2e04cc15f881529bb +DIST setools-3.3.8.tar.bz2 951428 SHA256 44387ecc9a231ec536a937783440cd8960a72c51f14bffc1604b7525e341e999 SHA512 2c42ee9904174ed6c6fc129e374ec3591925094ab0ef65001b0104e365c5634bf4a79f28369608c80199d8f59fafaa5f274107c04c129c380eeef7adb0c32667 WHIRLPOOL 11c4065809909764f4364b78df1a8030d189315601b882919ccacb5fb147c1b3a061c5bbf9ced3c243d4615ab7727e9db0c89e931a884ae8b317ae3a879e5371 EBUILD setools-3.3.7-r1.ebuild 4297 SHA256 93f8e6d0e377fb1efb48495312a9732e99766901b4895da0562ea9fd5e1e0294 SHA512 0ebde8932bf65b1bd06401761238029c11358c5b990d49b414445b227e4277620df1ed62f82600ff4b0fbe0b05c943fd0e88c43a902a7d91a9b168c12641e04b WHIRLPOOL af203d89bbbacb7bbc095ce48c03302380c30075959f7386d2c45e04674f5f2c38167d40b0025234b2573f2d5a16976a18f76b665547085c3635db8322fc8646 EBUILD setools-3.3.7-r3.ebuild 4907 SHA256 e53cb13a5ebe4e87432d3f18ad099fc0e9616a2339ef1973c78b11e3d4988774 SHA512 24593a56d6c5f16961e65a06ebc92035377976d5c967c8406ee25d8a6ff281577038d7d59e0bb75149d8eb96b891cea03422f731ec95d0ac5bc19940e1d2dd8e WHIRLPOOL 80deb12f2a5edff7b325290368af5f5a86110dff2baf49f031a7edaf610e50e416efd77aa580cdd67d43982e11c3cf805e4117b8dd88e318367c84e49a694624 EBUILD setools-3.3.7-r5.ebuild 4923 SHA256 1963b571107e60dfa9d2b94c1c6dc1c5478a81c6202600a7df91f33db0e9e451 SHA512 66dfbd2f398edb9bb4684edfaa5be27e7d5261bcd1a062f44e533daac0cfd0d84f0fd56b9840b73b8ca9b88bbe03c1bbeb83c83f1053549c4a268adcab2e5818 WHIRLPOOL 54e3f0e80d2ba6ef8349bb3e7b5cdc94b92c84e2b93f1eb5bb6302d86948a08d6bf3e5755700cae90d03fb000204bb4200a25e274077e57bcfc89089a563635d EBUILD setools-3.3.7-r6.ebuild 4919 SHA256 79098d92ce9a5f7233cd0e7faf90d77f682bcda62ba2b394a25321a5c13b7e84 SHA512 62b803f82a2a3ecc2b3a36e3329a3ac9a5293fdcfea2c9fdbb9d5a247f76069ef78245b35228936f63838345cd1ddb8d59ae260e9668ac918911599a63a05e01 WHIRLPOOL a6868ec811867d829322663ba275d9506fd64812a0ac78db2f0290a40a4aafd436990b8013efa85827da10ca2b1c992ac386bd22d4a0c1298857c8bc64711d30 -MISC ChangeLog 11057 SHA256 341fda289b46d7182ed6c86c29e1e95370d0dc6a15cfe0202a3da434ddb8da32 SHA512 742740a1ef876176b1e2a11ad85a9c9466e152570ec5944a61bbf9586e7c72df20ed4af8b3554165a8bfdf881e83495214a12185144cf6a75c23261673ce661a WHIRLPOOL b34ae36c69a9340571868a139b3de71ef98a7d5d38a156ffc5bf3c92551997bd734ffb828a80db758657494f7811fec64a4228238903ed6a8fc0417352ff9060 +EBUILD setools-3.3.8-r1.ebuild 4921 SHA256 b08b8dc5ab318a488da72bba8e66408ff527eba66e0e8b8e3c8f8834bb79e06b SHA512 2d08614e352ba140b6bc4c9d60bb2650a025cecf145c9ef21bf3a4bb57a2b21258b303ee74ad3f18fe5ea3995890026fd155adb2256de7a27eb567d896885a6d WHIRLPOOL 9b92671ffcae528d8d13d6cd06ccda617ab93d546f9da4064271b9be31893e19fac27dc0d36dba4bb740f5801d025f55bbbcc7fd52d22a26a141232ad065c376 +MISC ChangeLog 11197 SHA256 206e7b4d08424a8d6c9b626c3d86299fae985118a4cec3943c28750ad238948e SHA512 77ad4a6401e02fa404abf3ce10ef5c5ee5f9cd898143d8e41691a43d7d17d72148695426c4114b0e73289577fb62ca50705c59c2db1c87ac63b3821d39c50f30 WHIRLPOOL 2e8d2c27401a664338abdd379fc99f99eedeebd106cb14b2cf35da073235b31b2ff735deb693b54fd0021b04ed36de14fb67647535039bf7ffad33919aaaa33c MISC metadata.xml 228 SHA256 bbcb1daec06953b214112a968d7691679891d41b620789200450e8fabf533951 SHA512 23a02e7ab38822642d81150177d3ce4d24f8aef3e422ba71bc8a9a04e777a2d462f45f4de839fcf39d32207fe60799b890157f90b1aedf5c4369656dc6303851 WHIRLPOOL 7e866656536cb45b9efd876bda1455a6554c5019647ff7d600fe0efb905d4e6102ee1d3041943f411505628e9c0d8d5e14d784589538d93a5d68064c526a2aac -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlDgXHoACgkQXfqz7M26L9v/yQCfYgw4F3pkhhCnt6bo1YLabqX4 -C7EAniEgDuNA/tlX2YBi4db7zPsOw2rt -=qAMG +iEYEAREIAAYFAlE7FfwACgkQXfqz7M26L9tEVgCcCGf80eGVbKp1h5RhxucG6FgU +0voAnjhjuKCJJ2bPZz6QYzhzXWVIYNjT +=btJG -----END PGP SIGNATURE----- diff --git a/app-admin/setools/setools-3.3.8-r1.ebuild b/app-admin/setools/setools-3.3.8-r1.ebuild new file mode 100644 index 000000000000..d3ae3b7bd636 --- /dev/null +++ b/app-admin/setools/setools-3.3.8-r1.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.8-r1.ebuild,v 1.1 2013/03/09 11:00:11 swift Exp $ + +EAPI="2" +PYTHON_DEPEND="python? *" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="*-jython *-pypy-* 3.*" + +inherit autotools java-pkg-opt-2 python eutils + +DESCRIPTION="SELinux policy tools" +HOMEPAGE="http://www.tresys.com/selinux/selinux_policy_tools.shtml" +SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${P}/${P}.tar.bz2 + http://dev.gentoo.org/~swift/patches/setools/${P}-01-fedora-patches.tar.gz + http://dev.gentoo.org/~swift/patches/setools/${P}-01-gentoo-patches.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X debug java python" + +DEPEND=">=sys-libs/libsepol-2.1.4 + sys-libs/libselinux + sys-devel/bison + sys-devel/flex + >=dev-db/sqlite-3.2:3 + dev-libs/libxml2:2 + virtual/pkgconfig + java? ( + <dev-lang/swig-2.0 + >=virtual/jdk-1.4 + ) + python? ( <dev-lang/swig-2.0 ) + X? ( + >=dev-lang/tk-8.4.9 + >=gnome-base/libglade-2.0 + >=x11-libs/gtk+-2.8:2 + )" + +RDEPEND=">=sys-libs/libsepol-2.1.4 + sys-libs/libselinux + >=dev-db/sqlite-3.2:3 + dev-libs/libxml2:2 + java? ( >=virtual/jre-1.4 ) + X? ( + >=dev-lang/tk-8.4.9 + >=dev-tcltk/bwidget-1.8 + >=gnome-base/libglade-2.0 + >=x11-libs/gtk+-2.8:2 + )" + +RESTRICT="test" + +pkg_setup() { + if use java; then + java-pkg-opt-2_pkg_setup + fi + + if use python; then + python_pkg_setup + PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" + fi +} + +src_prepare() { + EPATCH_MULTI_MSG="Applying various (Fedora-provided) setools fixes... " \ + EPATCH_SUFFIX="patch" \ + EPATCH_SOURCE="${WORKDIR}" \ + EPATCH_FORCE="yes" \ + epatch + + EPATCH_MULTI_MSG="Applying various (Gentoo) setool fixes... " \ + EPATCH_SUFFIX="patch" \ + EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ + EPATCH_FORCE="yes" \ + epatch + + # Disable broken check for SWIG version. + sed -e "s/AC_PROG_SWIG(2.0.0)/AC_PROG_SWIG/" -i configure.ac || die "sed failed" + # Fix build failure due to double __init__.py installation + sed -e "s/^wrappedpy_DATA = qpol.py \$(pkgpython_PYTHON)/wrappedpy_DATA = qpol.py/" -i libqpol/swig/python/Makefile.am || die + + local dir + for dir in ${PYTHON_DIRS}; do + # Python bindings are built/installed manually. + sed -e "s/MAYBE_PYSWIG = python/MAYBE_PYSWIG =/" -i ${dir%python}Makefile.am || die "sed failed" + # Make PYTHON_LDFLAGS replaceable during running `make`. + sed -e "/^AM_LDFLAGS =/s/@PYTHON_LDFLAGS@/\$(PYTHON_LDFLAGS)/" -i ${dir}/Makefile.am || die "sed failed" + done + + # temporary work around bug #424581 until automake-1.12 is stable (then + # depend on it). Need to use MKDIR_P in the mean time for 1.12+. + has_version ">=sys-devel/automake-1.12.1" && { find . -name 'Makefile.*' -exec sed -i -e 's:mkdir_p:MKDIR_P:g' {} + || die; } + + eautoreconf + + # Disable byte-compilation of Python modules. + echo '#!/bin/sh' > py-compile + + epatch_user +} + +src_configure() { + econf \ + --with-java-prefix=${JAVA_HOME} \ + --disable-selinux-check \ + --disable-bwidget-check \ + $(use_enable python swig-python) \ + $(use_enable java swig-java) \ + $(use_enable X swig-tcl) \ + $(use_enable X gui) \ + $(use_enable debug) + + # work around swig c99 issues. it does not require + # c99 anyway. + sed -i -e 's/-std=gnu99//' "${S}/libseaudit/swig/python/Makefile" +} + +src_compile() { + default + + if use python; then + local dir + for dir in ${PYTHON_DIRS}; do + python_copy_sources ${dir} + building() { + emake \ + SWIG_PYTHON_CPPFLAGS="-I$(python_get_includedir)" \ + PYTHON_LDFLAGS="$(python_get_library -l)" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" + } + python_execute_function \ + --action-message "Building of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version)" \ + --failure-message "Building of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version) failed" \ + -s --source-dir ${dir} \ + building + done + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + if use python; then + local dir + for dir in ${PYTHON_DIRS}; do + installation() { + emake \ + DESTDIR="${D}" \ + pyexecdir="$(python_get_sitedir)" \ + pythondir="$(python_get_sitedir)" \ + install + } + python_execute_function \ + --action-message "Installation of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version)" \ + --failure-message "Installation of Python bindings from ${dir} directory with \$(python_get_implementation) \$(python_get_version) failed" \ + -s --source-dir ${dir} \ + installation + done + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize setools + fi +} + +pkg_postrm() { + if use python; then + python_mod_cleanup setools + fi +} |