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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 16 02:53:42 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

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.6.ebuild,v 1.1 2004/02/24 22:16:25 pebenito Exp $
4
5 IUSE="build"
6
7 EXTRAS_VER="1.0"
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
18 sys-devel/gettext
19 !build? ( sys-libs/pam )"
20
21 RDEPEND="${DEPEND}"
22
23 S=${WORKDIR}/${P}
24 S2=${WORKDIR}/policycoreutils-extra
25
26 src_unpack() {
27 unpack ${A}
28
29 # Change script paths POLICYDIR
30 sed -i -e "s:/etc/security/selinux/src/policy/:${POLICYDIR}:g" ${S}/scripts/restorecon
31 sed -i -e "s:/etc/security/selinux/src/policy/:${POLICYDIR}:g" ${S}/scripts/checkcon
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="load_policy newrole run_init setfiles audit2allow"
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
63 exeinto /sbin
64 newexe ${FILESDIR}/selinux-init seinit
65 fi
66 }

  ViewVC Help
Powered by ViewVC 1.1.20