diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2003-10-23 18:55:39 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2003-10-23 18:55:39 +0000 |
commit | 48d0f2917607e58d06835e1cc3308b3e69cc84b4 (patch) | |
tree | a0a82e9f0b8ff79d71d6f9637edb5efa4307fa93 /app-admin/setools | |
parent | remove old (diff) | |
download | gentoo-2-48d0f2917607e58d06835e1cc3308b3e69cc84b4.tar.gz gentoo-2-48d0f2917607e58d06835e1cc3308b3e69cc84b4.tar.bz2 gentoo-2-48d0f2917607e58d06835e1cc3308b3e69cc84b4.zip |
setools for new selinux api
Diffstat (limited to 'app-admin/setools')
-rw-r--r-- | app-admin/setools/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/setools/Manifest | 4 | ||||
-rw-r--r-- | app-admin/setools/files/digest-setools-1.0 | 1 | ||||
-rw-r--r-- | app-admin/setools/setools-1.0.ebuild | 83 |
4 files changed, 93 insertions, 2 deletions
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog index 0fd9dc338ca6..6784ce2a6cae 100644 --- a/app-admin/setools/ChangeLog +++ b/app-admin/setools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/setools # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.2 2003/09/23 01:41:03 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.3 2003/10/23 18:55:37 pebenito Exp $ + +*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. diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest index 8150fad7f2c0..feacb71be10f 100644 --- a/app-admin/setools/Manifest +++ b/app-admin/setools/Manifest @@ -1,4 +1,6 @@ -MD5 5adc255c47fbf2e805d9261e3d1810f5 ChangeLog 448 MD5 5f0bba1204f85bb7e7bc3bd887ba4d43 setools-20030609.ebuild 2472 +MD5 ad456677eb31fafcbfb1d55b8410b724 ChangeLog 584 MD5 418c2991b69fcf9d551aba29ae6f2b2e metadata.xml 505 +MD5 e4bea5189288e3b3c3dbe08b0991f60c setools-1.0.ebuild 2162 MD5 452654a1740a7defb4b5a8b2644c8285 files/digest-setools-20030609 65 +MD5 e67f17b9d1144c47594fc42147520b6d files/digest-setools-1.0 60 diff --git a/app-admin/setools/files/digest-setools-1.0 b/app-admin/setools/files/digest-setools-1.0 new file mode 100644 index 000000000000..c97494b83114 --- /dev/null +++ b/app-admin/setools/files/digest-setools-1.0 @@ -0,0 +1 @@ +MD5 66380e27ae6465fb7a97e0f4eac31f1d setools-1.0.tgz 912756 diff --git a/app-admin/setools/setools-1.0.ebuild b/app-admin/setools/setools-1.0.ebuild new file mode 100644 index 000000000000..3d56440688df --- /dev/null +++ b/app-admin/setools/setools-1.0.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-1.0.ebuild,v 1.1 2003/10/23 18:55:37 pebenito Exp $ + +DESCRIPTION="SELinux graphical 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="selinux" + +DEPEND="sys-devel/bison + sys-devel/flex + dev-lang/tk" + +RDEPEND="dev-lang/tk + >=dev-tcltk/bwidget-1.4.1" + +src_unpack() { + unpack ${A} + + # fix the Makefile to listen to portage CFLAGS + sed -i -e 's:-O2:-O2 $(EXTRA_CFLAGS):' ${S}/Makefile + + if [ "`use selinux`" ]; then + # fix up the scripts we're going to install + cd ${S}/seuser + + sed -i -e 's:local/selinux/::g' seuseradd + sed -i -e 's:local/selinux/::g' seuserdel + sed -i -e 's:local/selinux/::g' seusermod + + # fix up the file contexts + cd ${S}/policy + sed -i -e 's:local/selinux/::' -e 's:local/::' seuser.fc + fi +} + +src_compile() { + cd ${S} + + # adjust for tcl/tk versions + has_version '>=dev-lang/tk-8.4' && \ + TCL_LIBS="-ltk8.4 -ltcl8.4 -lfl -lm -dl" || \ + TCL_LIBS="-ltk8.3 -ltcl8.3 -lfl -lm -dl" + + make TCL_LIBS="${TCL_LIBS}" EXTRA_CFLAGS="${CFLAGS}" all \ + || die "compile failed" +} + +src_install() { + dodoc COPYING ChangeLog-setools README + + dobin ${S}/apol/apol + dobin ${S}/awish/awish + dobin ${S}/sepct/sepcut + + insinto /usr/lib/apol + doins ${S}/apol/{apol.tcl,apol_help.txt,dta_help.txt,iflow_help.txt} + doins ${S}/sepct/sepcut_help.txt + newins ${S}/apol/apol_perm_mapping_ver15 apol_perm_mapping + + if [ "`use selinux`" ]; then + dobin ${S}/seuser/{seuser,seuseradd,seuserdel,seusermod} + doins ${S}/seuser/{se_user.tcl,seuser_help.txt,seuser.conf} + + insinto ${POLICYDIR}/domains/program + doins ${S}/policy/seuser.te + insinto ${POLICYDIR}/file_contexts/program + doins ${S}/policy/seuser.fc + fi +} + +pkg_postinst() { + if [ "`use selinux`" ]; then + einfo "A policy for the seuser program has been installed into" + einfo "${POLICYDIR}. Please reload your policy at relabel" + einfo "setools: rlpkg setools" + fi +} |