SPECS: noip.spec - added init script, - release 4, STBR
romke
romke at pld-linux.org
Mon Jun 20 15:41:08 CEST 2005
Author: romke Date: Mon Jun 20 13:41:08 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added init script,
- release 4, STBR
---- Files affected:
SPECS:
noip.spec (1.19 -> 1.20)
---- Diffs:
================================================================
Index: SPECS/noip.spec
diff -u SPECS/noip.spec:1.19 SPECS/noip.spec:1.20
--- SPECS/noip.spec:1.19 Thu Jan 6 20:14:58 2005
+++ SPECS/noip.spec Mon Jun 20 15:41:03 2005
@@ -1,18 +1,20 @@
# $Revision$, $Date$
-# TODO: - initscript or sth. else
Summary: noip - Linux client for the no-ip.com dynamic DNS service
Summary(pl): noip - linuksowy klient serwisu dynamicznego DNS no-ip.com
Name: noip
Version: 2.1.1
-Release: 3
+Release: 4
Epoch: 0
License: GPL
Group: Networking/Daemons
Source0: http://test.mmt.pl/pld/noip/%{name}-%{version}.tar.gz
# Source0-md5: 8eb89e31dd2c1fbbf91862efe67c99fd
+Source1: %{name}.init
Patch0: %{name}-Makefile.patch
Patch1: %{name}-config_location.patch
URL: http://www.no-ip.com/
+PreReq: rc-scripts
+Requires(post,preun): /sbin/chkconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -56,14 +58,33 @@
CONFDIR=%{_sysconfdir} \
PREFIX=%{_prefix} \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/noip
touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add noip
+if [ -f /var/lock/subsys/noip ]; then
+ /etc/rc.d/init.d/noip restart >&2
+else
+ echo "Run \"/etc/rc.d/init.d/noip start\" to start noip client daemon."
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/noip ]; then
+ /etc/rc.d/init.d/noip stop >&2
+ fi
+ /sbin/chkconfig --del noip
+fi
+
%files
%defattr(644,root,root,755)
%doc README.FIRST
+%attr(0754,root,root) /etc/rc.d/init.d/noip
%attr(4750,root,adm) %{_sbindir}/*
%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
@@ -73,6 +94,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.20 2005/06/20 13:41:03 romke
+- added init script,
+- release 4, STBR
+
Revision 1.19 2005/01/06 19:14:58 twittner
- s/CCFLAGS/CFLAGS/
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/noip.spec?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list