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

Contents of /sys-apps/policycoreutils/policycoreutils-1.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 16 20:44:51 2003 UTC (11 years ago) by pebenito
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
mark stable

1 # Copyright 1999-2003 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.2-r2.ebuild,v 1.1 2003/11/24 05:06:15 pebenito Exp $
4
5 IUSE="build"
6
7 DESCRIPTION="SELinux core utilites"
8 HOMEPAGE="http://www.nsa.gov/selinux"
9 SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 ppc sparc"
13
14 DEPEND="sys-libs/libselinux
15 sys-devel/gettext
16 !build? ( sys-libs/pam )"
17
18 RDEPEND="${DEPEND}"
19
20 S=${WORKDIR}/${P}
21
22 src_unpack() {
23 unpack ${A}
24
25 cd ${S}
26 epatch ${FILESDIR}/${PN}-1.2-gentoo.diff
27
28 # remove -lattr from Makefiles
29 SUBDIRS="load_policy newrole run_init setfiles"
30 for i in ${SUBDIRS}; do
31 sed -i -e 's:-lattr::g' ${i}/Makefile
32 done
33
34 # overwrite the /etc/pam.d files with ones
35 # that work with our pam setup
36 cp -f ${FILESDIR}/newrole ${S}/newrole/newrole.pamd
37 cp -f ${FILESDIR}/run_init ${S}/run_init/run_init.pamd
38 }
39
40 src_compile() {
41
42 use build && SUBDIRS="setfiles" \
43 || SUBDIRS="load_policy newrole run_init setfiles"
44
45 for i in ${SUBDIRS}; do
46 einfo "Compiling ${i}"
47 cd ${S}/${i}
48 emake EXTRA_CFLAGS="${CFLAGS}" || die
49 done
50 }
51
52 src_install() {
53 if use build; then
54 dosbin ${S}/setfiles/setfiles
55 else
56 make DESTDIR="${D}" install
57
58 dosbin ${FILESDIR}/rlpkg
59 dobin ${FILESDIR}/{avc_enforcing,avc_toggle}
60
61 exeinto /sbin
62 newexe ${FILESDIR}/selinux-init seinit
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20