]> git.pld-linux.org Git - packages/pdns.git/blame - pdns.spec
- pl fixes
[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
547f90c0 4Version: 2.9.21.1
5Release: 1
d5cc2b05 6License: GPL
7Group: Networking/Daemons
d5cc2b05 8Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
547f90c0 9# Source0-md5: 27fd39029a80cb9c0bc3037420515d1a
d5cc2b05 10Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
547f90c0 11# Source1-md5: 920b1660258fa2f6d6f949f0c60857b4
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
78b0f5c7 19Patch3: %{name}-strerror.patch
20Patch4: %{name}-stdlib.patch
1c943d86 21URL: http://www.powerdns.com/
d5cc2b05 22BuildRequires: bison
11adc590 23BuildRequires: boost-devel >= 1.35.0
d5cc2b05 24BuildRequires: flex
4cf6fc85 25BuildRequires: libpq++-devel
9dfdb7d5 26BuildRequires: libstdc++-devel
1c943d86 27BuildRequires: mysql-devel
78b0f5c7 28BuildRequires: sqlite3-devel
89d18ff9 29BuildRequires: openldap-devel >= 2.4.6
9dfdb7d5 30BuildRequires: rpmbuild(macros) >= 1.268
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
78b0f5c7 131%patch3 -p1
132%patch4 -p1
33ccb468 133cp %{SOURCE1} .
134cp %{SOURCE2} .
91e921c8
SP
135cp %{SOURCE4} .
136
48a18303
JB
137%if "%{_lib}" != "lib"
138%{__sed} -i -e 's/module-dir=\/usr\/lib\/pdns/module-dir=\/usr\/%{_lib}\/pdns/' pdns.conf
91e921c8 139%endif
d5cc2b05 140
141%build
83be7e7a 142CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
d5cc2b05 143%configure \
1c943d86
JB
144 --libdir=%{_libdir}/%{name} \
145 --sysconfdir=%{_sysconfdir}/%{name} \
48a18303
JB
146 --disable-static \
147 --enable-ldap \
1c943d86
JB
148 --enable-mysql \
149 --enable-pgsql \
78b0f5c7 150 --enable-sqlite3 \
e72cbcd1 151 --with-pgsql-includes=%{_includedir} \
48a18303 152 --with-pgsql-lib=%{_libdir} \
6fee4fd0 153 --with-mysql-includes=%{_includedir} \
48a18303 154 --with-mysql-lib=%{_libdir} \
78b0f5c7 155 --with-sqlite3-includes=%{_includedir} \
48a18303
JB
156 --with-sqlite3-lib=%{_libdir} \
157 --with-dynmodules="gsqlite3 gmysql gpgsql pipe ldap" \
158 --with-modules="" \
159 --with-socketdir=/var/run
d5cc2b05 160
161%{__make}
162
163%install
164rm -rf $RPM_BUILD_ROOT
f8845daa 165install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/%{name},/etc/sysconfig}
d5cc2b05 166
167%{__make} install \
1c943d86
JB
168 DESTDIR=$RPM_BUILD_ROOT
169
f8845daa 170install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
1c943d86
JB
171install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
172install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
173
174# useless - modules are dlopened by *.so
175rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
d5cc2b05 176
1c943d86
JB
177%clean
178rm -rf $RPM_BUILD_ROOT
d5cc2b05 179
180%pre
3a30c7f7
ER
181%groupadd -g 32 djbdns
182%useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns
d5cc2b05 183
184%post
e72cbcd1 185# dirty hack so the config file is processed correctly, and server does not respawn
9dfdb7d5 186sed -i -e 's/^ *//' /etc/pdns/pdns.conf
e72cbcd1 187
d5cc2b05 188/sbin/chkconfig --add pdns
9dfdb7d5 189%service pdns restart
d5cc2b05 190
191%preun
33ccb468 192if [ "$1" = "0" ]; then
9dfdb7d5 193 %service pdns stop
33ccb468 194 /sbin/chkconfig --del pdns
195fi
d5cc2b05 196
197%postun
198if [ "$1" = "0" ]; then
9f5c3bed 199 %userremove pdns
200 %groupremove djbdns
d5cc2b05 201fi
202
d5cc2b05 203%files
204%defattr(644,root,root,755)
d944d5e2 205%doc ChangeLog HACKING INSTALL README TODO pdns.pdf pdns.txt
f8845daa 206%attr(754,root,root) /etc/rc.d/init.d/%{name}
37897a72 207%dir %{_sysconfdir}/%{name}
d944d5e2 208%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
209%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pdns
d5cc2b05 210%attr(755,root,root) %{_sbindir}/*
c62fbc47 211%attr(755,root,root) %{_bindir}/*
f8845daa 212%dir %{_libdir}/%{name}
d5cc2b05 213%{_mandir}/man8/*
214
69c8ac47 215%files backend-gmysql
1c943d86 216%defattr(644,root,root,755)
33ccb468 217%attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
37897a72 218
69c8ac47 219%files backend-gpgsql
1c943d86 220%defattr(644,root,root,755)
33ccb468 221%attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
37897a72 222
78b0f5c7 223%files backend-gsqlite3
224%defattr(644,root,root,755)
225%attr(755,root,root) %{_libdir}/%{name}/*sqlite3*.so*
226
37897a72 227%files backend-pipe
1c943d86 228%defattr(644,root,root,755)
33ccb468 229%attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
69c8ac47 230
231%files backend-ldap
232%defattr(644,root,root,755)
233%attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*
This page took 1.010452 seconds and 4 git commands to generate.