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

Diff of /sys-apps/policycoreutils/policycoreutils-2.1.10-r5.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.10-r5.ebuild,v 1.1 2012/09/08 18:40:59 swift Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/Attic/policycoreutils-2.1.10-r5.ebuild,v 1.2 2012/10/06 16:39:54 swift Exp $
4 4
5EAPI="4" 5EAPI="4"
6PYTHON_DEPEND="*" 6PYTHON_DEPEND="*"
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.6" 14SEMNG_VER="2.1.6"
15SELNX_VER="2.1.9" 15SELNX_VER="2.1.9"
16SEPOL_VER="2.1.4" 16SEPOL_VER="2.1.4"
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/20120216/${P}.tar.gz 22SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz
23 http://dev.gentoo.org/~swift/patches/policycoreutils/patchbundle-${P}-gentoo-r3.tar.gz 23 http://dev.gentoo.org/~swift/patches/policycoreutils/patchbundle-${P}-gentoo-r3.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 )
81 local use_sesandbox="n"; 80 local use_sesandbox="n";
82 81
83 use audit && use_audit="y"; 82 use audit && use_audit="y";
84 use pam && use_pam="y"; 83 use pam && use_pam="y";
85 use dbus && use_dbus="y"; 84 use dbus && use_dbus="y";
86 use sesandbox && use_sesandbox="y";
87 85
88 python_copy_sources semanage sandbox 86 python_copy_sources semanage sandbox
89 building() { 87 building() {
90 einfo "Compiling policycoreutils" 88 einfo "Compiling policycoreutils"
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 89 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
102 local use_sesandbox="n"; 100 local use_sesandbox="n";
103 101
104 use audit && use_audit="y"; 102 use audit && use_audit="y";
105 use pam && use_pam="y"; 103 use pam && use_pam="y";
106 use dbus && use_dbus="y"; 104 use dbus && use_dbus="y";
107 use sesandbox && use_sesandbox="y";
108 105
109 # Python scripts are present in many places. There are no extension modules. 106 # Python scripts are present in many places. There are no extension modules.
110 installation() { 107 installation() {
111 einfo "Installing policycoreutils" 108 einfo "Installing policycoreutils"
112 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 109 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