Accepting request 263517 from home:bmwiedemann

new package to address bnc#904025

OBS-URL: https://build.opensuse.org/request/show/263517
OBS-URL: https://build.opensuse.org/package/show/hardware/pullin-bcm43xx-firmware?expand=0&rev=1
This commit is contained in:
Andreas Jaeger 2014-12-02 11:13:08 +00:00 committed by Git OBS Bridge
commit 169f90bc1a
5 changed files with 88 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

View File

@ -0,0 +1,3 @@
#!/bin/sh
test -e /lib/firmware/b43/ucode11.fw && exit 0
exec /usr/sbin/install_bcm43xx_firmware

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sun Nov 30 12:50:10 UTC 2014 - bwiedemann@suse.com
- initial version to pull in broadcom firmware (bnc#904025)

View File

@ -0,0 +1,12 @@
[Unit]
Description=download broadcom firmware files needed for bcm43xx WLAN chips
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/install_bcm43xx_firmware_wrapper
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,45 @@
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pullin-bcm43xx-firmware
Version: 1.0
Release: 0
License: GPL-2.0
Summary: download broadcom firmware files
Group: Hardware/Wifi
Source0: pullin-bcm43xx-firmware.service
Source1: install_bcm43xx_firmware_wrapper
BuildRequires: pciutils
BuildRequires: systemd
Requires: b43-fwcutter
Requires: pciutils
Supplements: b43-fwcutter
BuildArch: noarch
Packager: Bernhard M. Wiedemann <dontwritehere@bmw.lsmod.de>
%description
download broadcom firmware files needed for bcm43xx WLAN chips
%prep
%build
%install
install -d %{buildroot}%{_prefix}/lib/systemd/system/
install -p -m 755 %{SOURCE0} %{buildroot}%{_prefix}/lib/systemd/system/
install -d %{buildroot}%{_sbindir}/
install -p -m 755 %{SOURCE1} %{buildroot}%{_sbindir}/
%post
if lspci -nn|grep -q -i broadcom ; then
systemctl enable %{name}.service
systemctl start %{name}.service
fi
%files
%defattr(-, root, root, 0755)
%{_sbindir}/install_bcm43xx_firmware_wrapper
%{_prefix}/lib/systemd/system/%{name}.service
%changelog