Summary: Dynamic DNS Tools Server Summary(pl): Serwer dynamicznego DNSu Name: ddt Version: 0.5.9 Release: 1 License: GPL Group: Networking/Daemons Source0: http://download.sourceforge.net/ddt/%{name}-%{version}.tar.gz Patch0: %{name}-am_ac.patch Patch1: %{name}-cgi-to-cgic.patch Patch2: %{name}-bind-includes-hack.patch URL: http://www.ddts.org/ Source1: %{name}-client.init Source2: %{name}-server.init BuildRequires: autoconf BuildRequires: automake BuildRequires: bind-devel >= 9.2.1-10 BuildRequires: cgilibc-devel BuildRequires: openssl-devel >= 0.9.7 BuildRequires: postgresql-c++-devel BuildRequires: libgcrypt-devel BuildRequires: regexx-devel BuildRequires: macrosystem-devel BuildRequires: opt BuildRequires: sgml-tools Prereq: chkconfig Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description DDT stands for Dynamic Dns Tools. The goal of the project is to provide an open and free (in the GPL-sense) set of tools that will permit the deployment of secure and reliable dynamic DNS services. %description -l pl DDT oznacza Dynamiczne Narzędzia DNS. Celem projektu jest dostarczenie otwartego i wolnego (w sensie GPL) zestawu narzędzi pozwalających na stworzenie bezpiecznego i niezawodnego systemu dynamicznego DNS. %package clients Summary: Dynamic DNS Tools Client Summary(pl): Klient Dynamicznego DNSu Group: Applications/Networking %description clients Dynamic DNS Tools Client. %description clients -l pl Klient Dynamicznego DNSu. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build rm -f missing %{__aclocal} %{__autoconf} %{__automake} CPPFLAGS="-I%{_includedir}/cgilibc"; export CPPFLAGS %configure \ --enable-docs \ --enable-server \ --enable-admin \ --with-pgsql-incdir=%{_includedir} \ --with-pgsql-libdir=%{_libdir} # fixme echo "all install:" > docs/Makefile %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} install -d $RPM_BUILD_ROOT%{_sysconfdir},/etc/rc.d/init.d install -d $RPM_BUILD_ROOT/etc/logrotate.d install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add %{name}-server if [ -f /var/lock/subsys/%{name}-server ]; then /etc/rc.d/init.d/%{name}-server restart >&2 else echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon." fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/%{name}-server ]; then /etc/rc.d/init.d/%{name}-server stop >&2 fi /sbin/chkconfig --del %{name}-server fi %post client /sbin/chkconfig --add %{name}-client if [ -f /var/lock/subsys/%{name}-client ]; then /etc/rc.d/init.d/%{name}-client restart >&2 else echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon." fi %preun client if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/%{name}-client ]; then /etc/rc.d/init.d/%{name}-client stop >&2 fi /sbin/chkconfig --del %{name}-client fi %files %defattr(644,root,root,755) %doc AUTHORS BUGS NEWS README THANKS TODO %doc docs/*.sgml %attr(754,root,root) /etc/rc.d/init.d/%{name}-server %attr(755,root,root) %{_sbindir}/ddtd %{_mandir}/man8/ddtd.8* %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server %files client %defattr(644,root,root,755) %doc docs/DDT*.sgml %attr(754,root,root) /etc/rc.d/init.d/%{name}-client %attr(755,root,root) %{_sbindir}/ddtc %attr(755,root,root) %{_sbindir}/ddtcd %config(noreplace) %{_sysconfdir}/ddtcd.conf %{_mandir}/man8/ddtc.8* %{_mandir}/man8/ddtcd.8* %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client %files cgi %defattr(644,root,root,755)