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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 11 01:44:25 2003 UTC (11 years, 1 month ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
mark stable

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-20030604.ebuild,v 1.1 2003/07/28 19:38:14 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"
13 RDEPEND="|| (
14 >=sys-kernel/selinux-sources-2.4.20-r1
15 >=sys-kernel/hardened-sources-2.4.20-r1
16 )
17 sys-devel/m4
18 sys-devel/make"
19 DEPEND=""
20 S=${WORKDIR}/base-policy
21
22 pkg_setup() {
23 if [ -z "`use selinux`" ]; then
24 eerror "selinux is missing from your USE. You seem to be using the"
25 eerror "incorrect profile. SELinux has a different profile than"
26 eerror "mainline Gentoo. Make sure the /etc/make.profile symbolic"
27 eend 1 "link is pointing to /usr/portage/profiles/selinux-x86-1.4/"
28 fi
29 }
30
31 src_install() {
32 dodir /etc/security/selinux/src
33
34 insinto /etc/security
35 doins ${S}/appconfig/*
36 rm -fR ${S}/appconfig
37
38 mv ${S} ${D}/etc/security/selinux/src/policy
39 }
40
41 pkg_postinst() {
42 echo
43 einfo "This is the base policy for SELinux on Gentoo. This policy"
44 einfo "package only covers the applications in the system profile."
45 einfo "More policy may need to be added according to your requirements."
46 echo
47 eerror "It is STRONGLY suggested that you evaluate and merge the"
48 eerror "policy changes. If any of the file contexts (*.fc) have"
49 eerror "changed, you should also relabel."
50 echo
51 ewarn "Please check the Changelog, there may be important information."
52 echo
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 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
61 sleep 8
62 }

  ViewVC Help
Powered by ViewVC 1.1.20