diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2005-03-04 13:59:21 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2005-03-04 13:59:21 +0000 |
commit | dbaf5df4315090c4f5b614528b4d9054d2c0db06 (patch) | |
tree | 72ef6a90ed123b57a0f91f1317fc4333c4ae2b36 /app-admin/setools | |
parent | undo style changes (diff) | |
download | historical-dbaf5df4315090c4f5b614528b4d9054d2c0db06.tar.gz historical-dbaf5df4315090c4f5b614528b4d9054d2c0db06.tar.bz2 historical-dbaf5df4315090c4f5b614528b4d9054d2c0db06.zip |
new upstream major release. mark 1.5.1 stable for x86 and ppc
Package-Manager: portage-2.0.51.18
Diffstat (limited to 'app-admin/setools')
-rw-r--r-- | app-admin/setools/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/setools/Manifest | 16 | ||||
-rw-r--r-- | app-admin/setools/files/digest-setools-2.0 | 1 | ||||
-rw-r--r-- | app-admin/setools/setools-1.5.1.ebuild | 4 | ||||
-rw-r--r-- | app-admin/setools/setools-2.0.ebuild | 121 |
5 files changed, 145 insertions, 5 deletions
diff --git a/app-admin/setools/ChangeLog b/app-admin/setools/ChangeLog index 6c966adf7a69..736d76e6e9b6 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.27 2005/01/01 11:25:12 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.28 2005/03/04 13:59:21 pebenito Exp $ + +*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) diff --git a/app-admin/setools/Manifest b/app-admin/setools/Manifest index 8c3a59279c50..6dbde9231c4e 100644 --- a/app-admin/setools/Manifest +++ b/app-admin/setools/Manifest @@ -1,6 +1,18 @@ -MD5 74f7f7cac4f1aaeec0fc4cbbb69c77c4 ChangeLog 3520 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 4eb2d5abb9e06d92977b63d638078594 ChangeLog 3710 MD5 418c2991b69fcf9d551aba29ae6f2b2e metadata.xml 505 MD5 13e52d885d7d7e58c881288711f9f5aa setools-1.4.1-r1.ebuild 3939 -MD5 19ce2ec64f0c97974303eac93d208e2a setools-1.5.1.ebuild 3411 +MD5 61da54039336b25ed833a7490dd6f246 setools-1.5.1.ebuild 3407 +MD5 051a1a06ff2418fa2c16b0ff9962fa83 setools-2.0.ebuild 3211 MD5 893e9bc28118f0f7f7e229294bb11b33 files/digest-setools-1.4.1-r1 62 MD5 abcb1839b6eeeaec895fd864ad412688 files/digest-setools-1.5.1 62 +MD5 224e84466ac339413624a81279600711 files/digest-setools-2.0 65 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.0 (GNU/Linux) + +iD8DBQFCKGnGMTuwkQ6eEKsRArgcAKC7mh5z8e9nCscr7voMc/xl7GMgXwCfSvUh +RRe9NBbM1vPHWIA2WnUMGFI= +=XZ03 +-----END PGP SIGNATURE----- diff --git a/app-admin/setools/files/digest-setools-2.0 b/app-admin/setools/files/digest-setools-2.0 new file mode 100644 index 000000000000..5e0d57a4a6e9 --- /dev/null +++ b/app-admin/setools/files/digest-setools-2.0 @@ -0,0 +1 @@ +MD5 3f03b184d1e50735bba6084212abcf74 setools-2.0.tar.bz2 1223363 diff --git a/app-admin/setools/setools-1.5.1.ebuild b/app-admin/setools/setools-1.5.1.ebuild index c497c52639fb..5facef2395a6 100644 --- a/app-admin/setools/setools-1.5.1.ebuild +++ b/app-admin/setools/setools-1.5.1.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-1.5.1.ebuild,v 1.2 2005/01/01 11:25:12 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/setools-1.5.1.ebuild,v 1.3 2005/03/04 13:59:21 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}.tgz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86 ~ppc ~amd64" +KEYWORDS="x86 ppc ~amd64" IUSE="X gtk selinux" DEPEND="sys-devel/bison diff --git a/app-admin/setools/setools-2.0.ebuild b/app-admin/setools/setools-2.0.ebuild new file mode 100644 index 000000000000..1638b3916d83 --- /dev/null +++ b/app-admin/setools/setools-2.0.ebuild @@ -0,0 +1,121 @@ +# 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.0.ebuild,v 1.1 2005/03/04 13:59:21 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/bitkeeper + 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/-g/${CFLAGS} -g/" ${S}/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 +} |