Magellan Linux

Annotation of /branches/magellan-next/core/dbus/dbus-1.4.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6646 - (hide annotations) (download)
Mon Sep 13 21:29:48 2010 UTC (13 years, 8 months ago) by niro
File size: 2724 byte(s)
-fixed ln install issue on multilib systems
1 niro 6644 # $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="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.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     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     --libexecdir=/usr/$(mlibdir)/dbus-1.0 \
53     --localstatedir=/var \
54     --with-dbus-user=messagebus \
55     --with-xml=expat \
56     --disable-verbose-mode \
57     --disable-checks \
58     --disable-asserts \
59     --enable-dnotify \
60     --with-x \
61     --disable-doxygen-docs \
62     --disable-xml-docs \
63     --with-systemdsystemunitdir=/$(mlibdir)/systemd/system \
64     || die
65    
66     mmake || die
67     }
68    
69     src_install()
70     {
71     # needed directories
72     minstalldir /etc/X11/xinit/xinitrc.d || die
73     minstalldir /usr/env || die
74    
75 niro 6645 # fix ln issue on multilib: force overwrite of all symlinks
76 niro 6646 mmake DESTDIR=${BINDIR} LN_S="ln -sf" install || die
77 niro 6644
78     # init script
79     minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die
80    
81     # session script
82     minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die
83    
84     # kde needs special treatments
85     minstallexec -s 30-dbus /usr/env/dbus-env.sh || die
86    
87     # mark some dirs undeletable
88     mkeepdir /var/lib/dbus || die
89     mkeepdir /var/run/dbus || die
90     mkeepdir /usr/lib/dbus-1.0/services || die
91     mkeepdir /usr/share/dbus-1/services || die
92     mkeepdir /etc/dbus-1/system.d || die
93     mkeepdir /etc/dbus-1/session.d || die
94    
95     minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
96     }
97    
98     preinstall()
99     {
100     # adds plugdev group
101     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
102    
103     # adds messagebus user
104     ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
105     ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
106     }
107    
108     postinstall()
109     {
110     mstartservice dbus /usr/bin/dbus-daemon
111     }
112    
113     postremove()
114     {
115     if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
116     then
117     mstopservice dbus /usr/bin/dbus-daemon
118     fi
119     }