/[gentoo-x86]/sys-auth/polkit/polkit-0.106-r3.ebuild
Gentoo

Diff of /sys-auth/polkit/polkit-0.106-r3.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-auth/polkit/Attic/polkit-0.106-r3.ebuild,v 1.1 2012/06/25 09:32:04 tetromino Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-auth/polkit/Attic/polkit-0.106-r3.ebuild,v 1.2 2012/06/27 10:01:25 ssuominen Exp $
4 4
5EAPI=4 5EAPI=4
6inherit eutils 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"
9HOMEPAGE="http://www.freedesktop.org/wiki/Software/polkit" 9HOMEPAGE="http://www.freedesktop.org/wiki/Software/polkit"
10SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz" 10SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz"
11 11
38 pam? ( 38 pam? (
39 systemd? ( sys-auth/pambase[systemd] ) 39 systemd? ( sys-auth/pambase[systemd] )
40 !systemd? ( sys-auth/pambase[consolekit] ) 40 !systemd? ( sys-auth/pambase[consolekit] )
41 ) 41 )
42 !systemd? ( >=sys-auth/consolekit-0.4.5_p2012[policykit] )" 42 !systemd? ( >=sys-auth/consolekit-0.4.5_p2012[policykit] )"
43
44DOCS="docs/TODO HACKING NEWS README"
45 43
46pkg_setup() { 44pkg_setup() {
47 local u=polkitd 45 local u=polkitd
48 local g=polkitd 46 local g=polkitd
49 local h=/var/lib/polkit-1 47 local h=/var/lib/polkit-1
78 "$(systemd_with_unitdir)" \ 76 "$(systemd_with_unitdir)" \
79 ${myconf} 77 ${myconf}
80} 78}
81 79
82src_install() { 80src_install() {
83 default 81 emake \
82 DESTDIR="${D}" \
83 libprivdir="${EPREFIX}"/usr/$(get_libdir)/polkit-1 \
84 install
85
86 dodoc docs/TODO HACKING NEWS README
84 87
85 fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d 88 fowners -R polkitd:root /{etc,usr/share}/polkit-1/rules.d
86 89
87 prune_libtool_files 90 prune_libtool_files
88 91
93 insinto /usr/share/doc/${PF}/examples 96 insinto /usr/share/doc/${PF}/examples
94 doins src/examples/{*.c,*.policy*} 97 doins src/examples/{*.c,*.policy*}
95 fi 98 fi
96 99
97 # Required for polkitd on hardened/PaX due to spidermonkey's JIT 100 # Required for polkitd on hardened/PaX due to spidermonkey's JIT
98 pax-mark mr "${ED}usr/lib/polkit-1/polkitd" 101 pax-mark mr "${ED}"/usr/$(get_libdir)/polkit-1/polkitd
99} 102}
100 103
101pkg_postinst() { 104pkg_postinst() {
102 chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d 105 chown -R polkitd:root "${EROOT}"/{etc,usr/share}/polkit-1/rules.d
103 chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1 106 chown -R polkitd:polkitd "${EROOT}"/var/lib/polkit-1

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

  ViewVC Help
Powered by ViewVC 1.1.20