Contents of /trunk/core/polkit/polkit-0.104-r1.smage2
Parent Directory | Revision Log
Revision 11454 -
(show annotations)
(download)
Sat Mar 10 16:19:41 2012 UTC (12 years, 3 months ago) by niro
File size: 2013 byte(s)
Sat Mar 10 16:19:41 2012 UTC (12 years, 3 months ago) by niro
File size: 2013 byte(s)
-disabled src_check atm -fixme
1 | # $Id$ |
2 | |
3 | PNAME="polkit" |
4 | PVER="0.104" |
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/wiki/Software/hal" |
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 | |
24 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
25 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
26 | |
27 | sminclude mtools mbuild |
28 | msetfeature "!check" |
29 | |
30 | SRC_URI=( |
31 | http://hal.freedesktop.org/releases/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | ) |
34 | |
35 | UP2TARBALL="${PNAME}-[0-9]" |
36 | UP2DATE="updatecmd_freedesktop ${PNAME}" |
37 | |
38 | src_compile() |
39 | { |
40 | cd ${SRCDIR} |
41 | |
42 | mconfigure \ |
43 | --libexecdir=/usr/$(mlibdir)/PolicyKit \ |
44 | --localstatedir=/var \ |
45 | --with-polkit-user=polkit \ |
46 | --with-authfw=pam \ |
47 | --with-pam-module-dir=/$(mlibdir)/security \ |
48 | --disable-dependency-tracking \ |
49 | --enable-introspection \ |
50 | --disable-ansi \ |
51 | --enable-fast-install \ |
52 | --enable-libtool-lock \ |
53 | --enable-man-pages \ |
54 | --disable-verbose \ |
55 | --disable-gtk-doc \ |
56 | --enable-nls \ |
57 | || die |
58 | |
59 | mmake || die |
60 | } |
61 | |
62 | src_install() |
63 | { |
64 | cd ${SRCDIR} |
65 | mmake DESTDIR=${BINDIR} install || die |
66 | |
67 | # needed directories and permissions |
68 | mkeepdir /var/run/polkit-1 || die |
69 | mkeepdir /var/lib/polkit-1 || die |
70 | mchown root:polkit /var/run/polkit-1 || die |
71 | mchown root:polkit /var/lib/polkit-1 || die |
72 | mchmod 0700 /var/run/polkit-1 || die |
73 | mchmod 0700 /var/lib/polkit-1 || die |
74 | |
75 | # create tmpfiles with systemd |
76 | minstalldir /etc/tmpfiles.d || die |
77 | MCONFIG="/etc/tmpfiles.d/polkit.conf" |
78 | mclearconfig || die |
79 | maddconfig "d /var/run/polkit-1 0755 root root -" |
80 | |
81 | # docs |
82 | minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die |
83 | } |
84 | |
85 | preinstall() |
86 | { |
87 | # adds pokit user |
88 | ${MLIBDIR}/mgroupadd -o "-g 26" polkit |
89 | ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit |
90 | } |