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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 28 21:28:40 2004 UTC (10 years, 5 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Update extras and mark stable.

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

  ViewVC Help
Powered by ViewVC 1.1.20