Annotation of /smage/trunk/core/dbus/dbus-1.4.0-r2.smage2
Parent Directory | Revision Log
Revision 904 -
(hide annotations)
(download)
Tue Dec 7 20:56:59 2010 UTC (13 years, 5 months ago) by niro
Original Path: smage/trunk/deprecated/dbus/dbus-1.4.0-r2.smage2
File size: 2945 byte(s)
Tue Dec 7 20:56:59 2010 UTC (13 years, 5 months ago) by niro
Original Path: smage/trunk/deprecated/dbus/dbus-1.4.0-r2.smage2
File size: 2945 byte(s)
-moved to 'deprecated'
1 | niro | 771 | # $Id: dbus-1.3.0-r1.smage2 3276 2009-10-19 11:10:46Z niro $ |
2 | |||
3 | PNAME="dbus" | ||
4 | PVER="1.4.0" | ||
5 | PBUILD="r2" | ||
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.25" | ||
18 | |||
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
21 | |||
22 | niro | 902 | MCORE_ONLY_KEEP="usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.* $(mlibdir)/systemd" |
23 | sminclude mtools multilib mcore-split | ||
24 | niro | 771 | |
25 | RC_CVS_REV=1.2 | ||
26 | |||
27 | SRC_URI=( | ||
28 | http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE} | ||
29 | mirror://${PNAME}/${SRCFILE} | ||
30 | mirror://${PNAME}/dbus.rc-1.0-${RC_CVS_REV} | ||
31 | mirror://${PNAME}/30-dbus | ||
32 | ) | ||
33 | |||
34 | # use subdir $uri/dbus | ||
35 | UP2SUBDIR="${PNAME}" | ||
36 | UP2DATE="updatecmd_freedesktop ${PNAME} gz" | ||
37 | |||
38 | src_prepare() | ||
39 | { | ||
40 | munpack ${SRCFILE} || die | ||
41 | |||
42 | # fix missing include | ||
43 | all-abis 'sed -i "s/#include <stdio.h>/#include <stdio.h>\n#include <syslog.h>/g" dbus/dbus-sysdeps-util-unix.c' || die | ||
44 | } | ||
45 | |||
46 | src_compile() | ||
47 | { | ||
48 | # using /lib/systemd/system as systemd units dir even on multilib systems | ||
49 | # to have one common rules/script directory! | ||
50 | mconfigure \ | ||
51 | --with-system-pid-file=/var/run/dbus.pid \ | ||
52 | --with-system-socket=/var/run/dbus/system_bus_socket \ | ||
53 | --with-session-socket-dir=/tmp \ | ||
54 | --with-test-socket-dir=/tmp \ | ||
55 | --libexecdir=/usr/$(mlibdir)/dbus-1.0 \ | ||
56 | --localstatedir=/var \ | ||
57 | --with-dbus-user=messagebus \ | ||
58 | --with-xml=expat \ | ||
59 | --disable-verbose-mode \ | ||
60 | --disable-checks \ | ||
61 | --disable-asserts \ | ||
62 | --enable-dnotify \ | ||
63 | --with-x \ | ||
64 | --disable-doxygen-docs \ | ||
65 | --disable-xml-docs \ | ||
66 | --with-systemdsystemunitdir=/lib/systemd/system \ | ||
67 | || die | ||
68 | |||
69 | mmake || die | ||
70 | } | ||
71 | |||
72 | niro | 902 | mcore_generic_src_install() |
73 | niro | 771 | { |
74 | # needed directories | ||
75 | minstalldir /etc/X11/xinit/xinitrc.d || die | ||
76 | minstalldir /usr/env || die | ||
77 | |||
78 | # fix ln issue on multilib: force overwrite of all symlinks | ||
79 | mmake install DESTDIR=${BINDIR} LN_S="'ln -sf'" || die | ||
80 | |||
81 | # init script | ||
82 | minstallrc dbus.rc-1.0-${RC_CVS_REV} dbus || die | ||
83 | |||
84 | # session script | ||
85 | minstallexec -s 30-dbus /etc/X11/xinit/xinitrc.d || die | ||
86 | |||
87 | # kde needs special treatments | ||
88 | minstallexec -s 30-dbus /usr/env/dbus-env.sh || die | ||
89 | |||
90 | # mark some dirs undeletable | ||
91 | mkeepdir /var/lib/dbus || die | ||
92 | mkeepdir /var/run/dbus || die | ||
93 | mkeepdir /usr/lib/dbus-1.0/services || die | ||
94 | mkeepdir /usr/share/dbus-1/services || die | ||
95 | mkeepdir /etc/dbus-1/system.d || die | ||
96 | mkeepdir /etc/dbus-1/session.d || die | ||
97 | |||
98 | minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die | ||
99 | } | ||
100 | |||
101 | preinstall() | ||
102 | { | ||
103 | # adds plugdev group | ||
104 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev | ||
105 | |||
106 | # adds messagebus user | ||
107 | ${MLIBDIR}/mgroupadd -o "-g 300" messagebus | ||
108 | ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus | ||
109 | } | ||
110 | |||
111 | postinstall() | ||
112 | { | ||
113 | mstartservice dbus /usr/bin/dbus-daemon | ||
114 | } | ||
115 | |||
116 | postremove() | ||
117 | { | ||
118 | if [ ! -f ${MROOT}/usr/bin/dbus-daemon ] | ||
119 | then | ||
120 | mstopservice dbus /usr/bin/dbus-daemon | ||
121 | fi | ||
122 | } |