Annotation of /smage/trunk/core/dbus/dbus-1.3.0-r1.smage2
Parent Directory | Revision Log
Revision 496 -
(hide annotations)
(download)
Fri May 7 20:03:59 2010 UTC (14 years, 1 month ago) by niro
File size: 2521 byte(s)
Fri May 7 20:03:59 2010 UTC (14 years, 1 month ago) by niro
File size: 2521 byte(s)
auto added: ver bump to 1.3.0-r1
1 | niro | 496 | # $Id$ |
2 | |||
3 | PNAME="dbus" | ||
4 | PVER="1.3.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="sys-apps" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="D-BUS is a message bus system, a simple way for applications to talk to one another." | ||
11 | HOMEPAGE="http://www.freedesktop.org/Software/dbus" | ||
12 | |||
13 | DEPEND=">= x11-libs/libX11-1 | ||
14 | >= x11-libs/libXt-1 | ||
15 | >= dev-libs/expat-2" | ||
16 | |||
17 | SDEPEND=">= dev-util/pkgconfig-0.23" | ||
18 | |||
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
21 | |||
22 | sminclude mtools multilib | ||
23 | |||
24 | RC_CVS_REV=1.2 | ||
25 | |||
26 | SRC_URI=( | ||
27 | http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE} | ||
28 | mirror://${PNAME}/${SRCFILE} | ||
29 | mirror://${PNAME}/dbus.rc-1.0-${RC_CVS_REV} | ||
30 | mirror://${PNAME}/30-dbus | ||
31 | ) | ||
32 | |||
33 | # use subdir $uri/dbus | ||
34 | UP2SUBDIR="${PNAME}" | ||
35 | UP2DATE="updatecmd_freedesktop ${PNAME} gz" | ||
36 | |||
37 | src_prepare() | ||
38 | { | ||
39 | munpack ${SRCFILE} || die | ||
40 | |||
41 | # fix missing include | ||
42 | all-abis 'sed -i "s/#include <stdio.h>/#include <stdio.h>\n#include <syslog.h>/g" dbus/dbus-sysdeps-util-unix.c' || die | ||
43 | } | ||
44 | |||
45 | src_compile() | ||
46 | { | ||
47 | mconfigure \ | ||
48 | --with-system-pid-file=/var/run/dbus.pid \ | ||
49 | --with-system-socket=/var/run/dbus/system_bus_socket \ | ||
50 | --with-session-socket-dir=/tmp \ | ||
51 | --with-test-socket-dir=/tmp \ | ||
52 | --libexecdir=/usr/$(mlibdir)/dbus-1.0 \ | ||
53 | --localstatedir=/var \ | ||
54 | --with-dbus-user=messagebus \ | ||
55 | --with-xml=expat \ | ||
56 | --disable-verbose-mode \ | ||
57 | --disable-checks \ | ||
58 | --disable-asserts \ | ||
59 | --enable-dnotify \ | ||
60 | --with-x \ | ||
61 | --disable-doxygen-docs \ | ||
62 | --disable-xml-docs \ | ||
63 | || die | ||
64 | |||
65 | mmake || die | ||
66 | } | ||
67 | |||
68 | src_install() | ||
69 | { | ||
70 | # needed directories | ||
71 | minstalldir /etc/X11/xinit/xinitrc.d || die | ||
72 | minstalldir /usr/env || die | ||
73 | |||
74 | minstall_destdir || die | ||
75 | |||
76 | # init script | ||
77 | minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die | ||
78 | |||
79 | # session script | ||
80 | minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die | ||
81 | |||
82 | # kde needs special treatments | ||
83 | minstallexec -s 30-dbus /usr/env/dbus-env.sh || die | ||
84 | |||
85 | # mark some dirs undeletable | ||
86 | mkeepdir /var/lib/dbus || die | ||
87 | mkeepdir /var/run/dbus || die | ||
88 | mkeepdir /usr/lib/dbus-1.0/services || die | ||
89 | mkeepdir /usr/share/dbus-1/services || die | ||
90 | mkeepdir /etc/dbus-1/system.d || die | ||
91 | mkeepdir /etc/dbus-1/session.d || die | ||
92 | |||
93 | minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die | ||
94 | } | ||
95 | |||
96 | preinstall() | ||
97 | { | ||
98 | # adds plugdev group | ||
99 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev | ||
100 | |||
101 | # adds messagebus user | ||
102 | ${MLIBDIR}/mgroupadd -o "-g 300" messagebus | ||
103 | ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus | ||
104 | } | ||
105 | |||
106 | postinstall() | ||
107 | { | ||
108 | mstartservice dbus /usr/bin/dbus-daemon | ||
109 | } | ||
110 | |||
111 | postremove() | ||
112 | { | ||
113 | if [ ! -f ${MROOT}/usr/bin/dbus-daemon ] | ||
114 | then | ||
115 | mstopservice dbus /usr/bin/dbus-daemon | ||
116 | fi | ||
117 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |