Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 6 months ago) by niro
File size: 2265 byte(s)
import repo
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.1.20"
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 >= dev-libs/expat-2"
15
16 SDEPEND=">= dev-util/pkgconfig-0.23"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mtools multilib
22
23 SRC_URI=(
24 http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/dbus.rc-1.0
27 mirror://${PNAME}/30-dbus
28 )
29
30 # use subdir $uri/dbus
31 UP2DATE="UP2SUBDIR='${PNAME}' updatecmd_freedesktop ${PNAME} gz"
32
33 src_compile()
34 {
35 cd ${SRCDIR}
36
37 mconfigure \
38 --with-system-pid-file=/var/run/dbus.pid \
39 --with-system-socket=/var/run/dbus/system_bus_socket \
40 --with-session-socket-dir=/tmp \
41 --with-test-socket-dir=/tmp \
42 --localstatedir=/var \
43 --with-dbus-user=messagebus \
44 --with-xml=expat \
45 --disable-verbose-mode \
46 --disable-checks \
47 --disable-asserts \
48 --enable-dnotify \
49 --with-x \
50 --disable-doxygen-docs \
51 --disable-xml-docs \
52 || die
53
54 mmake || die
55 }
56
57 src_install()
58 {
59 cd ${SRCDIR}
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 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