Contents of /trunk/core/dbus/dbus-1.2.10-r1.smage2
Parent Directory | Revision Log
Revision 574 -
(show annotations)
(download)
Thu Dec 25 17:31:50 2008 UTC (15 years, 9 months ago) by niro
File size: 2330 byte(s)
Thu Dec 25 17:31:50 2008 UTC (15 years, 9 months ago) by niro
File size: 2330 byte(s)
-fixed dependencies and rc-script
1 | # $Header: /magellan-cvs/smage/dbus/dbus-1.1.20-r1.smage2,v 1.2 2008/03/21 10:34:05 niro Exp $ |
2 | |
3 | PNAME="dbus" |
4 | PVER="1.2.10" |
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_compile() |
38 | { |
39 | cd ${SRCDIR} |
40 | |
41 | mconfigure \ |
42 | --with-system-pid-file=/var/run/dbus.pid \ |
43 | --with-system-socket=/var/run/dbus/system_bus_socket \ |
44 | --with-session-socket-dir=/tmp \ |
45 | --with-test-socket-dir=/tmp \ |
46 | --localstatedir=/var \ |
47 | --with-dbus-user=messagebus \ |
48 | --with-xml=expat \ |
49 | --disable-verbose-mode \ |
50 | --disable-checks \ |
51 | --disable-asserts \ |
52 | --enable-dnotify \ |
53 | --with-x \ |
54 | --disable-doxygen-docs \ |
55 | --disable-xml-docs \ |
56 | || die |
57 | |
58 | mmake || die |
59 | } |
60 | |
61 | src_install() |
62 | { |
63 | cd ${SRCDIR} |
64 | |
65 | # needed directories |
66 | minstalldir /etc/X11/xinit/xinitrc.d || die |
67 | minstalldir /usr/env || die |
68 | |
69 | minstall_destdir || die |
70 | |
71 | # init script |
72 | minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die |
73 | |
74 | # session script |
75 | minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die |
76 | |
77 | # kde needs special treatments |
78 | minstallexec -s 30-dbus /usr/env/dbus-env.sh || die |
79 | |
80 | # mark some dirs undeletable |
81 | mkeepdir /var/lib/dbus || die |
82 | mkeepdir /var/run/dbus || die |
83 | mkeepdir /usr/lib/dbus-1.0/services || die |
84 | mkeepdir /usr/share/dbus-1/services || die |
85 | |
86 | minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die |
87 | } |
88 | |
89 | preinstall() |
90 | { |
91 | # adds plugdev group |
92 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
93 | |
94 | # adds messagebus user |
95 | ${MLIBDIR}/mgroupadd -o "-g 300" messagebus |
96 | ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus |
97 | } |
98 | |
99 | postinstall() |
100 | { |
101 | mstartservice dbus /usr/bin/dbus-daemon |
102 | } |
103 | |
104 | postremove() |
105 | { |
106 | if [ ! -f ${MROOT}/usr/bin/dbus-daemon ] |
107 | then |
108 | mstopservice dbus /usr/bin/dbus-daemon |
109 | fi |
110 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |