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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat Nov 12 18:13:09 2011 UTC (7 years, 5 months ago) by swift
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Removing older ebuilds of policycoreutils

(Portage version: 2.1.10.11/cvs/Linux x86_64)

1 blueness 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 swift 1.5 # $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.82.ebuild,v 1.4 2011/06/16 01:33:17 blueness Exp $
4 blueness 1.1
5 arfrever 1.2 EAPI="2"
6     PYTHON_DEPEND="2"
7     PYTHON_USE_WITH="xml"
8     SUPPORT_PYTHON_ABIS="1"
9     RESTRICT_PYTHON_ABIS="3.* *-jython"
10 blueness 1.1
11 arfrever 1.2 inherit multilib python toolchain-funcs
12 blueness 1.1
13     EXTRAS_VER="1.20"
14     SEMNG_VER="2.0.45"
15     SELNX_VER="2.0.94"
16     SEPOL_VER="2.0.41"
17    
18 blueness 1.4 IUSE=""
19    
20 blueness 1.1 DESCRIPTION="SELinux core utilities"
21     HOMEPAGE="http://userspace.selinuxproject.org"
22     SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz
23     mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
24 arfrever 1.2
25 blueness 1.1 LICENSE="GPL-2"
26     SLOT="0"
27 blueness 1.3 KEYWORDS="amd64 x86"
28 blueness 1.1
29 arfrever 1.2 COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}[python]
30 blueness 1.1 >=sys-libs/glibc-2.4
31     >=sys-process/audit-1.5.1
32     >=sys-libs/libcap-1.10-r10
33     sys-libs/pam
34 arfrever 1.2 >=sys-libs/libsemanage-${SEMNG_VER}[python]
35 blueness 1.1 sys-libs/libcap-ng
36 blueness 1.4 >=sys-libs/libsepol-${SEPOL_VER}
37     sys-devel/gettext"
38 blueness 1.1
39     # pax-utils for scanelf used by rlpkg
40     RDEPEND="${COMMON_DEPS}
41     dev-python/sepolgen
42     app-misc/pax-utils"
43    
44 blueness 1.4 DEPEND="${COMMON_DEPS}"
45 blueness 1.1
46     S2=${WORKDIR}/policycoreutils-extra
47    
48 arfrever 1.2 src_prepare() {
49 blueness 1.1 # rlpkg is more useful than fixfiles
50     sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \
51     || die "fixfiles sed 1 failed"
52     sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \
53     || die "fixfiles sed 2 failed"
54     # removing sandbox for the time being, need to
55     # rename in future to sesandbox?
56     sed -i -e 's/sandbox //' "${S}/Makefile" \
57     || die "failed removing sandbox"
58     }
59    
60     src_compile() {
61     einfo "Compiling policycoreutils"
62 arfrever 1.2 emake -C "${S}" AUDIT_LOG_PRIV="y" CC="$(tc-getCC)" || die
63 blueness 1.1 einfo "Compiling policycoreutils-extra"
64 arfrever 1.2 emake -C "${S2}" CC="$(tc-getCC)" || die
65 blueness 1.1 }
66    
67     src_install() {
68 arfrever 1.2 # Python scripts are present in many places. There are no extension modules.
69     installation() {
70     einfo "Installing policycoreutils"
71     emake -C "${S}" DESTDIR="${T}/images/${PYTHON_ABI}" AUDIT_LOG_PRIV="y" PYLIBVER="python$(python_get_version)" install || return 1
72    
73     einfo "Installing policycoreutils-extra"
74     emake -C "${S2}" DESTDIR="${T}/images/${PYTHON_ABI}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1
75     }
76     python_execute_function installation
77     python_merge_intermediate_installation_images "${T}/images"
78 blueness 1.1
79     # remove redhat-style init script
80     rm -fR "${D}/etc/rc.d"
81    
82     # compatibility symlinks
83     dosym /sbin/setfiles /usr/sbin/setfiles
84 arfrever 1.2 dosym /$(get_libdir)/rc/runscript_selinux.so /$(get_libdir)/rcscripts/runscript_selinux.so
85 blueness 1.1 }
86    
87     pkg_postinst() {
88 arfrever 1.2 python_mod_optimize seobject.py
89 blueness 1.1 }
90    
91     pkg_postrm() {
92 arfrever 1.2 python_mod_cleanup seobject.py
93 blueness 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20