2 # - postgres deps and headers not working. (i failed to solve it)
3 # - URL inexistent, http://sourceforge.net/projects/ddt/
4 Summary: Dynamic DNS Tools server
5 Summary(pl): Serwer dynamicznego DNS-u
10 Group: Networking/Daemons
11 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
12 # Source0-md5: 30bb784bde3eef1e1a6eb61ab77f4b90
13 Source1: %{name}-client.init
14 Source2: %{name}-server.init
15 Patch0: %{name}-am_ac.patch
16 Patch1: %{name}-cgi-to-cgic.patch
17 Patch2: %{name}-bind-includes-hack.patch
18 Patch3: %{name}-nobody.patch
19 Patch4: %{name}-postgresql.patch
20 URL: http://www.ddts.org/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: bind-devel >= 9.2.1-10
24 BuildRequires: cgilibc-devel
25 BuildRequires: fhs-compliance
26 BuildRequires: libgcrypt-devel
27 BuildRequires: macrosystem-devel
28 BuildRequires: openssl-devel >= 0.9.7d
30 BuildRequires: libpqxx-devel
31 BuildRequires: regexx-devel
32 BuildRequires: sgml-tools
34 Requires(post,preun): /sbin/chkconfig
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 DDT stands for Dynamic DNS Tools. The goal of the project is to
39 provide an open and free (in the GPL-sense) set of tools that will
40 permit the deployment of secure and reliable dynamic DNS services.
43 DDT oznacza Dynamiczne Narzêdzia DNS-u. Celem projektu jest
44 dostarczenie otwartego i wolnego (w sensie GPL) zestawu narzêdzi
45 pozwalaj±cych na stworzenie bezpiecznego i niezawodnego systemu
49 Summary: Dynamic DNS Tools client
50 Summary(pl): Klient dynamicznego DNS-u
51 Group: Applications/Networking
53 Requires(post,preun): /sbin/chkconfig
56 Dynamic DNS Tools client.
58 %description clients -l pl
59 Klient dynamicznego DNS-u.
62 Summary: CGI scripts for Dynamic DNS Tools server
63 Summary(pl): Skrypty CGI do serwera dynamicznego DNS-u
64 Group: Applications/Networking
68 CGI scripts for Dynamic DNS Tools server.
70 %description cgi -l pl
71 Skrypty CGI do serwera dynamicznego DNS-u.
86 CPPFLAGS="-I%{_includedir}/cgilibc -I%{_includedir}/postgresql/server"; export CPPFLAGS
91 --with-pgsql-incdir=%{_includedir} \
92 --with-pgsql-libdir=%{_libdir}
94 echo "all install:" > docs/Makefile
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
101 $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} \
102 $RPM_BUILD_ROOT{/etc/logrotate.d,/var/{lib/ddt-client,run/ddt}} \
103 $RPM_BUILD_ROOT/srv/httpd/{cgi-bin,html/%{name}}
106 DESTDIR=$RPM_BUILD_ROOT
108 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
109 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
110 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
111 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
113 install admin/templates/* $RPM_BUILD_ROOT/srv/httpd/html/%{name}
114 install admin/*.{conf,cgi} $RPM_BUILD_ROOT/srv/httpd/cgi-bin
117 rm -rf $RPM_BUILD_ROOT
120 /sbin/chkconfig --add %{name}-server
121 if [ -f /var/lock/subsys/%{name}-server ]; then
122 /etc/rc.d/init.d/%{name}-server restart >&2
124 echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
128 if [ "$1" = "0" ]; then
129 if [ -f /var/lock/subsys/%{name}-server ]; then
130 /etc/rc.d/init.d/%{name}-server stop >&2
132 /sbin/chkconfig --del %{name}-server
136 /sbin/chkconfig --add %{name}-client
137 if [ -f /var/lock/subsys/%{name}-client ]; then
138 /etc/rc.d/init.d/%{name}-client restart >&2
140 echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
144 if [ "$1" = "0" ]; then
145 if [ -f /var/lock/subsys/%{name}-client ]; then
146 /etc/rc.d/init.d/%{name}-client stop >&2
148 /sbin/chkconfig --del %{name}-client
152 %defattr(644,root,root,755)
153 %doc AUTHORS BUGS NEWS README THANKS TODO
154 %doc docs/*.sgml docs/include/{named.conf,zonedb}
156 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
157 %attr(755,root,root) %{_sbindir}/ddtd
158 %{_mandir}/man8/ddtd.8*
159 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtd.conf
160 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
161 %attr(644,root,root) %dir /var/lib/ddt-client
162 %attr(644,root,root) %dir /var/run/ddt
165 %defattr(644,root,root,755)
167 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
168 %attr(755,root,root) %{_sbindir}/ddtc
169 %attr(755,root,root) %{_sbindir}/ddtcd
170 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ddtcd.conf
171 %{_mandir}/man8/ddtc.8*
172 %{_mandir}/man8/ddtcd.8*
173 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
176 %defattr(644,root,root,755)
177 %attr(755,root,root) /srv/httpd/cgi-bin/*.cgi
178 %attr(644,root,root) /srv/httpd/cgi-bin/*.conf
179 %attr(755,root,root) /srv/httpd/html/%{name}