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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jun 11 22:12:05 2004 UTC (10 years, 3 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 Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.10-r1.ebuild,v 1.2 2004/05/07 20:18:49 pebenito Exp $
4
5 IUSE="build"
6
7 inherit eutils
8
9 EXTRAS_VER="1.3"
10
11 DESCRIPTION="SELinux core utilites"
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 ${S}
29 epatch ${FILESDIR}/policycoreutils-1.10-genhomedircon-reverse.diff
30
31 # Change script paths POLICYDIR
32 sed -i -e "s:/etc/security/selinux/src/policy/:${POLICYDIR}:g" ${S}/scripts/genhomedircon
33
34 # fix up to accept Gentoo CFLAGS
35 local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
36 for i in ${SUBDIRS}; do
37 sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
38 || die "${i} Makefile CFLAGS fix failed."
39 done
40 }
41
42 src_compile() {
43 if use build; then
44 einfo "Compiling setfiles"
45 emake -C ${S}/setfiles || die
46 else
47 einfo "Compiling policycoreutils"
48 emake -C ${S} || die
49 einfo "Compiling policycoreutils-extra"
50 emake -C ${S2} || die
51 fi
52 }
53
54 src_install() {
55 if use build; then
56 dosbin ${S}/setfiles/setfiles
57 else
58 einfo "Installing policycoreutils"
59 make DESTDIR="${D}" -C ${S} install || die
60 einfo "Installing policycoreutils-extra"
61 make DESTDIR="${D}" -C ${S2} install || die
62 fi
63 }
64
65 pkg_postinst() {
66 ewarn "WARNING: seinit is deprecated, and is no"
67 ewarn "longer installed. Please remove seinit from"
68 ewarn "your bootloader. The policy is now loaded"
69 ewarn "by init itself."
70 }

  ViewVC Help
Powered by ViewVC 1.1.20