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

Contents of /sys-apps/policycoreutils/policycoreutils-1.12-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Oct 7 23:24:59 2004 UTC (9 years, 11 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
mark stable

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.12-r2.ebuild,v 1.2 2004/08/08 00:38:07 slarti Exp $
4
5 IUSE="build"
6
7 inherit eutils
8
9 EXTRAS_VER="1.5"
10
11 DESCRIPTION="SELinux core utilities"
12 HOMEPAGE="http://www.nsa.gov/selinux"
13 SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz
14 mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="x86 ppc sparc"
18
19 DEPEND=">=sys-libs/libselinux-${PV}
20 sys-devel/gettext
21 !build? ( sys-libs/pam )"
22
23 S2=${WORKDIR}/policycoreutils-extra
24
25 src_unpack() {
26 unpack ${A}
27
28 cd ${S2}
29 epatch ${FILESDIR}/runscript-selinux.diff
30
31 cd ${S}
32 epatch ${FILESDIR}/policycoreutils-1.10-genhomedircon-reverse.diff
33
34 # Change script paths POLICYDIR
35 sed -i -e "s:/etc/security/selinux/src/policy/:${POLICYDIR}:g" ${S}/scripts/genhomedircon
36
37 # fix up to accept Gentoo CFLAGS
38 local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
39 for i in ${SUBDIRS}; do
40 sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
41 || die "${i} Makefile CFLAGS fix failed."
42 done
43 }
44
45 src_compile() {
46 if use build; then
47 einfo "Compiling setfiles"
48 emake -C ${S}/setfiles || die
49 else
50 einfo "Compiling policycoreutils"
51 emake -C ${S} || die
52 einfo "Compiling policycoreutils-extra"
53 emake -C ${S2} || die
54 fi
55 }
56
57 src_install() {
58 if use build; then
59 dosbin ${S}/setfiles/setfiles
60 else
61 einfo "Installing policycoreutils"
62 make DESTDIR="${D}" -C ${S} install || die
63 einfo "Installing policycoreutils-extra"
64 make DESTDIR="${D}" -C ${S2} install || die
65 fi
66 }

  ViewVC Help
Powered by ViewVC 1.1.20