1%define	name	ldapdns
2%define	version	2.07
3%define	release	1
4%define	serial	1
5
6Summary:	DNS server that pulls data from an LDAP directory
7Name:		%{name}
8Version:	%{version}
9Release:	%{release}
10Serial:		%{serial}
11Copyright:	GPL
12Group:		System Environment/Daemons
13Vendor:		Portmaster <portmaster_AT_bsdforge.com>
14Url:		http://bsdforge.com/
15Source:		%{name}-%{version}.tar.xz
16Packager:	Portmaster <portmaster_AT_bsdforge.com>
17BuildRoot:	/var/tmp/%{name}-%{version}-root
18Requires:	openldap
19
20%description
21LDAPDNS is a ultra-fast, stable, multithreaded DNS server that pulls
22data from an LDAP directory. It supports RFC1279 (bind-style),
23Microsoft Active Directory, and it's own directory layouts.
24
25%prep
26%setup
27
28%build
29EXTRA_CFLAGS="$RPM_OPT_CFLAGS" make
30
31%install
32RUN_USER=named FORCE_INITRC=1 NO_DAEMONTOOLS=1 NO_TCPSERVERS=1 INITRC=1 bin=sbin DESTDIR=$RPM_BUILD_ROOT prefix=/usr ./install.sh
33
34%files
35%defattr(-,root,root)
36/etc/init.d/ldapdns
37/etc/init.d/ldapaxfr
38%config /etc/sysconfig/ldapdns
39/var/lib/ldapdns/axfr
40%attr(555,root,root) /usr/sbin/ldapdns
41%attr(555,root,root) /usr/sbin/ldapaxfr
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45