/[gentoo-x86]/sec-policy/selinux-base-policy/selinux-base-policy-20030817.ebuild
Gentoo

Contents of /sec-policy/selinux-base-policy/selinux-base-policy-20030817.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 10 20:31:41 2003 UTC (10 years, 9 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
new release

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-20030817.ebuild,v 1.1 2003/08/18 02:38:28 pebenito Exp $
4
5 IUSE="selinux"
6
7 DESCRIPTION="Gentoo base policy for SELinux"
8 HOMEPAGE="http://www.gentoo.org"
9 SRC_URI="mirror://gentoo/${P}.tar.bz2"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~x86 ~ppc"
13 DEPEND=""
14 RDEPEND="sys-devel/m4
15 sys-devel/make"
16
17 S=${WORKDIR}/base-policy
18
19 [ -z ${POLICYDIR} ] && POLICYDIR="/etc/security/selinux/src/policy"
20
21 pkg_setup() {
22 if [ -z "`use selinux`" ]; then
23 eerror "selinux is missing from your USE. You seem to be using the"
24 eerror "incorrect profile. SELinux has a different profile than"
25 eerror "mainline Gentoo. Make sure the /etc/make.profile symbolic"
26 eend 1 "link is pointing to /usr/portage/profiles/selinux-${ARCH}-1.4/"
27 fi
28 }
29
30 src_install() {
31 dodir /etc/security/selinux/src
32
33 insinto /etc/security
34 doins ${S}/appconfig/*
35
36 cp -a ${S} ${D}/${POLICYDIR}
37 rm -fR ${D}/${POLICYDIR}/appconfig
38 }
39
40 pkg_postinst() {
41 echo
42 einfo "This is the base policy for SELinux on Gentoo. This policy"
43 einfo "package only covers the applications in the system profile."
44 einfo "More policy may need to be added according to your requirements."
45 echo
46 eerror "It is STRONGLY suggested that you evaluate and merge the"
47 eerror "policy changes. If any of the file contexts (*.fc) have"
48 eerror "changed, you should also relabel."
49 echo
50 ewarn "Please check the Changelog, there may be important information."
51 echo
52 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
53 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
54 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
55 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
56 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
57 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
58 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
59 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
60 sleep 8
61 }

  ViewVC Help
Powered by ViewVC 1.1.20