Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/dbus/dbus-1.5.0-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4927 - (show annotations) (download)
Wed May 29 13:13:24 2013 UTC (10 years, 11 months ago) by niro
File size: 2596 byte(s)
-do not create the homedir, which will override /dev/null permissions
1 # $Id$
2
3 PNAME="dbus"
4 PVER="1.5.0"
5 PBUILD="r4"
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 ALX_ONLY_KEEP="etc
20 usr/bin
21 usr/$(mlibdir)/libdbus-1.so.*
22 usr/$(mlibdir)/dbus-1.0/services
23 usr/$(mlibdir)/dbus-1.0/dbus-1
24 usr/$(mlibdir)/dbus-1.0/dbus-daemon-launch-helper
25 usr/share/dbus-1/services
26 usr/share/dbus-1/system-services
27 var/lib/dbus
28 var/run/dbus"
29 sminclude mbuild alx-split
30
31 RC_CVS_REV=1.2
32
33 SRC_URI=(
34 http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/dbus.rc-1.0-${RC_CVS_REV}
37 mirror://${PNAME}/30-dbus
38 )
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 # using /lib/systemd/system as systemd units dir even on multilib systems
45 # to have one common rules/script directory!
46 mconfigure \
47 --with-system-pid-file=/var/run/dbus.pid \
48 --with-system-socket=/var/run/dbus/system_bus_socket \
49 --with-session-socket-dir=/tmp \
50 --with-test-socket-dir=/tmp \
51 --libexecdir=/usr/lib/dbus-1.0 \
52 --localstatedir=/var \
53 --with-dbus-user=messagebus \
54 --with-xml=expat \
55 --disable-verbose-mode \
56 --disable-checks \
57 --disable-asserts \
58 --enable-inotify \
59 --disable-dnotify \
60 --with-x \
61 --disable-doxygen-docs \
62 --disable-xml-docs \
63 --with-systemdsystemunitdir=/lib/systemd/system \
64 || die
65
66 mmake || die
67 }
68
69 alx_generic_src_install()
70 {
71 cd ${SRCDIR}
72 mmake install DESTDIR=${BINDIR} || die
73
74 # init script
75 minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die
76
77 # session script
78 minstalldir /etc/X11/xinit/xinitrc.d || die
79 minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die
80
81 # mark some dirs undeletable
82 mkeepdir /var/lib/dbus || die
83 mkeepdir /var/run/dbus || die
84 mkeepdir /usr/lib/dbus-1.0/services || die
85 mkeepdir /usr/share/dbus-1/services || die
86 mkeepdir /etc/dbus-1/system.d || die
87 mkeepdir /etc/dbus-1/session.d || die
88
89 minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die
90 }
91
92 preinstall_dbus()
93 {
94 add_conf_prot_mask /etc/rc.d/init.d /etc/dbus-1
95
96 # adds plugdev group
97 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
98
99 # adds messagebus user
100 ${MLIBDIR}/mgroupadd -o "-g 300" messagebus
101 ${MLIBDIR}/museradd -o "-H -u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
102 }
103
104 postinstall_dbus()
105 {
106 mstartservice dbus /usr/bin/dbus-daemon
107 }
108
109 postremove_dbus()
110 {
111 mstopservice dbus /usr/bin/dbus-daemon
112 }