commit 1ff91c693b8c40fa630d69779944944b1bd3098a8cd2653ce696ab8ac098cf8d Author: OBS User mrdocs Date: Thu Mar 8 16:12:03 2018 +0000 Accepting request 584206 from home:ndas:driverctl OBS-URL: https://build.opensuse.org/request/show/584206 OBS-URL: https://build.opensuse.org/package/show/network/driverctl?expand=0&rev=1 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/archive.tar.gz b/archive.tar.gz new file mode 100644 index 0000000..c62e889 --- /dev/null +++ b/archive.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5b63e3a8ec0dec8f6fd508d01d54dc50d521211841337c087a8ff1a92b99413 +size 15919 diff --git a/driverctl.changes b/driverctl.changes new file mode 100644 index 0000000..d5872c6 --- /dev/null +++ b/driverctl.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Mar 7 16:26:24 CET 2018 - ndas@suse.de + +- Initial package (version:0.95) + diff --git a/driverctl.spec b/driverctl.spec new file mode 100644 index 0000000..5943c59 --- /dev/null +++ b/driverctl.spec @@ -0,0 +1,77 @@ +# +# spec file for package driverctl +# +# Copyright (c) 2018 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/ +# + + +%global commit 3c668744f2242e453fdcd6dca36d3e1d82d0367a +Name: driverctl +Version: 0.95 +Release: 0 +Summary: Device driver control utility +License: LGPL-2.0-only +Group: System/Management +URL: https://gitlab.com/driverctl/driverctl +Source0: archive.tar.gz + +BuildRequires: systemd +Requires: coreutils +Requires: udev +BuildArch: noarch + +%description +driverctl is a tool for manipulating and inspecting the system +device driver choices. + +Devices are normally assigned to their sole designated kernel driver +by default. However in some situations it may be desireable to +override that default, for example to try an older driver to +work around a regression in a driver or to try an experimental alternative +driver. Another common use-case is pass-through drivers and driver +stubs to allow userspace to drive the device, such as in case of +virtualization. + +driverctl integrates with udev to support overriding +driver selection for both cold- and hotplugged devices from the +moment of discovery, but can also change already assigned drivers, +assuming they are not in use by the system. The driver overrides +created by driverctl are persistent across system reboots +by default. + +%prep +%setup -q -n %{name}-%{version}-%{commit} + +%build + +%install +%make_install + +%files +%license COPYING +%doc README TODO +%{_sbindir}/driverctl +%{_udevrulesdir}/*.rules +%{_udevrulesdir}/../vfio_name +%dir %{_sysconfdir}/driverctl.d +%{_datadir}/bash-completion/ +%{_mandir}/man8/driverctl.8* + +%post +%udev_rules_update + +%postun +%udev_rules_update + +%changelog