| 1 | # $Id: Makefile 15327 2011-08-12 21:35:23Z dmichelsen $ |
|---|
| 2 | # TODO (release-critical prefixed with !, non release-critical with *) |
|---|
| 3 | # |
|---|
| 4 | # ! test position of pidfile in compilation and cswdbus |
|---|
| 5 | # ! cleanup of /usr/share, /usr/local occurrences |
|---|
| 6 | |
|---|
| 7 | NAME = dbus |
|---|
| 8 | VERSION = 1.5.6 |
|---|
| 9 | CATEGORIES = lib |
|---|
| 10 | GARTYPE = v2 |
|---|
| 11 | |
|---|
| 12 | DESCRIPTION = DBus Message Bus System |
|---|
| 13 | define BLURB |
|---|
| 14 | D-Bus is a message bus system, a simple way for applications to talk to one another. |
|---|
| 15 | In addition to interprocess communication, D-Bus helps coordinate process lifecycle; |
|---|
| 16 | it makes it simple and reliable to code a "single instance" application or daemon, |
|---|
| 17 | and to launch applications and daemons on demand when their services are needed. |
|---|
| 18 | |
|---|
| 19 | D-Bus supplies both a system daemon (for events such as "new hardware device added" |
|---|
| 20 | or "printer queue changed") and a per-user-login-session daemon (for general IPC needs |
|---|
| 21 | among user applications). Also, the message bus is built on top of a general one-to-one |
|---|
| 22 | message passing framework, which can be used by any two apps to communicate directly |
|---|
| 23 | (without going through the message bus daemon). Currently the communicating applications |
|---|
| 24 | are on one computer, or through unencrypted TCP/IP suitable for use behind a firewall |
|---|
| 25 | with shared NFS home directories. (Help wanted with better remote transports - |
|---|
| 26 | the transport mechanism is well-abstracted and extensible.) |
|---|
| 27 | endef |
|---|
| 28 | |
|---|
| 29 | MASTER_SITES = http://dbus.freedesktop.org/releases/dbus/ |
|---|
| 30 | DISTFILES = $(DISTNAME).tar.gz |
|---|
| 31 | DISTFILES += cswusergroup |
|---|
| 32 | DISTFILES += cswdbus |
|---|
| 33 | |
|---|
| 34 | # Use this patch until this issue is fixed: |
|---|
| 35 | # http://bugs.freedesktop.org/show_bug.cgi?id=40235 |
|---|
| 36 | #PATCHFILES += dbus-sysdeps-unix.c.diff |
|---|
| 37 | |
|---|
| 38 | #PATCHFILES += dbus-sysdeps.h.diff |
|---|
| 39 | |
|---|
| 40 | # Use patch until this is fixed: |
|---|
| 41 | # http://bugs.freedesktop.org/show_bug.cgi?id=40313 |
|---|
| 42 | PATCHFILES += 0002-Add-missing-inclusion-of-inttypes.h.patch |
|---|
| 43 | |
|---|
| 44 | # Use this custom-patch unless this is fixed: |
|---|
| 45 | # http://bugs.freedesktop.org/show_bug.cgi?id=39987 |
|---|
| 46 | PATCHFILES += 0001-Use-LOG_PERROR-only-when-available.patch |
|---|
| 47 | |
|---|
| 48 | PATCHFILES += attachment-50480.patch |
|---|
| 49 | |
|---|
| 50 | PACKAGES += CSWdbus |
|---|
| 51 | CATALOGNAME_CSWdbus = dbus |
|---|
| 52 | SPKG_DESC_CSWdbus = $(DESCRIPTION) |
|---|
| 53 | # PKGFILES is catchall |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWdbus += CSWlibexpat1 |
|---|
| 55 | RUNTIME_DEP_PKGS_CSWdbus += CSWlibdbus1-3 |
|---|
| 56 | # These are search pathes: |
|---|
| 57 | # /opt/csw/share:/usr/local/share:/usr/share: |
|---|
| 58 | CHECKPKG_OVERRIDES_CSWdbus += file-with-bad-content|/usr/local|root/opt/csw/libexec/dbus-daemon-launch-helper |
|---|
| 59 | CHECKPKG_OVERRIDES_CSWdbus += file-with-bad-content|/usr/share|root/opt/csw/libexec/dbus-daemon-launch-helper |
|---|
| 60 | CHECKPKG_OVERRIDES_CSWdbus += file-with-bad-content|/usr/local|root/opt/csw/bin/dbus-daemon |
|---|
| 61 | CHECKPKG_OVERRIDES_CSWdbus += file-with-bad-content|/usr/share|root/opt/csw/bin/dbus-daemon |
|---|
| 62 | # This is an example |
|---|
| 63 | CHECKPKG_OVERRIDES_CSWdbus += file-with-bad-content|/usr/share|root/opt/csw/share/man/man1/dbus-daemon.1 |
|---|
| 64 | |
|---|
| 65 | PACKAGES += CSWlibdbus1-3 |
|---|
| 66 | SPKG_DESC_CSWlibdbus1-3 = DBus message bus system, libdbus-1.so.3 |
|---|
| 67 | PKGFILES_CSWlibdbus1-3 += $(call pkgfiles_lib,libdbus-1.so.3) |
|---|
| 68 | OBSOLETED_BY_CSWlibdbus1-3 += CSWlibdbus |
|---|
| 69 | # These are search pathes: |
|---|
| 70 | # /opt/csw/share:/usr/local/share:/usr/share: |
|---|
| 71 | CHECKPKG_OVERRIDES_CSWlibdbus1-3 += file-with-bad-content|/usr/local|root/opt/csw/lib/libdbus-1.so.3.6.3 |
|---|
| 72 | CHECKPKG_OVERRIDES_CSWlibdbus1-3 += file-with-bad-content|/usr/share|root/opt/csw/lib/libdbus-1.so.3.6.3 |
|---|
| 73 | CHECKPKG_OVERRIDES_CSWlibdbus1-3 += file-with-bad-content|/usr/local|root/opt/csw/lib/sparcv9/libdbus-1.so.3.6.3 |
|---|
| 74 | CHECKPKG_OVERRIDES_CSWlibdbus1-3 += file-with-bad-content|/usr/share|root/opt/csw/lib/sparcv9/libdbus-1.so.3.6.3 |
|---|
| 75 | CHECKPKG_OVERRIDES_CSWlibdbus1-3 += file-with-bad-content|/usr/local|root/opt/csw/lib/amd64/libdbus-1.so.3.6.3 |
|---|
| 76 | CHECKPKG_OVERRIDES_CSWlibdbus1-3 += file-with-bad-content|/usr/share|root/opt/csw/lib/amd64/libdbus-1.so.3.6.3 |
|---|
| 77 | |
|---|
| 78 | PACKAGES += CSWlibdbus-dev |
|---|
| 79 | SPKG_DESC_CSWlibdbus-dev = Development files for libdbus |
|---|
| 80 | PKGFILES_CSWlibdbus-dev += $(PKGFILES_DEVEL) |
|---|
| 81 | PKGFILES_CSWlibdbus-dev += $(call baseisadirs,$(libdir),dbus-1.0/.*) |
|---|
| 82 | PKGFILES_CSWlibdbus-dev += $(docdir)/.* |
|---|
| 83 | RUNTIME_DEP_PKGS_CSWlibdbus-dev += CSWlibdbus1-3 |
|---|
| 84 | OBSOLETED_BY_CSWlibdbus-dev += CSWlibdbusdev |
|---|
| 85 | # These are docs |
|---|
| 86 | CHECKPKG_OVERRIDES_CSWlibdbus-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/dbus/api/group__DBusSysdeps.html |
|---|
| 87 | CHECKPKG_OVERRIDES_CSWlibdbus-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/dbus/api/dbus-sysdeps-unix_8c_source.html |
|---|
| 88 | CHECKPKG_OVERRIDES_CSWlibdbus-dev += file-with-bad-content|/usr/share|root/opt/csw/share/doc/dbus/api/dbus-sysdeps-unix_8c_source.html |
|---|
| 89 | CHECKPKG_OVERRIDES_CSWlibdbus-dev += file-with-bad-content|/usr/share|root/opt/csw/share/doc/dbus/api/group__DBusSysdeps.html |
|---|
| 90 | CHECKPKG_OVERRIDES_CSWlibdbus-dev += file-with-bad-content|/usr/share|root/opt/csw/share/doc/dbus/system-activation.txt |
|---|
| 91 | |
|---|
| 92 | INITSMF += /etc/opt/csw/init.d/cswdbus |
|---|
| 93 | PRESERVECONF += /etc/opt/csw/dbus-1/system.conf |
|---|
| 94 | PRESERVECONF += /etc/opt/csw/dbus-1/session.conf |
|---|
| 95 | |
|---|
| 96 | MIGRATECONF += dbus-1/session.conf |
|---|
| 97 | MIGRATECONF += dbus-1/system.conf |
|---|
| 98 | |
|---|
| 99 | USERGROUP = /etc/opt/csw/pkg/CSWdbus/cswusergroup |
|---|
| 100 | |
|---|
| 101 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 102 | CONFIGURE_ARGS += --disable-tests |
|---|
| 103 | CONFIGURE_ARGS += --with-xml=expat |
|---|
| 104 | |
|---|
| 105 | # Needed for sockaddr_in6 |
|---|
| 106 | EXTRA_CFLAGS += -D__EXTENSIONS__ |
|---|
| 107 | |
|---|
| 108 | BUILD64_LIBS_ONLY = 1 |
|---|
| 109 | |
|---|
| 110 | include gar/category.mk |
|---|
| 111 | |
|---|
| 112 | post-merge: |
|---|
| 113 | ginstall -d $(PKGROOT)/etc/opt/csw/init.d |
|---|
| 114 | ginstall $(WORKDIR)/cswdbus $(PKGROOT)/etc/opt/csw/init.d/cswdbus |
|---|
| 115 | ginstall -d $(PKGROOT)/etc/opt/csw/pkg/CSWdbus |
|---|
| 116 | ginstall $(WORKDIR)/cswusergroup $(PKGROOT)/etc/opt/csw/pkg/CSWdbus/cswusergroup |
|---|
| 117 | |
|---|