Author: megabajt Date: Sun May 13 18:09:19 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - init script is done - don't restart ipw3945d after upgrade - release 2
---- Files affected: SPECS: ipw3945d.spec (1.9 -> 1.10) ---- Diffs: ================================================================ Index: SPECS/ipw3945d.spec diff -u SPECS/ipw3945d.spec:1.9 SPECS/ipw3945d.spec:1.10 --- SPECS/ipw3945d.spec:1.9 Mon Apr 30 16:56:12 2007 +++ SPECS/ipw3945d.spec Sun May 13 20:09:14 2007 @@ -1,17 +1,14 @@ # $Revision$, $Date$ -#TODO -# - rc.init script -# Summary: The regulatory daemon for controlling and configuring ipw3945 cards Summary(pl.UTF-8): Demon do kontrolowania i konfigurowania kart ipw3945 Name: ipw3945d Version: 1.7.22 -Release: 1 +Release: 2 License: Intel Limited patents license -Group: Applications/demon +Group: Daemons Source0: http://bughost.org/ipw3945/daemon/%{name}-%{version}.tgz # Source0-md5: 097888f5be05eb2b9b87dcdbeeb948ce -#Source1: %{name}-rc.init +Source1: %{name}.init URL: http://bughost.org/ipw3945/ BuildRequires: rpmbuild(macros) >= 1.228 Requires(post,preun): /sbin/chkconfig @@ -24,7 +21,7 @@ aspects of the hardware required to operate the device within compliance of various regulatory agencies. This includes controlling which channels are allowed to do active/passive scanning, transmit -power levels, which channels are allowed to be transmitted on, and +power levels, which channels are allowed to be transmitted on, and support for IEEE 802.11h (DFS and TPC). %description -l pl.UTF-8 @@ -39,7 +36,7 @@ %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{/sbin,/etc/rc.d/init.d} +install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/rc.d/init.d} %ifarch %{ix86} install x86/%{name} $RPM_BUILD_ROOT/sbin @@ -48,16 +45,20 @@ install x86_64/%{name} $RPM_BUILD_ROOT/sbin %endif -#install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name} %clean rm -rf $RPM_BUILD_ROOT -%post +%post /sbin/chkconfig --add %{name} -%service %{name} restart +if [ -f /var/lock/subsys/ipw3945d ]; then + echo "Run \"/sbin/service ipw3945d restart\" to restart ipw3945d." >&2 +else + echo "Run \"/sbin/service ipw3945d start\" to start ipw3945d." >&2 +fi -%preun +%preun if [ "$1" = "0" ]; then %service -q %{name} stop /sbin/chkconfig --del %{name} @@ -66,9 +67,8 @@ %files %defattr(644,root,root,755) %doc LICENSE.ipw3945d README.ipw3945d -%attr(755,root,root) /sbin/* -#%%attr(754,root,root) /etc/rc.d/init.d/%{name} -#%%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} +%attr(755,root,root) /sbin/ipw3945d +%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/%{name} %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -76,6 +76,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.10 2007/05/13 18:09:14 megabajt +- init script is done +- don't restart ipw3945d after upgrade +- release 2 + Revision 1.9 2007/04/30 14:56:12 shadzik - URL ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/ipw3945d.spec?r1=1.9&r2=1.10&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
