Annotation of /trunk/core/consolekit/consolekit-0.4.1-r1.smage2
Parent Directory | Revision Log
Revision 3854 -
(hide annotations)
(download)
Sun Nov 8 03:52:07 2009 UTC (14 years, 6 months ago) by niro
File size: 2334 byte(s)
Sun Nov 8 03:52:07 2009 UTC (14 years, 6 months ago) by niro
File size: 2334 byte(s)
-fixed SRC_URI, SRCDIR and SRCFILE
1 | niro | 3851 | # $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 | niro | 3852 | SRCFILE="ConsoleKit-${PVER}.tar.bz2" |
25 | SRCDIR="${BUILDDIR}/ConsoleKit-${PVER}" | ||
26 | niro | 3851 | |
27 | sminclude mtools | ||
28 | |||
29 | SRC_URI=( | ||
30 | niro | 3852 | http://www.freedesktop.org/software/ConsoleKit/dist/${SRCFILE} |
31 | niro | 3851 | 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 | niro | 3854 | minstallexec -s pam-foreground-compat.ck /usr/$(mlibdir)/ConsoleKit/run-session.d || die |
90 | niro | 3851 | |
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 |