rbldnsd/rbldnsd.spec

Name: rbldnsd
Summary: Small and fast DNS server for serving blacklist zones.
Version: 0.995
Release: 1
License: GPL
Group: System Environment/Daemons
URL: http://www.corpit.ru/mjt/rbldnsd.html
Description: rbldnsd is a small and fast DNS daemon which is especially made to serve DNSBL zones. This daemon was inspired by Dan J. Bernstein's rbldns program found in the djbdns package.

rbldnsd is extremely fast - it outperforms both bind and djbdns greatly. It has very small memory footprint.

The daemon can serve both IP-based (ordb.org, dsbl.org etc) and name-based (rfc-ignorant.org) blocklists. Unlike DJB's rbldns, it has ability to specify individual values for every entry, can serve as many zones on a single IP address as you wish, and, finally, it is a real nameserver: it can reply to DNS metadata requests. The daemon keeps all zones in memory for faster operations, but its memory usage is very efficient, especially for repeated TXT values which are stored only once.

CentOS 7 x86_64

The build could not start because the following file is missing: rbldnsd_0.995.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: rbldnsd_0.995.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: nac

Summary: Small and fast DNS server for serving blacklist zones.
Name: rbldnsd
Version: 0.995
Release: 1%{?dist}
License: GPL
Group: System Environment/Daemons
URL: http://www.corpit.ru/mjt/rbldnsd.html

Source: http://www.corpit.ru/mjt/rbldnsd/rbldnsd_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: /sbin/chkconfig, /sbin/nologin, shadow-utils

%description
rbldnsd is a small and fast DNS daemon which is especially made to serve
DNSBL zones. This daemon was inspired by Dan J. Bernstein's rbldns program
found in the djbdns package.

rbldnsd is extremely fast - it outperforms both bind and djbdns greatly. It
has very small memory footprint.

The daemon can serve both IP-based (ordb.org, dsbl.org etc) and name-based
(rfc-ignorant.org) blocklists. Unlike DJB's rbldns, it has ability to specify
individual values for every entry, can serve as many zones on a single IP
address as you wish, and, finally, it is a real nameserver: it can reply
to DNS metadata requests. The daemon keeps all zones in memory for faster
operations, but its memory usage is very efficient, especially for repeated
TXT values which are stored only once.

%prep
%setup

%build
CFLAGS="%{optflags}" CC="${CC:-%__cc}" ./configure
%{__make} %{_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0555 rbldnsd %{buildroot}%{_sbindir}/rbldnsd
%{__install} -Dp -m0444 rbldnsd.8 %{buildroot}%{_mandir}/man8/rbldnsd.8
%{__install} -Dp -m0664 debian/rbldnsd.default %{buildroot}%{_sysconfdir}/sysconfig/rbldnsd
%{__install} -Dp -m0555 debian/rbldnsd.init %{buildroot}%{_initrddir}/rbldnsd

%{__install} -d %{buildroot}%{_localstatedir}/lib/rbldns/{log,work}

%clean
%{__rm} -rf %{buildroot}

%pre
if [ $1 -eq 1 ]; then
	if ! getent passwd rbldns ; then
    		useradd -r -d %{_localstatedir}/lib/rbldns -M -c "rbldns Daemon" -s /sbin/nologin rbldns
    		#chown root:root %{_localstatedir}/lib/rbldns
	fi
fi

%post
if [ $1 -eq 1 ]; then
	/sbin/chkconfig --add rbldnsd
fi

%preun
if [ $1 -eq 0 ]; then
   /etc/init.d/rbldnsd stop || :
   /sbin/chkconfig --del rbldnsd
fi

%files
%defattr(-, root, root, 0755)
%doc CHANGES-0.81 debian/changelog NEWS README.user TODO
%doc %{_mandir}/man8/rbldnsd.8*
%config(noreplace) %{_sysconfdir}/sysconfig/rbldnsd
%config %{_initrddir}/rbldnsd
%{_sbindir}/rbldnsd
%dir %{_localstatedir}/lib/rbldns/

%defattr(0775, rbldns, rbldns, 0755)
%{_localstatedir}/lib/rbldns/log/
%{_localstatedir}/lib/rbldns/work/

%changelog
* Tue Jan 03 2006 Dries Verachtert <dries@ulyssis.org> - 0.995-1
- Updated to release 0.995.

* Sat Apr 16 2005 Wil Cooley <wcooley@nakedape.cc> - 0.994-0.b
- Initial package creation, adapted from the included spec.