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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Nov 14 19:09:35 2004 UTC (9 years, 5 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
new uptream release

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.14.ebuild,v 1.6 2004/09/20 02:09:45 pebenito Exp $
4
5 IUSE="build"
6
7 inherit eutils
8
9 EXTRAS_VER="1.7"
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 amd64"
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 ${S}
29 # fix genhomedircon starting uid
30 sed -i -e '/^STARTING_UID/s/100/1000/' ${S}/scripts/genhomedircon
31
32 # add compatibility for number of genhomedircon command line args
33 epatch ${FILESDIR}/policycoreutils-1.14-genhomedircon-compat.diff
34
35 # fix up to accept Gentoo CFLAGS
36 local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
37 for i in ${SUBDIRS}; do
38 sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
39 || die "${i} Makefile CFLAGS fix failed."
40 done
41 }
42
43 src_compile() {
44 if use build; then
45 einfo "Compiling setfiles"
46 emake -C ${S}/setfiles || die
47 else
48 einfo "Compiling policycoreutils"
49 emake -C ${S} || die
50 einfo "Compiling policycoreutils-extra"
51 emake -C ${S2} || die
52 fi
53 }
54
55 src_install() {
56 if use build; then
57 dosbin ${S}/setfiles/setfiles
58 else
59 einfo "Installing policycoreutils"
60 make DESTDIR="${D}" -C ${S} install || die
61 einfo "Installing policycoreutils-extra"
62 make DESTDIR="${D}" -C ${S2} install || die
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20