1 Summary: Dynamic DNS Tools Server
2 Summary(pl): Serwer dynamicznego DNSu
7 Group: Networking/Daemons
8 Source0: http://download.sourceforge.net/ddt/%{name}-%{version}.tar.gz
9 Patch0: %{name}-am_ac.patch
10 Patch1: %{name}-cgi-to-cgic.patch
11 Patch2: %{name}-bind-includes-hack.patch
12 URL: http://www.ddts.org/
13 Source1: %{name}-client.init
14 Source2: %{name}-server.init
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: bind-devel >= 9.2.1-10
18 BuildRequires: cgilibc-devel
19 BuildRequires: openssl-devel >= 0.9.7
20 BuildRequires: postgresql-c++-devel
21 BuildRequires: libgcrypt-devel
22 BuildRequires: regexx-devel
23 BuildRequires: macrosystem-devel
25 BuildRequires: sgml-tools
27 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 DDT stands for Dynamic Dns Tools. The goal of the project is to
31 provide an open and free (in the GPL-sense) set of tools that will
32 permit the deployment of secure and reliable dynamic DNS services.
35 DDT oznacza Dynamiczne Narzêdzia DNS. Celem projektu jest dostarczenie
36 otwartego i wolnego (w sensie GPL) zestawu narzêdzi pozwalaj±cych na
37 stworzenie bezpiecznego i niezawodnego systemu dynamicznego DNS.
40 Summary: Dynamic DNS Tools Client
41 Summary(pl): Klient Dynamicznego DNSu
42 Group: Applications/Networking
45 Dynamic DNS Tools Client.
47 %description clients -l pl
48 Klient Dynamicznego DNSu.
51 Summary: CGI scripts for Dynamic DNS Tools Server
52 Summary(pl): Skrypty CGI do Serwera Dynamicznego DNSu
53 Group: Applications/Networking
57 CGI scripts for Dynamic DNS Tools Server.
59 %description cgi -l pl
60 Skrypty CGI do Serwera Dynamicznego DNSu.
73 CPPFLAGS="-I%{_includedir}/cgilibc"; export CPPFLAGS
78 --with-pgsql-incdir=%{_includedir} \
79 --with-pgsql-libdir=%{_libdir}
81 echo "all install:" > docs/Makefile
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
88 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
89 install -d $RPM_BUILD_ROOT/etc/logrotate.d
90 install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt}
91 install -d $RPM_BUILD_ROOT/home/services/httpd/{cgi-bin,html/%{name}}
94 DESTDIR=$RPM_BUILD_ROOT
96 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
97 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
98 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
99 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
101 install admin/templates/* $RPM_BUILD_ROOT/home/services/httpd/html/%{name}
102 install admin/*.{conf,cgi} $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
105 rm -rf $RPM_BUILD_ROOT
108 /sbin/chkconfig --add %{name}-server
109 if [ -f /var/lock/subsys/%{name}-server ]; then
110 /etc/rc.d/init.d/%{name}-server restart >&2
112 echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
116 if [ "$1" = "0" ]; then
117 if [ -f /var/lock/subsys/%{name}-server ]; then
118 /etc/rc.d/init.d/%{name}-server stop >&2
120 /sbin/chkconfig --del %{name}-server
124 /sbin/chkconfig --add %{name}-client
125 if [ -f /var/lock/subsys/%{name}-client ]; then
126 /etc/rc.d/init.d/%{name}-client restart >&2
128 echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
132 if [ "$1" = "0" ]; then
133 if [ -f /var/lock/subsys/%{name}-client ]; then
134 /etc/rc.d/init.d/%{name}-client stop >&2
136 /sbin/chkconfig --del %{name}-client
140 %defattr(644,root,root,755)
141 %doc AUTHORS BUGS NEWS README THANKS TODO
142 %doc docs/*.sgml docs/include/{named.conf,zonedb}
144 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
145 %attr(755,root,root) %{_sbindir}/ddtd
146 %{_mandir}/man8/ddtd.8*
147 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtd.conf
148 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
149 %attr(644,root,root) %dir /var/lib/ddt-client
150 %attr(644,root,root) %dir /var/run/ddt
153 %defattr(644,root,root,755)
155 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
156 %attr(755,root,root) %{_sbindir}/ddtc
157 %attr(755,root,root) %{_sbindir}/ddtcd
158 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtcd.conf
159 %{_mandir}/man8/ddtc.8*
160 %{_mandir}/man8/ddtcd.8*
161 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
164 %defattr(644,root,root,755)
165 %attr(755,root,root) /home/services/httpd/cgi-bin/*.cgi
166 %attr(644,root,root) /home/services/httpd/cgi-bin/*.conf
167 %attr(755,root,root) /home/services/httpd/html/%{name}