Ravenports generated: 13 Jan 2019 12:09
[ravenports.git] / bucket_57 / dbus
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               dbus
4 VERSION=                1.12.12
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Message bus system for IPC communication
8 HOMEPAGE=               http://www.freedesktop.org/Software/dbus
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://dbus.freedesktop.org/releases/dbus/
13 DISTFILE[1]=            dbus-1.12.12.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          expat:static:standard
21                         minixmlto:single:standard
22 BUILDRUN_DEPENDS=       expat:shared:standard
23
24 USERS=                  messagebus
25 GROUPS=                 messagebus
26 USERGROUP_SPKG=         single
27
28 USES=                   cpe gmake libtool python:build shebangfix
29 XORG_COMPONENTS=        ice sm x11
30
31 LICENSE=                CUSTOM1:single GPLv2+:single
32 LICENSE_TERMS=          single:{{WRKDIR}}/TERMS
33 LICENSE_NAME=           CUSTOM1:"Academic Free License version 2.1"
34 LICENSE_FILE=           GPLv2+:stock
35                         CUSTOM1:{{WRKDIR}}/LICENSE_AFL
36 LICENSE_AWK=            TERMS:"^The Academic"
37 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/COPYING
38 LICENSE_SCHEME=         dual
39
40 CPE_PRODUCT=            d-bus
41 CPE_VENDOR=             d-bus_project
42 FPC_EQUIVALENT=         devel/dbus
43 SHEBANG_FILES=          tools/GetAllMatchRules.py
44
45 MUST_CONFIGURE=         gnu
46 CONFIGURE_ARGS=         --with-x
47                         --with-test-socket-dir={{WRKDIR}}
48                         --disable-doxygen-docs
49                         --disable-selinux
50                         --disable-apparmor
51                         --disable-systemd
52 CONFIGURE_ENV=          XMLTO={{LOCALBASE}}/bin/minixmlto
53
54 INSTALL_TARGET=         install-strip
55 SOVERSION=              3.19.9
56 PLIST_SUB=              VERSION="1.0"
57                         GROUPS={{GROUPS}}
58 RC_SUBR=                dbus:single
59
60 post-patch:
61         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
62                 ${WRKSRC}/dbus/dbus-sysdeps-unix.c
63         ${REINPLACE_CMD} '/^SUBDIRS =/s|test||' ${WRKSRC}/Makefile.in
64
65 post-install:
66         # delete examples
67         ${RM} -r ${STAGEDIR}${STD_DOCDIR}
68
69 post-extract:
70         ${AWK} '/^The Academic Free License/,/^but the BSD, MIT/' \
71                 ${WRKSRC}/COPYING > ${WRKDIR}/LICENSE_AFL
72
73 [FILE:392:descriptions/desc.single]
74 D-BUS supplies both a system daemon (for events such as "new hardware device
75 added" or "printer queue changed") and a per-user-login-session daemon (for
76 general IPC needs among user applications). Also, the message bus is built on
77 top of a general one-to-one message passing framework, which can be used by
78 any two apps to communicate directly (without going through the message bus
79 daemon).
80
81
82 [FILE:98:distinfo]
83 9546f226011a1e5d9d77245fe5549ef25af4694053189d624d0d6ac127ecf5f8      2077301 dbus-1.12.12.tar.gz
84
85
86 [FILE:1231:manifests/plist.single]
87 bin/
88  dbus-cleanup-sockets
89  dbus-daemon
90  dbus-launch
91  dbus-monitor
92  dbus-run-session
93  dbus-send
94  dbus-test-tool
95  dbus-update-activation-environment
96  dbus-uuidgen
97 etc/dbus-1/
98  session.conf
99  system.conf
100 include/dbus-%%VERSION%%/dbus/
101  dbus-address.h
102  dbus-bus.h
103  dbus-connection.h
104  dbus-errors.h
105  dbus-macros.h
106  dbus-memory.h
107  dbus-message.h
108  dbus-misc.h
109  dbus-pending-call.h
110  dbus-protocol.h
111  dbus-server.h
112  dbus-shared.h
113  dbus-signature.h
114  dbus-syntax.h
115  dbus-threads.h
116  dbus-types.h
117  dbus.h
118 lib/
119  libdbus-1.a
120  libdbus-1.so
121  libdbus-1.so.%%SOMAJOR%%
122  libdbus-1.so.%%SOVERSION%%
123 lib/cmake/DBus1/
124  DBus1Config.cmake
125  DBus1ConfigVersion.cmake
126 lib/dbus-%%VERSION%%/include/dbus/dbus-arch-deps.h
127 lib/pkgconfig/dbus-1.pc
128 @(,%%GROUPS%%,4750) libexec/dbus-daemon-launch-helper
129 share/dbus-1/
130  session.conf
131  system.conf
132 share/man/man1/
133  dbus-cleanup-sockets.1.gz
134  dbus-daemon.1.gz
135  dbus-launch.1.gz
136  dbus-monitor.1.gz
137  dbus-run-session.1.gz
138  dbus-send.1.gz
139  dbus-test-tool.1.gz
140  dbus-update-activation-environment.1.gz
141  dbus-uuidgen.1.gz
142 share/xml/dbus-1/
143  busconfig.dtd
144  introspect.dtd
145 @dir /var/lib/dbus
146 @dir /var/run/dbus
147 @dir share/dbus-1/services
148 @dir share/dbus-1/session.d
149 @dir share/dbus-1/system-services
150 @dir share/dbus-1/system.d
151
152
153 [FILE:1385:patches/patch-configure]
154 --- configure.orig      2018-04-30 12:54:40 UTC
155 +++ configure
156 @@ -24499,14 +24499,14 @@ fi
157  done
158  
159  
160 -    if test "$ax_enable_compile_warnings" != "no"; then :
161 +    if test "$ax_enable_compile_warnings" == "skipme"; then :
162  
163          # "yes" flags
164  
165  
166  
167  
168 -for flag in       ; do
169 +for flag in ""      ; do
170    as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
172  $as_echo_n "checking whether the linker accepts $flag... " >&6; }
173 @@ -26014,14 +26014,14 @@ fi
174  done
175  
176  
177 -    if test "$ax_enable_compile_warnings" != "no"; then :
178 +    if test "$ax_enable_compile_warnings" != "yes"; then :
179  
180          # "yes" flags
181  
182  
183  
184  
185 -for flag in    ; do
186 +for flag in ""   ; do
187    as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
189  $as_echo_n "checking whether the linker accepts $flag... " >&6; }
190 @@ -26195,8 +26195,6 @@ case $host_os in
191          CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
192          # ... this opt-in to get sockaddr_in6 and sockaddr_storage...
193          CFLAGS="$CFLAGS -D__EXTENSIONS__"
194 -        # ... and this opt-in to get file descriptor passing support
195 -        CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
196          ;;
197  esac
198  
199
200
201 [FILE:3151:patches/patch-dbus_dbus-connection.c]
202 --- dbus/dbus-connection.c.orig 2018-02-08 14:07:21 UTC
203 +++ dbus/dbus-connection.c
204 @@ -2385,7 +2385,7 @@ _dbus_connection_block_pending_call (DBu
205    DBusConnection *connection;
206    dbus_uint32_t client_serial;
207    DBusTimeout *timeout;
208 -  int timeout_milliseconds, elapsed_milliseconds;
209 +  int timeout_milliseconds, elapsed_milliseconds, remain_milliseconds;
210  
211    _dbus_assert (pending != NULL);
212  
213 @@ -2466,7 +2466,11 @@ _dbus_connection_block_pending_call (DBu
214    _dbus_get_monotonic_time (&tv_sec, &tv_usec);
215    elapsed_milliseconds = (tv_sec - start_tv_sec) * 1000 +
216           (tv_usec - start_tv_usec) / 1000;
217 -  
218 +  if (timeout_milliseconds != -1)
219 +    remain_milliseconds = timeout_milliseconds - elapsed_milliseconds;
220 +  else
221 +    remain_milliseconds = -1;
222 +
223    if (!_dbus_connection_get_is_connected_unlocked (connection))
224      {
225        DBusMessage *error_msg;
226 @@ -2494,7 +2498,7 @@ _dbus_connection_block_pending_call (DBu
227             */
228            _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
229  
230 -          _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
231 +          _dbus_memory_pause_based_on_timeout (remain_milliseconds);
232          }
233        else
234          {          
235 @@ -2503,7 +2507,7 @@ _dbus_connection_block_pending_call (DBu
236                                                    pending,
237                                                    DBUS_ITERATION_DO_READING |
238                                                    DBUS_ITERATION_BLOCK,
239 -                                                  timeout_milliseconds - elapsed_milliseconds);
240 +                                                  remain_milliseconds);
241          }
242  
243        goto recheck_status;
244 @@ -2512,7 +2516,7 @@ _dbus_connection_block_pending_call (DBu
245      _dbus_verbose ("dbus_connection_send_with_reply_and_block(): clock set backward\n");
246    else if (elapsed_milliseconds < timeout_milliseconds)
247      {
248 -      _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", timeout_milliseconds - elapsed_milliseconds);
249 +      _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", remain_milliseconds);
250        
251        if (status == DBUS_DISPATCH_NEED_MEMORY)
252          {
253 @@ -2522,7 +2526,7 @@ _dbus_connection_block_pending_call (DBu
254             */
255            _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
256  
257 -          _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
258 +          _dbus_memory_pause_based_on_timeout (remain_milliseconds);
259          }
260        else
261          {          
262 @@ -2531,7 +2535,7 @@ _dbus_connection_block_pending_call (DBu
263                                                    pending,
264                                                    DBUS_ITERATION_DO_READING |
265                                                    DBUS_ITERATION_BLOCK,
266 -                                                  timeout_milliseconds - elapsed_milliseconds);
267 +                                                  remain_milliseconds);
268          }
269  
270        goto recheck_status;
271
272
273 [FILE:354:patches/patch-dbus_dbus-sysdeps-unix.c]
274 --- dbus/dbus-sysdeps-unix.c.orig       2017-11-24 13:42:27 UTC
275 +++ dbus/dbus-sysdeps-unix.c
276 @@ -24,6 +24,14 @@
277  
278  #include <config.h>
279  
280 +#ifdef __sun
281 +#  if __STDC_VERSION__ - 0 < 199901L
282 +#define        _XOPEN_SOURCE   500
283 +#  else
284 +#define        _XOPEN_SOURCE   600
285 +#  endif
286 +#endif
287 +
288  #include "dbus-internals.h"
289  #include "dbus-sysdeps.h"
290  #include "dbus-sysdeps-unix.h"
291
292
293 [FILE:1388:patches/patch-dbus_dbus-sysdeps-util-unix.c]
294 --- dbus/dbus-sysdeps-util-unix.c.orig  2017-10-30 12:26:18 UTC
295 +++ dbus/dbus-sysdeps-util-unix.c
296 @@ -42,6 +42,7 @@
297  #include <stdio.h>
298  #include <errno.h>
299  #include <fcntl.h>
300 +#include <syslog.h>
301  #include <sys/stat.h>
302  #ifdef HAVE_SYS_RESOURCE_H
303  #include <sys/resource.h>
304 @@ -51,6 +52,10 @@
305  #include <dirent.h>
306  #include <sys/un.h>
307  
308 +#if defined(__sun) && defined(__SVR4)
309 +#include <pwd.h>
310 +#endif
311 +
312  #ifdef HAVE_SYS_SYSLIMITS_H
313  #include <sys/syslimits.h>
314  #endif
315 @@ -551,8 +556,31 @@ _dbus_user_at_console (const char *usern
316  #ifdef DBUS_CONSOLE_AUTH_DIR
317    DBusString u, f;
318    dbus_bool_t result;
319 +#if defined(__sun) && defined(__SVR4)
320 +  struct passwd *passwd_entry;
321 +#endif
322  
323    result = FALSE;
324 +
325 +#if defined(__sun) && defined(__SVR4)
326 +  passwd_entry = getpwnam (username);
327 +  if (passwd_entry != NULL)
328 +    {
329 +      struct stat st;
330 +      uid_t uid;
331 +
332 +      uid = passwd_entry->pw_uid;
333 +
334 +      if (stat ("/dev/vt/console_user", &st) == 0 && st.st_uid == uid)
335 +        {
336 +         /*
337 +          * Owner is allowed to take over. Before we have real
338 +          * ownership in HAL, assume it's the console owner.
339 +          */
340 +          result = TRUE;
341 +        }
342 +    }
343 +#else
344    if (!_dbus_string_init (&f))
345      {
346        _DBUS_SET_OOM (error);
347 @@ -577,6 +605,7 @@ _dbus_user_at_console (const char *usern
348  
349   out:
350    _dbus_string_free (&f);
351 +#endif
352  
353    return result;
354  #else
355
356
357 [FILE:542:patches/patch-tools_dbus-launch.c]
358 --- tools/dbus-launch.c.orig    2017-10-30 12:26:18 UTC
359 +++ tools/dbus-launch.c
360 @@ -846,6 +846,12 @@ main (int argc, char **argv)
361    exit_with_session = FALSE;
362    config_file = NULL;
363  
364 +  if (getenv("RAVENADM") != NULL)
365 +    {
366 +      fprintf (stderr, "Package building detected, launch not executed.\n");
367 +      exit (0);
368 +    }
369 +
370    /* Ensure that the first three fds are open, to ensure that when we
371     * create other file descriptors (for example for epoll, inotify or
372     * a socket), they never get assigned as fd 0, 1 or 2. If they were,
373
374
375 [FILE:785:files/dbus.in]
376 #!/bin/sh
377 #
378 # $FreeBSD: head/devel/dbus/files/dbus.in 431498 2017-01-14 22:48:49Z tijl $
379 #
380 # PROVIDE: dbus
381 # REQUIRE: DAEMON ldconfig
382 #
383 # Add the following lines to /etc/rc.conf to enable the D-BUS messaging system:
384 #
385 # dbus_enable="YES"
386 #
387
388 . /etc/rc.subr
389
390 : ${dbus_enable=${gnome_enable-NO}} ${dbus_flags="--system"}
391
392 name=dbus
393 rcvar=dbus_enable
394
395 command="%%PREFIX%%/bin/dbus-daemon"
396 pidfile="/var/run/dbus/pid"
397
398 start_precmd="dbus_prestart"
399 stop_postcmd="dbus_poststop"
400
401 dbus_prestart()
402 {
403     %%PREFIX%%/bin/dbus-uuidgen --ensure
404     mkdir -p /var/run/dbus
405 }
406
407 dbus_poststop()
408 {
409     rm -f $pidfile
410 # The following two lines may be removed after 2018-01-01
411     rm -f /var/db/dbus/machine-id
412     [ ! -d /var/db/dbus ] || rmdir /var/db/dbus
413 }
414
415 load_rc_config ${name}
416 run_rc_command "$1"
417