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

Contents of /sec-policy/selinux-base-policy/selinux-base-policy-20031225.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, 5 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
minor update

1 # Copyright 1999-2004 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-20031225.ebuild,v 1.2 2004/01/17 06:26:55 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 !build? ( >=sys-libs/pam-0.77 )"
17
18 S=${WORKDIR}/base-policy
19
20 [ -z ${POLICYDIR} ] && POLICYDIR="/etc/security/selinux/src/policy"
21
22 #src_unpack() {
23 # unpack ${A}
24 # cd ${S}
25 # epatch ${FILESDIR}/${P}-cvs.diff
26 #}
27
28 src_install() {
29 if use build; then
30 # generate a file_contexts
31 dodir ${POLICYDIR}/file_contexts
32 einfo "Ignore the checkpolicy error on the next line."
33 make -C ${S} \
34 FC=${D}/${POLICYDIR}/file_contexts/file_contexts \
35 ${D}/${POLICYDIR}/file_contexts/file_contexts
36
37 [ ! -f ${D}/${POLICYDIR}/file_contexts/file_contexts ] && \
38 die "file_contexts was not generated."
39 else
40 # install full policy
41 dodir /etc/security/selinux/src
42
43 insinto /etc/security
44 doins ${S}/appconfig/*
45
46 cp -a ${S} ${D}/${POLICYDIR}
47 rm -fR ${D}/${POLICYDIR}/appconfig
48 fi
49 }
50
51 pkg_postinst() {
52 echo
53 einfo "This is the base policy for SELinux on Gentoo. This policy"
54 einfo "package only covers the applications in the system profile."
55 einfo "More policy may need to be added according to your requirements."
56 echo
57 eerror "It is STRONGLY suggested that you evaluate and merge the"
58 eerror "policy changes. If any of the file contexts (*.fc) have"
59 eerror "changed, you should also relabel."
60 echo
61 ewarn "Please check the Changelog, there may be important information."
62 echo
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 echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1
71 sleep 8
72 }

  ViewVC Help
Powered by ViewVC 1.1.20