public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2011-08-14  8:08 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2011-08-14  8:08 UTC (permalink / raw
  To: gentoo-commits

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 1149 bytes --]

commit:     48c8a82f482d889deae16bd0b0255f03bf649624
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sun Aug 14 08:08:00 2011 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Sun Aug 14 08:08:00 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=48c8a82f

Update on ebuild QA, substitute PN-PV with Í P

---
 app-admin/setools/setools-3.3.7-r1.ebuild |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app-admin/setools/setools-3.3.7-r1.ebuild b/app-admin/setools/setools-3.3.7-r1.ebuild
index c6d77a5..7a8306d 100644
--- a/app-admin/setools/setools-3.3.7-r1.ebuild
+++ b/app-admin/setools/setools-3.3.7-r1.ebuild
@@ -11,7 +11,7 @@ inherit autotools java-pkg-opt-2 python
 
 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/${PN}-${PV}/${P}.tar.bz2"
+SRC_URI="http://oss.tresys.com/projects/setools/chrome/site/dists/${P}/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2012-05-26 14:48 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2012-05-26 14:48 UTC (permalink / raw
  To: gentoo-commits

commit:     eb8f6e0d5119d1b1c897d1f29bf642116571d087
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sat May 26 14:42:21 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Sat May 26 14:42:21 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=eb8f6e0d

Update setools bindings

---
 app-admin/setools/ChangeLog               |  316 +++++++++++++++++++++++++++++
 app-admin/setools/metadata.xml            |    6 +
 app-admin/setools/setools-3.3.7-r2.ebuild |  169 +++++++++++++++
 3 files changed, 491 insertions(+), 0 deletions(-)

diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog
new file mode 100644
index 0000000..6789c2b
--- /dev/null
+++ b/app-admin/setools/ChangeLog
@@ -0,0 +1,316 @@
+# 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.73 2012/05/03 18:02:22 jdhore Exp $
+
+  03 May 2012; Jeff Horelick <jdhore@gentoo.org> setools-3.3.7-r1.ebuild:
+  dev-util/pkgconfig -> virtual/pkgconfig
+
+  12 Nov 2011; <swift@gentoo.org> -setools-3.3.7.ebuild:
+  Remove obsoleted ebuilds
+
+  23 Oct 2011; <swift@gentoo.org> setools-3.3.7-r1.ebuild:
+  Stabilization (tracker #384231)
+
+  19 Aug 2011; <swift@gentoo.org> -setools-2.4.ebuild, -setools-3.3.4.ebuild,
+  -setools-3.3.5.ebuild, -setools-3.3.6.ebuild,
+  -files/setools-3.3.6-headers.diff, -files/apol_tcl_fc.c.diff:
+  Remove obsoleted versions of setools
+
+*setools-3.3.7-r1 (19 Aug 2011)
+
+  19 Aug 2011; <swift@gentoo.org>
+  +files/fix-check-role_set_expand-libsepol-2.1.0.patch,
+  +setools-3.3.7-r1.ebuild, +files/fix-implicit-def-fstat.patch:
+  Fix #378943 where setools fails to build with new selinux userspace
+
+  08 Jul 2011; Samuli Suominen <ssuominen@gentoo.org> setools-2.4.ebuild:
+  Convert from "useq" to "use".
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org> setools-3.3.7.ebuild:
+  Stable amd64 x86
+
+  04 Apr 2011; Anthony G. Basile <blueness@gentoo.org> setools-2.4.ebuild:
+  Updated SRC_URI, bug #341929
+
+  29 Mar 2011; Christoph Mende <angelos@gentoo.org> setools-3.3.4.ebuild,
+  setools-3.3.5.ebuild, setools-3.3.6.ebuild, setools-3.3.7.ebuild:
+  Fixed slot deps
+
+  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+  Updated metadata.xml to reflect new selinux herd.
+
+  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  setools-3.3.7.ebuild:
+  Set SUPPORT_PYTHON_ABIS (bug #308279). Fix building with SWIG 2.
+
+*setools-3.3.7 (12 May 2010)
+
+  12 May 2010; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.7.ebuild:
+  New upstream release.
+
+  20 Sep 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.6.ebuild,
+  +files/setools-3.3.6-headers.diff:
+  Fix QA issues.
+
+*setools-3.3.6 (08 Aug 2009)
+
+  08 Aug 2009; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.6.ebuild:
+  New upstream release.
+
+  22 Jul 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.4.ebuild,
+  setools-3.3.5.ebuild:
+  Drop alpha, mips, ppc, sparc selinux support.
+
+  13 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+  setools-3.3.5.ebuild:
+  Use emake rather than make.
+
+*setools-3.3.5 (02 Dec 2008)
+
+  02 Dec 2008; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild,
+  -setools-3.3.1.ebuild, -setools-3.3.3.ebuild, +setools-3.3.5.ebuild:
+  New upstream bugfix release for libsepol 2.x additional features.
+  Cleanup old ebuilds.
+
+*setools-3.3.4 (31 Mar 2008)
+
+  31 Mar 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.4.ebuild:
+  Update with fixes for glibc 2.7, gcc 3.4, and tcl/tk 8.5.
+
+*setools-3.3.3 (26 Feb 2008)
+
+  26 Feb 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.3.ebuild:
+  New upstream bugfix release.
+
+*setools-3.3.1 (27 Aug 2007)
+
+  27 Aug 2007; Chris PeBenito <pebenito@gentoo.org> -setools-3.0.ebuild,
+  -setools-3.1.ebuild, -setools-3.2.ebuild, -setools-3.3.ebuild,
+  +setools-3.3.1.ebuild:
+  New upstream bugfix release.  Clear out old unstable ebuilds.
+
+  20 Aug 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.1.ebuild,
+  setools-3.2.ebuild:
+  Set bwidget dep to 1.8 to fix #175415.
+
+*setools-3.3 (04 Aug 2007)
+
+  04 Aug 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.ebuild:
+  New upstream release.
+
+*setools-3.2 (09 May 2007)
+
+  09 May 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.2.ebuild:
+  New upstream release.
+
+*setools-3.1 (16 Feb 2007)
+
+  16 Feb 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.1.ebuild:
+  New upstream release.
+
+  02 Feb 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.0.ebuild:
+  Fix bug #156752.
+
+*setools-3.0 (18 Oct 2006)
+
+  18 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  -files/setools-2.2-nogui.diff, -setools-2.2.ebuild, -setools-2.3.ebuild,
+  +setools-3.0.ebuild:
+  New upstream release.
+
+  12 Sep 2006; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild:
+  Mark stable.
+
+  11 Sep 2006; Chris PeBenito <pebenito@gentoo.org>
+  +files/apol_tcl_fc.c.diff, setools-2.4.ebuild:
+  Fixes to hopefully take care of #133028
+
+*setools-2.4 (09 May 2006)
+
+  09 May 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.4.ebuild:
+  New upstream release.
+
+*setools-2.3 (03 Feb 2006)
+
+  03 Feb 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.3.ebuild:
+  New upstream release.
+
+  02 Jan 2006; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.2.ebuild,
+  -setools-2.1.3.ebuild, setools-2.2.ebuild:
+  Mark stable.
+
+  05 Dec 2005; Chris PeBenito <pebenito@gentoo.org> metadata.xml,
+  setools-2.1.2.ebuild, setools-2.1.3.ebuild, setools-2.2.ebuild:
+  Update homepage and metadata.
+
+  12 Nov 2005; Chris PeBenito <pebenito@gentoo.org>
+  +files/setools-2.2-nogui.diff, setools-2.2.ebuild:
+  Add patch to fix bug #112284.
+
+*setools-2.2 (08 Nov 2005)
+
+  08 Nov 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.2.ebuild:
+  New upstream release.
+
+*setools-2.1.3 (12 Oct 2005)
+
+  12 Oct 2005; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.0.ebuild,
+  -setools-2.1.1.ebuild, +setools-2.1.3.ebuild:
+  New upstream release.
+
+  08 Oct 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.2.ebuild:
+  Mark stable.
+
+  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
+  setools-2.1.1.ebuild, setools-2.1.2.ebuild:
+  Fix changed URIs.
+
+*setools-2.1.2 (07 Sep 2005)
+
+  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.2.ebuild:
+  New upstream release.
+
+*setools-2.1.1 (20 May 2005)
+
+  20 May 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
+  +setools-2.1.1.ebuild:
+  Mark 2.1.0 stable, plus new upstream release.
+
+  21 Apr 2005; Simon Stelling <blubb@gentoo.org> setools-2.0-r1.ebuild:
+  stable on amd64
+
+*setools-2.1.0 (19 Apr 2005)
+
+  19 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.0.ebuild:
+  New upstream release.
+
+*setools-2.0-r1 (09 Apr 2005)
+
+  09 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.0-r1.ebuild:
+  Fix for bug #88248.
+
+  29 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Mark stable.
+
+  06 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Went overboard on CFLAGS fixes, causing some compile failures on some machines.
+
+  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Fix DEPEND
+
+*setools-2.0 (04 Mar 2005)
+
+  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-1.5.1.ebuild,
+  +setools-2.0.ebuild:
+  New upstream major release.  Mark 1.5.1 stable for x86 and ppc.
+
+*setools-1.5.1 (06 Nov 2004)
+
+  06 Nov 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.5.1.ebuild:
+  New upstream release
+
+*setools-1.4.1-r1 (15 Sep 2004)
+
+  15 Sep 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.3.1.ebuild,
+  +setools-1.4.1-r1.ebuild, -setools-1.4.1.ebuild:
+  Fix seuser.fc install.
+
+*setools-1.4.1 (22 Aug 2004)
+
+  22 Aug 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.1.ebuild,
+  -setools-1.4.ebuild:
+  Bugfix release.
+
+  24 Jul 2004; Joshua Brindle <method@gentoo.org> setools-1.4.ebuild:
+  add libselinux dependancy
+
+*setools-1.4 (21 Jun 2004)
+
+  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.ebuild:
+  New upstream version.
+
+  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
+  Fix for compiles that are USE="-selinux".
+
+  24 May 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
+  Fix sandbox violations.
+
+*setools-1.3.1 (05 May 2004)
+
+  05 May 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.1.ebuild,
+  -setools-1.3.ebuild:
+  New upstream bugfix release.
+
+  04 May 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.2.1.ebuild,
+  setools-1.3.ebuild:
+  Mark stable
+
+  29 Apr 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild,
+  setools-1.3.ebuild:
+  Add missing libxml2 dep.
+
+*setools-1.3 (15 Apr 2004)
+
+  15 Apr 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.ebuild:
+  New upstream version.
+
+  03 Mar 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
+  Mark stable.
+
+*setools-1.2.1 (08 Feb 2004)
+
+  08 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
+  New upstream bugfix release.
+
+  06 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
+  Fix seuser file contexts and conf file.
+
+*setools-1.2 (05 Feb 2004)
+
+  05 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
+  New upstream version.
+
+  31 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
+  Mark stable.
+
+*setools-1.1.1 (06 Jan 2004)
+
+  06 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
+  New upstream bugfix release.
+
+  28 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
+  Eliminate install -Z. The context option is not needed, and causes sandbox
+  violations.
+
+  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild,
+  files/setools-1.1-fix_noX.diff:
+  Treesys makefiles are broken. Add a hack to make it really work for non X
+  systems.
+
+*setools-1.1 (22 Dec 2003)
+
+  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
+  New upstream version. Now X is optional, as there are command line tools. Also
+  has a new optional gtk log analyzer for audit messages.
+
+  20 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
+  Mark stable
+
+*setools-1.0.1 (06 Nov 2003)
+
+  06 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
+  New upstream minor version.
+
+*setools-1.0 (23 Oct 2003)
+
+  23 Oct 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.ebuild:
+  Setools for the new SELinux API.
+
+  22 Sep 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
+  Overdue, mark stable.
+
+*setools-20030609 (02 Jul 2003)
+
+  02 Jul 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
+  Initial commit
+

diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml
new file mode 100644
index 0000000..3c35d57
--- /dev/null
+++ b/app-admin/setools/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy analysis tools.</longdescription>
+</pkgmetadata>

diff --git a/app-admin/setools/setools-3.3.7-r2.ebuild b/app-admin/setools/setools-3.3.7-r2.ebuild
new file mode 100644
index 0000000..dd85473
--- /dev/null
+++ b/app-admin/setools/setools-3.3.7-r2.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r1.ebuild,v 1.3 2012/05/03 18:02:22 jdhore Exp $
+
+EAPI="2"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython"
+
+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}-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-2.0.4
+		>=virtual/jdk-1.4
+	)
+	python? ( >=dev-lang/swig-2.0.4 )
+	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
+
+	eautoreconf
+
+	# Disable byte-compilation of Python modules.
+	echo '#!/bin/sh' > py-compile
+}
+
+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
+}



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2012-05-29 19:32 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2012-05-29 19:32 UTC (permalink / raw
  To: gentoo-commits

commit:     7eb8ad1e7b2835067fe1e7059d7d647f0e20d23e
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Tue May 29 19:31:43 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Tue May 29 19:31:43 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=7eb8ad1e

Adding correct module loading

---
 app-admin/setools/setools-3.3.7-r3.ebuild |  169 +++++++++++++++++++++++++++++
 1 files changed, 169 insertions(+), 0 deletions(-)

diff --git a/app-admin/setools/setools-3.3.7-r3.ebuild b/app-admin/setools/setools-3.3.7-r3.ebuild
new file mode 100644
index 0000000..5269735
--- /dev/null
+++ b/app-admin/setools/setools-3.3.7-r3.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r1.ebuild,v 1.3 2012/05/03 18:02:22 jdhore Exp $
+
+EAPI="2"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython"
+
+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}-03-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.4
+		>=virtual/jdk-1.4
+	)
+	python? ( >=dev-lang/swig-2.0.4 )
+	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
+
+	eautoreconf
+
+	# Disable byte-compilation of Python modules.
+	echo '#!/bin/sh' > py-compile
+}
+
+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
+}



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2012-08-24 17:06 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2012-08-24 17:06 UTC (permalink / raw
  To: gentoo-commits

commit:     e102534a3b1f0da1bcd458fb9673f54dfe4d17fb
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Fri Aug 24 17:05:26 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Fri Aug 24 17:05:26 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=e102534a

Fixing bugs #430262 and #424627

---
 app-admin/setools/ChangeLog               |  339 +++++++++++++++++++++++++++++
 app-admin/setools/metadata.xml            |    6 +
 app-admin/setools/setools-3.3.7-r5.ebuild |  173 +++++++++++++++
 3 files changed, 518 insertions(+), 0 deletions(-)

diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog
new file mode 100644
index 0000000..87aea46
--- /dev/null
+++ b/app-admin/setools/ChangeLog
@@ -0,0 +1,339 @@
+# 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.78 2012/07/30 16:33:57 swift Exp $
+
+*setools-3.3.7-r5 (24 Aug 2012)
+
+  24 Aug 2012; <swift@gentoo.org> +setools-3.3.7-r5.ebuild, +metadata.xml:
+  Fixing bugs #430262 and #424627
+
+  30 Jul 2012; <swift@gentoo.org> setools-3.3.7-r3.ebuild:
+  Stabilization
+
+  09 Jul 2012; <swift@gentoo.org> setools-3.3.7-r3.ebuild:
+  Fixing bug #424581 - Work around mkdir_p changes in automake until 1.12 is
+  default
+
+  26 Jun 2012; Mike Gilbert <floppym@gentoo.org> setools-3.3.7-r1.ebuild,
+  setools-3.3.7-r3.ebuild:
+  Restict pypy per Arfrever.
+
+*setools-3.3.7-r3 (25 Jun 2012)
+
+  25 Jun 2012; <swift@gentoo.org> +setools-3.3.7-r3.ebuild:
+  Support Python3, fix audit2allow support, bug #415091 and bug #408179
+
+  21 May 2012; Mike Frysinger <vapier@gentoo.org> setools-3.3.7-r1.ebuild:
+  Inherit eutils for epatch.
+
+  03 May 2012; Jeff Horelick <jdhore@gentoo.org> setools-3.3.7-r1.ebuild:
+  dev-util/pkgconfig -> virtual/pkgconfig
+
+  12 Nov 2011; <swift@gentoo.org> -setools-3.3.7.ebuild:
+  Remove obsoleted ebuilds
+
+  23 Oct 2011; <swift@gentoo.org> setools-3.3.7-r1.ebuild:
+  Stabilization (tracker #384231)
+
+  19 Aug 2011; <swift@gentoo.org> -setools-2.4.ebuild, -setools-3.3.4.ebuild,
+  -setools-3.3.5.ebuild, -setools-3.3.6.ebuild,
+  -files/setools-3.3.6-headers.diff, -files/apol_tcl_fc.c.diff:
+  Remove obsoleted versions of setools
+
+*setools-3.3.7-r1 (19 Aug 2011)
+
+  19 Aug 2011; <swift@gentoo.org>
+  +files/fix-check-role_set_expand-libsepol-2.1.0.patch,
+  +setools-3.3.7-r1.ebuild, +files/fix-implicit-def-fstat.patch:
+  Fix #378943 where setools fails to build with new selinux userspace
+
+  08 Jul 2011; Samuli Suominen <ssuominen@gentoo.org> setools-2.4.ebuild:
+  Convert from "useq" to "use".
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org> setools-3.3.7.ebuild:
+  Stable amd64 x86
+
+  04 Apr 2011; Anthony G. Basile <blueness@gentoo.org> setools-2.4.ebuild:
+  Updated SRC_URI, bug #341929
+
+  29 Mar 2011; Christoph Mende <angelos@gentoo.org> setools-3.3.4.ebuild,
+  setools-3.3.5.ebuild, setools-3.3.6.ebuild, setools-3.3.7.ebuild:
+  Fixed slot deps
+
+  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+  Updated metadata.xml to reflect new selinux herd.
+
+  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  setools-3.3.7.ebuild:
+  Set SUPPORT_PYTHON_ABIS (bug #308279). Fix building with SWIG 2.
+
+*setools-3.3.7 (12 May 2010)
+
+  12 May 2010; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.7.ebuild:
+  New upstream release.
+
+  20 Sep 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.6.ebuild,
+  +files/setools-3.3.6-headers.diff:
+  Fix QA issues.
+
+*setools-3.3.6 (08 Aug 2009)
+
+  08 Aug 2009; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.6.ebuild:
+  New upstream release.
+
+  22 Jul 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.4.ebuild,
+  setools-3.3.5.ebuild:
+  Drop alpha, mips, ppc, sparc selinux support.
+
+  13 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+  setools-3.3.5.ebuild:
+  Use emake rather than make.
+
+*setools-3.3.5 (02 Dec 2008)
+
+  02 Dec 2008; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild,
+  -setools-3.3.1.ebuild, -setools-3.3.3.ebuild, +setools-3.3.5.ebuild:
+  New upstream bugfix release for libsepol 2.x additional features.
+  Cleanup old ebuilds.
+
+*setools-3.3.4 (31 Mar 2008)
+
+  31 Mar 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.4.ebuild:
+  Update with fixes for glibc 2.7, gcc 3.4, and tcl/tk 8.5.
+
+*setools-3.3.3 (26 Feb 2008)
+
+  26 Feb 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.3.ebuild:
+  New upstream bugfix release.
+
+*setools-3.3.1 (27 Aug 2007)
+
+  27 Aug 2007; Chris PeBenito <pebenito@gentoo.org> -setools-3.0.ebuild,
+  -setools-3.1.ebuild, -setools-3.2.ebuild, -setools-3.3.ebuild,
+  +setools-3.3.1.ebuild:
+  New upstream bugfix release.  Clear out old unstable ebuilds.
+
+  20 Aug 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.1.ebuild,
+  setools-3.2.ebuild:
+  Set bwidget dep to 1.8 to fix #175415.
+
+*setools-3.3 (04 Aug 2007)
+
+  04 Aug 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.ebuild:
+  New upstream release.
+
+*setools-3.2 (09 May 2007)
+
+  09 May 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.2.ebuild:
+  New upstream release.
+
+*setools-3.1 (16 Feb 2007)
+
+  16 Feb 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.1.ebuild:
+  New upstream release.
+
+  02 Feb 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.0.ebuild:
+  Fix bug #156752.
+
+*setools-3.0 (18 Oct 2006)
+
+  18 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  -files/setools-2.2-nogui.diff, -setools-2.2.ebuild, -setools-2.3.ebuild,
+  +setools-3.0.ebuild:
+  New upstream release.
+
+  12 Sep 2006; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild:
+  Mark stable.
+
+  11 Sep 2006; Chris PeBenito <pebenito@gentoo.org>
+  +files/apol_tcl_fc.c.diff, setools-2.4.ebuild:
+  Fixes to hopefully take care of #133028
+
+*setools-2.4 (09 May 2006)
+
+  09 May 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.4.ebuild:
+  New upstream release.
+
+*setools-2.3 (03 Feb 2006)
+
+  03 Feb 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.3.ebuild:
+  New upstream release.
+
+  02 Jan 2006; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.2.ebuild,
+  -setools-2.1.3.ebuild, setools-2.2.ebuild:
+  Mark stable.
+
+  05 Dec 2005; Chris PeBenito <pebenito@gentoo.org> metadata.xml,
+  setools-2.1.2.ebuild, setools-2.1.3.ebuild, setools-2.2.ebuild:
+  Update homepage and metadata.
+
+  12 Nov 2005; Chris PeBenito <pebenito@gentoo.org>
+  +files/setools-2.2-nogui.diff, setools-2.2.ebuild:
+  Add patch to fix bug #112284.
+
+*setools-2.2 (08 Nov 2005)
+
+  08 Nov 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.2.ebuild:
+  New upstream release.
+
+*setools-2.1.3 (12 Oct 2005)
+
+  12 Oct 2005; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.0.ebuild,
+  -setools-2.1.1.ebuild, +setools-2.1.3.ebuild:
+  New upstream release.
+
+  08 Oct 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.2.ebuild:
+  Mark stable.
+
+  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
+  setools-2.1.1.ebuild, setools-2.1.2.ebuild:
+  Fix changed URIs.
+
+*setools-2.1.2 (07 Sep 2005)
+
+  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.2.ebuild:
+  New upstream release.
+
+*setools-2.1.1 (20 May 2005)
+
+  20 May 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
+  +setools-2.1.1.ebuild:
+  Mark 2.1.0 stable, plus new upstream release.
+
+  21 Apr 2005; Simon Stelling <blubb@gentoo.org> setools-2.0-r1.ebuild:
+  stable on amd64
+
+*setools-2.1.0 (19 Apr 2005)
+
+  19 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.0.ebuild:
+  New upstream release.
+
+*setools-2.0-r1 (09 Apr 2005)
+
+  09 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.0-r1.ebuild:
+  Fix for bug #88248.
+
+  29 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Mark stable.
+
+  06 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Went overboard on CFLAGS fixes, causing some compile failures on some machines.
+
+  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Fix DEPEND
+
+*setools-2.0 (04 Mar 2005)
+
+  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-1.5.1.ebuild,
+  +setools-2.0.ebuild:
+  New upstream major release.  Mark 1.5.1 stable for x86 and ppc.
+
+*setools-1.5.1 (06 Nov 2004)
+
+  06 Nov 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.5.1.ebuild:
+  New upstream release
+
+*setools-1.4.1-r1 (15 Sep 2004)
+
+  15 Sep 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.3.1.ebuild,
+  +setools-1.4.1-r1.ebuild, -setools-1.4.1.ebuild:
+  Fix seuser.fc install.
+
+*setools-1.4.1 (22 Aug 2004)
+
+  22 Aug 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.1.ebuild,
+  -setools-1.4.ebuild:
+  Bugfix release.
+
+  24 Jul 2004; Joshua Brindle <method@gentoo.org> setools-1.4.ebuild:
+  add libselinux dependancy
+
+*setools-1.4 (21 Jun 2004)
+
+  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.ebuild:
+  New upstream version.
+
+  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
+  Fix for compiles that are USE="-selinux".
+
+  24 May 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
+  Fix sandbox violations.
+
+*setools-1.3.1 (05 May 2004)
+
+  05 May 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.1.ebuild,
+  -setools-1.3.ebuild:
+  New upstream bugfix release.
+
+  04 May 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.2.1.ebuild,
+  setools-1.3.ebuild:
+  Mark stable
+
+  29 Apr 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild,
+  setools-1.3.ebuild:
+  Add missing libxml2 dep.
+
+*setools-1.3 (15 Apr 2004)
+
+  15 Apr 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.ebuild:
+  New upstream version.
+
+  03 Mar 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
+  Mark stable.
+
+*setools-1.2.1 (08 Feb 2004)
+
+  08 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
+  New upstream bugfix release.
+
+  06 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
+  Fix seuser file contexts and conf file.
+
+*setools-1.2 (05 Feb 2004)
+
+  05 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
+  New upstream version.
+
+  31 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
+  Mark stable.
+
+*setools-1.1.1 (06 Jan 2004)
+
+  06 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
+  New upstream bugfix release.
+
+  28 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
+  Eliminate install -Z. The context option is not needed, and causes sandbox
+  violations.
+
+  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild,
+  files/setools-1.1-fix_noX.diff:
+  Treesys makefiles are broken. Add a hack to make it really work for non X
+  systems.
+
+*setools-1.1 (22 Dec 2003)
+
+  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
+  New upstream version. Now X is optional, as there are command line tools. Also
+  has a new optional gtk log analyzer for audit messages.
+
+  20 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
+  Mark stable
+
+*setools-1.0.1 (06 Nov 2003)
+
+  06 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
+  New upstream minor version.
+
+*setools-1.0 (23 Oct 2003)
+
+  23 Oct 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.ebuild:
+  Setools for the new SELinux API.
+
+  22 Sep 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
+  Overdue, mark stable.
+
+*setools-20030609 (02 Jul 2003)
+
+  02 Jul 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
+  Initial commit

diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml
new file mode 100644
index 0000000..3c35d57
--- /dev/null
+++ b/app-admin/setools/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy analysis tools.</longdescription>
+</pkgmetadata>

diff --git a/app-admin/setools/setools-3.3.7-r5.ebuild b/app-admin/setools/setools-3.3.7-r5.ebuild
new file mode 100644
index 0000000..69db1fe
--- /dev/null
+++ b/app-admin/setools/setools-3.3.7-r5.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r3.ebuild,v 1.4 2012/07/30 16:33:57 swift Exp $
+
+EAPI="2"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
+
+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}-05-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.4
+		>=virtual/jdk-1.4
+	)
+	python? ( >=dev-lang/swig-2.0.4 )
+	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
+}
+
+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
+}


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2012-09-08 19:57 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2012-09-08 19:57 UTC (permalink / raw
  To: gentoo-commits

commit:     74c5150a50f0c46a848a769995ec9c9209fd7f06
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sat Sep  8 18:32:51 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Sat Sep  8 18:32:51 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=74c5150a

Moved to main tree

---
 app-admin/setools/ChangeLog               |  339 -----------------------------
 app-admin/setools/metadata.xml            |    6 -
 app-admin/setools/setools-3.3.7-r5.ebuild |  173 ---------------
 3 files changed, 0 insertions(+), 518 deletions(-)

diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog
deleted file mode 100644
index 87aea46..0000000
--- a/app-admin/setools/ChangeLog
+++ /dev/null
@@ -1,339 +0,0 @@
-# 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.78 2012/07/30 16:33:57 swift Exp $
-
-*setools-3.3.7-r5 (24 Aug 2012)
-
-  24 Aug 2012; <swift@gentoo.org> +setools-3.3.7-r5.ebuild, +metadata.xml:
-  Fixing bugs #430262 and #424627
-
-  30 Jul 2012; <swift@gentoo.org> setools-3.3.7-r3.ebuild:
-  Stabilization
-
-  09 Jul 2012; <swift@gentoo.org> setools-3.3.7-r3.ebuild:
-  Fixing bug #424581 - Work around mkdir_p changes in automake until 1.12 is
-  default
-
-  26 Jun 2012; Mike Gilbert <floppym@gentoo.org> setools-3.3.7-r1.ebuild,
-  setools-3.3.7-r3.ebuild:
-  Restict pypy per Arfrever.
-
-*setools-3.3.7-r3 (25 Jun 2012)
-
-  25 Jun 2012; <swift@gentoo.org> +setools-3.3.7-r3.ebuild:
-  Support Python3, fix audit2allow support, bug #415091 and bug #408179
-
-  21 May 2012; Mike Frysinger <vapier@gentoo.org> setools-3.3.7-r1.ebuild:
-  Inherit eutils for epatch.
-
-  03 May 2012; Jeff Horelick <jdhore@gentoo.org> setools-3.3.7-r1.ebuild:
-  dev-util/pkgconfig -> virtual/pkgconfig
-
-  12 Nov 2011; <swift@gentoo.org> -setools-3.3.7.ebuild:
-  Remove obsoleted ebuilds
-
-  23 Oct 2011; <swift@gentoo.org> setools-3.3.7-r1.ebuild:
-  Stabilization (tracker #384231)
-
-  19 Aug 2011; <swift@gentoo.org> -setools-2.4.ebuild, -setools-3.3.4.ebuild,
-  -setools-3.3.5.ebuild, -setools-3.3.6.ebuild,
-  -files/setools-3.3.6-headers.diff, -files/apol_tcl_fc.c.diff:
-  Remove obsoleted versions of setools
-
-*setools-3.3.7-r1 (19 Aug 2011)
-
-  19 Aug 2011; <swift@gentoo.org>
-  +files/fix-check-role_set_expand-libsepol-2.1.0.patch,
-  +setools-3.3.7-r1.ebuild, +files/fix-implicit-def-fstat.patch:
-  Fix #378943 where setools fails to build with new selinux userspace
-
-  08 Jul 2011; Samuli Suominen <ssuominen@gentoo.org> setools-2.4.ebuild:
-  Convert from "useq" to "use".
-
-  28 May 2011; Anthony G. Basile <blueness@gentoo.org> setools-3.3.7.ebuild:
-  Stable amd64 x86
-
-  04 Apr 2011; Anthony G. Basile <blueness@gentoo.org> setools-2.4.ebuild:
-  Updated SRC_URI, bug #341929
-
-  29 Mar 2011; Christoph Mende <angelos@gentoo.org> setools-3.3.4.ebuild,
-  setools-3.3.5.ebuild, setools-3.3.6.ebuild, setools-3.3.7.ebuild:
-  Fixed slot deps
-
-  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
-  Updated metadata.xml to reflect new selinux herd.
-
-  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-  setools-3.3.7.ebuild:
-  Set SUPPORT_PYTHON_ABIS (bug #308279). Fix building with SWIG 2.
-
-*setools-3.3.7 (12 May 2010)
-
-  12 May 2010; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.7.ebuild:
-  New upstream release.
-
-  20 Sep 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.6.ebuild,
-  +files/setools-3.3.6-headers.diff:
-  Fix QA issues.
-
-*setools-3.3.6 (08 Aug 2009)
-
-  08 Aug 2009; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.6.ebuild:
-  New upstream release.
-
-  22 Jul 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.4.ebuild,
-  setools-3.3.5.ebuild:
-  Drop alpha, mips, ppc, sparc selinux support.
-
-  13 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org>
-  setools-3.3.5.ebuild:
-  Use emake rather than make.
-
-*setools-3.3.5 (02 Dec 2008)
-
-  02 Dec 2008; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild,
-  -setools-3.3.1.ebuild, -setools-3.3.3.ebuild, +setools-3.3.5.ebuild:
-  New upstream bugfix release for libsepol 2.x additional features.
-  Cleanup old ebuilds.
-
-*setools-3.3.4 (31 Mar 2008)
-
-  31 Mar 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.4.ebuild:
-  Update with fixes for glibc 2.7, gcc 3.4, and tcl/tk 8.5.
-
-*setools-3.3.3 (26 Feb 2008)
-
-  26 Feb 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.3.ebuild:
-  New upstream bugfix release.
-
-*setools-3.3.1 (27 Aug 2007)
-
-  27 Aug 2007; Chris PeBenito <pebenito@gentoo.org> -setools-3.0.ebuild,
-  -setools-3.1.ebuild, -setools-3.2.ebuild, -setools-3.3.ebuild,
-  +setools-3.3.1.ebuild:
-  New upstream bugfix release.  Clear out old unstable ebuilds.
-
-  20 Aug 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.1.ebuild,
-  setools-3.2.ebuild:
-  Set bwidget dep to 1.8 to fix #175415.
-
-*setools-3.3 (04 Aug 2007)
-
-  04 Aug 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.ebuild:
-  New upstream release.
-
-*setools-3.2 (09 May 2007)
-
-  09 May 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.2.ebuild:
-  New upstream release.
-
-*setools-3.1 (16 Feb 2007)
-
-  16 Feb 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.1.ebuild:
-  New upstream release.
-
-  02 Feb 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.0.ebuild:
-  Fix bug #156752.
-
-*setools-3.0 (18 Oct 2006)
-
-  18 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
-  -files/setools-2.2-nogui.diff, -setools-2.2.ebuild, -setools-2.3.ebuild,
-  +setools-3.0.ebuild:
-  New upstream release.
-
-  12 Sep 2006; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild:
-  Mark stable.
-
-  11 Sep 2006; Chris PeBenito <pebenito@gentoo.org>
-  +files/apol_tcl_fc.c.diff, setools-2.4.ebuild:
-  Fixes to hopefully take care of #133028
-
-*setools-2.4 (09 May 2006)
-
-  09 May 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.4.ebuild:
-  New upstream release.
-
-*setools-2.3 (03 Feb 2006)
-
-  03 Feb 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.3.ebuild:
-  New upstream release.
-
-  02 Jan 2006; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.2.ebuild,
-  -setools-2.1.3.ebuild, setools-2.2.ebuild:
-  Mark stable.
-
-  05 Dec 2005; Chris PeBenito <pebenito@gentoo.org> metadata.xml,
-  setools-2.1.2.ebuild, setools-2.1.3.ebuild, setools-2.2.ebuild:
-  Update homepage and metadata.
-
-  12 Nov 2005; Chris PeBenito <pebenito@gentoo.org>
-  +files/setools-2.2-nogui.diff, setools-2.2.ebuild:
-  Add patch to fix bug #112284.
-
-*setools-2.2 (08 Nov 2005)
-
-  08 Nov 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.2.ebuild:
-  New upstream release.
-
-*setools-2.1.3 (12 Oct 2005)
-
-  12 Oct 2005; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.0.ebuild,
-  -setools-2.1.1.ebuild, +setools-2.1.3.ebuild:
-  New upstream release.
-
-  08 Oct 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.2.ebuild:
-  Mark stable.
-
-  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
-  setools-2.1.1.ebuild, setools-2.1.2.ebuild:
-  Fix changed URIs.
-
-*setools-2.1.2 (07 Sep 2005)
-
-  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.2.ebuild:
-  New upstream release.
-
-*setools-2.1.1 (20 May 2005)
-
-  20 May 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
-  +setools-2.1.1.ebuild:
-  Mark 2.1.0 stable, plus new upstream release.
-
-  21 Apr 2005; Simon Stelling <blubb@gentoo.org> setools-2.0-r1.ebuild:
-  stable on amd64
-
-*setools-2.1.0 (19 Apr 2005)
-
-  19 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.0.ebuild:
-  New upstream release.
-
-*setools-2.0-r1 (09 Apr 2005)
-
-  09 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.0-r1.ebuild:
-  Fix for bug #88248.
-
-  29 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
-  Mark stable.
-
-  06 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
-  Went overboard on CFLAGS fixes, causing some compile failures on some machines.
-
-  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
-  Fix DEPEND
-
-*setools-2.0 (04 Mar 2005)
-
-  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-1.5.1.ebuild,
-  +setools-2.0.ebuild:
-  New upstream major release.  Mark 1.5.1 stable for x86 and ppc.
-
-*setools-1.5.1 (06 Nov 2004)
-
-  06 Nov 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.5.1.ebuild:
-  New upstream release
-
-*setools-1.4.1-r1 (15 Sep 2004)
-
-  15 Sep 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.3.1.ebuild,
-  +setools-1.4.1-r1.ebuild, -setools-1.4.1.ebuild:
-  Fix seuser.fc install.
-
-*setools-1.4.1 (22 Aug 2004)
-
-  22 Aug 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.1.ebuild,
-  -setools-1.4.ebuild:
-  Bugfix release.
-
-  24 Jul 2004; Joshua Brindle <method@gentoo.org> setools-1.4.ebuild:
-  add libselinux dependancy
-
-*setools-1.4 (21 Jun 2004)
-
-  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.ebuild:
-  New upstream version.
-
-  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
-  Fix for compiles that are USE="-selinux".
-
-  24 May 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
-  Fix sandbox violations.
-
-*setools-1.3.1 (05 May 2004)
-
-  05 May 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.1.ebuild,
-  -setools-1.3.ebuild:
-  New upstream bugfix release.
-
-  04 May 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.2.1.ebuild,
-  setools-1.3.ebuild:
-  Mark stable
-
-  29 Apr 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild,
-  setools-1.3.ebuild:
-  Add missing libxml2 dep.
-
-*setools-1.3 (15 Apr 2004)
-
-  15 Apr 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.ebuild:
-  New upstream version.
-
-  03 Mar 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
-  Mark stable.
-
-*setools-1.2.1 (08 Feb 2004)
-
-  08 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
-  New upstream bugfix release.
-
-  06 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
-  Fix seuser file contexts and conf file.
-
-*setools-1.2 (05 Feb 2004)
-
-  05 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
-  New upstream version.
-
-  31 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
-  Mark stable.
-
-*setools-1.1.1 (06 Jan 2004)
-
-  06 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
-  New upstream bugfix release.
-
-  28 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
-  Eliminate install -Z. The context option is not needed, and causes sandbox
-  violations.
-
-  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild,
-  files/setools-1.1-fix_noX.diff:
-  Treesys makefiles are broken. Add a hack to make it really work for non X
-  systems.
-
-*setools-1.1 (22 Dec 2003)
-
-  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
-  New upstream version. Now X is optional, as there are command line tools. Also
-  has a new optional gtk log analyzer for audit messages.
-
-  20 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
-  Mark stable
-
-*setools-1.0.1 (06 Nov 2003)
-
-  06 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
-  New upstream minor version.
-
-*setools-1.0 (23 Oct 2003)
-
-  23 Oct 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.ebuild:
-  Setools for the new SELinux API.
-
-  22 Sep 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
-  Overdue, mark stable.
-
-*setools-20030609 (02 Jul 2003)
-
-  02 Jul 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
-  Initial commit

diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml
deleted file mode 100644
index 3c35d57..0000000
--- a/app-admin/setools/metadata.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>selinux</herd>
-	<longdescription>SELinux policy analysis tools.</longdescription>
-</pkgmetadata>

diff --git a/app-admin/setools/setools-3.3.7-r5.ebuild b/app-admin/setools/setools-3.3.7-r5.ebuild
deleted file mode 100644
index 69db1fe..0000000
--- a/app-admin/setools/setools-3.3.7-r5.ebuild
+++ /dev/null
@@ -1,173 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r3.ebuild,v 1.4 2012/07/30 16:33:57 swift Exp $
-
-EAPI="2"
-PYTHON_DEPEND="python? *"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
-
-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}-05-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.4
-		>=virtual/jdk-1.4
-	)
-	python? ( >=dev-lang/swig-2.0.4 )
-	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
-}
-
-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
-}


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2012-11-18 13:17 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2012-11-18 13:17 UTC (permalink / raw
  To: gentoo-commits

commit:     dd384b3e8fd7df42677573cf2bc02798be1a4b60
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sun Nov 18 13:16:49 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Sun Nov 18 13:16:49 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=dd384b3e

Use python-2.7 and swig-1.something, fixes #430262

(Portage version: 2.1.11.9/git/Linux x86_64, signed Manifest commit with key 0xCDBA2FDB)

---
 app-admin/setools/ChangeLog               |   12 ++
 app-admin/setools/metadata.xml            |    6 +
 app-admin/setools/setools-3.3.7-r6.ebuild |  175 +++++++++++++++++++++++++++++
 3 files changed, 193 insertions(+), 0 deletions(-)

diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog
new file mode 100644
index 0000000..21186e9
--- /dev/null
+++ b/app-admin/setools/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-admin/setools
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  18 Nov 2012; <swift@gentoo.org> +setools-3.3.7-r6.ebuild, +metadata.xml:
+  Fix bug #430262
+
+*setools-3.3.7-r6 (18 Nov 2012)
+
+  18 Nov 2012; <swift@gentoo.org> +setools-3.3.7-r6.ebuild, +metadata.xml:
+  Trying removal of swig-changes and use different method for fixing
+

diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml
new file mode 100644
index 0000000..3c35d57
--- /dev/null
+++ b/app-admin/setools/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy analysis tools.</longdescription>
+</pkgmetadata>

diff --git a/app-admin/setools/setools-3.3.7-r6.ebuild b/app-admin/setools/setools-3.3.7-r6.ebuild
new file mode 100644
index 0000000..841a3be
--- /dev/null
+++ b/app-admin/setools/setools-3.3.7-r6.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r5.ebuild,v 1.2 2012/11/18 08:49:57 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}-06-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
+}


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2012-11-23 21:20 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2012-11-23 21:20 UTC (permalink / raw
  To: gentoo-commits

commit:     6218496ac8f79b071fcd1ae30fe492d453e629a2
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Fri Nov 23 21:05:13 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Fri Nov 23 21:05:13 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=6218496a

Moved to main tree

---
 app-admin/setools/ChangeLog               |   12 --
 app-admin/setools/metadata.xml            |    6 -
 app-admin/setools/setools-3.3.7-r6.ebuild |  175 -----------------------------
 3 files changed, 0 insertions(+), 193 deletions(-)

diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog
deleted file mode 100644
index 21186e9..0000000
--- a/app-admin/setools/ChangeLog
+++ /dev/null
@@ -1,12 +0,0 @@
-# ChangeLog for app-admin/setools
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-  18 Nov 2012; <swift@gentoo.org> +setools-3.3.7-r6.ebuild, +metadata.xml:
-  Fix bug #430262
-
-*setools-3.3.7-r6 (18 Nov 2012)
-
-  18 Nov 2012; <swift@gentoo.org> +setools-3.3.7-r6.ebuild, +metadata.xml:
-  Trying removal of swig-changes and use different method for fixing
-

diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml
deleted file mode 100644
index 3c35d57..0000000
--- a/app-admin/setools/metadata.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>selinux</herd>
-	<longdescription>SELinux policy analysis tools.</longdescription>
-</pkgmetadata>

diff --git a/app-admin/setools/setools-3.3.7-r6.ebuild b/app-admin/setools/setools-3.3.7-r6.ebuild
deleted file mode 100644
index 841a3be..0000000
--- a/app-admin/setools/setools-3.3.7-r6.ebuild
+++ /dev/null
@@ -1,175 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-3.3.7-r5.ebuild,v 1.2 2012/11/18 08:49:57 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}-06-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
-}


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/
@ 2013-03-08 19:32 Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2013-03-08 19:32 UTC (permalink / raw
  To: gentoo-commits

commit:     dbea71fa19533e8f5cfe48b7757095db5d7d5dae
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Fri Mar  8 19:30:53 2013 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Fri Mar  8 19:30:53 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=dbea71fa

New setools release

---
 app-admin/setools/ChangeLog               |  356 +++++++++++++++++++++++++++++
 app-admin/setools/metadata.xml            |    6 +
 app-admin/setools/setools-3.3.8-r1.ebuild |  175 ++++++++++++++
 3 files changed, 537 insertions(+), 0 deletions(-)

diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog
new file mode 100644
index 0000000..97dd028
--- /dev/null
+++ b/app-admin/setools/ChangeLog
@@ -0,0 +1,356 @@
+# ChangeLog for app-admin/setools
+# Copyright 1999-2013 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 $
+
+*setools-3.3.8-r1 (08 Mar 2013)
+
+  08 Mar 2013; Sven Vermeulen <swift@gentoo.org> +setools-3.3.8-r1.ebuild,
+  +metadata.xml:
+  SETools 3.3.8 release
+
+  30 Dec 2012; Sven Vermeulen setools-3.3.7-r6.ebuild:
+  Stabilize
+
+*setools-3.3.7-r6 (23 Nov 2012)
+
+  23 Nov 2012; Sven Vermeulen +setools-3.3.7-r6.ebuild:
+  Fix bugs #436338 and #430262
+
+  18 Nov 2012; <swift@gentoo.org> setools-3.3.7-r5.ebuild:
+  Adding epatch_user to simplify development and support user-provided patches
+
+*setools-3.3.7-r5 (08 Sep 2012)
+
+  08 Sep 2012; <swift@gentoo.org> +setools-3.3.7-r5.ebuild:
+  Fix bugs #424627 and #430262
+
+  30 Jul 2012; <swift@gentoo.org> setools-3.3.7-r3.ebuild:
+  Stabilization
+
+  09 Jul 2012; <swift@gentoo.org> setools-3.3.7-r3.ebuild:
+  Fixing bug #424581 - Work around mkdir_p changes in automake until 1.12 is
+  default
+
+  26 Jun 2012; Mike Gilbert <floppym@gentoo.org> setools-3.3.7-r1.ebuild,
+  setools-3.3.7-r3.ebuild:
+  Restict pypy per Arfrever.
+
+*setools-3.3.7-r3 (25 Jun 2012)
+
+  25 Jun 2012; <swift@gentoo.org> +setools-3.3.7-r3.ebuild:
+  Support Python3, fix audit2allow support, bug #415091 and bug #408179
+
+  21 May 2012; Mike Frysinger <vapier@gentoo.org> setools-3.3.7-r1.ebuild:
+  Inherit eutils for epatch.
+
+  03 May 2012; Jeff Horelick <jdhore@gentoo.org> setools-3.3.7-r1.ebuild:
+  dev-util/pkgconfig -> virtual/pkgconfig
+
+  12 Nov 2011; <swift@gentoo.org> -setools-3.3.7.ebuild:
+  Remove obsoleted ebuilds
+
+  23 Oct 2011; <swift@gentoo.org> setools-3.3.7-r1.ebuild:
+  Stabilization (tracker #384231)
+
+  19 Aug 2011; <swift@gentoo.org> -setools-2.4.ebuild, -setools-3.3.4.ebuild,
+  -setools-3.3.5.ebuild, -setools-3.3.6.ebuild,
+  -files/setools-3.3.6-headers.diff, -files/apol_tcl_fc.c.diff:
+  Remove obsoleted versions of setools
+
+*setools-3.3.7-r1 (19 Aug 2011)
+
+  19 Aug 2011; <swift@gentoo.org>
+  +files/fix-check-role_set_expand-libsepol-2.1.0.patch,
+  +setools-3.3.7-r1.ebuild, +files/fix-implicit-def-fstat.patch:
+  Fix #378943 where setools fails to build with new selinux userspace
+
+  08 Jul 2011; Samuli Suominen <ssuominen@gentoo.org> setools-2.4.ebuild:
+  Convert from "useq" to "use".
+
+  28 May 2011; Anthony G. Basile <blueness@gentoo.org> setools-3.3.7.ebuild:
+  Stable amd64 x86
+
+  04 Apr 2011; Anthony G. Basile <blueness@gentoo.org> setools-2.4.ebuild:
+  Updated SRC_URI, bug #341929
+
+  29 Mar 2011; Christoph Mende <angelos@gentoo.org> setools-3.3.4.ebuild,
+  setools-3.3.5.ebuild, setools-3.3.6.ebuild, setools-3.3.7.ebuild:
+  Fixed slot deps
+
+  13 Feb 2011; Anthony G. Basile <blueness@gentoo.org> metadata.xml:
+  Updated metadata.xml to reflect new selinux herd.
+
+  06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  setools-3.3.7.ebuild:
+  Set SUPPORT_PYTHON_ABIS (bug #308279). Fix building with SWIG 2.
+
+*setools-3.3.7 (12 May 2010)
+
+  12 May 2010; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.7.ebuild:
+  New upstream release.
+
+  20 Sep 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.6.ebuild,
+  +files/setools-3.3.6-headers.diff:
+  Fix QA issues.
+
+*setools-3.3.6 (08 Aug 2009)
+
+  08 Aug 2009; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.6.ebuild:
+  New upstream release.
+
+  22 Jul 2009; Chris PeBenito <pebenito@gentoo.org> setools-3.3.4.ebuild,
+  setools-3.3.5.ebuild:
+  Drop alpha, mips, ppc, sparc selinux support.
+
+  13 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+  setools-3.3.5.ebuild:
+  Use emake rather than make.
+
+*setools-3.3.5 (02 Dec 2008)
+
+  02 Dec 2008; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild,
+  -setools-3.3.1.ebuild, -setools-3.3.3.ebuild, +setools-3.3.5.ebuild:
+  New upstream bugfix release for libsepol 2.x additional features.
+  Cleanup old ebuilds.
+
+*setools-3.3.4 (31 Mar 2008)
+
+  31 Mar 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.4.ebuild:
+  Update with fixes for glibc 2.7, gcc 3.4, and tcl/tk 8.5.
+
+*setools-3.3.3 (26 Feb 2008)
+
+  26 Feb 2008; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.3.ebuild:
+  New upstream bugfix release.
+
+*setools-3.3.1 (27 Aug 2007)
+
+  27 Aug 2007; Chris PeBenito <pebenito@gentoo.org> -setools-3.0.ebuild,
+  -setools-3.1.ebuild, -setools-3.2.ebuild, -setools-3.3.ebuild,
+  +setools-3.3.1.ebuild:
+  New upstream bugfix release.  Clear out old unstable ebuilds.
+
+  20 Aug 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.1.ebuild,
+  setools-3.2.ebuild:
+  Set bwidget dep to 1.8 to fix #175415.
+
+*setools-3.3 (04 Aug 2007)
+
+  04 Aug 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.3.ebuild:
+  New upstream release.
+
+*setools-3.2 (09 May 2007)
+
+  09 May 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.2.ebuild:
+  New upstream release.
+
+*setools-3.1 (16 Feb 2007)
+
+  16 Feb 2007; Chris PeBenito <pebenito@gentoo.org> +setools-3.1.ebuild:
+  New upstream release.
+
+  02 Feb 2007; Chris PeBenito <pebenito@gentoo.org> setools-3.0.ebuild:
+  Fix bug #156752.
+
+*setools-3.0 (18 Oct 2006)
+
+  18 Oct 2006; Chris PeBenito <pebenito@gentoo.org>
+  -files/setools-2.2-nogui.diff, -setools-2.2.ebuild, -setools-2.3.ebuild,
+  +setools-3.0.ebuild:
+  New upstream release.
+
+  12 Sep 2006; Chris PeBenito <pebenito@gentoo.org> setools-2.4.ebuild:
+  Mark stable.
+
+  11 Sep 2006; Chris PeBenito <pebenito@gentoo.org>
+  +files/apol_tcl_fc.c.diff, setools-2.4.ebuild:
+  Fixes to hopefully take care of #133028
+
+*setools-2.4 (09 May 2006)
+
+  09 May 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.4.ebuild:
+  New upstream release.
+
+*setools-2.3 (03 Feb 2006)
+
+  03 Feb 2006; Chris PeBenito <pebenito@gentoo.org> +setools-2.3.ebuild:
+  New upstream release.
+
+  02 Jan 2006; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.2.ebuild,
+  -setools-2.1.3.ebuild, setools-2.2.ebuild:
+  Mark stable.
+
+  05 Dec 2005; Chris PeBenito <pebenito@gentoo.org> metadata.xml,
+  setools-2.1.2.ebuild, setools-2.1.3.ebuild, setools-2.2.ebuild:
+  Update homepage and metadata.
+
+  12 Nov 2005; Chris PeBenito <pebenito@gentoo.org>
+  +files/setools-2.2-nogui.diff, setools-2.2.ebuild:
+  Add patch to fix bug #112284.
+
+*setools-2.2 (08 Nov 2005)
+
+  08 Nov 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.2.ebuild:
+  New upstream release.
+
+*setools-2.1.3 (12 Oct 2005)
+
+  12 Oct 2005; Chris PeBenito <pebenito@gentoo.org> -setools-2.1.0.ebuild,
+  -setools-2.1.1.ebuild, +setools-2.1.3.ebuild:
+  New upstream release.
+
+  08 Oct 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.2.ebuild:
+  Mark stable.
+
+  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
+  setools-2.1.1.ebuild, setools-2.1.2.ebuild:
+  Fix changed URIs.
+
+*setools-2.1.2 (07 Sep 2005)
+
+  07 Sep 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.2.ebuild:
+  New upstream release.
+
+*setools-2.1.1 (20 May 2005)
+
+  20 May 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.1.0.ebuild,
+  +setools-2.1.1.ebuild:
+  Mark 2.1.0 stable, plus new upstream release.
+
+  21 Apr 2005; Simon Stelling <blubb@gentoo.org> setools-2.0-r1.ebuild:
+  stable on amd64
+
+*setools-2.1.0 (19 Apr 2005)
+
+  19 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.1.0.ebuild:
+  New upstream release.
+
+*setools-2.0-r1 (09 Apr 2005)
+
+  09 Apr 2005; Chris PeBenito <pebenito@gentoo.org> +setools-2.0-r1.ebuild:
+  Fix for bug #88248.
+
+  29 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Mark stable.
+
+  06 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Went overboard on CFLAGS fixes, causing some compile failures on some machines.
+
+  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-2.0.ebuild:
+  Fix DEPEND
+
+*setools-2.0 (04 Mar 2005)
+
+  04 Mar 2005; Chris PeBenito <pebenito@gentoo.org> setools-1.5.1.ebuild,
+  +setools-2.0.ebuild:
+  New upstream major release.  Mark 1.5.1 stable for x86 and ppc.
+
+*setools-1.5.1 (06 Nov 2004)
+
+  06 Nov 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.5.1.ebuild:
+  New upstream release
+
+*setools-1.4.1-r1 (15 Sep 2004)
+
+  15 Sep 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.3.1.ebuild,
+  +setools-1.4.1-r1.ebuild, -setools-1.4.1.ebuild:
+  Fix seuser.fc install.
+
+*setools-1.4.1 (22 Aug 2004)
+
+  22 Aug 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.1.ebuild,
+  -setools-1.4.ebuild:
+  Bugfix release.
+
+  24 Jul 2004; Joshua Brindle <method@gentoo.org> setools-1.4.ebuild:
+  add libselinux dependancy
+
+*setools-1.4 (21 Jun 2004)
+
+  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.4.ebuild:
+  New upstream version.
+
+  21 Jun 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
+  Fix for compiles that are USE="-selinux".
+
+  24 May 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.3.1.ebuild:
+  Fix sandbox violations.
+
+*setools-1.3.1 (05 May 2004)
+
+  05 May 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.1.ebuild,
+  -setools-1.3.ebuild:
+  New upstream bugfix release.
+
+  04 May 2004; Chris PeBenito <pebenito@gentoo.org> -setools-1.2.1.ebuild,
+  setools-1.3.ebuild:
+  Mark stable
+
+  29 Apr 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild,
+  setools-1.3.ebuild:
+  Add missing libxml2 dep.
+
+*setools-1.3 (15 Apr 2004)
+
+  15 Apr 2004; Chris PeBenito <pebenito@gentoo.org> +setools-1.3.ebuild:
+  New upstream version.
+
+  03 Mar 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
+  Mark stable.
+
+*setools-1.2.1 (08 Feb 2004)
+
+  08 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.1.ebuild:
+  New upstream bugfix release.
+
+  06 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
+  Fix seuser file contexts and conf file.
+
+*setools-1.2 (05 Feb 2004)
+
+  05 Feb 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.2.ebuild:
+  New upstream version.
+
+  31 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
+  Mark stable.
+
+*setools-1.1.1 (06 Jan 2004)
+
+  06 Jan 2004; Chris PeBenito <pebenito@gentoo.org> setools-1.1.1.ebuild:
+  New upstream bugfix release.
+
+  28 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
+  Eliminate install -Z. The context option is not needed, and causes sandbox
+  violations.
+
+  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild,
+  files/setools-1.1-fix_noX.diff:
+  Treesys makefiles are broken. Add a hack to make it really work for non X
+  systems.
+
+*setools-1.1 (22 Dec 2003)
+
+  22 Dec 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.1.ebuild:
+  New upstream version. Now X is optional, as there are command line tools. Also
+  has a new optional gtk log analyzer for audit messages.
+
+  20 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
+  Mark stable
+
+*setools-1.0.1 (06 Nov 2003)
+
+  06 Nov 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.1.ebuild:
+  New upstream minor version.
+
+*setools-1.0 (23 Oct 2003)
+
+  23 Oct 2003; Chris PeBenito <pebenito@gentoo.org> setools-1.0.ebuild:
+  Setools for the new SELinux API.
+
+  22 Sep 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
+  Overdue, mark stable.
+
+*setools-20030609 (02 Jul 2003)
+
+  02 Jul 2003; Chris PeBenito <pebenito@gentoo.org> setools-20030609.ebuild:
+  Initial commit

diff --git a/app-admin/setools/metadata.xml b/app-admin/setools/metadata.xml
new file mode 100644
index 0000000..3c35d57
--- /dev/null
+++ b/app-admin/setools/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>selinux</herd>
+	<longdescription>SELinux policy analysis tools.</longdescription>
+</pkgmetadata>

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 0000000..6f0900f
--- /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.7-r6.ebuild,v 1.2 2012/12/30 15:23:55 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
+}


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-03-08 19:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-18 13:17 [gentoo-commits] proj/hardened-dev:master commit in: app-admin/setools/ Sven Vermeulen
  -- strict thread matches above, loose matches on Subject: below --
2013-03-08 19:32 Sven Vermeulen
2012-11-23 21:20 Sven Vermeulen
2012-09-08 19:57 Sven Vermeulen
2012-08-24 17:06 Sven Vermeulen
2012-05-29 19:32 Sven Vermeulen
2012-05-26 14:48 Sven Vermeulen
2011-08-14  8:08 Sven Vermeulen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox