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 Patch3: %{name}-nobody.patch
13 URL: http://www.ddts.org/
14 Source1: %{name}-client.init
15 Source2: %{name}-server.init
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: bind-devel >= 9.2.1-10
19 BuildRequires: cgilibc-devel
20 BuildRequires: openssl-devel >= 0.9.7
21 BuildRequires: postgresql-c++-devel
22 BuildRequires: libgcrypt-devel
23 BuildRequires: regexx-devel
24 BuildRequires: macrosystem-devel
26 BuildRequires: sgml-tools
28 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 DDT stands for Dynamic Dns Tools. The goal of the project is to
32 provide an open and free (in the GPL-sense) set of tools that will
33 permit the deployment of secure and reliable dynamic DNS services.
36 DDT oznacza Dynamiczne Narzêdzia DNS. Celem projektu jest dostarczenie
37 otwartego i wolnego (w sensie GPL) zestawu narzêdzi pozwalaj±cych na
38 stworzenie bezpiecznego i niezawodnego systemu dynamicznego DNS.
41 Summary: Dynamic DNS Tools Client
42 Summary(pl): Klient Dynamicznego DNSu
43 Group: Applications/Networking
46 Dynamic DNS Tools Client.
48 %description clients -l pl
49 Klient Dynamicznego DNSu.
52 Summary: CGI scripts for Dynamic DNS Tools Server
53 Summary(pl): Skrypty CGI do Serwera Dynamicznego DNSu
54 Group: Applications/Networking
58 CGI scripts for Dynamic DNS Tools Server.
60 %description cgi -l pl
61 Skrypty CGI do Serwera Dynamicznego DNSu.
75 CPPFLAGS="-I%{_includedir}/cgilibc"; export CPPFLAGS
80 --with-pgsql-incdir=%{_includedir} \
81 --with-pgsql-libdir=%{_libdir}
83 echo "all install:" > docs/Makefile
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
90 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
91 install -d $RPM_BUILD_ROOT/etc/logrotate.d
92 install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt}
93 install -d $RPM_BUILD_ROOT/home/services/httpd/{cgi-bin,html/%{name}}
96 DESTDIR=$RPM_BUILD_ROOT
98 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
99 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
100 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
101 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
103 install admin/templates/* $RPM_BUILD_ROOT/home/services/httpd/html/%{name}
104 install admin/*.{conf,cgi} $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
107 rm -rf $RPM_BUILD_ROOT
110 /sbin/chkconfig --add %{name}-server
111 if [ -f /var/lock/subsys/%{name}-server ]; then
112 /etc/rc.d/init.d/%{name}-server restart >&2
114 echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
118 if [ "$1" = "0" ]; then
119 if [ -f /var/lock/subsys/%{name}-server ]; then
120 /etc/rc.d/init.d/%{name}-server stop >&2
122 /sbin/chkconfig --del %{name}-server
126 /sbin/chkconfig --add %{name}-client
127 if [ -f /var/lock/subsys/%{name}-client ]; then
128 /etc/rc.d/init.d/%{name}-client restart >&2
130 echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
134 if [ "$1" = "0" ]; then
135 if [ -f /var/lock/subsys/%{name}-client ]; then
136 /etc/rc.d/init.d/%{name}-client stop >&2
138 /sbin/chkconfig --del %{name}-client
142 %defattr(644,root,root,755)
143 %doc AUTHORS BUGS NEWS README THANKS TODO
144 %doc docs/*.sgml docs/include/{named.conf,zonedb}
146 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
147 %attr(755,root,root) %{_sbindir}/ddtd
148 %{_mandir}/man8/ddtd.8*
149 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtd.conf
150 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
151 %attr(644,root,root) %dir /var/lib/ddt-client
152 %attr(644,root,root) %dir /var/run/ddt
155 %defattr(644,root,root,755)
157 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
158 %attr(755,root,root) %{_sbindir}/ddtc
159 %attr(755,root,root) %{_sbindir}/ddtcd
160 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtcd.conf
161 %{_mandir}/man8/ddtc.8*
162 %{_mandir}/man8/ddtcd.8*
163 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
166 %defattr(644,root,root,755)
167 %attr(755,root,root) /home/services/httpd/cgi-bin/*.cgi
168 %attr(644,root,root) /home/services/httpd/cgi-bin/*.conf
169 %attr(755,root,root) /home/services/httpd/html/%{name}