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