]> git.pld-linux.org Git - packages/autodns.git/commitdiff
- added config patch and sample config file - moved config to separate
authorPaweł Gołaszewski <blues@pld-linux.org>
Sat, 12 Feb 2005 21:35:11 +0000 (21:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  configuration file (to make packaging meaning)

Changed files:
    autodns.spec -> 1.6

autodns.spec

index 52a6d9a032a4061884ff39d50379e6df1201ff77..8748b135287224a5b7e6f20d71093be8c58be799 100644 (file)
@@ -2,11 +2,13 @@ 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
+Release:       1.1
 License:       GPL
 Group:         Applications/Networking
 Source0:       http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz
 # Source0-md5:  03c6a8a4d6447b99ed18d40c627733d3
+Source1:       %{name}.conf
+Patch0:                %{name}-config.patch
 URL:           http://www.earth.li/projectpurple/progs/autodns.html
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,13 +25,16 @@ pracy powinien umo
 
 %prep
 %setup -q
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
+install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/%{name},/etc/%{name}}
 
 install autodns.pl contrib/add-dns.pl $RPM_BUILD_ROOT%{_bindir}
-install autodns.users $RPM_BUILD_ROOT%{_datadir}/%{name}
+install autodns.users $RPM_BUILD_ROOT/etc/%{name}
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/%{name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -37,5 +42,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc ACKNOWLEDGEMENTS HISTORY README TODO
+%config(noreplace) %verify(not size mtime md5) /etc/%{name}.conf
+%attr(751,root,named) %dir /etc/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/%{name}/autodns.users
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/%{name}
+%attr(751,root,named) %dir /var/lib/%{name}
This page took 0.062688 seconds and 4 git commands to generate.