Contents of /smage/trunk/core/polkit/polkit-0.107-r1.smage2
Parent Directory | Revision Log
Revision 4229 -
(show annotations)
(download)
Fri Nov 9 13:54:33 2012 UTC (11 years, 7 months ago) by niro
File size: 1932 byte(s)
Fri Nov 9 13:54:33 2012 UTC (11 years, 7 months ago) by niro
File size: 1932 byte(s)
-disable manpages and its dependencies
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.34 |
13 | >= dev-libs/expat-2 |
14 | >= dev-java/spidermonkey-1.8.5" |
15 | |
16 | SDEPEND=">= dev-util/pkgconfig-0.25 |
17 | >= dev-util/intltool-0.50 |
18 | >= dev-libs/libxslt-1.1.26" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools multilib |
24 | msetfeature "!check" |
25 | |
26 | SRC_URI=( |
27 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | ) |
30 | |
31 | UP2TARBALL="${PNAME}-[0-9]" |
32 | UP2DATE="updatecmd_freedesktop ${PNAME}" |
33 | |
34 | src_compile() |
35 | { |
36 | mconfigure \ |
37 | --libexecdir=/usr/$(mlibdir)/polkit-1 \ |
38 | --localstatedir=/var \ |
39 | --with-polkitd-user=polkitd \ |
40 | --with-authfw=shadow \ |
41 | --disable-dependency-tracking \ |
42 | --disable-introspection \ |
43 | --disable-ansi \ |
44 | --enable-fast-install \ |
45 | --enable-libtool-lock \ |
46 | --disable-man-pages \ |
47 | --disable-verbose \ |
48 | --disable-gtk-doc \ |
49 | --disable-nls \ |
50 | --disable-examples \ |
51 | || die |
52 | |
53 | mmake || die |
54 | } |
55 | |
56 | src_install() |
57 | { |
58 | mmake DESTDIR=${BINDIR} install || die |
59 | |
60 | # needed directories and permissions |
61 | mkeepdir /var/lib/polkit-1 || die |
62 | mchown -R polkitd:root /var/lib/polkit-1 || die |
63 | mchmod -R 0700 /var/lib/polkit-1 || die |
64 | mchown -R polkitd:root /etc/polkit-1/rules.d || die |
65 | mchown -R polkitd:root /usr/share/polkit-1/rules.d || die |
66 | |
67 | # create tmpfiles with systemd |
68 | minstalldir /etc/tmpfiles.d || die |
69 | MCONFIG="/etc/tmpfiles.d/polkit.conf" |
70 | mclearconfig || die |
71 | maddconfig "d /run/polkit-1 0755 root root -" |
72 | |
73 | # docs |
74 | minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die |
75 | } |
76 | |
77 | preinstall() |
78 | { |
79 | # adds pokitd user |
80 | ${MLIBDIR}/mgroupadd polkitd |
81 | ${MLIBDIR}/museradd -o "-g polkitd -d /var/lib/polkit-1 -s /sbin/nologin" polkitd |
82 | |
83 | # remove old polkit user |
84 | ${MLIBDIR}/muserdel polkit |
85 | ${MLIBDIR}/mgroupdel polkit |
86 | } |