Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11501 - (show annotations) (download)
Sun Mar 11 00:07:36 2012 UTC (12 years, 3 months ago) by niro
File size: 1986 byte(s)
-multilib
1 # $Id$
2
3 PNAME="polkit"
4 PVER="0.104"
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.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 multilib
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 mconfigure \
41 --libexecdir=/usr/$(mlibdir)/PolicyKit \
42 --localstatedir=/var \
43 --with-polkit-user=polkit \
44 --with-authfw=pam \
45 --with-pam-module-dir=/$(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/run/polkit-1 || die
66 mkeepdir /var/lib/polkit-1 || die
67 mchown root:polkit /var/run/polkit-1 || die
68 mchown root:polkit /var/lib/polkit-1 || die
69 mchmod 0700 /var/run/polkit-1 || die
70 mchmod 0700 /var/lib/polkit-1 || die
71
72 # create tmpfiles with systemd
73 minstalldir /etc/tmpfiles.d || die
74 MCONFIG="/etc/tmpfiles.d/polkit.conf"
75 mclearconfig || die
76 maddconfig "d /var/run/polkit-1 0755 root root -"
77
78 # docs
79 minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
80 }
81
82 preinstall()
83 {
84 # adds pokit user
85 ${MLIBDIR}/mgroupadd -o "-g 26" polkit
86 ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit
87 }