Magellan Linux

Annotation of /trunk/core/dbus/dbus-1.2.14-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1843 - (hide annotations) (download)
Sun Jun 7 08:56:14 2009 UTC (15 years ago) by niro
File size: 2480 byte(s)
-rev bump - install some missing dirs to be able to start dbus-sessions
1 niro 1843 # $Id$
2    
3     PNAME="dbus"
4     PVER="1.2.14"
5     PBUILD="r2"
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     --localstatedir=/var \
53     --with-dbus-user=messagebus \
54     --with-xml=expat \
55     --disable-verbose-mode \
56     --disable-checks \
57     --disable-asserts \
58     --enable-dnotify \
59     --with-x \
60     --disable-doxygen-docs \
61     --disable-xml-docs \
62     || die
63    
64     mmake || die
65     }
66    
67     src_install()
68     {
69     # needed directories
70     minstalldir /etc/X11/xinit/xinitrc.d || die
71     minstalldir /usr/env || die
72    
73     minstall_destdir || die
74    
75     # init script
76     minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die
77    
78     # session script
79     minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die
80    
81     # kde needs special treatments
82     minstallexec -s 30-dbus /usr/env/dbus-env.sh || die
83    
84     # mark some dirs undeletable
85     mkeepdir /var/lib/dbus || die
86     mkeepdir /var/run/dbus || die
87     mkeepdir /usr/lib/dbus-1.0/services || die
88     mkeepdir /usr/share/dbus-1/services || die
89     mkeepdir /etc/dbus-1/system.d || die
90     mkeepdir /etc/dbus-1/session.d || die
91    
92     minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
93     }
94    
95     preinstall()
96     {
97     # adds plugdev group
98     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
99    
100     # adds messagebus user
101     ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
102     ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
103     }
104    
105     postinstall()
106     {
107     mstartservice dbus /usr/bin/dbus-daemon
108     }
109    
110     postremove()
111     {
112     if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
113     then
114     mstopservice dbus /usr/bin/dbus-daemon
115     fi
116     }

Properties

Name Value
svn:keywords Id