diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2005-05-20 02:44:41 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2005-05-20 02:44:41 +0000 |
commit | ccc89ebdb3f2e319dac92797b03a22369d57ef27 (patch) | |
tree | d1669ecade3747a9ad42ed24c6fae5cf6fa75b47 /app-admin | |
parent | Setup.py only works with python2.4 bug# 91290 (diff) | |
download | historical-ccc89ebdb3f2e319dac92797b03a22369d57ef27.tar.gz historical-ccc89ebdb3f2e319dac92797b03a22369d57ef27.tar.bz2 historical-ccc89ebdb3f2e319dac92797b03a22369d57ef27.zip |
Mark 2.1.0 stable, plus new upstream release.
Package-Manager: portage-2.0.51.22
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/setools/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/setools/Manifest | 6 | ||||
-rw-r--r-- | app-admin/setools/files/digest-setools-2.1.1 | 1 | ||||
-rw-r--r-- | app-admin/setools/setools-2.1.0.ebuild | 4 | ||||
-rw-r--r-- | app-admin/setools/setools-2.1.1.ebuild | 120 |
5 files changed, 134 insertions, 5 deletions
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog index d6282a5cb6ce..ad16c559f1ea 100644 --- a/app-admin/setools/ChangeLog +++ b/app-admin/setools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/setools # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.34 2005/04/21 14:19:21 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.35 2005/05/20 02:44:41 pebenito Exp $ + +*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 diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest index 41c5d9921bae..072a5a319b1e 100644 --- a/app-admin/setools/Manifest +++ b/app-admin/setools/Manifest @@ -1,6 +1,8 @@ -MD5 d85baee111301f2a453cc2565db54000 ChangeLog 4387 MD5 418c2991b69fcf9d551aba29ae6f2b2e metadata.xml 505 MD5 79e737155d3100677f8c837566608d8b setools-2.0-r1.ebuild 3206 -MD5 0fa9fb4b1ad1d9be874848180488c11b setools-2.1.0.ebuild 3206 +MD5 3807b1244bbd040914bf27ba414db4a4 setools-2.1.0.ebuild 3203 +MD5 95822410d9d028b9619ff061fc392591 setools-2.1.1.ebuild 3206 +MD5 c3f3d2b3697f7dee3cb4eb0bf182edd2 ChangeLog 4568 MD5 224e84466ac339413624a81279600711 files/digest-setools-2.0-r1 65 MD5 9df77ddbd782b94775d9f1157b7fecdb files/digest-setools-2.1.0 67 +MD5 cf2208a1067357ca34b33aaaa0663e43 files/digest-setools-2.1.1 67 diff --git a/app-admin/setools/files/digest-setools-2.1.1 b/app-admin/setools/files/digest-setools-2.1.1 new file mode 100644 index 000000000000..22cda8fa7620 --- /dev/null +++ b/app-admin/setools/files/digest-setools-2.1.1 @@ -0,0 +1 @@ +MD5 b90ea097e39d01695cfc4033623d322e setools-2.1.1.tar.bz2 1249669 diff --git a/app-admin/setools/setools-2.1.0.ebuild b/app-admin/setools/setools-2.1.0.ebuild index d35e480a09cb..5bd13d968d0f 100644 --- a/app-admin/setools/setools-2.1.0.ebuild +++ b/app-admin/setools/setools-2.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-2.1.0.ebuild,v 1.1 2005/04/19 02:00:19 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-2.1.0.ebuild,v 1.2 2005/05/20 02:44:41 pebenito Exp $ DESCRIPTION="SELinux policy tools" HOMEPAGE="http://www.tresys.com/selinux_policy_tools.html" @@ -8,7 +8,7 @@ SRC_URI="http://www.tresys.com/Downloads/selinux-tools/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86 ~ppc ~amd64" +KEYWORDS="x86 ppc amd64" IUSE="X debug selinux" DEPEND="sys-devel/bison diff --git a/app-admin/setools/setools-2.1.1.ebuild b/app-admin/setools/setools-2.1.1.ebuild new file mode 100644 index 000000000000..3e79edb742fb --- /dev/null +++ b/app-admin/setools/setools-2.1.1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-2.1.1.ebuild,v 1.1 2005/05/20 02:44:41 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}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="X debug selinux" + +DEPEND="sys-devel/bison + sys-devel/flex + dev-libs/libxml2 + dev-util/pkgconfig + selinux? ( sys-libs/libselinux ) + X? ( + dev-lang/tk + >=gnome-base/libglade-2.0 + )" + +RDEPEND="dev-libs/libxml2 + selinux? ( sys-libs/libselinux ) + X? ( + dev-lang/tk + >=dev-tcltk/bwidget-1.4.1 + >=gnome-base/libglade-2.0 + )" + +src_unpack() { + unpack ${A} + cd ${S} + + # fix the Makefile to listen to portage CFLAGS + sed -i -e "/^CFLAGS/s/-O2/${CFLAGS}/g" ${S}/Makefile + sed -i -e "/^CFLAGS/s/-O2/${CFLAGS}/" ${S}/libsefs/sqlite/Makefile + + # enable debug if requested + useq debug && sed -i -e '/^DEBUG/s/0/1/' ${S}/Makefile + + # generate the file contexts from the template + sed -e 's:SEUSER_BINDIR:/usr/bin:' \ + -e 's:SEUSER_INSTALL_LIBDIR:/usr/share/setools:' \ + < ${S}/policy/seuser_template.fc > ${S}/policy/seuser.fc + + # dont chcon or install -Z + sed -i -e '/object_r/d' ${S}/secmds/Makefile + sed -i -e '/object_r/d' ${S}/seuser/Makefile + sed -i -e 's,-Z system_u:object_r:etc_t,,g' ${S}/seaudit/Makefile + + # dont do findcon, replcon, searchcon, or indexcon if USE=-selinux + if ! useq selinux; then + sed -i -e '/^USE_LIBSELINUX/s/1/0/' ${S}/Makefile + sed -i -e '/^SE_CMDS/s/replcon//' \ + -e '/^SE_CMDS/s/findcon//' \ + -e '/^SE_CMDS/s/searchcon//' \ + -e '/^SE_CMDS/s/indexcon//' ${S}/secmds/Makefile + fi + + # adjust policy settings in seuser.conf + echo "policy_dir ${POLICYDIR}" > ${S}/seuser/seuser.conf + echo "policy.conf ${POLICYDIR}/policy.conf" >> ${S}/seuser/seuser.conf + echo "file_contexts_file ${POLICYDIR}/file_contexts/file_contexts" >> ${S}/seuser/seuser.conf + echo "user_file ${POLICYDIR}/users" >> ${S}/seuser/seuser.conf +} + +src_compile() { + cd ${S} + + if useq X; then + make all || die + else + make all-nogui || die + 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 useq X; then + # graphical tools + make DESTDIR=${D} install-apol install-sepcut install-seaudit install-sediffx \ + || die "Graphical tool install failed." + fi + + if useq selinux; then + if useq 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() { + if useq selinux; then + einfo "A policy for the seuser program has been installed into" + einfo "${POLICYDIR}. Please reload your policy and relabel" + einfo "setools: rlpkg setools" + fi +} |