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

Contents of /sys-apps/policycoreutils/policycoreutils-1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Oct 7 18:22:42 2003 UTC (10 years, 9 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
mark 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/sys-apps/policycoreutils/policycoreutils-1.1-r1.ebuild,v 1.4 2003/09/29 19:28:54 pebenito Exp $
4
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 KEYWORDS="x86 ppc"
13
14 DEPEND="sys-libs/libselinux
15 !build? ( sys-libs/pam )"
16
17 RDEPEND="${DEPEND}
18 !build? ( sys-apps/mkinitrd )"
19
20 S=${WORKDIR}/${P}
21
22 src_unpack() {
23 unpack ${A}
24
25 cd ${S}
26 epatch ${FILESDIR}/${PN}-1.0-gentoo.diff
27 epatch ${FILESDIR}/${P}-setfiles.diff
28
29 # overwrite the /etc/pam.d files with ones
30 # that work with our pam setup
31 cp -f ${FILESDIR}/newrole ${S}/newrole/newrole.pamd
32 cp -f ${FILESDIR}/run_init ${S}/run_init/run_init.pamd
33 }
34
35 src_compile() {
36
37 use build && SUBDIRS="setfiles" \
38 || SUBDIRS="load_policy newrole run_init setfiles"
39
40 for i in ${SUBDIRS}; do
41 einfo "Compiling ${i}"
42 cd ${S}/${i}
43 emake EXTRA_CFLAGS="${CFLAGS}"
44 done
45 }
46
47 src_install() {
48 if use build; then
49 dosbin ${S}/setfiles/setfiles
50 else
51 make DESTDIR="${D}" install
52
53 dosbin ${FILESDIR}/rlpkg
54 dobin ${FILESDIR}/{avc_enforcing,avc_toggle}
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20