Magellan Linux

Contents of /smage/trunk/core/dbus/dbus-1.5.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2792 - (show annotations) (download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 8 months ago) by niro
File size: 1851 byte(s)
-merged branch alx-0_6_0 into trunk
1 # $Id$
2
3 PNAME="dbus"
4 PVER="1.5.0"
5 PBUILD="r2"
6
7 PCATEGORIE="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=">= virtual/x11"
13 SDEPEND=">= dev-util/pkgconfig-0.25"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 REMOVE_DEPRECATED_MAGE_TARGETS=1
19 sminclude mbuild alx
20
21 SRC_URI=(
22 http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 src_compile()
27 {
28 cd ${SRCDIR}
29
30 # using /lib/systemd/system as systemd units dir even on multilib systems
31 # to have one common rules/script directory!
32 mconfigure \
33 --with-system-pid-file=/var/run/dbus.pid \
34 --with-system-socket=/var/run/dbus/system_bus_socket \
35 --with-session-socket-dir=/tmp \
36 --with-test-socket-dir=/tmp \
37 --libexecdir=/usr/lib/dbus-1.0 \
38 --localstatedir=/var \
39 --with-dbus-user=messagebus \
40 --with-xml=expat \
41 --disable-verbose-mode \
42 --disable-checks \
43 --disable-asserts \
44 --enable-inotify \
45 --disable-dnotify \
46 --with-x \
47 --disable-doxygen-docs \
48 --disable-xml-docs \
49 --with-systemdsystemunitdir=/lib/systemd/system \
50 || die
51
52 mmake || die
53 }
54
55 src_install()
56 {
57 cd ${SRCDIR}
58 mmake install DESTDIR=${BINDIR} || die
59
60 # mark some dirs undeletable
61 mkeepdir /var/lib/dbus || die
62 mkeepdir /var/run/dbus || die
63 mkeepdir /usr/lib/dbus-1.0/services || die
64 mkeepdir /usr/share/dbus-1/services || die
65 mkeepdir /etc/dbus-1/system.d || die
66 mkeepdir /etc/dbus-1/session.d || die
67
68 minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
69 }
70
71 preinstall()
72 {
73 # adds plugdev group
74 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
75
76 # adds messagebus user
77 ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
78 ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
79 }