Annotation of /trunk/core/dbus/dbus-1.10.8-r1.smage2
Parent Directory | Revision Log
Revision 27534 -
(hide annotations)
(download)
Mon Mar 14 14:26:15 2016 UTC (8 years, 6 months ago) by niro
File size: 4303 byte(s)
Mon Mar 14 14:26:15 2016 UTC (8 years, 6 months ago) by niro
File size: 4303 byte(s)
auto added: ver bump to 1.10.8-r1
1 | niro | 27534 | # $Id$ |
2 | |||
3 | PNAME="dbus" | ||
4 | PVER="1.10.8" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | SPLIT_PACKAGES="dbus-libs dbus dbus-x11" | ||
8 | |||
9 | PCAT="sys-apps" | ||
10 | HOMEPAGE="http://www.freedesktop.org/Software/dbus" | ||
11 | |||
12 | LIB_DEPEND=">= virtual/glibc" | ||
13 | |||
14 | DBUS_DEPEND=">= dev-libs/expat-2 | ||
15 | >= sys-apps/util-linux-2.27 | ||
16 | >= sys-libs/libsystemd-daemon-221 | ||
17 | >= sys-libs/libsystemd-login-221" | ||
18 | |||
19 | X11_DEPEND=">= x11-libs/libX11-1.6 | ||
20 | >= x11-libs/libXt-1.1" | ||
21 | |||
22 | # disable atm | ||
23 | msetfeature "!check" | ||
24 | if mqueryfeature "check" | ||
25 | then | ||
26 | CHECK_DEPEND=">= dev-libs/dbus-glib-0.104 | ||
27 | >= dev-python/dbus-python-1.2.0" | ||
28 | else | ||
29 | CHECK_DEPEND="" | ||
30 | fi | ||
31 | |||
32 | SDEPEND="${LIB_DEPEND} | ||
33 | ${DBUS_DEPEND} | ||
34 | ${X11_DEPEND} | ||
35 | ${CHECK_DEPEND} | ||
36 | >= app-text/xmlto-0.0.26 | ||
37 | >= dev-util/pkgconfig-0.25 | ||
38 | >= sys-apps/systemd-221 | ||
39 | >= app-text/docbook-xml-dtd44-4.4 | ||
40 | >= app-text/docbook-xsl-stylesheets-1.75" | ||
41 | |||
42 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
43 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
44 | |||
45 | sminclude mtools multilib systemd | ||
46 | |||
47 | SESSION_SCRIPT_REV=2 | ||
48 | |||
49 | SRC_URI=( | ||
50 | http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE} | ||
51 | mirror://${PNAME}/${SRCFILE} | ||
52 | mirror://${PNAME}/${PNAME}-1.5.8-no-fatal-warnings.patch | ||
53 | ) | ||
54 | |||
55 | # use subdir $uri/dbus | ||
56 | UP2SUBDIR="${PNAME}" | ||
57 | UP2DATE="updatecmd_freedesktop ${PNAME} gz" | ||
58 | |||
59 | split_info_dbus-libs() | ||
60 | { | ||
61 | DESCRIPTION="Libraries for accessing D-BUS." | ||
62 | DEPEND="${LIB_DEPEND}" | ||
63 | PCAT="sys-libs" | ||
64 | } | ||
65 | |||
66 | split_info_dbus() | ||
67 | { | ||
68 | DESCRIPTION="D-BUS is a message bus system, a simple way for applications to talk to one another." | ||
69 | DEPEND="== sys-libs/dbus-libs-${PVER} | ||
70 | ${DBUS_DEPEND}" | ||
71 | } | ||
72 | |||
73 | split_info_dbus-x11() | ||
74 | { | ||
75 | DESCRIPTION="X11-requiring add-ons for D-BUS." | ||
76 | DEPEND="== sys-libs/dbus-libs-${PVER} | ||
77 | == sys-apps/dbus-${PVER} | ||
78 | ${X11_DEPEND}" | ||
79 | } | ||
80 | |||
81 | pkg_setup() | ||
82 | { | ||
83 | preinstall_dbus | ||
84 | } | ||
85 | |||
86 | src_prepare() | ||
87 | { | ||
88 | munpack ${SRCFILE} || die | ||
89 | |||
90 | # do not abort on fatal warnings by default | ||
91 | mpatch ${PNAME}-1.5.8-no-fatal-warnings.patch || die | ||
92 | } | ||
93 | |||
94 | src_compile() | ||
95 | { | ||
96 | # using /lib/systemd/system as systemd units dir even on multilib systems | ||
97 | # to have one common rules/script directory! | ||
98 | mconfigure \ | ||
99 | --with-system-pid-file=/run/dbus.pid \ | ||
100 | --with-system-socket=/run/dbus/system_bus_socket \ | ||
101 | --with-session-socket-dir=/tmp \ | ||
102 | --with-test-socket-dir=/tmp \ | ||
103 | --with-console-auth-dir=/run/console \ | ||
104 | --libexecdir=/usr/$(mlibdir)/dbus-1.0 \ | ||
105 | --localstatedir=/var \ | ||
106 | --with-dbus-user=messagebus \ | ||
107 | --with-xml=expat \ | ||
108 | --disable-verbose-mode \ | ||
109 | --disable-checks \ | ||
110 | --disable-asserts \ | ||
111 | --enable-inotify \ | ||
112 | --disable-dnotify \ | ||
113 | --with-x \ | ||
114 | --disable-doxygen-docs \ | ||
115 | --with-systemdsystemunitdir=$(mget-systemd-unit-dir) \ | ||
116 | --enable-systemd \ | ||
117 | --enable-user-session \ | ||
118 | || die | ||
119 | |||
120 | mmake || die | ||
121 | } | ||
122 | |||
123 | src_install_dbus-libs() | ||
124 | { | ||
125 | # fix ln issue on multilib: force overwrite of all symlinks | ||
126 | mmake DESTDIR=${BINDIR} LN_S="'ln -sf'" -C dbus install-libLTLIBRARIES || die | ||
127 | } | ||
128 | |||
129 | src_install_dbus() | ||
130 | { | ||
131 | # fix ln issue on multilib: force overwrite of all symlinks | ||
132 | mmake install DESTDIR=${BINDIR} LN_S="'ln -sf'" || die | ||
133 | # remove libraries provided by the dbus-libs package | ||
134 | mmake DESTDIR=${BINDIR} LN_S="'ln -sf'" -C dbus uninstall-libLTLIBRARIES || die | ||
135 | # remove dbus-launch provided by dbus-x11 package | ||
136 | mdelete /usr/bin/dbus-launch || die | ||
137 | mdelete /usr/share/man/man1/dbus-launch.1 || die | ||
138 | # remove dbus-run-session provided by dbus-x11 package | ||
139 | mdelete /usr/bin/dbus-run-session || die | ||
140 | mdelete /usr/share/man/man1/dbus-run-session.1 || die | ||
141 | |||
142 | # mark some dirs undeletable | ||
143 | mkeepdir /var/lib/dbus || die | ||
144 | mkeepdir /run/dbus || die | ||
145 | mkeepdir /usr/lib/dbus-1.0/services || die | ||
146 | mkeepdir /usr/share/dbus-1/services || die | ||
147 | mkeepdir /etc/dbus-1/system.d || die | ||
148 | mkeepdir /etc/dbus-1/session.d || die | ||
149 | |||
150 | minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die | ||
151 | } | ||
152 | |||
153 | src_install_dbus-x11() | ||
154 | { | ||
155 | all-abis minstallexec tools/dbus-launch || die | ||
156 | all-abis minstallman doc/dbus-launch.1 || die | ||
157 | |||
158 | all-abis minstallexec tools/dbus-run-session || die | ||
159 | all-abis minstallman doc/dbus-run-session.1 || die | ||
160 | } | ||
161 | |||
162 | preinstall_dbus() | ||
163 | { | ||
164 | # adds plugdev group | ||
165 | mgroupadd -o "-g 302" plugdev | ||
166 | |||
167 | # adds messagebus user | ||
168 | mgroupadd -o "-g 300" messagebus | ||
169 | museradd -o "-M -u 300 -g messagebus -d /dev/null -s /bin/false" messagebus | ||
170 | } | ||
171 | |||
172 | postinstall_dbus() | ||
173 | { | ||
174 | # only reload dbus-daemon if already running | ||
175 | if pidof dbus-daemon > /dev/null | ||
176 | then | ||
177 | mreloadunit dbus.service dbus-daemon | ||
178 | else | ||
179 | mstartunit dbus.service dbus-daemon | ||
180 | fi | ||
181 | } | ||
182 | |||
183 | postremove_dbus() | ||
184 | { | ||
185 | mstopunit dbus.service dbus-daemon | ||
186 | } |