Author: djrzulf                      Date: Wed Feb 16 00:39:43 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Rel 3,
- added init script for Frame Relay.

---- Files affected:
SPECS:
   sethdlc.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/sethdlc.spec
diff -u SPECS/sethdlc.spec:1.8 SPECS/sethdlc.spec:1.9
--- SPECS/sethdlc.spec:1.8      Mon Jan 10 08:42:10 2005
+++ SPECS/sethdlc.spec  Wed Feb 16 01:39:38 2005
@@ -11,11 +11,12 @@
 Summary(pl):   Narzędzie do konfiguracji kart synchronicznych
 Name:          sethdlc
 Version:       1.1%{?_with_tahoe:6t}%{!?_with_tahoe:5}
-Release:       2
+Release:       3
 License:       GPL
 Group:         Networking/Utilities
 Source0:       http://hq.pm.waw.pl/hdlc/%{name}-%{_ver}.tar.gz
 # Source0-md5: 3bc714ee98e6215e8560598ff1e1eb8f
+Source1:       %{name}.init
 Patch0:                %{name}-tahoe.patch
 URL:           http://hq.pm.waw.pl/hdlc/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,23 +44,50 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/rc.d/init.d}
 
 install sethdlc $RPM_BUILD_ROOT%{_sbindir}
+%if %{with tahoe}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/sethdlc
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with tahoe}
+%post
+/sbin/chkconfig --add sethdlc
+if [ -r /var/lock/subsys/sethdlc ]; then
+        /etc/rc.d/init.d/sethdlc restart >&2
+else
+        echo "Run \"/etc/rc.d/init.d/sethdlc start\" to start TPNET Frame 
Relay."
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+        if [ -r /var/lock/subsys/sethdlc ]; then
+                /etc/rc.d/init.d/sethdlc stop >&2
+        fi
+        /sbin/chkconfig --del sethdlc
+fi
+%endif
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/sethdlc
-
+%if %{with tahoe}
+%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/sethdlc
+%endif
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2005/02/16 00:39:38  djrzulf
+- Rel 3,
+- added init script for Frame Relay.
+
 Revision 1.8  2005/01/10 07:42:10  djrzulf
 - fixed make,
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sethdlc.spec?r1=1.8&r2=1.9&f=u


_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to