Magellan Linux

Contents of /trunk/core/dbus/dbus-1.2.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (show annotations) (download)
Thu Dec 25 17:32:48 2008 UTC (15 years, 4 months ago) by niro
File size: 2300 byte(s)
-fixed noisiness on multilib builds
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 mconfigure \
40 --with-system-pid-file=/var/run/dbus.pid \
41 --with-system-socket=/var/run/dbus/system_bus_socket \
42 --with-session-socket-dir=/tmp \
43 --with-test-socket-dir=/tmp \
44 --localstatedir=/var \
45 --with-dbus-user=messagebus \
46 --with-xml=expat \
47 --disable-verbose-mode \
48 --disable-checks \
49 --disable-asserts \
50 --enable-dnotify \
51 --with-x \
52 --disable-doxygen-docs \
53 --disable-xml-docs \
54 || die
55
56 mmake || die
57 }
58
59 src_install()
60 {
61 # needed directories
62 minstalldir /etc/X11/xinit/xinitrc.d || die
63 minstalldir /usr/env || die
64
65 minstall_destdir || die
66
67 # init script
68 minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die
69
70 # session script
71 minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die
72
73 # kde needs special treatments
74 minstallexec -s 30-dbus /usr/env/dbus-env.sh || die
75
76 # mark some dirs undeletable
77 mkeepdir /var/lib/dbus || die
78 mkeepdir /var/run/dbus || die
79 mkeepdir /usr/lib/dbus-1.0/services || die
80 mkeepdir /usr/share/dbus-1/services || die
81
82 minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
83 }
84
85 preinstall()
86 {
87 # adds plugdev group
88 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
89
90 # adds messagebus user
91 ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
92 ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
93 }
94
95 postinstall()
96 {
97 mstartservice dbus /usr/bin/dbus-daemon
98 }
99
100 postremove()
101 {
102 if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
103 then
104 mstopservice dbus /usr/bin/dbus-daemon
105 fi
106 }

Properties

Name Value
svn:keywords Id