diff options
Diffstat (limited to 'app-admin/setools')
-rw-r--r-- | app-admin/setools/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/setools/Manifest | 29 | ||||
-rw-r--r-- | app-admin/setools/setools-3.3.8-r4.ebuild | 164 |
3 files changed, 185 insertions, 15 deletions
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog index 0eebefe4a016..561ca88dfa62 100644 --- a/app-admin/setools/ChangeLog +++ b/app-admin/setools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/setools # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.87 2014/01/19 20:36:55 swift Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.88 2014/02/04 21:51:12 swift Exp $ + +*setools-3.3.8-r4 (04 Feb 2014) + + 04 Feb 2014; Sven Vermeulen <swift@gentoo.org> +setools-3.3.8-r4.ebuild: + Switch to python-r1, use EAPI=5, explicitly use bfd linker (bug 467136) *setools-3.3.8-r3 (19 Jan 2014) diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest index 52f822686282..003f81c4f2fa 100644 --- a/app-admin/setools/Manifest +++ b/app-admin/setools/Manifest @@ -19,22 +19,23 @@ EBUILD setools-3.3.7-r6.ebuild 4919 SHA256 79098d92ce9a5f7233cd0e7faf90d77f682bc EBUILD setools-3.3.8-r1.ebuild 4919 SHA256 42afa1ed05ee5af6f7b85641852cb3c79849a24a7794dd2080d6ea754fa6c542 SHA512 0d6b9f3d05a75867bc1ac81af52598c6d267277089631a29a7d4383e0139a6e93c09d8d1edc9288a79ca26858df4a9187ea6de56cbd07948b7d7c4b32bc5f4bc WHIRLPOOL 6dd1796d627169b45b4f3492c692c4c352f3c9b9d23163ab696a6b7fdb8c0a2e31e78a9de686e59f6c238c33b1f49e152b8245633eede787501daa8a67accbf9 EBUILD setools-3.3.8-r2.ebuild 5087 SHA256 5101bfbfd6c76be0f8e984d0e3075da77e8fe1af167e636b9c206038029e98a2 SHA512 146ac0b7e3e9ebf3dfb29446f890f9104a805fdb7aa47061fbe46037303570428830b14ce030be979dd5e4637bb1a01a3324ca0cd7426db09dce768fbe3d3601 WHIRLPOOL e0b8bc0a9e69eb75d974e388d7fff8e13ebe10b7072933edb13d018bbff4af46a24946fc0caf6fe43288ada36861ff4ba9a5764f5c39d826bf9614f264905b19 EBUILD setools-3.3.8-r3.ebuild 5089 SHA256 106a859da7a115f59f9e68ea77f760207173ead27351f104b17e351974400e21 SHA512 a3565e8296f3fcebd4a600a6a53f648a7a6eecc35d6ba8c8c69681cb0f1445cb22ddc7ce043e39965ae7db0a8d8f8e66a8f037906f7bf6554baff68092827331 WHIRLPOOL d1556dee1f7284dc0cf7312291515d1976ee6f1867e517c57f59d60afbc84b75482ff3dc938b4befa31f1a72e459e8374dfe6dae0fc5d848e44570080a37fa35 -MISC ChangeLog 11713 SHA256 bc54809780edaf9a7b7f92747d6d923ca16051cb5367e0ed5d21948f1c84395f SHA512 9a430c10a4079f72eb837dfd25fe20386a946e3172dff0f6b770638bcf117f7c2f7cc5a5bb79c4b8b7f411ab40ba4bcfd1a8282707c59ea91432f1bfd6d1b356 WHIRLPOOL ef73087442e9a58d7f261e113fabb45c12b6e5930efc1292bf64cd3fbf9a62ecfc18b4e7e2223d8afabd93f887292bbc38522d93a9dbc3cdcff4c09753220a0c +EBUILD setools-3.3.8-r4.ebuild 4546 SHA256 e5f76fee33d7db3afcd6c78af4c37f8ee16d975308d76c5eb325169b06852aef SHA512 737db241b9fa958504d5256d1e99dc7c54d1cda40f45ddab0346c97dd4dc38e2ee29fb90b7c7ee9b96bf25d9e63837fdd8a3ab5abbd3c55192a9547de781dffe WHIRLPOOL 59408768f0260c77b81813fbe58bb569e2708be2c7d0cd1e2191ef0a6a30e5ed2c3a22cec9e39263979843bf0d5d46d8d507973fe4ad9e34fdaa922c8bb18515 +MISC ChangeLog 11896 SHA256 4f970aa00ece26b459ca6da14d656fdce7c53321a712ea043573b18ec18685d8 SHA512 5360b29cd007ba6ce8fce35b9944152882e892192f4658f8577b10e29b9ce371fcc40a3a4ae92f6d77e1a5a380bfabac3a7a3892f7fbc022cac3c7e3098de67e WHIRLPOOL d23c7af4b2ade50f2dfb6d7cfd7a5a60ee0658dee8cb60f2074b3478cc43996b39952ef89ea9472179b50ae099f73878a16a73732549d6d456144c8cb2cae727 MISC metadata.xml 228 SHA256 bbcb1daec06953b214112a968d7691679891d41b620789200450e8fabf533951 SHA512 23a02e7ab38822642d81150177d3ce4d24f8aef3e422ba71bc8a9a04e777a2d462f45f4de839fcf39d32207fe60799b890157f90b1aedf5c4369656dc6303851 WHIRLPOOL 7e866656536cb45b9efd876bda1455a6554c5019647ff7d600fe0efb905d4e6102ee1d3041943f411505628e9c0d8d5e14d784589538d93a5d68064c526a2aac -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJS3DdSAAoJEC7dUkA7aK9Hg68P/3BJHs/AhuFn0UU5Wk/FPpCw -14zimaEQYkAoo3egOlp2DHAQnB6tbGPDgR/KMmx8fdLmF02GDg0aDzqRC5s0Rk4Y -WLHuL4UFEW9PyNNZoi3nU1Z4qZXUBLPZXJFNZaO7u99JaFyL7gN3omB8LQXx/nvw -QIYr2SuEzWmVp+jcckAIzDq3BWWqp/QYDLx2ZDKX9OiRYc1a8ky3K7iCsnv7E8d4 -Sy4r5ZuXcZX6vLXLntT4MXKFgocuY+wy83ZI7aPuULuXHHLOEcedeSDqZ966G6py -/0hJ72oo5t+blD5Hg4GxjaaCi4JPaOwFiHStdc6gL4L6xibKTzBEaic2SyxUQvN/ -Dus8kyDmTraQoY0sSSlvS+CUYU3ywskqR5QmdwbjlJsVLBvCGtqGfgHDykfib8Z+ -+XWv+xJ5MGtKSLOuKmFgWGanqkeM2/SDDZFWmoFMfMgLK96oGgqnDR7XaZ7YBBNj -a6s3q47i1auvnOOBE72PJscJD7ZJ0nsKr/bxqwVSJ6E9b6gMPswPIFL4T3R3lEPP -HjgKxjSp+iUWMIraxjykTjtoNiS6Oa0GR+XbxGtqq3znlQCthL1TLpG0sxJ5S2zN -r7bJgucOzBCUxZLQqzt7QKml7mA5Qv2Wgmt+dutXAwII22p82GO9+RRFpjKfeH+8 -Vug1BzmuRhH3Qyl3szW/ -=4evj +iQIcBAEBCAAGBQJS8WCgAAoJEC7dUkA7aK9HRB8P/RsdJo/tsHjqzLmlT0m6Kx56 +gT0TMcDzKjnAPzD1QJeRRbdVZSizDgitNbDl57RxNAzA3tXJpeQFFjmzKhBRTaPl +WIzfssXD8jEvxOD8xH0h1rOr3zCDBUHyTPh9ThOzLKaB3WyPTzCW3sLYq7axu2g3 +8UhmK5L8d20D3wgeP4RMs8dsE1Xl5tb5hviaP+zuz+sFaL7vdIYVFI8u7PumQ+2b +IUO8pWI3R8UBOHTazpJZV16KFN8WqqcmYq1w2KUQeyuO/VKuxBAvH3BCPzhEqQ9m +hL8eZe9lnV0VIYMtOy2VLb3l1Ewi2hm7mpIKra0/QvDDqUnWNeKdd16wHkm7NORm +kj5n7hZH6WWKHHewsrIeXkYa3YTQpqk1xia6xCTT0PtqHcChID5E5f/cl/Xva2zD +CEm6SlWg/jLItiKwL0UYGwzi245D6YWKl3URm2LJtgxEWzmJJ/fvCnnX64DV5Y9S +egacDnmGNOhM8dZ4eNHTLCtNtjGjfOT1S38G3bC/MXN8fEJ+J1zDC7MNEQXU+QDw +2nry6VvasAfE9zwC/s86hhrhm/ftyeSN9vYv3ApW4CNedqNAsblBzG9wS2S2d5y0 +B2/D7qYn2De7wWYoJvwNpNmdA7yqiLc8VI2bLQHTZszC8W4cLhgQ0rGaOrA85T2N +rOKSKnMhzt6uC+P6+Hah +=2yFp -----END PGP SIGNATURE----- diff --git a/app-admin/setools/setools-3.3.8-r4.ebuild b/app-admin/setools/setools-3.3.8-r4.ebuild new file mode 100644 index 000000000000..6fad55903514 --- /dev/null +++ b/app-admin/setools/setools-3.3.8-r4.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2014 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-r4.ebuild,v 1.1 2014/02/04 21:51:12 swift Exp $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit autotools java-pkg-opt-2 python-r1 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}-02-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:1 + >=virtual/jdk-1.4 + ) + python? ( + ${PYTHON_DEPS} + dev-lang/swig:1 + ) + 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" +# setools dirs that contain python code to build +PYTHON_DIRS="libapol/swig/python libpoldiff/swig/python libqpol/swig/python libseaudit/swig/python libsefs/swig/python python" + +pkg_setup() { + local myld=$(tc-getLD) + + if use java; then + java-pkg-opt-2_pkg_setup + fi + + ${myld} -v | grep -q "GNU gold" && \ + ewarn "Bug #467136 shows us that the gold linker doesn't work with setools for now." +} + +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" + # Use swig1.3 + sed -e 's/AC_PATH_PROG(\[SWIG\],\[swig\])/AC_PATH_PROG([SWIG],[swig1.3])/' -i m4/ac_pkg_swig.m4 || die "failed to set swig1.3" + # 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() { + emake LD="$(tc-getLD).bfd" || die "Failed to build setools" + + if use python; then + building() { + python_export PYTHON_INCLUDEDIR + python_export PYTHON_SITEDIR + python_export PYTHON_LIBS + emake LD="$(tc-getLD).bfd" \ + SWIG_PYTHON_CPPFLAGS="-I${PYTHON_INCLUDEDIR}" \ + PYTHON_LDFLAGS="${PYTHON_LIBS}" \ + pyexecdir="${PYTHON_SITEDIR}" \ + pythondir="${PYTHON_SITEDIR}" \ + -C ${1}; + } + local dir + for dir in ${PYTHON_DIRS}; do + python_foreach_impl building ${dir}; + done + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + if use python; then + installation() { + python_export PYTHON_SITEDIR + emake DESTDIR="${D}" \ + pyexecdir="${PYTHON_SITEDIR}" \ + pythondir="${PYTHON_SITEDIR}" \ + -C ${1} install + } + + local dir + for dir in ${PYTHON_DIRS}; do + python_foreach_impl installation ${dir}; + done + fi +} |