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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Nov 24 05:06:15 2003 UTC (10 years, 4 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
bump to use selinux-init

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.2-r1.ebuild,v 1.2 2003/10/29 16:16:21 method 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 sparc"
13
14 DEPEND="sys-libs/libselinux
15 sys-devel/gettext
16 !build? ( sys-libs/pam )"
17
18 RDEPEND="${DEPEND}
19 !build? ( sys-apps/mkinitrd )"
20
21 S=${WORKDIR}/${P}
22
23 src_unpack() {
24 unpack ${A}
25
26 cd ${S}
27 epatch ${FILESDIR}/${PN}-1.2-gentoo.diff
28
29 # remove -lattr from Makefiles
30 SUBDIRS="load_policy newrole run_init setfiles"
31 for i in ${SUBDIRS}; do
32 sed -i -e 's:-lattr::g' ${i}/Makefile
33 done
34
35 # overwrite the /etc/pam.d files with ones
36 # that work with our pam setup
37 cp -f ${FILESDIR}/newrole ${S}/newrole/newrole.pamd
38 cp -f ${FILESDIR}/run_init ${S}/run_init/run_init.pamd
39 }
40
41 src_compile() {
42
43 use build && SUBDIRS="setfiles" \
44 || SUBDIRS="load_policy newrole run_init setfiles"
45
46 for i in ${SUBDIRS}; do
47 einfo "Compiling ${i}"
48 cd ${S}/${i}
49 emake EXTRA_CFLAGS="${CFLAGS}" || die
50 done
51 }
52
53 src_install() {
54 if use build; then
55 dosbin ${S}/setfiles/setfiles
56 else
57 make DESTDIR="${D}" install
58
59 dosbin ${FILESDIR}/rlpkg
60 dobin ${FILESDIR}/{avc_enforcing,avc_toggle}
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20