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

Contents of /sec-policy/selinux-base-policy/selinux-base-policy-20030729-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 29 03:44:15 2003 UTC (11 years, 2 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove old api policy, mark new api policy 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-20030729-r1.ebuild,v 1.2 2003/08/11 01:44:26 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 [ -z ${POLICYDIR} ] && POLICYDIR="/etc/security/selinux/src/policy"
23
24 pkg_setup() {
25 if [ -z "`use selinux`" ]; then
26 eerror "selinux is missing from your USE. You seem to be using the"
27 eerror "incorrect profile. SELinux has a different profile than"
28 eerror "mainline Gentoo. Make sure the /etc/make.profile symbolic"
29 eend 1 "link is pointing to /usr/portage/profiles/selinux-x86-1.4/"
30 fi
31 }
32
33 src_install() {
34 dodir /etc/security/selinux/src
35
36 insinto /etc/security
37 doins ${S}/appconfig/*
38 rm -fR ${S}/appconfig
39
40 mv ${S} ${D}/${POLICYDIR}
41 }
42
43 pkg_postinst() {
44 echo
45 einfo "This is the base policy for SELinux on Gentoo. This policy"
46 einfo "package only covers the applications in the system profile."
47 einfo "More policy may need to be added according to your requirements."
48 echo
49 eerror "It is STRONGLY suggested that you evaluate and merge the"
50 eerror "policy changes. If any of the file contexts (*.fc) have"
51 eerror "changed, you should also relabel."
52 echo
53 ewarn "Please check the Changelog, there may be important information."
54 echo
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 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
62 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
63 sleep 8
64 }

  ViewVC Help
Powered by ViewVC 1.1.20