new upstream release
authorChris PeBenito <pebenito@gentoo.org>
Sat, 6 Nov 2004 21:32:16 +0000 (21:32 +0000)
committerChris PeBenito <pebenito@gentoo.org>
Sat, 6 Nov 2004 21:32:16 +0000 (21:32 +0000)
app-admin/setools/ChangeLog
app-admin/setools/Manifest
app-admin/setools/files/digest-setools-1.5.1 [new file with mode: 0644]
app-admin/setools/setools-1.5.1.ebuild [new file with mode: 0644]

index 978c096614b93be03c916a52335e0bf502a118f7..270b34cd303e956bbac6afa71fb13b387be5dcc3 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-admin/setools
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.25 2004/09/16 01:26:59 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/setools/ChangeLog,v 1.26 2004/11/06 21:32:16 pebenito Exp $
+
+*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)
 
index d2714eb82ef2f6cd3640c1c3d139e01cf54333db..d56f39a378c3c188fe41b4ca1c93e23a5370c4aa 100644 (file)
@@ -1,14 +1,16 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 86d86492d125cd7d658fd5b1f45aaa49 ChangeLog 3389
+MD5 d5f76967f0c865f0ded3f4fffcc12a15 ChangeLog 3518
 MD5 418c2991b69fcf9d551aba29ae6f2b2e metadata.xml 505
 MD5 c6201c082b41e0489521fef2ca2dc58b setools-1.4.1-r1.ebuild 3937
+MD5 f143f941c06101a94f0ddf0fade4eb65 setools-1.5.1.ebuild 3409
 MD5 893e9bc28118f0f7f7e229294bb11b33 files/digest-setools-1.4.1-r1 62
+MD5 abcb1839b6eeeaec895fd864ad412688 files/digest-setools-1.5.1 62
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.5 (GNU/Linux)
+Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFBSOwAGFJQsIJWJy4RAgvhAJ45V6mJ9ZeMjoY2bQUGCOxdbfDnSACfUOWn
-0txQvzr/RJcw0m4qHs8QPwM=
-=hd1H
+iD8DBQFBjULbGFJQsIJWJy4RAlwtAJ4rIO/EMYr52/hibzEI2nyBAkLobgCeLOMa
+og37vSYYzMLgAxse1cl0pXE=
+=MKl5
 -----END PGP SIGNATURE-----
diff --git a/app-admin/setools/files/digest-setools-1.5.1 b/app-admin/setools/files/digest-setools-1.5.1
new file mode 100644 (file)
index 0000000..3225178
--- /dev/null
@@ -0,0 +1 @@
+MD5 98b540b77f1554ff24b5ea62de32c0db setools-1.5.1.tgz 981238
diff --git a/app-admin/setools/setools-1.5.1.ebuild b/app-admin/setools/setools-1.5.1.ebuild
new file mode 100644 (file)
index 0000000..ccd8e0e
--- /dev/null
@@ -0,0 +1,128 @@
+# Copyright 1999-2004 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.1 2004/11/06 21:32:16 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"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="X gtk selinux"
+
+DEPEND="sys-devel/bison
+       sys-devel/flex
+       dev-libs/libxml2
+       dev-util/pkgconfig
+       selinux? ( sys-libs/libselinux )
+       X? ( dev-lang/tk gtk? ( >=gnome-base/libglade-2.0 ) )"
+
+RDEPEND="dev-libs/libxml2
+       selinux? ( sys-libs/libselinux )
+       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:${CFLAGS}:" ${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 ! use 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}
+
+       # 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."
+#                      make DESTDIR=${D} -C seaudit install-logwatch-service \
+#                              || die "logwatch 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() {
+       if use 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
+}