diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2011-02-05 12:07:15 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2011-02-05 12:07:15 +0000 |
commit | b55a11b25d10734cd8c9269b6945cac19c36a159 (patch) | |
tree | 114375c2ec6711da27d6a78e7eb12bf2c4b71574 /sec-policy/selinux-apache/selinux-apache-2.20101213.ebuild | |
parent | unmask new libnotify, gnome-disk-utility as most of tree is ported. punted so... (diff) | |
download | historical-b55a11b25d10734cd8c9269b6945cac19c36a159.tar.gz historical-b55a11b25d10734cd8c9269b6945cac19c36a159.tar.bz2 historical-b55a11b25d10734cd8c9269b6945cac19c36a159.zip |
Bulk update of current selinux policies.
Package-Manager: portage-2.1.9.25/cvs/Linux x86_64
Diffstat (limited to 'sec-policy/selinux-apache/selinux-apache-2.20101213.ebuild')
-rw-r--r-- | sec-policy/selinux-apache/selinux-apache-2.20101213.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sec-policy/selinux-apache/selinux-apache-2.20101213.ebuild b/sec-policy/selinux-apache/selinux-apache-2.20101213.ebuild new file mode 100644 index 000000000000..de517017cf26 --- /dev/null +++ b/sec-policy/selinux-apache/selinux-apache-2.20101213.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-apache/selinux-apache-2.20101213.ebuild,v 1.1 2011/02/05 12:07:06 blueness Exp $ +IUSE="kerberos" +MODS="apache" + +inherit selinux-policy-2 + +DESCRIPTION="SELinux policy for Apache HTTPD" +DEPEND="${DEPEND} + kerberos? ( sec-policy/selinux-kerberos )" +RDEPEND="${DEPEND}" + +KEYWORDS="~amd64 ~x86" +S="${WORKDIR}/" + +src_unpack() { + selinux-policy-2_src_unpack + if [ ! use kerberos ]; then + [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" + for i in ${POLICY_TYPES}; do + sed -i -e "/httpd_keytab_t/d" \ + "${S}/${i}/apache.fc" + done + fi +} + +pkg_postinst() { + selinux-policy-2_pkg_postinst + if [ use kerberos ] ; then + einfo "If you decide to uninstall Kerberos, you should clear the" + einfo "kerberos use flag here, and then emerge this module again." + einfo "Failure to do so may result in policy compile errors in the" + einfo "future." + else + einfo "If you install Kerberos later, you should set the kerberos" + einfo "use flag here, and then emerge this module again in order to" + einfo "get all of the relevant policy changes. Failure to do so may" + einfo "result in errors authenticating against kerberos servers by" + einfo "Apache." + fi +} |