Magellan Linux

Annotation of /trunk/core/dbus/dbus-1.2.12-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1212 - (hide annotations) (download)
Sun Apr 26 12:17:11 2009 UTC (15 years, 1 month ago) by niro
File size: 2403 byte(s)
auto added: ver bump to 1.2.12-r1
1 niro 1212 # $Id$
2    
3     PNAME="dbus"
4     PVER="1.2.12"
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_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    
90     minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
91     }
92    
93     preinstall()
94     {
95     # adds plugdev group
96     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
97    
98     # adds messagebus user
99     ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
100     ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
101     }
102    
103     postinstall()
104     {
105     mstartservice dbus /usr/bin/dbus-daemon
106     }
107    
108     postremove()
109     {
110     if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
111     then
112     mstopservice dbus /usr/bin/dbus-daemon
113     fi
114     }

Properties

Name Value
svn:keywords Id