Magellan Linux

Contents of /trunk/core/polkit/polkit-0.107-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13322 - (show annotations) (download)
Thu Oct 4 08:20:26 2012 UTC (11 years, 8 months ago) by niro
File size: 2094 byte(s)
-rebuild against glib2-2.34
1 # $Id$
2
3 PNAME="polkit"
4 PVER="0.107"
5 PBUILD="r3"
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 >= sys-libs/pam-1.1
14 >= dev-libs/expat-2
15 >= dev-java/spidermonkey-1.8.5"
16
17 SDEPEND=">= dev-util/pkgconfig-0.25
18 >= dev-util/intltool-0.50
19 >= dev-libs/libxslt-1.1.26
20 >= dev-libs/gobject-introspection-1.34
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 multilib
28 msetfeature "!check"
29
30 SRC_URI=(
31 http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 )
34
35 UP2TARBALL="${PNAME}-[0-9]"
36 UP2DATE="updatecmd_freedesktop ${PNAME}"
37
38 src_compile()
39 {
40 mconfigure \
41 --libexecdir=/usr/$(mlibdir)/polkit-1 \
42 --localstatedir=/var \
43 --with-polkitd-user=polkitd \
44 --with-authfw=pam \
45 --with-pam-module-dir=/usr/$(mlibdir)/security \
46 --disable-dependency-tracking \
47 --enable-introspection \
48 --disable-ansi \
49 --enable-fast-install \
50 --enable-libtool-lock \
51 --enable-man-pages \
52 --disable-verbose \
53 --disable-gtk-doc \
54 --enable-nls \
55 || die
56
57 mmake || die
58 }
59
60 src_install()
61 {
62 mmake DESTDIR=${BINDIR} install || die
63
64 # needed directories and permissions
65 mkeepdir /var/lib/polkit-1 || die
66 mchown -R polkitd:root /var/lib/polkit-1 || die
67 mchmod -R 0700 /var/lib/polkit-1 || die
68 mchown -R polkitd:root /etc/polkit-1/rules.d || die
69 mchown -R polkitd:root /usr/share/polkit-1/rules.d || die
70
71 # create tmpfiles with systemd
72 minstalldir /etc/tmpfiles.d || die
73 MCONFIG="/etc/tmpfiles.d/polkit.conf"
74 mclearconfig || die
75 maddconfig "d /run/polkit-1 0755 root root -"
76
77 # docs
78 minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
79 }
80
81 preinstall()
82 {
83 # adds pokitd user
84 ${MLIBDIR}/mgroupadd polkitd
85 ${MLIBDIR}/museradd -o "-g polkitd -d /var/lib/polkit-1 -s /sbin/nologin" polkitd
86
87 # remove old polkit user
88 ${MLIBDIR}/muserdel polkit
89 ${MLIBDIR}/mgroupdel polkit
90 }