Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13017 - (show annotations) (download)
Fri Aug 17 08:28:53 2012 UTC (11 years, 10 months ago) by niro
File size: 2050 byte(s)
auto added: ver bump to 0.107-r1
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/wiki/Software/hal"
11 HOMEPAGE="http://www.freedesktop.org/software/polkit/"
12
13 DEPEND=">= dev-libs/glib2-2.30
14 >= dev-libs/eggdbus-0.6
15 >= sys-libs/pam-1.1
16 >= dev-libs/expat-2"
17
18 SDEPEND=">= dev-util/pkgconfig-0.25
19 >= dev-util/intltool-0.41
20 >= dev-libs/libxslt-1.1.26
21 >= dev-libs/gobject-introspection-0.10
22 >= app-text/docbook-xml-dtd41-4.1.2
23 >= app-text/docbook-xsl-stylesheets-1.75"
24
25 SRCFILE="${PNAME}-${PVER}.tar.gz"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 sminclude mtools multilib
29 msetfeature "!check"
30
31 SRC_URI=(
32 http://www.freedesktop.org/software/${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 )
35
36 UP2TARBALL="${PNAME}-[0-9]"
37 UP2DATE="updatecmd_freedesktop ${PNAME}"
38
39 src_compile()
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 mmake DESTDIR=${BINDIR} install || die
64
65 # needed directories and permissions
66 mkeepdir /var/run/polkit-1 || die
67 mkeepdir /var/lib/polkit-1 || die
68 mchown root:polkit /var/run/polkit-1 || die
69 mchown root:polkit /var/lib/polkit-1 || die
70 mchmod 0700 /var/run/polkit-1 || die
71 mchmod 0700 /var/lib/polkit-1 || die
72
73 # create tmpfiles with systemd
74 minstalldir /etc/tmpfiles.d || die
75 MCONFIG="/etc/tmpfiles.d/polkit.conf"
76 mclearconfig || die
77 maddconfig "d /var/run/polkit-1 0755 root root -"
78
79 # docs
80 minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
81 }
82
83 preinstall()
84 {
85 # adds pokit user
86 ${MLIBDIR}/mgroupadd -o "-g 26" polkit
87 ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit
88 }