2 # - postgres deps and headers not working. (i failed to solve it)
3 Summary: Dynamic DNS Tools server
4 Summary(pl.UTF-8): Serwer dynamicznego DNS-u
9 Group: Networking/Daemons
10 Source0: http://dl.sourceforge.net/ddt/%{name}-%{version}.tar.gz
11 # Source0-md5: 30bb784bde3eef1e1a6eb61ab77f4b90
12 Source1: %{name}-client.init
13 Source2: %{name}-server.init
14 Patch0: %{name}-am_ac.patch
15 Patch1: %{name}-cgi-to-cgic.patch
16 Patch2: %{name}-bind-includes-hack.patch
17 Patch3: %{name}-nobody.patch
18 Patch4: %{name}-postgresql.patch
19 URL: http://sourceforge.net/projects/ddt/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: bind-devel >= 9.2.1-10
23 BuildRequires: cgilibc-devel
24 BuildRequires: fhs-compliance
25 BuildRequires: libgcrypt-devel
26 BuildRequires: libpqxx-devel
27 BuildRequires: macrosystem-devel
28 BuildRequires: openssl-devel >= 0.9.7d
30 BuildRequires: regexx-devel
31 BuildRequires: sgml-tools
32 Requires(post,preun): /sbin/chkconfig
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 DDT stands for Dynamic DNS Tools. The goal of the project is to
38 provide an open and free (in the GPL-sense) set of tools that will
39 permit the deployment of secure and reliable dynamic DNS services.
41 %description -l pl.UTF-8
42 DDT oznacza Dynamiczne Narzędzia DNS-u. Celem projektu jest
43 dostarczenie otwartego i wolnego (w sensie GPL) zestawu narzędzi
44 pozwalających na stworzenie bezpiecznego i niezawodnego systemu
48 Summary: Dynamic DNS Tools client
49 Summary(pl.UTF-8): Klient dynamicznego DNS-u
50 Group: Applications/Networking
51 Requires(post,preun): /sbin/chkconfig
55 Dynamic DNS Tools client.
57 %description clients -l pl.UTF-8
58 Klient dynamicznego DNS-u.
61 Summary: CGI scripts for Dynamic DNS Tools server
62 Summary(pl.UTF-8): Skrypty CGI do serwera dynamicznego DNS-u
63 Group: Applications/Networking
67 CGI scripts for Dynamic DNS Tools server.
69 %description cgi -l pl.UTF-8
70 Skrypty CGI do serwera dynamicznego DNS-u.
84 CPPFLAGS="-I%{_includedir}/cgilibc -I%{_includedir}/postgresql/server"; export CPPFLAGS
89 --with-pgsql-incdir=%{_includedir} \
90 --with-pgsql-libdir=%{_libdir}
92 echo "all install:" > docs/Makefile
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
99 $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} \
100 $RPM_BUILD_ROOT{/etc/logrotate.d,/var/{lib/ddt-client,run/ddt}} \
101 $RPM_BUILD_ROOT/srv/httpd/{cgi-bin,html/%{name}}
104 DESTDIR=$RPM_BUILD_ROOT
106 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
107 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
108 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
109 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
111 install admin/templates/* $RPM_BUILD_ROOT/srv/httpd/html/%{name}
112 install admin/*.{conf,cgi} $RPM_BUILD_ROOT/srv/httpd/cgi-bin
115 rm -rf $RPM_BUILD_ROOT
118 /sbin/chkconfig --add %{name}-server
119 if [ -f /var/lock/subsys/%{name}-server ]; then
120 /etc/rc.d/init.d/%{name}-server restart >&2
122 echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
126 if [ "$1" = "0" ]; then
127 if [ -f /var/lock/subsys/%{name}-server ]; then
128 /etc/rc.d/init.d/%{name}-server stop >&2
130 /sbin/chkconfig --del %{name}-server
134 /sbin/chkconfig --add %{name}-client
135 if [ -f /var/lock/subsys/%{name}-client ]; then
136 /etc/rc.d/init.d/%{name}-client restart >&2
138 echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
142 if [ "$1" = "0" ]; then
143 if [ -f /var/lock/subsys/%{name}-client ]; then
144 /etc/rc.d/init.d/%{name}-client stop >&2
146 /sbin/chkconfig --del %{name}-client
150 %defattr(644,root,root,755)
151 %doc AUTHORS BUGS NEWS README THANKS TODO
152 %doc docs/*.sgml docs/include/{named.conf,zonedb}
154 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
155 %attr(755,root,root) %{_sbindir}/ddtd
156 %{_mandir}/man8/ddtd.8*
157 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ddtd.conf
158 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-server
159 %dir /var/lib/ddt-client
163 %defattr(644,root,root,755)
165 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
166 %attr(755,root,root) %{_sbindir}/ddtc
167 %attr(755,root,root) %{_sbindir}/ddtcd
168 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ddtcd.conf
169 %{_mandir}/man8/ddtc.8*
170 %{_mandir}/man8/ddtcd.8*
171 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}-client
174 %defattr(644,root,root,755)
175 %attr(755,root,root) /srv/httpd/cgi-bin/*.cgi
176 /srv/httpd/cgi-bin/*.conf
177 %attr(755,root,root) /srv/httpd/html/%{name}