]> git.pld-linux.org Git - packages/ddt.git/blobdiff - ddt.spec
- massive attack: adding Source-md5
[packages/ddt.git] / ddt.spec
index 7adcaaf347144a6bb985a43e78580e1fa3d6a8c2..e6082b77f3caeddfedda63da66472b065c66acac 100644 (file)
--- a/ddt.spec
+++ b/ddt.spec
@@ -2,13 +2,16 @@ Summary:      Dynamic DNS Tools Server
 Summary(pl):   Serwer dynamicznego DNSu
 Name:          ddt
 Version:       0.5.9
-Release:       1
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://download.sourceforge.net/ddt/%{name}-%{version}.tar.gz
+# Source0-md5: 30bb784bde3eef1e1a6eb61ab77f4b90
 Patch0:                %{name}-am_ac.patch
 Patch1:                %{name}-cgi-to-cgic.patch
 Patch2:                %{name}-bind-includes-hack.patch
+Patch3:                %{name}-nobody.patch
+Patch4:                %{name}-postgresql.patch
 URL:           http://www.ddts.org/
 Source1:       %{name}-client.init
 Source2:       %{name}-server.init
@@ -47,18 +50,32 @@ Dynamic DNS Tools Client.
 %description clients -l pl
 Klient Dynamicznego DNSu.
 
+%package cgi
+Summary:        CGI scripts for Dynamic DNS Tools Server
+Summary(pl):    Skrypty CGI do Serwera Dynamicznego DNSu
+Group:          Applications/Networking
+Requires:      webserver
+
+%description cgi
+CGI scripts for Dynamic DNS Tools Server.
+
+%description cgi -l pl
+Skrypty CGI do Serwera Dynamicznego DNSu.
+
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
 rm -f missing
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-CPPFLAGS="-I%{_includedir}/cgilibc"; export CPPFLAGS
+CPPFLAGS="-I%{_includedir}/cgilibc -I%{_includedir}/postgresql/server"; export CPPFLAGS
 %configure \
        --enable-docs \
        --enable-server \
@@ -73,9 +90,10 @@ echo "all install:" > docs/Makefile
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
-install -d $RPM_BUILD_ROOT%{_sysconfdir},/etc/rc.d/init.d
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
 install -d $RPM_BUILD_ROOT/etc/logrotate.d
 install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt}
+install -d $RPM_BUILD_ROOT/home/services/httpd/{cgi-bin,html/%{name}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -85,6 +103,9 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
 
+install admin/templates/* $RPM_BUILD_ROOT/home/services/httpd/html/%{name}
+install admin/*.{conf,cgi} $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -104,7 +125,7 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del %{name}-server
 fi
 
-%post client
+%post clients
 /sbin/chkconfig --add %{name}-client
 if [ -f /var/lock/subsys/%{name}-client ]; then
         /etc/rc.d/init.d/%{name}-client restart >&2
@@ -112,7 +133,7 @@ else
         echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
 fi
 
-%preun client
+%preun clients
 if [ "$1" = "0" ]; then
         if [ -f /var/lock/subsys/%{name}-client ]; then
                 /etc/rc.d/init.d/%{name}-client stop >&2
@@ -123,22 +144,29 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS BUGS NEWS README THANKS TODO
-%doc docs/*.sgml
+%doc docs/*.sgml docs/include/{named.conf,zonedb}
+%doc server/*.sql
 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
 %attr(755,root,root) %{_sbindir}/ddtd
 %{_mandir}/man8/ddtd.8*
+%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtd.conf
 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
+%attr(644,root,root) %dir /var/lib/ddt-client
+%attr(644,root,root) %dir /var/run/ddt
 
-%files client
+%files clients
 %defattr(644,root,root,755)
 %doc docs/DDT*.sgml
 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
 %attr(755,root,root) %{_sbindir}/ddtc
 %attr(755,root,root) %{_sbindir}/ddtcd
-%config(noreplace) %{_sysconfdir}/ddtcd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtcd.conf
 %{_mandir}/man8/ddtc.8*
 %{_mandir}/man8/ddtcd.8*
 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
 
 %files cgi
 %defattr(644,root,root,755)
+%attr(755,root,root) /home/services/httpd/cgi-bin/*.cgi
+%attr(644,root,root) /home/services/httpd/cgi-bin/*.conf
+%attr(755,root,root) /home/services/httpd/html/%{name}
This page took 0.107067 seconds and 4 git commands to generate.