Author: oget
Update of /cvs/free/rpms/rt2870/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv3036
Modified Files:
rt2870.spec
Added Files:
suspend.sh
Log Message:
* Tue Mar 10 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.4.0.0-3
- Add suspend script (RPMFusion BZ#199)
--- NEW FILE suspend.sh ---
#!/bin/bash
WLAN=$(cat /sys/class/rfkill/rfkill0/state)
if [ $WLAN -eq 0 ] ; then
service NetworkManager stop
sleep 1
modprobe pciehp pciehp_force=1
echo 1 > /sys/class/rfkill/rfkill0/state
sleep 1
modprobe rt2870sta
rmmod pciehp
service NetworkManager start
else
service NetworkManager stop
sleep 1
modprobe pciehp pciehp_force=1
ifconfig ra0 down
rmmod rt2870sta
sleep 1
echo 0 > /sys/class/rfkill/rfkill0/state
rmmod pciehp
service NetworkManager start
fi
Index: rt2870.spec
===================================================================
RCS file: /cvs/free/rpms/rt2870/F-9/rt2870.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- rt2870.spec 7 Oct 2008 08:55:26 -0000 1.3
+++ rt2870.spec 11 Mar 2009 02:37:03 -0000 1.4
@@ -2,13 +2,14 @@
Name: rt2870
Version: 1.4.0.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Common files for RaLink rt2870 kernel driver
Group: System Environment/Kernel
License: GPLv2+
URL:
http://www.ralinktech.com/ralink/Home/Support/Linux.html
Source0:
http://www.ralinktech.com.tw/data/drivers/%{SourceName}.tar.bz2
Source1:
http://www.ralinktech.com.tw/data/drivers/ReleaseNote-RT2870.txt
+Source2: suspend.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -33,7 +34,10 @@
%install
rm -rf $RPM_BUILD_ROOT
install -dm 755 $RPM_BUILD_ROOT/%{_sysconfdir}/Wireless/RT2870STA/
-install -p -m 0644 RT2870STA.dat $RPM_BUILD_ROOT/%{_sysconfdir}/Wireless/RT2870STA/
+install -pm 0644 RT2870STA.dat $RPM_BUILD_ROOT/%{_sysconfdir}/Wireless/RT2870STA/
+
+install -dm 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
+install -pm 0755 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -44,31 +48,35 @@
%dir %{_sysconfdir}/Wireless
%dir %{_sysconfdir}/Wireless/RT2870STA
%config(noreplace) %{_sysconfdir}/Wireless/RT2870STA/RT2870STA.dat
+%{_datadir}/%{name}
%changelog
-* Tue Oct 07 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT]com> - 1.4.0.0-2
+* Tue Mar 10 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.4.0.0-3
+- Add suspend script (RPMFusion BZ#199)
+
+* Tue Oct 07 2008 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.4.0.0-2
- Re-own %%{_sysconfdir}/Wireless/
-* Tue Oct 07 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT]com> - 1.4.0.0-1.1
+* Tue Oct 07 2008 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.4.0.0-1.1
- Install RT2870STA.dat at the "right" place
-* Sat Oct 04 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT]com> - 1.4.0.0-1
+* Sat Oct 04 2008 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.4.0.0-1
- Rebuild for 1.4.0.0
- Added iwpriv_usage.txt into package
* Sat Oct 04 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.3.1.0-4
- Various small adjustments
-* Sat Sep 27 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT]com> - 1.3.1.0-3
+* Sat Sep 27 2008 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.3.1.0-3
- Re-wrote the description, removed supported hardware info.
- Fixed the defattr.
- Added the /etc/Wireless/RT2870STA.dat file that comes with the source to the rpm.
- Rename SourceDir to SourceName
-* Thu Sep 22 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT]com> - 1.3.1.0-2
+* Thu Sep 22 2008 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.3.1.0-2
- Some cleanup in the SPEC file to match standards
- Fix rpmlint's encoding complaints with doc files
- License is GPLv2+
-* Thu Sep 20 2008 Orcan Ogetbil <orcanbahri[AT]yahoo[DOT]com> - 1.3.1.0-1
+* Thu Sep 20 2008 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 1.3.1.0-1
- Initial build.