From 4dcea42899042fbee29c5041f7eb4cee1a519fa1d69faaff2e9a90b8da726124 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 15 Jan 2019 17:02:02 +0000 Subject: [PATCH] Accepting request 666303 from home:rfrohl:branches:hardware use upstream usbguard.service instead of hardcoded version (bsc#1120969) OBS-URL: https://build.opensuse.org/request/show/666303 OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=12 --- usbguard.changes | 5 +++++ usbguard.service | 11 ----------- usbguard.spec | 11 ++--------- 3 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 usbguard.service diff --git a/usbguard.changes b/usbguard.changes index d8ed716..8be8b71 100644 --- a/usbguard.changes +++ b/usbguard.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 15 16:28:33 UTC 2019 - Robert Frohl + +- use upstream usbguard.service instead of hardcoded version (bsc#1120969) + ------------------------------------------------------------------- Wed Nov 7 17:38:38 UTC 2018 - Jan Engelhardt diff --git a/usbguard.service b/usbguard.service deleted file mode 100644 index 5188a65..0000000 --- a/usbguard.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=USBGuard daemon -Wants=systemd-udevd.service local-fs.target - -[Service] -Type=simple -ExecStart=/usr/sbin/usbguard-daemon -k -c /etc/usbguard/usbguard-daemon.conf -Restart=on-failure - -[Install] -WantedBy=base.target diff --git a/usbguard.spec b/usbguard.spec index c83fc0a..838258a 100644 --- a/usbguard.spec +++ b/usbguard.spec @@ -1,7 +1,7 @@ # # spec file for package usbguard # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -33,8 +33,7 @@ Source0: https://github.com/USBGuard/usbguard/releases/download/usbguard- Source1: https://github.com/USBGuard/usbguard/releases/download/usbguard-%{version}/usbguard-%{version}.tar.gz.sig Source2: usbguard.keyring Source3: usbguard-daemon.conf -Source4: usbguard.service -Source5: usbguard-rpmlintrc +Source4: usbguard-rpmlintrc Patch0: usbguard-applet-qt_desktop_menu_categories.patch %{?systemd_requires} @@ -111,8 +110,6 @@ for interacting with the USBGuard daemon component. %prep %setup -q -n usbguard-%version %patch0 -p1 -# Remove bundled library sources before build -#rm -rf src/ThirdParty/{Catch,PEGTL} %build mkdir -p ./m4 @@ -141,10 +138,6 @@ ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rcusbguard mkdir -p %{buildroot}%{_sysconfdir}/usbguard install -p -m 600 %{SOURCE3} %{buildroot}%{_sysconfdir}/usbguard/usbguard-daemon.conf -# Install systemd unit -mkdir -p %{buildroot}%{_unitdir} -install -p -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/usbguard.service - # zsh completion, currently needs manual intervention mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/ install -p -m 644 scripts/usbguard-zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_usbguard