Magellan Linux

Annotation of /branches/magellan-next/core/polkit/polkit-0.96-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6356 - (hide annotations) (download)
Sun Aug 22 20:29:52 2010 UTC (14 years, 1 month ago) by niro
File size: 1851 byte(s)
--enabled gobject-introspection
1 niro 6356 # $Id: polkit-0.96-r1.smage2 4845 2010-02-12 11:08:09Z niro $
2    
3     PNAME="polkit"
4     PVER="0.96"
5     PBUILD="r3"
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.24
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.6
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     # docs
75     minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
76     }
77    
78     preinstall()
79     {
80     # adds pokit user
81     ${MLIBDIR}/mgroupadd -o "-g 26" polkit
82     ${MLIBDIR}/museradd -o "-u 26 -g polkit -d /dev/null -s /bin/false" polkit
83     }