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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jul 6 21:44:40 2004 UTC (14 years, 3 months ago) by pebenito
Branch: MAIN
Changes since 1.2: +2 -2 lines
fix runscript_selinux.so in ~arch

1 pebenito 1.2 # Copyright 1999-2004 Gentoo Foundation
2 pebenito 1.1 # Distributed under the terms of the GNU General Public License v2
3 pebenito 1.3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.14.ebuild,v 1.2 2004/07/04 02:23:30 pebenito Exp $
4 pebenito 1.1
5     IUSE="build"
6    
7     inherit eutils
8    
9 pebenito 1.3 EXTRAS_VER="1.7"
10 pebenito 1.1
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     # fix genhomedircon starting uid
30     sed -i -e '/^STARTING_UID/s/100/1000/' ${S}/scripts/genhomedircon
31    
32     # add compatibility for number of genhomedircon command line args
33     epatch ${FILESDIR}/policycoreutils-1.14-genhomedircon-compat.diff
34    
35     # fix up to accept Gentoo CFLAGS
36     local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
37     for i in ${SUBDIRS}; do
38     sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
39     || die "${i} Makefile CFLAGS fix failed."
40     done
41     }
42    
43     src_compile() {
44     if use build; then
45     einfo "Compiling setfiles"
46     emake -C ${S}/setfiles || die
47     else
48     einfo "Compiling policycoreutils"
49     emake -C ${S} || die
50     einfo "Compiling policycoreutils-extra"
51     emake -C ${S2} || die
52     fi
53     }
54    
55     src_install() {
56     if use build; then
57     dosbin ${S}/setfiles/setfiles
58     else
59     einfo "Installing policycoreutils"
60     make DESTDIR="${D}" -C ${S} install || die
61     einfo "Installing policycoreutils-extra"
62     make DESTDIR="${D}" -C ${S2} install || die
63     fi
64     }

  ViewVC Help
Powered by ViewVC 1.1.20