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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Sep 13 03:31:44 2004 UTC (9 years, 9 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild,v 1.6 2004/08/08 00:38:07 slarti Exp $
4
5 IUSE="build"
6
7 EXTRAS_VER="1.0"
8
9 DESCRIPTION="SELinux core utilities"
10 HOMEPAGE="http://www.nsa.gov/selinux"
11 SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz
12 mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="x86 ppc sparc"
16
17 DEPEND=">=sys-libs/libselinux-${PV}
18 sys-devel/gettext
19 !build? ( sys-libs/pam )"
20
21 RDEPEND="${DEPEND}"
22
23 S2=${WORKDIR}/policycoreutils-extra
24
25 src_unpack() {
26 unpack ${A}
27
28 # trivial fix to audit2allow
29 sed -i -e 's:newrules:$0:' ${S}/audit2allow/audit2allow
30
31 # fix up to accept Gentoo CFLAGS
32 local SUBDIRS="load_policy newrole run_init setfiles audit2allow"
33 for i in ${SUBDIRS}; do
34 sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
35 || die "${i} Makefile CFLAGS fix failed."
36 done
37 }
38
39 src_compile() {
40 if use build; then
41 einfo "Compiling setfiles"
42 emake -C ${S}/setfiles || die
43 else
44 einfo "Compiling policycoreutils"
45 emake -C ${S} || die
46 einfo "Compiling policycoreutils-extra"
47 emake -C ${S2} || die
48 fi
49 }
50
51 src_install() {
52 if use build; then
53 dosbin ${S}/setfiles/setfiles
54 else
55 einfo "Installing policycoreutils"
56 make DESTDIR="${D}" -C ${S} install || die
57 einfo "Installing policycoreutils-extra"
58 make DESTDIR="${D}" -C ${S2} install || die
59
60 exeinto /sbin
61 newexe ${FILESDIR}/selinux-init seinit
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20