]> git.pld-linux.org Git - packages/pdns.git/blame - pdns.spec
- release 2
[packages/pdns.git] / pdns.spec
CommitLineData
d5cc2b05 1Summary: PowerDNS is a Versatile Database Driven Nameserver
cc7a52d9 2Summary(pl.UTF-8): PowerDNS to wielofunkcyjny serwer nazw korzystający z relacyjnych baz danych
3cfcf782 3Name: pdns
8a1406d5 4Version: 3.0.1
cd97ec5a 5Release: 2
d5cc2b05 6License: GPL
7Group: Networking/Daemons
d5cc2b05 8Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
8a1406d5 9# Source0-md5: a67763b2b45d9f3504a24607c5b4068d
d5cc2b05 10Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
335359b4 11# Source1-md5: cb69cd9655e4cb319c66adb2c733314d
33ccb468 12Source2: http://downloads.powerdns.com/documentation/%{name}.txt
13Source3: %{name}.init
14Source4: %{name}.conf
15Source5: %{name}.sysconfig
3259f60d 16Patch0: configure.ac.patch
962c96ad 17Patch1: %{name}-int16.patch
64323608 18Patch2: %{name}-openldap-2.3.patch
514dd7c2 19Patch3: gcc4.patch
1c943d86 20URL: http://www.powerdns.com/
3259f60d
ŁK
21BuildRequires: autoconf >= 2.52
22BuildRequires: automake
d5cc2b05 23BuildRequires: bison
11adc590 24BuildRequires: boost-devel >= 1.35.0
d5cc2b05 25BuildRequires: flex
4cf6fc85 26BuildRequires: libpq++-devel
9dfdb7d5 27BuildRequires: libstdc++-devel
3259f60d
ŁK
28BuildRequires: libtool
29BuildRequires: lua51-devel
1c943d86 30BuildRequires: mysql-devel
89d18ff9 31BuildRequires: openldap-devel >= 2.4.6
9dfdb7d5 32BuildRequires: rpmbuild(macros) >= 1.268
10ff87d8
JB
33BuildRequires: sed >= 4.0
34BuildRequires: sqlite3-devel
9f5c3bed 35BuildRequires: zlib-devel
9dfdb7d5
ER
36Requires(post): sed >= 4.0
37Requires(post,preun): /sbin/chkconfig
38Requires(postun): /usr/sbin/groupdel
39Requires(postun): /usr/sbin/userdel
d5cc2b05 40Requires(pre): /bin/id
9f5c3bed 41Requires(pre): /usr/bin/getgid
d5cc2b05 42Requires(pre): /usr/sbin/groupadd
9f5c3bed 43Requires(pre): /usr/sbin/useradd
9dfdb7d5 44Requires: rc-scripts
9f5c3bed 45Provides: group(djbdns)
1c943d86 46Provides: nameserver
9f5c3bed 47Provides: user(pdns)
1c943d86 48Obsoletes: powerdns
9dfdb7d5 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d5cc2b05 50
51%description
52PowerDNS is a versatile nameserver which supports a large number of
53different backends ranging from simple zonefiles to relational
54databases and load balancing/failover algorithms.
55
debd363c
JR
56%description -l pl.UTF-8
57PowerDNS to wielofunkcyjny serwer nazw posiadający dużą liczbę wtyczek
58od prostych stref (a'la BIND) począwszy, a na relacyjnych bazach
59danych skończywszy oraz zawierający algorytmy zrównoważenia obciążenia
60i przełączania w wypadku awarii.
d5cc2b05 61
37897a72 62%package backend-pipe
63Summary: PowerDNS support for custom pipe backend
48a18303 64Summary(pl.UTF-8): Obsługa własnego mechanizmu przechowywania stref dla PowerDNS-a
d5cc2b05 65Group: Development/Libraries
86e39795 66Requires: %{name} = %{version}-%{release}
d5cc2b05 67
37897a72 68%description backend-pipe
69This package allows creation of own backend using simple STDIN/STDOUT
0ce130a4 70API. Example backend script in Perl is provided in package
83be7e7a 71documentation.
d5cc2b05 72
debd363c
JR
73%description backend-pipe -l pl.UTF-8
74Ten pakiet pozwala na utworzenie własnego mechanizmu przechowywania
75stref za pomocą prostego interfejsu STDIN/STDOUT. Przykładowy skrypt w
76Perlu został dołączony do dokumentacji pakietu.
37897a72 77
69c8ac47 78%package backend-gpgsql
37897a72 79Summary: PowerDNS support for PostgreSQL
48a18303 80Summary(pl.UTF-8): Obsługa baz PostgreSQL dla PowerDNS-a
37897a72 81Group: Development/Libraries
86e39795 82Requires: %{name} = %{version}-%{release}
37897a72 83
69c8ac47 84%description backend-gpgsql
37897a72 85This package allows zone storage in PostgreSQL relational db tables.
86
debd363c 87%description backend-gpgsql -l pl.UTF-8
91965bb5 88Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
37897a72 89relacyjnej bazy danych PostgreSQL.
90
69c8ac47 91%package backend-gmysql
37897a72 92Summary: PowerDNS support for MySQL
48a18303 93Summary(pl.UTF-8): Obsługa baz MySQL dla PowerDNS-a
37897a72 94Group: Development/Libraries
86e39795 95Requires: %{name} = %{version}-%{release}
37897a72 96
69c8ac47 97%description backend-gmysql
37897a72 98This package allows zone storage in MySQL relational db tables.
99
debd363c 100%description backend-gmysql -l pl.UTF-8
91965bb5 101Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
37897a72 102relacyjnej bazy danych MySQL.
d5cc2b05 103
78b0f5c7 104%package backend-gsqlite3
48a18303
JB
105Summary: PowerDNS support for SQLite 3
106Summary(pl.UTF-8): Obsługa baz SQLite 3 dla PowerDNS-a
78b0f5c7 107Group: Development/Libraries
108Requires: %{name} = %{version}-%{release}
109
110%description backend-gsqlite3
48a18303 111This package allows zone storage in SQLite 3 relational db tables.
78b0f5c7 112
113%description backend-gsqlite3 -l pl.UTF-8
114Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
48a18303 115relacyjnej bazy danych SQLite 3.
78b0f5c7 116
69c8ac47 117%package backend-ldap
165f995e 118Summary: PowerDNS support for LDAP
48a18303 119Summary(pl.UTF-8): Obsługa LDAP dla PowerDNS-a
165f995e 120Group: Development/Libraries
86e39795 121Requires: %{name} = %{version}-%{release}
69c8ac47 122
123%description backend-ldap
124This package allows zone storage in LDAP directory.
125
debd363c 126%description backend-ldap -l pl.UTF-8
d944d5e2 127Ten pakiet pozwala na przechowywanie danych o strefach w katalogu
128LDAP.
69c8ac47 129
d5cc2b05 130%prep
33ccb468 131%setup -q
4cf6fc85 132%patch0 -p1
962c96ad 133%patch1 -p1
64323608 134%patch2 -p1
514dd7c2 135%patch3 -p1
33ccb468 136cp %{SOURCE1} .
137cp %{SOURCE2} .
91e921c8
SP
138cp %{SOURCE4} .
139
48a18303
JB
140%if "%{_lib}" != "lib"
141%{__sed} -i -e 's/module-dir=\/usr\/lib\/pdns/module-dir=\/usr\/%{_lib}\/pdns/' pdns.conf
91e921c8 142%endif
d5cc2b05 143
144%build
83be7e7a 145CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
3259f60d
ŁK
146%{__libtoolize}
147%{__aclocal} -I .
148%{__autoconf}
149%{__automake}
d5cc2b05 150%configure \
1c943d86
JB
151 --libdir=%{_libdir}/%{name} \
152 --sysconfdir=%{_sysconfdir}/%{name} \
48a18303 153 --disable-static \
3259f60d 154 --with-lua \
e72cbcd1 155 --with-pgsql-includes=%{_includedir} \
48a18303 156 --with-pgsql-lib=%{_libdir} \
6fee4fd0 157 --with-mysql-includes=%{_includedir} \
48a18303 158 --with-mysql-lib=%{_libdir} \
48a18303
JB
159 --with-dynmodules="gsqlite3 gmysql gpgsql pipe ldap" \
160 --with-modules="" \
161 --with-socketdir=/var/run
d5cc2b05 162
163%{__make}
164
165%install
166rm -rf $RPM_BUILD_ROOT
f8845daa 167install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/%{name},/etc/sysconfig}
d5cc2b05 168
169%{__make} install \
1c943d86
JB
170 DESTDIR=$RPM_BUILD_ROOT
171
f8845daa 172install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
1c943d86
JB
173install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
174install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
175
176# useless - modules are dlopened by *.so
177rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
d5cc2b05 178
1c943d86
JB
179%clean
180rm -rf $RPM_BUILD_ROOT
d5cc2b05 181
182%pre
3a30c7f7
ER
183%groupadd -g 32 djbdns
184%useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns
d5cc2b05 185
186%post
e72cbcd1 187# dirty hack so the config file is processed correctly, and server does not respawn
9dfdb7d5 188sed -i -e 's/^ *//' /etc/pdns/pdns.conf
e72cbcd1 189
d5cc2b05 190/sbin/chkconfig --add pdns
9dfdb7d5 191%service pdns restart
d5cc2b05 192
193%preun
33ccb468 194if [ "$1" = "0" ]; then
9dfdb7d5 195 %service pdns stop
33ccb468 196 /sbin/chkconfig --del pdns
197fi
d5cc2b05 198
199%postun
200if [ "$1" = "0" ]; then
9f5c3bed 201 %userremove pdns
202 %groupremove djbdns
d5cc2b05 203fi
204
d5cc2b05 205%files
206%defattr(644,root,root,755)
d944d5e2 207%doc ChangeLog HACKING INSTALL README TODO pdns.pdf pdns.txt
f8845daa 208%attr(754,root,root) /etc/rc.d/init.d/%{name}
37897a72 209%dir %{_sysconfdir}/%{name}
d944d5e2 210%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
211%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pdns
d5cc2b05 212%attr(755,root,root) %{_sbindir}/*
c62fbc47 213%attr(755,root,root) %{_bindir}/*
f8845daa 214%dir %{_libdir}/%{name}
d5cc2b05 215%{_mandir}/man8/*
216
69c8ac47 217%files backend-gmysql
1c943d86 218%defattr(644,root,root,755)
33ccb468 219%attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
37897a72 220
69c8ac47 221%files backend-gpgsql
1c943d86 222%defattr(644,root,root,755)
33ccb468 223%attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
37897a72 224
78b0f5c7 225%files backend-gsqlite3
226%defattr(644,root,root,755)
227%attr(755,root,root) %{_libdir}/%{name}/*sqlite3*.so*
228
37897a72 229%files backend-pipe
1c943d86 230%defattr(644,root,root,755)
33ccb468 231%attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
69c8ac47 232
233%files backend-ldap
234%defattr(644,root,root,755)
235%attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*
This page took 0.113974 seconds and 4 git commands to generate.