diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2008-03-16 04:07:09 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2008-03-16 04:07:09 +0000 |
commit | dae60ebcda11df34fba6a9fa8a8a5ec4aa966232 (patch) | |
tree | 378d2c96f35d76d9ca0b248fdc25f21ca7b40888 /sec-policy/selinux-base-policy | |
parent | Stable for HPPA (bug #213500). (diff) | |
download | gentoo-2-dae60ebcda11df34fba6a9fa8a8a5ec4aa966232.tar.gz gentoo-2-dae60ebcda11df34fba6a9fa8a8a5ec4aa966232.tar.bz2 gentoo-2-dae60ebcda11df34fba6a9fa8a8a5ec4aa966232.zip |
clean out old selinux policy ebuilds.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sec-policy/selinux-base-policy')
3 files changed, 6 insertions, 201 deletions
diff --git a/sec-policy/selinux-base-policy/ChangeLog b/sec-policy/selinux-base-policy/ChangeLog index 9c4bd1ecdcd4..a6a6c6cbab4d 100644 --- a/sec-policy/selinux-base-policy/ChangeLog +++ b/sec-policy/selinux-base-policy/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sec-policy/selinux-base-policy # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.60 2008/02/03 01:37:43 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.61 2008/03/16 04:06:54 pebenito Exp $ + + 16 Mar 2008; Chris PeBenito <pebenito@gentoo.org> + -selinux-base-policy-20051022-r1.ebuild, + -selinux-base-policy-20061114.ebuild: + Remove old ebuilds. 03 Feb 2008; Chris PeBenito <pebenito@gentoo.org> selinux-base-policy-20070928.ebuild: diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-20051022-r1.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-20051022-r1.ebuild deleted file mode 100644 index 96b37cd05771..000000000000 --- a/sec-policy/selinux-base-policy/selinux-base-policy-20051022-r1.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-20051022-r1.ebuild,v 1.3 2006/02/22 17:09:29 spb Exp $ - -IUSE="build" - -inherit eutils - -DESCRIPTION="Gentoo base policy for SELinux" -HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/" -SRC_URI="mirror://gentoo/${P}.tar.bz2" -LICENSE="GPL-2" -SLOT="0" -#KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~mips" -KEYWORDS="alpha amd64 mips ppc sparc x86" -DEPEND="build? ( sys-devel/make - sys-devel/m4 )" -RDEPEND="sys-devel/m4 - sys-devel/make" - -S=${WORKDIR}/base-policy - -[ -z ${POLICYDIR} ] && POLICYDIR="/etc/security/selinux/src/policy" - -# deprecated policies: -DEPRECATED="domains/program/devfsd.te domains/program/opt.te - file_contexts/program/devfsd.fc file_contexts/program/opt.fc - file_contexts/users.fc domains/program/inetd.te - domains/program/tcpd.te file_contexts/program/inetd.fc - file_contexts/program/tcpd.fc macros/program/ypbind_macros.te" - -src_compile() { - return -} - -src_install() { - sed -i -e 's/genhomedircon/genhomedircon.old/' ${S}/Makefile - if use build; then - # generate a file_contexts - dodir ${POLICYDIR}/file_contexts - einfo "Ignore the checkpolicy error on the next line." - make -C ${S} \ - FC=${D}/${POLICYDIR}/file_contexts/file_contexts \ - ${D}/${POLICYDIR}/file_contexts/file_contexts - - [ ! -f ${D}/${POLICYDIR}/file_contexts/file_contexts ] && \ - die "file_contexts was not generated." - else - # install full policy - dodir /etc/security/selinux/src - - insinto /etc/security - doins ${S}/appconfig/* - - cp -a ${S} ${D}/${POLICYDIR} - rm -fR ${D}/${POLICYDIR}/appconfig - fi -} - -pkg_postinst() { - local isdeprecated - - if ! ( use build || use bootstrap ) - then - ewarn "Removing invalid backup copies of critical config files..." - rm -f ${ROOT}/${POLICYDIR}/._cfg????_users - fi - - echo - einfo "This is the base policy for SELinux on Gentoo. This policy" - einfo "package only covers the applications in the system profile." - einfo "More policy may need to be added according to your requirements." - echo - eerror "It is STRONGLY suggested that you evaluate and merge the" - eerror "policy changes. If any of the file contexts (*.fc) have" - eerror "changed, you should also relabel." - echo - ewarn "Please check the Changelog, there may be important information." - echo - echo - - einfo "Checking for deprecated policy..." - for i in $DEPRECATED; do - if [ -f "${POLICYDIR}/${i}" ]; then - eerror "${POLICYDIR}/${i}" - isdeprecated="y" - fi - done - [ "${isdeprecated}" ] && \ - eerror "The above policy file(s) should be removed if possible." || \ - einfo "None found." - - ebeep 4 - epause 4 -} diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-20061114.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-20061114.ebuild deleted file mode 100644 index b3a2fd7c043b..000000000000 --- a/sec-policy/selinux-base-policy/selinux-base-policy-20061114.ebuild +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-20061114.ebuild,v 1.1 2006/11/15 01:04:52 pebenito Exp $ - -IUSE="" - -inherit eutils - -DESCRIPTION="Gentoo base policy for SELinux" -HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/" -SRC_URI="http://oss.tresys.com/files/refpolicy/refpolicy-${PV}.tar.bz2" -LICENSE="GPL-2" -SLOT="0" - -#KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~mips ~alpha" -KEYWORDS="alpha amd64 mips ppc sparc x86" - -RDEPEND=">=sys-apps/policycoreutils-1.30.30" -DEPEND="${RDEPEND} - sys-devel/m4 - >=sys-apps/checkpolicy-1.30.12" - -S=${WORKDIR}/ - -src_unpack() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - unpack ${A} - - for i in ${POLICY_TYPES}; do - mkdir -p ${S}/${i}/policy - cp ${FILESDIR}/modules.conf.${i} ${S}/${i}/policy/modules.conf - done -} - -src_compile() { - local OPTS="MONOLITHIC=n DISTRO=gentoo QUIET=y" - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - cd ${S}/refpolicy - - make ${OPTS} generate || die "Failed to create generated module files" - - make ${OPTS} xml || die "XML generation failed." - - for i in ${POLICY_TYPES}; do -# make ${OPTS} TYPE=${i} NAME=${i} LOCAL_ROOT=${S}/${i} conf \ -# || die "${i} modules.conf update failed" - - make ${OPTS} TYPE=${i} NAME=${i} LOCAL_ROOT=${S}/${i} base \ - || die "${i} compile failed" - done -} - -src_install() { - local OPTS="MONOLITHIC=n DISTRO=gentoo QUIET=y DESTDIR=${D}" - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - cd ${S}/refpolicy - - for i in ${POLICY_TYPES}; do - make ${OPTS} TYPE=${i} NAME=${i} LOCAL_ROOT=${S}/${i} install \ - || die "${i} install failed." - - make ${OPTS} TYPE=${i} NAME=${i} install-headers \ - || die "${i} headers install failed." - - echo "run_init_t" > ${D}/etc/selinux/${i}/contexts/run_init_type - - echo "textrel_shlib_t" >> ${D}/etc/selinux/${i}/contexts/customizable_types - - # libsemanage won't make this on its own - keepdir /etc/selinux/${i}/policy - done - - dodoc doc/Makefile.example doc/example.{te,fc,if} - - insinto /etc/selinux - doins ${FILESDIR}/config -} - -pkg_postinst() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - if has "loadpolicy" $FEATURES ; then - for i in ${POLICY_TYPES}; do - einfo "Inserting base module into ${i} module store." - - cd /usr/share/selinux/${i} - semodule -s ${i} -b base.pp - done - else - echo - echo - eerror "Policy has not been loaded. It is strongly suggested" - eerror "that the policy be loaded before continuing!!" - echo - einfo "Automatic policy loading can be enabled by adding" - einfo "\"loadpolicy\" to the FEATURES in make.conf." - echo - echo - ebeep 4 - epause 4 - fi -} |