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: fhs-compliance
23 BuildRequires: libgcrypt-devel
24 BuildRequires: macrosystem-devel
25 BuildRequires: openssl-devel >= 0.9.7d
27 BuildRequires: postgresql-c++-devel
28 BuildRequires: regexx-devel
29 BuildRequires: sgml-tools
31 Requires(post,preun): /sbin/chkconfig
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 DDT stands for Dynamic DNS Tools. The goal of the project is to
36 provide an open and free (in the GPL-sense) set of tools that will
37 permit the deployment of secure and reliable dynamic DNS services.
40 DDT oznacza Dynamiczne Narzêdzia DNS-u. Celem projektu jest
41 dostarczenie otwartego i wolnego (w sensie GPL) zestawu narzêdzi
42 pozwalaj±cych na stworzenie bezpiecznego i niezawodnego systemu
46 Summary: Dynamic DNS Tools client
47 Summary(pl): Klient dynamicznego DNS-u
48 Group: Applications/Networking
50 Requires(post,preun): /sbin/chkconfig
53 Dynamic DNS Tools client.
55 %description clients -l pl
56 Klient dynamicznego DNS-u.
59 Summary: CGI scripts for Dynamic DNS Tools server
60 Summary(pl): Skrypty CGI do serwera dynamicznego DNS-u
61 Group: Applications/Networking
65 CGI scripts for Dynamic DNS Tools server.
67 %description cgi -l pl
68 Skrypty CGI do serwera dynamicznego DNS-u.
83 CPPFLAGS="-I%{_includedir}/cgilibc -I%{_includedir}/postgresql/server"; export CPPFLAGS
88 --with-pgsql-incdir=%{_includedir} \
89 --with-pgsql-libdir=%{_libdir}
91 echo "all install:" > docs/Makefile
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
98 $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} \
99 $RPM_BUILD_ROOT{/etc/logrotate.d,/var/{lib/ddt-client,run/ddt}} \
100 $RPM_BUILD_ROOT/srv/httpd/{cgi-bin,html/%{name}}
103 DESTDIR=$RPM_BUILD_ROOT
105 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
106 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
107 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
108 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
110 install admin/templates/* $RPM_BUILD_ROOT/srv/httpd/html/%{name}
111 install admin/*.{conf,cgi} $RPM_BUILD_ROOT/srv/httpd/cgi-bin
114 rm -rf $RPM_BUILD_ROOT
117 /sbin/chkconfig --add %{name}-server
118 if [ -f /var/lock/subsys/%{name}-server ]; then
119 /etc/rc.d/init.d/%{name}-server restart >&2
121 echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
125 if [ "$1" = "0" ]; then
126 if [ -f /var/lock/subsys/%{name}-server ]; then
127 /etc/rc.d/init.d/%{name}-server stop >&2
129 /sbin/chkconfig --del %{name}-server
133 /sbin/chkconfig --add %{name}-client
134 if [ -f /var/lock/subsys/%{name}-client ]; then
135 /etc/rc.d/init.d/%{name}-client restart >&2
137 echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
141 if [ "$1" = "0" ]; then
142 if [ -f /var/lock/subsys/%{name}-client ]; then
143 /etc/rc.d/init.d/%{name}-client stop >&2
145 /sbin/chkconfig --del %{name}-client
149 %defattr(644,root,root,755)
150 %doc AUTHORS BUGS NEWS README THANKS TODO
151 %doc docs/*.sgml docs/include/{named.conf,zonedb}
153 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
154 %attr(755,root,root) %{_sbindir}/ddtd
155 %{_mandir}/man8/ddtd.8*
156 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtd.conf
157 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
158 %attr(644,root,root) %dir /var/lib/ddt-client
159 %attr(644,root,root) %dir /var/run/ddt
162 %defattr(644,root,root,755)
164 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
165 %attr(755,root,root) %{_sbindir}/ddtc
166 %attr(755,root,root) %{_sbindir}/ddtcd
167 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtcd.conf
168 %{_mandir}/man8/ddtc.8*
169 %{_mandir}/man8/ddtcd.8*
170 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
173 %defattr(644,root,root,755)
174 %attr(755,root,root) /srv/httpd/cgi-bin/*.cgi
175 %attr(644,root,root) /srv/httpd/cgi-bin/*.conf
176 %attr(755,root,root) /srv/httpd/html/%{name}