Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4845 - (show annotations) (download)
Fri Feb 12 11:08:09 2010 UTC (14 years, 2 months ago) by niro
File size: 1758 byte(s)
auto added: ver bump to 0.96-r1
1 # $Id$
2
3 PNAME="polkit"
4 PVER="0.96"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="PolicyKit is a framework for defining policy for system-wide components."
11 HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
12
13 DEPEND=">= dev-libs/glib2-2.22
14 >= dev-libs/eggdbus-0.6
15 >= sys-libs/pam-1.1
16 >= dev-libs/expat-2"
17
18 SDEPEND=">= dev-util/pkgconfig-0.23
19 >= dev-util/intltool-0.40
20 >= dev-libs/libxslt-1.1.26
21 >= app-text/docbook-xsl-stylesheets-1.75"
22
23 SRCFILE="${PNAME}-${PVER}.tar.gz"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 sminclude mtools mbuild
27
28 SRC_URI=(
29 http://hal.freedesktop.org/releases/${SRCFILE}
30 mirror://${PNAME}/${SRCFILE}
31 )
32
33 UP2TARBALL="${PNAME}-[0-9]"
34 UP2DATE="updatecmd_freedesktop ${PNAME}"
35
36 src_compile()
37 {
38 cd ${SRCDIR}
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 --disable-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 cd ${SRCDIR}
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 # docs
74 minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
75 }
76
77 preinstall()
78 {
79 # adds pokit user
80 ${MLIBDIR}/mgroupadd -o "-g 26" polkit
81 ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit
82 }

Properties

Name Value
svn:keywords Id