Contents of /trunk/core/polkit/polkit-0.107-r1.smage2
Parent Directory | Revision Log
Revision 13033 -
(show annotations)
(download)
Fri Aug 17 11:28:34 2012 UTC (12 years, 1 month ago) by niro
File size: 2034 byte(s)
Fri Aug 17 11:28:34 2012 UTC (12 years, 1 month ago) by niro
File size: 2034 byte(s)
-fixed wrong whitespace
1 | # $Id$ |
2 | |
3 | PNAME="polkit" |
4 | PVER="0.107" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="PolicyKit is a framework for defining policy for system-wide components." |
10 | HOMEPAGE="http://www.freedesktop.org/software/polkit/" |
11 | |
12 | DEPEND=">= dev-libs/glib2-2.30 |
13 | >= dev-libs/eggdbus-0.6 |
14 | >= sys-libs/pam-1.1 |
15 | >= dev-libs/expat-2" |
16 | |
17 | SDEPEND=">= dev-util/pkgconfig-0.25 |
18 | >= dev-util/intltool-0.41 |
19 | >= dev-libs/libxslt-1.1.26 |
20 | >= dev-libs/gobject-introspection-0.10 |
21 | >= app-text/docbook-xml-dtd41-4.1.2 |
22 | >= app-text/docbook-xsl-stylesheets-1.75 |
23 | >= dev-java/spidermonkey-1.8.5" |
24 | |
25 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
27 | |
28 | sminclude mtools multilib |
29 | msetfeature "!check" |
30 | |
31 | SRC_URI=( |
32 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
33 | mirror://${PNAME}/${SRCFILE} |
34 | ) |
35 | |
36 | UP2TARBALL="${PNAME}-[0-9]" |
37 | UP2DATE="updatecmd_freedesktop ${PNAME}" |
38 | |
39 | src_compile() |
40 | { |
41 | mconfigure \ |
42 | --libexecdir=/usr/$(mlibdir)/polkit-1 \ |
43 | --localstatedir=/var \ |
44 | --with-polkit-user=polkit \ |
45 | --with-authfw=pam \ |
46 | --with-pam-module-dir=/usr/$(mlibdir)/security \ |
47 | --disable-dependency-tracking \ |
48 | --enable-introspection \ |
49 | --disable-ansi \ |
50 | --enable-fast-install \ |
51 | --enable-libtool-lock \ |
52 | --enable-man-pages \ |
53 | --disable-verbose \ |
54 | --disable-gtk-doc \ |
55 | --enable-nls \ |
56 | || die |
57 | |
58 | mmake || die |
59 | } |
60 | |
61 | src_install() |
62 | { |
63 | mmake DESTDIR=${BINDIR} install || die |
64 | |
65 | # needed directories and permissions |
66 | mkeepdir /var/run/polkit-1 || die |
67 | mkeepdir /var/lib/polkit-1 || die |
68 | mchown root:polkit /var/run/polkit-1 || die |
69 | mchown root:polkit /var/lib/polkit-1 || die |
70 | mchmod 0700 /var/run/polkit-1 || die |
71 | mchmod 0700 /var/lib/polkit-1 || die |
72 | |
73 | # create tmpfiles with systemd |
74 | minstalldir /etc/tmpfiles.d || die |
75 | MCONFIG="/etc/tmpfiles.d/polkit.conf" |
76 | mclearconfig || die |
77 | maddconfig "d /run/polkit-1 0755 root root -" |
78 | |
79 | # docs |
80 | minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die |
81 | } |
82 | |
83 | preinstall() |
84 | { |
85 | # adds pokit user |
86 | ${MLIBDIR}/mgroupadd -o "-g 26" polkit |
87 | ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit |
88 | } |