Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id