From 7dadcd40abd85681f28f940803195750d3e440ca57e569bf88b0490df31bacca Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 7 Oct 2017 10:08:37 +0000 Subject: [PATCH] Accepting request 528060 from home:jengelh:branches:Base:System OBS-URL: https://build.opensuse.org/request/show/528060 OBS-URL: https://build.opensuse.org/package/show/Base:System/dbus-broker?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + dbus-broker.changes | 17 +++++++++ dbus-broker.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++ use-system-deps.diff | 29 ++++++++++++++ v4.tar.gz | 3 ++ 6 files changed, 164 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dbus-broker.changes create mode 100644 dbus-broker.spec create mode 100644 use-system-deps.diff create mode 100644 v4.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/dbus-broker.changes b/dbus-broker.changes new file mode 100644 index 0000000..f1029ec --- /dev/null +++ b/dbus-broker.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Sun Sep 10 23:30:34 UTC 2017 - jengelh@inai.de + +- Update to new upstream release 4 + * Support for sending SELinux AVC violations to audit rather + than syslog. + * Units will now be activated via explicit calls to StartUnit() + rather than faking a ActivationRequest directed signal. This + allows to catch startup failures (or rejections) and allows + to reject all pending activation requests right away. + * The broker now logs policy violations to the system log. +- Add use-system-deps.diff + +------------------------------------------------------------------- +Fri Aug 25 10:54:00 UTC 2017 - jengelh@inai.de + +- Initial package (version 3) for build.opensuse.org diff --git a/dbus-broker.spec b/dbus-broker.spec new file mode 100644 index 0000000..2ed6acd --- /dev/null +++ b/dbus-broker.spec @@ -0,0 +1,91 @@ +# +# spec file for package dbus-broker +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: dbus-broker +Version: 4 +Release: 0 +Summary: XDG-conforming message bus implementation +License: Apache-2.0 +Group: Productivity/Telephony/Utilities +Url: https://github.com/bus1/dbus-broker + +Source: https://github.com/bus1/dbus-broker/archive/v%version.tar.gz +Patch1: use-system-deps.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: meson +BuildRequires: pkg-config +BuildRequires: pkgconfig(audit) >= 2.7 +BuildRequires: pkgconfig(libcdvar) >= 1 +BuildRequires: pkgconfig(libclist) >= 3 +BuildRequires: pkgconfig(libcrbtree) >= 3 +BuildRequires: pkgconfig(libcsundry) >= 1 +BuildRequires: pkgconfig(libselinux) >= 2.5 +BuildRequires: pkgconfig(libsystemd) >= 230 +BuildRequires: pkgconfig(dbus-1) >= 1.10 +BuildRequires: pkgconfig(glib-2.0) >= 2.50 +BuildRequires: pkgconfig(systemd) >= 230 +BuildRequires: pkgconfig(expat) + +%description +dbus-broker is an implementation of a message bus as defined by the +D-Bus specification. It has some different characteristics/features +from classic D-Bus: + +* No shared medium +* No IPC to implement IPC +* User-based accounting +* Reliable messages +* Just the bus implementation, no external communication +* Local only, no remote transport +* Support for SASL pipelining +* Runtime broker control + +%prep +%setup -q +%patch -P 1 -p1 + +%build +%meson -Daudit=true -Dselinux=true +%meson_build + +%install +%meson_install +mkdir -p "%buildroot/%_sbindir" +ln -s service "%buildroot/%_sbindir/rcdbus-broker" + +%pre +%service_add_pre dbus-broker.service + +%post +%service_add_post dbus-broker.service + +%preun +%service_del_preun dbus-broker.service + +%postun +%service_del_postun dbus-broker.service + +%files +%defattr(-,root,root) +%_bindir/dbus-broker* +%_unitdir/*.service +%_prefix/lib/systemd/user/*.service +%_sbindir/rc* +%doc COPYING LICENSE + +%changelog diff --git a/use-system-deps.diff b/use-system-deps.diff new file mode 100644 index 0000000..050a45b --- /dev/null +++ b/use-system-deps.diff @@ -0,0 +1,29 @@ +From: Jan Engelhardt +Date: 2017-09-21 14:40:14.104177267 +0200 + +This reverts commit 70ce99868a47ce59c36178605848ddf121dc4c07. + +diff --git a/meson.build b/meson.build +index a429847..61e1e4e 100644 +--- a/meson.build ++++ b/meson.build +@@ -16,15 +16,10 @@ cc = meson.get_compiler('c') + conf = configuration_data() + mod_pkgconfig = import('pkgconfig') + +-sub_cdvar = subproject('c-dvar', version: '>=1') +-sub_clist = subproject('c-list', version: '>=3') +-sub_crbtree = subproject('c-rbtree', version: '>=3') +-sub_csundry = subproject('c-sundry', version: '>=1') +- +-dep_cdvar = sub_cdvar.get_variable('libcdvar_dep') +-dep_clist = sub_clist.get_variable('libclist_dep') +-dep_crbtree = sub_crbtree.get_variable('libcrbtree_dep') +-dep_csundry = sub_csundry.get_variable('libcsundry_dep') ++dep_cdvar = dependency('libcdvar', version: '>=1', fallback: [ 'c-dvar', 'libcdvar_dep' ]) ++dep_clist = dependency('libclist', version: '>=3', fallback: [ 'c-list', 'libclist_dep' ]) ++dep_crbtree = dependency('libcrbtree', version: '>=3', fallback: [ 'c-rbtree', 'libcrbtree_dep' ]) ++dep_csundry = dependency('libcsundry', version: '>=1', fallback: [ 'c-sundry', 'libcsundry_dep' ]) + dep_math = cc.find_library('m') + dep_thread = dependency('threads') + dep_expat = dependency('expat') diff --git a/v4.tar.gz b/v4.tar.gz new file mode 100644 index 0000000..cd83838 --- /dev/null +++ b/v4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:165fab697e0f9ef66588688758edb601c89b65ee3240d462cc278f0755c6e122 +size 148231