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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Feb 10 03:50:04 2004 UTC (10 years, 2 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
minor update

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-20031010-r1.ebuild,v 1.2 2003/11/27 17:51:43 pebenito Exp $
4
5 IUSE="build"
6
7 DESCRIPTION="Gentoo base policy for SELinux"
8 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/"
9 SRC_URI="mirror://gentoo/${P}.tar.bz2"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 ppc sparc"
13 DEPEND="build? ( sys-devel/make )"
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 src_unpack() {
22 unpack ${A}
23 cd ${S}
24 epatch ${FILESDIR}/${P}-cvs.diff
25 }
26
27 src_install() {
28 if use build; then
29 # generate a file_contexts
30 dodir ${POLICYDIR}/file_contexts
31 einfo "Ignore the checkpolicy error on the next line."
32 make -C ${S} \
33 FC=${D}/${POLICYDIR}/file_contexts/file_contexts \
34 ${D}/${POLICYDIR}/file_contexts/file_contexts
35
36 [ ! -f ${D}/${POLICYDIR}/file_contexts/file_contexts ] && \
37 die "file_contexts was not generated."
38 else
39 # install full policy
40 dodir /etc/security/selinux/src
41
42 insinto /etc/security
43 doins ${S}/appconfig/*
44
45 cp -a ${S} ${D}/${POLICYDIR}
46 rm -fR ${D}/${POLICYDIR}/appconfig
47 fi
48 }
49
50 pkg_postinst() {
51 echo
52 einfo "This is the base policy for SELinux on Gentoo. This policy"
53 einfo "package only covers the applications in the system profile."
54 einfo "More policy may need to be added according to your requirements."
55 echo
56 eerror "It is STRONGLY suggested that you evaluate and merge the"
57 eerror "policy changes. If any of the file contexts (*.fc) have"
58 eerror "changed, you should also relabel."
59 echo
60 ewarn "Please check the Changelog, there may be important information."
61 echo
62 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
63 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
64 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
65 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
66 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
67 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
68 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
69 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
70 sleep 8
71 }

  ViewVC Help
Powered by ViewVC 1.1.20