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