/[gentoo-x86]/sys-auth/polkit/polkit-0.107-r1.ebuild
Gentoo

Diff of /sys-auth/polkit/polkit-0.107-r1.ebuild

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

Revision 1.2 Revision 1.3
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-auth/polkit/Attic/polkit-0.107-r1.ebuild,v 1.2 2012/10/07 10:46:47 ago Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/Attic/polkit-0.107-r1.ebuild,v 1.3 2012/10/08 06:24:32 ssuominen Exp $
4 4
5EAPI=4 5EAPI=4
6inherit eutils multilib pam pax-utils systemd user 6inherit eutils multilib pam pax-utils systemd user
7 7
8DESCRIPTION="Policy framework for controlling privileges for system-wide services" 8DESCRIPTION="Policy framework for controlling privileges for system-wide services"
12LICENSE="LGPL-2" 12LICENSE="LGPL-2"
13SLOT="0" 13SLOT="0"
14KEYWORDS="~alpha amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" 14KEYWORDS="~alpha amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
15IUSE="examples gtk +introspection kde nls pam selinux systemd" 15IUSE="examples gtk +introspection kde nls pam selinux systemd"
16 16
17RESTRICT="multilib-strict" #424423
18
19RDEPEND=">=dev-lang/spidermonkey-1.8.5 17RDEPEND=">=dev-lang/spidermonkey-1.8.5-r1
20 >=dev-libs/glib-2.32 18 >=dev-libs/glib-2.32
21 >=dev-libs/expat-2 19 >=dev-libs/expat-2
22 introspection? ( >=dev-libs/gobject-introspection-1 ) 20 introspection? ( >=dev-libs/gobject-introspection-1 )
23 pam? ( 21 pam? (
24 sys-auth/pambase 22 sys-auth/pambase
74 --with-authfw=$(usex pam pam shadow) \ 72 --with-authfw=$(usex pam pam shadow) \
75 $(use pam && echo --with-pam-module-dir="$(getpam_mod_dir)") \ 73 $(use pam && echo --with-pam-module-dir="$(getpam_mod_dir)") \
76 --with-os-type=gentoo 74 --with-os-type=gentoo
77} 75}
78 76
77src_compile() {
78 default
79
80 # Required for polkitd on hardened/PaX due to spidermonkey's JIT
81 local f='src/polkitbackend/.libs/polkitd test/polkitbackend/.libs/polkitbackendjsauthoritytest'
82 if has_version '>=dev-lang/spidermonkey-1.8.7[jit]'; then
83 pax-mark m ${f}
84 else
85 pax-mark mr ${f}
86 fi
87}
88
79src_install() { 89src_install() {
90 if has multilib-strict ${FEATURES}; then
91 ewarn
92 ewarn "Possible broken flag multilib-strict in FEATURES detected."
93 ewarn "Your build will likely fail to install wrt bug #424423."
94 ewarn "This is a bug in the Package Manager instead of polkit."
95 ewarn
96 fi
97
80 emake DESTDIR="${D}" install 98 emake DESTDIR="${D}" install
81 99
82 dodoc docs/TODO HACKING NEWS README 100 dodoc docs/TODO HACKING NEWS README
83 101
84 fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d 102 fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d
90 insinto /usr/share/doc/${PF}/examples 108 insinto /usr/share/doc/${PF}/examples
91 doins src/examples/{*.c,*.policy*} 109 doins src/examples/{*.c,*.policy*}
92 fi 110 fi
93 111
94 prune_libtool_files 112 prune_libtool_files
95
96 # Required for polkitd on hardened/PaX due to spidermonkey's JIT
97 if has_version '<dev-lang/spidermonkey-1.8.7'; then
98 pax-mark mr "${ED}"/usr/lib/polkit-1/polkitd
99 elif has_version '>=dev-lang/spidermonkey-1.8.7[jit]'; then
100 pax-mark m "${ED}"/usr/lib/polkit-1/polkitd
101 fi
102} 113}
103 114
104pkg_postinst() { 115pkg_postinst() {
105 chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d 116 chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
106 chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1 117 chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1

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

  ViewVC Help
Powered by ViewVC 1.1.20