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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Apr 28 21:28:41 2004 UTC (10 years, 4 months ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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.8.ebuild,v 1.6 2004/04/09 03:31:48 pebenito Exp $
4
5 IUSE="build"
6
7 EXTRAS_VER="1.2"
8
9 DESCRIPTION="SELinux core utilites"
10 HOMEPAGE="http://www.nsa.gov/selinux"
11 SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz
12 mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="x86 ppc sparc"
16
17 DEPEND=">=sys-libs/libselinux-${PV}
18 sys-devel/gettext
19 !build? ( sys-libs/pam )"
20
21 RDEPEND="${DEPEND}"
22
23 S2=${WORKDIR}/policycoreutils-extra
24
25 src_unpack() {
26 unpack ${A}
27
28 # Change script paths POLICYDIR
29 sed -i -e "s:/etc/security/selinux/src/policy/:${POLICYDIR}:g" ${S}/scripts/genhomedircon
30
31 # fix up to accept Gentoo CFLAGS
32 local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
33 for i in ${SUBDIRS}; do
34 sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
35 || die "${i} Makefile CFLAGS fix failed."
36 done
37 }
38
39 src_compile() {
40 if use build; then
41 einfo "Compiling setfiles"
42 emake -C ${S}/setfiles || die
43 else
44 einfo "Compiling policycoreutils"
45 emake -C ${S} || die
46 einfo "Compiling policycoreutils-extra"
47 emake -C ${S2} || die
48 fi
49 }
50
51 src_install() {
52 if use build; then
53 dosbin ${S}/setfiles/setfiles
54 else
55 einfo "Installing policycoreutils"
56 make DESTDIR="${D}" -C ${S} install || die
57 einfo "Installing policycoreutils-extra"
58 make DESTDIR="${D}" -C ${S2} install || die
59 fi
60 }
61
62 pkg_postinst() {
63 ewarn "WARNING: seinit is deprecated, and is no"
64 ewarn "longer installed. Please remove seinit from"
65 ewarn "your bootloader. The policy is now loaded"
66 ewarn "by init itself."
67 }

  ViewVC Help
Powered by ViewVC 1.1.20