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

Diff of /sys-apps/policycoreutils/policycoreutils-2.1.13-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/Attic/policycoreutils-2.1.13-r4.ebuild,v 1.1 2012/10/14 09:44:36 swift Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/Attic/policycoreutils-2.1.13-r4.ebuild,v 1.2 2012/11/17 16:57:22 swift Exp $
4 4
5EAPI="4" 5EAPI="4"
6PYTHON_DEPEND="2:2.7" 6PYTHON_DEPEND="2:2.7"
7PYTHON_USE_WITH="xml" 7PYTHON_USE_WITH="xml"
8SUPPORT_PYTHON_ABIS="1" 8SUPPORT_PYTHON_ABIS="1"
13EXTRAS_VER="1.22" 13EXTRAS_VER="1.22"
14SEMNG_VER="2.1.9" 14SEMNG_VER="2.1.9"
15SELNX_VER="2.1.12" 15SELNX_VER="2.1.12"
16SEPOL_VER="2.1.8" 16SEPOL_VER="2.1.8"
17 17
18IUSE="audit pam dbus sesandbox" 18IUSE="audit pam dbus"
19 19
20DESCRIPTION="SELinux core utilities" 20DESCRIPTION="SELinux core utilities"
21HOMEPAGE="http://userspace.selinuxproject.org" 21HOMEPAGE="http://userspace.selinuxproject.org"
22SRC_URI="http://userspace.selinuxproject.org/releases/20120924/${P}.tar.gz 22SRC_URI="http://userspace.selinuxproject.org/releases/20120924/${P}.tar.gz
23http://dev.gentoo.org/~swift/patches/policycoreutils/patchbundle-${P}-gentoo-r4.tar.gz 23http://dev.gentoo.org/~swift/patches/policycoreutils/patchbundle-${P}-gentoo-r4.tar.gz
24 mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2" 24 mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
25 25
26LICENSE="GPL-2" 26LICENSE="GPL-2"
27SLOT="0" 27SLOT="0"
28KEYWORDS="~amd64 ~x86" 28KEYWORDS="amd64 x86"
29 29
30COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}[python] 30COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}[python]
31 >=sys-libs/glibc-2.4 31 >=sys-libs/glibc-2.4
32 >=sys-libs/libcap-1.10-r10 32 >=sys-libs/libcap-1.10-r10
33 >=sys-libs/libsemanage-${SEMNG_VER}[python] 33 >=sys-libs/libsemanage-${SEMNG_VER}[python]
34 sys-libs/libcap-ng 34 sys-libs/libcap-ng
35 >=sys-libs/libsepol-${SEPOL_VER} 35 >=sys-libs/libsepol-${SEPOL_VER}
36 sys-devel/gettext 36 sys-devel/gettext
37 dev-python/ipy 37 dev-python/ipy
38 sesandbox? ( dev-libs/libcgroup )
39 dbus? ( 38 dbus? (
40 sys-apps/dbus 39 sys-apps/dbus
41 dev-libs/dbus-glib 40 dev-libs/dbus-glib
42 ) 41 )
43 audit? ( >=sys-process/audit-1.5.1 ) 42 audit? ( >=sys-process/audit-1.5.1 )
83 local use_sesandbox="n"; 82 local use_sesandbox="n";
84 83
85 use audit && use_audit="y"; 84 use audit && use_audit="y";
86 use pam && use_pam="y"; 85 use pam && use_pam="y";
87 use dbus && use_dbus="y"; 86 use dbus && use_dbus="y";
88 use sesandbox && use_sesandbox="y";
89 87
90 python_copy_sources semanage sandbox 88 python_copy_sources semanage sandbox
91 building() { 89 building() {
92 einfo "Compiling policycoreutils" 90 einfo "Compiling policycoreutils"
93 emake -C "${S}" AUDIT_LOG_PRIVS="y" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" || die 91 emake -C "${S}" AUDIT_LOG_PRIVS="y" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" || die
104 local use_sesandbox="n"; 102 local use_sesandbox="n";
105 103
106 use audit && use_audit="y"; 104 use audit && use_audit="y";
107 use pam && use_pam="y"; 105 use pam && use_pam="y";
108 use dbus && use_dbus="y"; 106 use dbus && use_dbus="y";
109 use sesandbox && use_sesandbox="y";
110 107
111 # Python scripts are present in many places. There are no extension modules. 108 # Python scripts are present in many places. There are no extension modules.
112 installation() { 109 installation() {
113 einfo "Installing policycoreutils" 110 einfo "Installing policycoreutils"
114 emake -C "${S}" DESTDIR="${T}/images/${PYTHON_ABI}" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" AUDIT_LOG_PRIV="y" PYLIBVER="python$(python_get_version)" install || return 1 111 emake -C "${S}" DESTDIR="${T}/images/${PYTHON_ABI}" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" AUDIT_LOG_PRIV="y" PYLIBVER="python$(python_get_version)" install || return 1

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20