SPECS: autodns.spec - 0.0.8 - not tested yet

blues blues at pld-linux.org
Thu Oct 6 21:12:14 CEST 2005


Author: blues                        Date: Thu Oct  6 19:12:14 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- 0.0.8 - not tested yet

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

---- Diffs:

================================================================
Index: SPECS/autodns.spec
diff -u SPECS/autodns.spec:1.8 SPECS/autodns.spec:1.9
--- SPECS/autodns.spec:1.8	Sun Feb 13 02:03:02 2005
+++ SPECS/autodns.spec	Thu Oct  6 21:12:09 2005
@@ -5,12 +5,12 @@
 Summary:	autodns - configuration of secondary DNS via email
 Summary(pl):	autodns - konfiguracja secondary DNS poprzez e-mail
 Name:		autodns
-Version:	0.0.6
-Release:	1.3
+Version:	0.0.8
+Release:	0.9
 License:	GPL
 Group:		Applications/Networking
 Source0:	http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz
-# Source0-md5:  03c6a8a4d6447b99ed18d40c627733d3
+# Source0-md5:	2e86ed357f6ef6bf82be1e024d7a8f38
 Source1:	%{name}.conf
 Patch0:		%{name}-config.patch
 URL:		http://www.earth.li/projectpurple/progs/autodns.html
@@ -39,15 +39,22 @@
 install autodns.pl contrib/add-dns.pl $RPM_BUILD_ROOT%{_bindir}
 install autodns.users $RPM_BUILD_ROOT/etc/%{name}
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/%{name}.conf
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerpostun -- autodns < 0.0.8
+echo "Upgrading from version < 0.0.8"
+if [ -e /etc/autodns.conf.rpmsave ]; then
+        cp /etc/autodns/autodns.conf /etc/autodns/autodns.conf.rpmnew
+        cp /etc/autodns.conf.rpmsave /etc/autodns/autodns.conf
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc ACKNOWLEDGEMENTS HISTORY README TODO
-%config(noreplace) %verify(not size mtime md5) /etc/%{name}.conf
+%config(noreplace) %verify(not size mtime md5) /etc/%{name}/%{name}.conf
 %attr(751,root,named) %dir /etc/%{name}
 %attr(640,root,named) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/autodns.users
 %attr(755,root,root) %{_bindir}/*
@@ -59,6 +66,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2005/10/06 19:12:09  blues
+- 0.0.8 - not tested yet
+
 Revision 1.8  2005/02/13 01:03:02  blues
 - generated files to /var
 
================================================================

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




More information about the pld-cvs-commit mailing list