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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Sep 13 03:25:42 2004 UTC (10 years ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
rm old

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-20040225.ebuild,v 1.7 2004/09/06 01:13:57 pebenito Exp $
4
5 IUSE="build"
6
7 inherit eutils
8
9 DESCRIPTION="Gentoo base policy for SELinux"
10 HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/"
11 SRC_URI="mirror://gentoo/${P}.tar.bz2"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86 ppc sparc"
15 DEPEND="build? ( sys-devel/make )"
16 RDEPEND="sys-devel/m4
17 sys-devel/make
18 !build? ( >=sys-libs/pam-0.77 )"
19
20 S=${WORKDIR}/base-policy
21
22 [ -z ${POLICYDIR} ] && POLICYDIR="/etc/security/selinux/src/policy"
23
24 src_compile() {
25 return
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 ebeep 4
64 epause 4
65 }

  ViewVC Help
Powered by ViewVC 1.1.20