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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Feb 14 00:38:20 2005 UTC (9 years, 5 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Add back some tools deleted from upstream libselinux.

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.16.ebuild,v 1.3 2004/10/07 23:24:59 pebenito Exp $
4
5 IUSE="build"
6
7 inherit eutils
8
9 EXTRAS_VER="1.8"
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-libs/libsepol
21 sys-devel/gettext
22 !build? ( sys-libs/pam )"
23
24 S2=${WORKDIR}/policycoreutils-extra
25
26 src_unpack() {
27 unpack ${A}
28
29 cd ${S}
30
31 # add compatibility for number of genhomedircon command line args
32 epatch ${FILESDIR}/policycoreutils-1.16-genhomedircon-compat.diff
33
34 # dont install fixfiles cron script
35 sed -i -e '/^all/s/fixfiles//' ${S}/scripts/Makefile \
36 || die "fixfiles sed 1 failed"
37 sed -i -e '/fixfiles/d' ${S}/scripts/Makefile \
38 || die "fixfiles sed 2 failed"
39
40 # fix up to accept Gentoo CFLAGS
41 local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
42 for i in ${SUBDIRS}; do
43 sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
44 || die "${i} Makefile CFLAGS fix failed."
45 done
46 }
47
48 src_compile() {
49 if use build; then
50 einfo "Compiling setfiles"
51 emake -C ${S}/setfiles || die
52 else
53 einfo "Compiling policycoreutils"
54 emake -C ${S} || die
55 einfo "Compiling policycoreutils-extra"
56 emake -C ${S2} || die
57 fi
58 }
59
60 src_install() {
61 if use build; then
62 dosbin ${S}/setfiles/setfiles
63 else
64 einfo "Installing policycoreutils"
65 make DESTDIR="${D}" -C ${S} install || die
66 einfo "Installing policycoreutils-extra"
67 make DESTDIR="${D}" -C ${S2} install || die
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20