diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2004-02-06 04:48:25 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2004-02-06 04:48:25 +0000 |
commit | b2506076ba9726cb82a1a424fcf65953deef7c7b (patch) | |
tree | 21693cf1d6551439a070f65556876d16fa951d42 /app-admin | |
parent | Added net-im/kadu local flags (diff) | |
download | gentoo-2-b2506076ba9726cb82a1a424fcf65953deef7c7b.tar.gz gentoo-2-b2506076ba9726cb82a1a424fcf65953deef7c7b.tar.bz2 gentoo-2-b2506076ba9726cb82a1a424fcf65953deef7c7b.zip |
new upstream version
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/setools/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/setools/files/digest-setools-1.2 | 1 | ||||
-rw-r--r-- | app-admin/setools/setools-1.2.ebuild | 132 |
3 files changed, 139 insertions, 1 deletions
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog index f80fe6a2d2d8..bb36ff1424bc 100644 --- a/app-admin/setools/ChangeLog +++ b/app-admin/setools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/setools # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.10 2004/01/31 17:18:50 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.11 2004/02/06 04:48:25 pebenito Exp $ + +*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. diff --git a/app-admin/setools/files/digest-setools-1.2 b/app-admin/setools/files/digest-setools-1.2 new file mode 100644 index 000000000000..effde826b8f7 --- /dev/null +++ b/app-admin/setools/files/digest-setools-1.2 @@ -0,0 +1 @@ +MD5 87d8fd7bf8a7dec92791e547d68e1e3c setools-1.2.tgz 875599 diff --git a/app-admin/setools/setools-1.2.ebuild b/app-admin/setools/setools-1.2.ebuild new file mode 100644 index 000000000000..e1929e40eed8 --- /dev/null +++ b/app-admin/setools/setools-1.2.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-1.2.ebuild,v 1.1 2004/02/06 04:48:25 pebenito Exp $ + +DESCRIPTION="SELinux policy tools" +HOMEPAGE="http://www.tresys.com/selinux_policy_tools.html" +SRC_URI="http://www.tresys.com/Downloads/selinux-tools/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +S="${WORKDIR}/${P}" +KEYWORDS="~x86" +IUSE="X gtk selinux" + +DEPEND="sys-devel/bison + sys-devel/flex + X? ( dev-lang/tk gtk? ( >=gnome-base/libglade-2.0 ) )" + +RDEPEND="X? ( + dev-lang/tk + >=dev-tcltk/bwidget-1.4.1 + gtk? ( >=gnome-base/libglade-2.0 ) + )" + +src_unpack() { + unpack ${A} + cd ${S} + + # fix the Makefile to listen to portage CFLAGS + sed -i -e "s:-O2:-O2 ${CFLAGS}:" ${S}/Makefile + + # fix for tcl/tk version + has_version '=dev-lang/tk-8.4*' && \ + sed -i -e 's:8.3:8.4:' ${S}/Makefile + + # fix up the scripts we're going to install + sed -i -e 's:local/selinux/::g' ${S}/seuser/seuseradd + sed -i -e 's:local/selinux/::g' ${S}/seuser/seuserdel + sed -i -e 's:local/selinux/::g' ${S}/seuser/seusermod + + # we will manually install policy + sed -i -e "s: policy-install::g" ${S}/seuser/Makefile + + # fix up the file contexts + sed -i -e 's:local/selinux/::' -e 's:local/::' ${S}/policy/seuser.fc + + # ensure install -Z isn't used + sed -i -e 's,-Z system_u:object_r:seuser_exec_t,,g' ${S}/seuser/Makefile + sed -i -e 's,-Z system_u:object_r:seuser_conf_t,,g' ${S}/seuser/Makefile + sed -i -e 's,-Z system_u:object_r:policy_src_t,,g' ${S}/seuser/Makefile +} + +src_compile() { + cd ${S} + + # build command line tools + make all-nogui || die "command line tools compile failed" + + if use X; then + make apol sepcut seuserx \ + || die "apol, sepcut, or seuserx compile failed" + + if use gtk; then + make seaudit || die "seaudit compile failed." + fi + + fi +} + +src_install() { + cd ${S} + + dodoc COPYING ChangeLog-setools README + + # some of the Makefiles are broken, and will fail + # if ${D}/usr/bin is nonexistant + dodir /usr/bin + + # command line tools + make DESTDIR=${D} install-secmds \ + || die "secmds install failed." + + if use X; then + # graphical tools + + make DESTDIR=${D} install-apol install-sepcut \ + || die "apol and sepcut install failed." + + if use gtk; then + make DESTDIR=${D} install-seaudit \ + || die "seaudit install failed." + fi + fi + + if use selinux; then + if use X; then + make DESTDIR=${D} install-seuserx \ + || die "seuserx install failed." + else + make DESTDIR=${D} install-seuser \ + || die "seuser install failed." + fi + + insinto ${POLICYDIR}/domains/program + doins ${S}/policy/seuser.te + insinto ${POLICYDIR}/file_contexts/program + doins ${S}/policy/seuser.fc + fi +} + +pkg_postinst() { + einfo "Installed tools:" + einfo " " + einfo "seinfo" + einfo "sesearch" + if use X; then + einfo "apol" + einfo "sepcut" + use gtk && einfo "seaudit" + fi + if use selinux; then + einfo "seuser" + use X && einfo "seuserx" + einfo "seuseradd" + einfo "seuserdel" + einfo "seusermod" + einfo " " + einfo "A policy for the seuser program has been installed into" + einfo "${POLICYDIR}. Please reload your policy at relabel" + einfo "setools: rlpkg setools" + fi +} |