/[gentoo-x86]/sys-apps/policycoreutils/policycoreutils-1.4.ebuild
Gentoo

Contents of /sys-apps/policycoreutils/policycoreutils-1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Feb 24 22:16:25 2004 UTC (14 years, 5 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
new upstream release

1 pebenito 1.1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 pebenito 1.3 # $Header: /home/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.4.ebuild,v 1.2 2003/12/16 20:44:51 pebenito Exp $
4 pebenito 1.1
5     IUSE="build"
6    
7     DESCRIPTION="SELinux core utilites"
8     HOMEPAGE="http://www.nsa.gov/selinux"
9     SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz"
10     LICENSE="GPL-2"
11     SLOT="0"
12 pebenito 1.2 KEYWORDS="x86 ppc sparc"
13 pebenito 1.1
14     DEPEND="sys-libs/libselinux
15     sys-devel/gettext
16     !build? ( sys-libs/pam )"
17    
18     RDEPEND="${DEPEND}"
19    
20     S=${WORKDIR}/${P}
21    
22     src_unpack() {
23     unpack ${A}
24    
25     cd ${S}
26    
27     # trivial fix to audit2allow
28     sed -i -e 's:newrules:$0:' audit2allow/audit2allow
29    
30     # fix up to accept Gentoo CFLAGS
31     SUBDIRS="load_policy newrole run_init setfiles audit2allow"
32     for i in ${SUBDIRS}; do
33     sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${i}/Makefile \
34     || die "${i} Makefile CFLAGS fix failed."
35     done
36    
37     # overwrite the /etc/pam.d files with ones
38     # that work with our pam setup
39     cp -f ${FILESDIR}/newrole ${S}/newrole/newrole.pamd
40     cp -f ${FILESDIR}/run_init ${S}/run_init/run_init.pamd
41     }
42    
43     src_compile() {
44    
45     use build && SUBDIRS="setfiles" \
46     || SUBDIRS="load_policy newrole run_init setfiles audit2allow"
47    
48     for i in ${SUBDIRS}; do
49     einfo "Compiling ${i}"
50     cd ${S}/${i}
51     emake || die
52     done
53     }
54    
55     src_install() {
56     if use build; then
57     dosbin ${S}/setfiles/setfiles
58     else
59     make DESTDIR="${D}" install
60    
61     dosbin ${FILESDIR}/rlpkg
62     dobin ${FILESDIR}/avc_toggle
63    
64     dosym /usr/bin/getenforce /usr/bin/avc_enforcing
65    
66     exeinto /sbin
67     newexe ${FILESDIR}/selinux-init seinit
68     fi
69     }

  ViewVC Help
Powered by ViewVC 1.1.20