Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 510 - (hide annotations) (download)
Fri May 7 22:25:26 2010 UTC (14 years, 1 month ago) by niro
File size: 2608 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 510 MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
24 niro 501 sminclude mtools multilib mcore-split
25    
26 niro 496 RC_CVS_REV=1.2
27    
28     SRC_URI=(
29     http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31     mirror://${PNAME}/dbus.rc-1.0-${RC_CVS_REV}
32     mirror://${PNAME}/30-dbus
33     )
34    
35     # use subdir $uri/dbus
36     UP2SUBDIR="${PNAME}"
37     UP2DATE="updatecmd_freedesktop ${PNAME} gz"
38    
39     src_prepare()
40     {
41     munpack ${SRCFILE} || die
42    
43     # fix missing include
44     all-abis 'sed -i "s/#include <stdio.h>/#include <stdio.h>\n#include <syslog.h>/g" dbus/dbus-sysdeps-util-unix.c' || die
45     }
46    
47     src_compile()
48     {
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     || die
66    
67     mmake || die
68     }
69    
70 niro 503 mcore_generic_src_install()
71 niro 496 {
72     # needed directories
73     minstalldir /etc/X11/xinit/xinitrc.d || die
74     minstalldir /usr/env || die
75    
76     minstall_destdir || die
77    
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     }

Properties

Name Value
svn:keywords Id