Magellan Linux

Contents of /trunk/core/polkit/polkit-0.102-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11341 - (show annotations) (download)
Sat Mar 3 14:14:36 2012 UTC (12 years, 2 months ago) by niro
File size: 1992 byte(s)
-added missing tmpfiles.d config
1 # $Id$
2
3 PNAME="polkit"
4 PVER="0.102"
5 PBUILD="r2"
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.28
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
29 SRC_URI=(
30 http://hal.freedesktop.org/releases/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 UP2TARBALL="${PNAME}-[0-9]"
35 UP2DATE="updatecmd_freedesktop ${PNAME}"
36
37 src_compile()
38 {
39 cd ${SRCDIR}
40
41 mconfigure \
42 --libexecdir=/usr/$(mlibdir)/PolicyKit \
43 --localstatedir=/var \
44 --with-polkit-user=polkit \
45 --with-authfw=pam \
46 --with-pam-module-dir=/$(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 cd ${SRCDIR}
64 mmake DESTDIR=${BINDIR} install || die
65
66 # needed directories and permissions
67 mkeepdir /var/run/polkit-1 || die
68 mkeepdir /var/lib/polkit-1 || die
69 mchown root:polkit /var/run/polkit-1 || die
70 mchown root:polkit /var/lib/polkit-1 || die
71 mchmod 0700 /var/run/polkit-1 || die
72 mchmod 0700 /var/lib/polkit-1 || die
73
74 # create tmpfiles with systemd
75 minstalldir /etc/tmpfiles.d || die
76 MCONFIG="/etc/tmpfiles.d/polkit.conf"
77 mclearconfig || die
78 maddconfig "d /var/run/polkit-1 0755 root root -"
79
80 # docs
81 minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
82 }
83
84 preinstall()
85 {
86 # adds pokit user
87 ${MLIBDIR}/mgroupadd -o "-g 26" polkit
88 ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit
89 }