Magellan Linux

Annotation of /smage/trunk/core/dbus/dbus-1.4.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 771 - (hide annotations) (download)
Thu Oct 21 20:20:16 2010 UTC (13 years, 6 months ago) by niro
File size: 2840 byte(s)
auto added: ver bump to 1.4.0-r2
1 niro 771 # $Id: dbus-1.3.0-r1.smage2 3276 2009-10-19 11:10:46Z niro $
2    
3     PNAME="dbus"
4     PVER="1.4.0"
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.25"
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     # using /lib/systemd/system as systemd units dir even on multilib systems
48     # to have one common rules/script directory!
49     mconfigure \
50     --with-system-pid-file=/var/run/dbus.pid \
51     --with-system-socket=/var/run/dbus/system_bus_socket \
52     --with-session-socket-dir=/tmp \
53     --with-test-socket-dir=/tmp \
54     --libexecdir=/usr/$(mlibdir)/dbus-1.0 \
55     --localstatedir=/var \
56     --with-dbus-user=messagebus \
57     --with-xml=expat \
58     --disable-verbose-mode \
59     --disable-checks \
60     --disable-asserts \
61     --enable-dnotify \
62     --with-x \
63     --disable-doxygen-docs \
64     --disable-xml-docs \
65     --with-systemdsystemunitdir=/lib/systemd/system \
66     || die
67    
68     mmake || die
69     }
70    
71     src_install()
72     {
73     # needed directories
74     minstalldir /etc/X11/xinit/xinitrc.d || die
75     minstalldir /usr/env || die
76    
77     # fix ln issue on multilib: force overwrite of all symlinks
78     mmake install DESTDIR=${BINDIR} LN_S="'ln -sf'" || die
79    
80     # init script
81     minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die
82    
83     # session script
84     minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die
85    
86     # kde needs special treatments
87     minstallexec -s 30-dbus /usr/env/dbus-env.sh || die
88    
89     # mark some dirs undeletable
90     mkeepdir /var/lib/dbus || die
91     mkeepdir /var/run/dbus || die
92     mkeepdir /usr/lib/dbus-1.0/services || die
93     mkeepdir /usr/share/dbus-1/services || die
94     mkeepdir /etc/dbus-1/system.d || die
95     mkeepdir /etc/dbus-1/session.d || die
96    
97     minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
98     }
99    
100     preinstall()
101     {
102     # adds plugdev group
103     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
104    
105     # adds messagebus user
106     ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
107     ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
108     }
109    
110     postinstall()
111     {
112     mstartservice dbus /usr/bin/dbus-daemon
113     }
114    
115     postremove()
116     {
117     if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
118     then
119     mstopservice dbus /usr/bin/dbus-daemon
120     fi
121     }