Contents of /trunk/core/consolekit/consolekit-0.4.1-r1.smage2
Parent Directory | Revision Log
Revision 3851 -
(show annotations)
(download)
Sun Nov 8 03:42:50 2009 UTC (14 years, 7 months ago) by niro
File size: 2310 byte(s)
Sun Nov 8 03:42:50 2009 UTC (14 years, 7 months ago) by niro
File size: 2310 byte(s)
auto added: ver bump to 0.4.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="consolekit" |
4 | PVER="0.4.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="ConsoleKit is a framework for defining and tracking users, login sessions, and seats." |
11 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/ConsoleKit" |
12 | |
13 | DEPEND=">= dev-libs/glib2-2.22 |
14 | >= sys-apps/dbus-1.3 |
15 | >= dev-libs/dbus-glib-0.82 |
16 | >= sys-libs/pam-1.1 |
17 | >= x11-libs/libX11-1.3.1 |
18 | >= sys-libs/zlib-1.2.3 |
19 | >= sys-apps/polkit-0.94" |
20 | |
21 | SDEPEND=">= dev-util/pkgconfig-0.23 |
22 | >= dev-libs/libxslt-1.1.26" |
23 | |
24 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
25 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
26 | |
27 | sminclude mtools |
28 | |
29 | SRC_URI=( |
30 | http://hal.freedesktop.org/releases/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/consolekit.rc |
33 | mirror://${PNAME}/pam-foreground-compat.ck |
34 | mirror://${PNAME}/${PNAME}-${PVER}-cleanup-console-tags.patch |
35 | mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch |
36 | ) |
37 | |
38 | UP2TARBALL="${PNAME}-[0-9]" |
39 | UP2DATE="updatecmd_freedesktop ${PNAME}" |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | cd ${SRCDIR} |
45 | |
46 | # clean up at_console compat files (until dbus gets fixed) |
47 | mpatch ${PNAME}-${PVER}-cleanup-console-tags.patch || die |
48 | |
49 | # fix multilib support |
50 | mpatch ${PNAME}-${PVER}-multilib.patch || die |
51 | |
52 | autoreconf --verbose --install --force || die |
53 | } |
54 | |
55 | src_compile() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | mconfigure \ |
60 | --localstatedir=/var \ |
61 | --with-dbus-services=/usr/share/dbus-1/services/ \ |
62 | --disable-debug \ |
63 | --disable-docbook-docs \ |
64 | --enable-pam-module \ |
65 | --with-pam-module-dir=/$(mlibdir)/security \ |
66 | XMLTO_FLAGS="--skip-validation" \ |
67 | || die |
68 | |
69 | mmake || die |
70 | } |
71 | |
72 | src_install() |
73 | { |
74 | cd ${SRCDIR} |
75 | mmake DESTDIR=${BINDIR} install || die |
76 | |
77 | # install our initscript |
78 | rm -f ${BINDIR}/etc/rc.d/init.d/ConsoleKit || die |
79 | minstallrc consolekit.rc consolekit || die |
80 | |
81 | # needed directories |
82 | mkeepdir /usr/$(mlibdir)/ConsoleKit/run-session.d || die |
83 | mkeepdir /etc/ConsoleKit/run-session.d || die |
84 | mkeepdir /var/run/ConsoleKit || die |
85 | mkeepdir /var/log/ConsoleKit || die |
86 | |
87 | # pam compat |
88 | minstalldir /usr/$(mlibdir)/ConsoleKit/run-session.d || die |
89 | minstallexec pam-foreground-compat.ck /usr/$(mlibdir)/ConsoleKit/run-session.d || die |
90 | |
91 | # docs |
92 | minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die |
93 | } |
94 | |
95 | postinstall() |
96 | { |
97 | mstartservice consolekit console-kit-daemon |
98 | } |
99 | |
100 | postremove() |
101 | { |
102 | mstopservice consolekit console-kit-daemon |
103 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |