Magellan Linux

Annotation of /smage/trunk/core/dbus/dbus-1.3.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 501 - (hide annotations) (download)
Fri May 7 21:10:34 2010 UTC (14 years ago) by niro
File size: 2821 byte(s)
auto added: ver bump to 1.3.0-r1
1 niro 496 # $Id$
2    
3     PNAME="dbus"
4     PVER="1.3.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.23"
18    
19     SRCFILE="${PNAME}-${PVER}.tar.gz"
20     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21    
22    
23 niro 501 MCORE_ONLY_KEEP="etc
24     usr/$(mlibdir)/*.so
25     usr/$(mlibdir)/*.so.*
26     usr/$(mlibdir)/dbus-1.0
27     usr/bin/dbus-launch
28     usr/bin/dbus-send
29     usr/bin/dbus-uuidgen
30     usr/bin/dbus-daemon
31     usr/bin/dbus-cleanup-sockets
32     usr/env/dbus-env.sh
33     usr/share/dbus-1/services/.keep
34     var/lib/dbus
35     var/run/dbus"
36    
37     sminclude mtools multilib mcore-split
38    
39 niro 496 RC_CVS_REV=1.2
40    
41     SRC_URI=(
42     http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE}
43     mirror://${PNAME}/${SRCFILE}
44     mirror://${PNAME}/dbus.rc-1.0-${RC_CVS_REV}
45     mirror://${PNAME}/30-dbus
46     )
47    
48     # use subdir $uri/dbus
49     UP2SUBDIR="${PNAME}"
50     UP2DATE="updatecmd_freedesktop ${PNAME} gz"
51    
52     src_prepare()
53     {
54     munpack ${SRCFILE} || die
55    
56     # fix missing include
57     all-abis 'sed -i "s/#include <stdio.h>/#include <stdio.h>\n#include <syslog.h>/g" dbus/dbus-sysdeps-util-unix.c' || die
58     }
59    
60     src_compile()
61     {
62     mconfigure \
63     --with-system-pid-file=/var/run/dbus.pid \
64     --with-system-socket=/var/run/dbus/system_bus_socket \
65     --with-session-socket-dir=/tmp \
66     --with-test-socket-dir=/tmp \
67     --libexecdir=/usr/$(mlibdir)/dbus-1.0 \
68     --localstatedir=/var \
69     --with-dbus-user=messagebus \
70     --with-xml=expat \
71     --disable-verbose-mode \
72     --disable-checks \
73     --disable-asserts \
74     --enable-dnotify \
75     --with-x \
76     --disable-doxygen-docs \
77     --disable-xml-docs \
78     || die
79    
80     mmake || die
81     }
82    
83     src_install()
84     {
85     # needed directories
86     minstalldir /etc/X11/xinit/xinitrc.d || die
87     minstalldir /usr/env || die
88    
89     minstall_destdir || die
90    
91     # init script
92     minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die
93    
94     # session script
95     minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die
96    
97     # kde needs special treatments
98     minstallexec -s 30-dbus /usr/env/dbus-env.sh || die
99    
100     # mark some dirs undeletable
101     mkeepdir /var/lib/dbus || die
102     mkeepdir /var/run/dbus || die
103     mkeepdir /usr/lib/dbus-1.0/services || die
104     mkeepdir /usr/share/dbus-1/services || die
105     mkeepdir /etc/dbus-1/system.d || die
106     mkeepdir /etc/dbus-1/session.d || die
107    
108     minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
109     }
110    
111     preinstall()
112     {
113     # adds plugdev group
114     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
115    
116     # adds messagebus user
117     ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
118     ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
119     }
120    
121     postinstall()
122     {
123     mstartservice dbus /usr/bin/dbus-daemon
124     }
125    
126     postremove()
127     {
128     if [ ! -f ${MROOT}/usr/bin/dbus-daemon ]
129     then
130     mstopservice dbus /usr/bin/dbus-daemon
131     fi
132     }

Properties

Name Value
svn:keywords Id