Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17093 - (hide annotations) (download)
Sat Jun 1 13:59:24 2013 UTC (11 years ago) by niro
File size: 2709 byte(s)
auto added: ver bump to 1.6.10-r1
1 niro 17093 # $Id$
2    
3     PNAME="dbus"
4     PVER="1.6.10"
5     PBUILD="r1"
6    
7     PCAT="sys-apps"
8    
9     DESCRIPTION="D-BUS is a message bus system, a simple way for applications to talk to one another."
10     HOMEPAGE="http://www.freedesktop.org/Software/dbus"
11    
12     DEPEND=">= x11-libs/libX11-1.4
13     >= x11-libs/libXt-1.1
14     >= dev-libs/expat-2
15     >= sys-apps/util-linux-2.20"
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     SRC_URI=(
25     http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${PNAME}-1.5.8-no-fatal-warnings.patch
28     )
29    
30     # use subdir $uri/dbus
31     UP2SUBDIR="${PNAME}"
32     UP2DATE="updatecmd_freedesktop ${PNAME} gz"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37    
38     # do not abort on fatal warnings by default
39     mpatch ${PNAME}-1.5.8-no-fatal-warnings.patch || 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=/run/dbus.pid \
51     --with-system-socket=/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-inotify \
62     --with-x \
63     --disable-doxygen-docs \
64     --disable-xml-docs \
65     --with-systemdsystemunitdir=/usr/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     # mark some dirs undeletable
81     mkeepdir /var/lib/dbus || die
82     mkeepdir /run/dbus || die
83     mkeepdir /usr/lib/dbus-1.0/services || die
84     mkeepdir /usr/share/dbus-1/services || die
85     mkeepdir /etc/dbus-1/system.d || die
86     mkeepdir /etc/dbus-1/session.d || die
87    
88     minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
89     }
90    
91     preinstall()
92     {
93     # adds plugdev group
94     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
95    
96     # adds messagebus user
97     ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
98     ${MLIBDIR}/museradd -o "-M -u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
99     }
100    
101     postinstall()
102     {
103     # only reload dbus-daemon if already running
104     if pidof dbus-daemon > /dev/null
105     then
106     mreloadunit dbus.service dbus-daemon
107     else
108     mstartunit dbus.service dbus-daemon
109     fi
110     }
111    
112     postremove()
113     {
114     mstopunit dbus.service dbus-daemon
115     }