1 Summary: Dynamic DNS Tools Server
2 Summary(pl): Serwer dynamicznego DNSu
7 Group: Networking/Daemons
8 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9 # Source0-md5: 30bb784bde3eef1e1a6eb61ab77f4b90
10 Patch0: %{name}-am_ac.patch
11 Patch1: %{name}-cgi-to-cgic.patch
12 Patch2: %{name}-bind-includes-hack.patch
13 Patch3: %{name}-nobody.patch
14 Patch4: %{name}-postgresql.patch
15 URL: http://www.ddts.org/
16 Source1: %{name}-client.init
17 Source2: %{name}-server.init
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: bind-devel >= 9.2.1-10
21 BuildRequires: cgilibc-devel
22 BuildRequires: openssl-devel >= 0.9.7
23 BuildRequires: postgresql-c++-devel
24 BuildRequires: libgcrypt-devel
25 BuildRequires: regexx-devel
26 BuildRequires: macrosystem-devel
28 BuildRequires: sgml-tools
30 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 DDT stands for Dynamic Dns Tools. The goal of the project is to
34 provide an open and free (in the GPL-sense) set of tools that will
35 permit the deployment of secure and reliable dynamic DNS services.
38 DDT oznacza Dynamiczne Narzêdzia DNS. Celem projektu jest dostarczenie
39 otwartego i wolnego (w sensie GPL) zestawu narzêdzi pozwalaj±cych na
40 stworzenie bezpiecznego i niezawodnego systemu dynamicznego DNS.
43 Summary: Dynamic DNS Tools Client
44 Summary(pl): Klient Dynamicznego DNSu
45 Group: Applications/Networking
48 Dynamic DNS Tools Client.
50 %description clients -l pl
51 Klient Dynamicznego DNSu.
54 Summary: CGI scripts for Dynamic DNS Tools Server
55 Summary(pl): Skrypty CGI do Serwera Dynamicznego DNSu
56 Group: Applications/Networking
60 CGI scripts for Dynamic DNS Tools Server.
62 %description cgi -l pl
63 Skrypty CGI do Serwera Dynamicznego DNSu.
78 CPPFLAGS="-I%{_includedir}/cgilibc -I%{_includedir}/postgresql/server"; export CPPFLAGS
83 --with-pgsql-incdir=%{_includedir} \
84 --with-pgsql-libdir=%{_libdir}
86 echo "all install:" > docs/Makefile
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
93 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
94 install -d $RPM_BUILD_ROOT/etc/logrotate.d
95 install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt}
96 install -d $RPM_BUILD_ROOT/home/services/httpd/{cgi-bin,html/%{name}}
99 DESTDIR=$RPM_BUILD_ROOT
101 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
102 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
103 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
104 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
106 install admin/templates/* $RPM_BUILD_ROOT/home/services/httpd/html/%{name}
107 install admin/*.{conf,cgi} $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
110 rm -rf $RPM_BUILD_ROOT
113 /sbin/chkconfig --add %{name}-server
114 if [ -f /var/lock/subsys/%{name}-server ]; then
115 /etc/rc.d/init.d/%{name}-server restart >&2
117 echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
121 if [ "$1" = "0" ]; then
122 if [ -f /var/lock/subsys/%{name}-server ]; then
123 /etc/rc.d/init.d/%{name}-server stop >&2
125 /sbin/chkconfig --del %{name}-server
129 /sbin/chkconfig --add %{name}-client
130 if [ -f /var/lock/subsys/%{name}-client ]; then
131 /etc/rc.d/init.d/%{name}-client restart >&2
133 echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
137 if [ "$1" = "0" ]; then
138 if [ -f /var/lock/subsys/%{name}-client ]; then
139 /etc/rc.d/init.d/%{name}-client stop >&2
141 /sbin/chkconfig --del %{name}-client
145 %defattr(644,root,root,755)
146 %doc AUTHORS BUGS NEWS README THANKS TODO
147 %doc docs/*.sgml docs/include/{named.conf,zonedb}
149 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
150 %attr(755,root,root) %{_sbindir}/ddtd
151 %{_mandir}/man8/ddtd.8*
152 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtd.conf
153 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
154 %attr(644,root,root) %dir /var/lib/ddt-client
155 %attr(644,root,root) %dir /var/run/ddt
158 %defattr(644,root,root,755)
160 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
161 %attr(755,root,root) %{_sbindir}/ddtc
162 %attr(755,root,root) %{_sbindir}/ddtcd
163 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtcd.conf
164 %{_mandir}/man8/ddtc.8*
165 %{_mandir}/man8/ddtcd.8*
166 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
169 %defattr(644,root,root,755)
170 %attr(755,root,root) /home/services/httpd/cgi-bin/*.cgi
171 %attr(644,root,root) /home/services/httpd/cgi-bin/*.conf
172 %attr(755,root,root) /home/services/httpd/html/%{name}