]> git.pld-linux.org Git - packages/pdns.git/blame - pdns.spec
- boost rebuild
[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
e96a5cfd 4Version: 3.4.2
2b7ec0ff 5Release: 3
d5cc2b05 6License: GPL
7Group: Networking/Daemons
f6c8362c 8Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
e96a5cfd 9# Source0-md5: 3f79de4d0bc845fb3d4b492234daf1a4
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
f6c8362c
ŁK
16Patch0: %{name}-int16.patch
17Patch1: %{name}-openldap-2.3.patch
1c943d86 18URL: http://www.powerdns.com/
f6c8362c
ŁK
19BuildRequires: autoconf >= 2.61
20BuildRequires: automake >= 1.11
d5cc2b05 21BuildRequires: bison
11adc590 22BuildRequires: boost-devel >= 1.35.0
d5cc2b05 23BuildRequires: flex
4cf6fc85 24BuildRequires: libpq++-devel
9dfdb7d5 25BuildRequires: libstdc++-devel
3259f60d 26BuildRequires: libtool
f6c8362c 27BuildRequires: lua-devel >= 5.1
1c943d86 28BuildRequires: mysql-devel
89d18ff9 29BuildRequires: openldap-devel >= 2.4.6
f6c8362c 30BuildRequires: polarssl-devel >= 1.1
9dfdb7d5 31BuildRequires: rpmbuild(macros) >= 1.268
10ff87d8
JB
32BuildRequires: sed >= 4.0
33BuildRequires: sqlite3-devel
9f5c3bed 34BuildRequires: zlib-devel
9dfdb7d5
ER
35Requires(post): sed >= 4.0
36Requires(post,preun): /sbin/chkconfig
37Requires(postun): /usr/sbin/groupdel
38Requires(postun): /usr/sbin/userdel
d5cc2b05 39Requires(pre): /bin/id
9f5c3bed 40Requires(pre): /usr/bin/getgid
d5cc2b05 41Requires(pre): /usr/sbin/groupadd
9f5c3bed 42Requires(pre): /usr/sbin/useradd
9dfdb7d5 43Requires: rc-scripts
9f5c3bed 44Provides: group(djbdns)
1c943d86 45Provides: nameserver
9f5c3bed 46Provides: user(pdns)
1c943d86 47Obsoletes: powerdns
9dfdb7d5 48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d5cc2b05 49
50%description
51PowerDNS is a versatile nameserver which supports a large number of
52different backends ranging from simple zonefiles to relational
53databases and load balancing/failover algorithms.
54
debd363c
JR
55%description -l pl.UTF-8
56PowerDNS to wielofunkcyjny serwer nazw posiadający dużą liczbę wtyczek
57od prostych stref (a'la BIND) począwszy, a na relacyjnych bazach
58danych skończywszy oraz zawierający algorytmy zrównoważenia obciążenia
59i przełączania w wypadku awarii.
d5cc2b05 60
37897a72 61%package backend-pipe
62Summary: PowerDNS support for custom pipe backend
48a18303 63Summary(pl.UTF-8): Obsługa własnego mechanizmu przechowywania stref dla PowerDNS-a
d5cc2b05 64Group: Development/Libraries
86e39795 65Requires: %{name} = %{version}-%{release}
d5cc2b05 66
37897a72 67%description backend-pipe
68This package allows creation of own backend using simple STDIN/STDOUT
0ce130a4 69API. Example backend script in Perl is provided in package
83be7e7a 70documentation.
d5cc2b05 71
debd363c
JR
72%description backend-pipe -l pl.UTF-8
73Ten pakiet pozwala na utworzenie własnego mechanizmu przechowywania
74stref za pomocą prostego interfejsu STDIN/STDOUT. Przykładowy skrypt w
75Perlu został dołączony do dokumentacji pakietu.
37897a72 76
69c8ac47 77%package backend-gpgsql
37897a72 78Summary: PowerDNS support for PostgreSQL
48a18303 79Summary(pl.UTF-8): Obsługa baz PostgreSQL dla PowerDNS-a
37897a72 80Group: Development/Libraries
86e39795 81Requires: %{name} = %{version}-%{release}
37897a72 82
69c8ac47 83%description backend-gpgsql
37897a72 84This package allows zone storage in PostgreSQL relational db tables.
85
debd363c 86%description backend-gpgsql -l pl.UTF-8
91965bb5 87Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
37897a72 88relacyjnej bazy danych PostgreSQL.
89
69c8ac47 90%package backend-gmysql
37897a72 91Summary: PowerDNS support for MySQL
48a18303 92Summary(pl.UTF-8): Obsługa baz MySQL dla PowerDNS-a
37897a72 93Group: Development/Libraries
86e39795 94Requires: %{name} = %{version}-%{release}
37897a72 95
69c8ac47 96%description backend-gmysql
37897a72 97This package allows zone storage in MySQL relational db tables.
98
debd363c 99%description backend-gmysql -l pl.UTF-8
91965bb5 100Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
37897a72 101relacyjnej bazy danych MySQL.
d5cc2b05 102
78b0f5c7 103%package backend-gsqlite3
48a18303
JB
104Summary: PowerDNS support for SQLite 3
105Summary(pl.UTF-8): Obsługa baz SQLite 3 dla PowerDNS-a
78b0f5c7 106Group: Development/Libraries
107Requires: %{name} = %{version}-%{release}
108
109%description backend-gsqlite3
48a18303 110This package allows zone storage in SQLite 3 relational db tables.
78b0f5c7 111
112%description backend-gsqlite3 -l pl.UTF-8
113Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
48a18303 114relacyjnej bazy danych SQLite 3.
78b0f5c7 115
69c8ac47 116%package backend-ldap
165f995e 117Summary: PowerDNS support for LDAP
48a18303 118Summary(pl.UTF-8): Obsługa LDAP dla PowerDNS-a
165f995e 119Group: Development/Libraries
86e39795 120Requires: %{name} = %{version}-%{release}
69c8ac47 121
122%description backend-ldap
123This package allows zone storage in LDAP directory.
124
debd363c 125%description backend-ldap -l pl.UTF-8
d944d5e2 126Ten pakiet pozwala na przechowywanie danych o strefach w katalogu
127LDAP.
69c8ac47 128
d5cc2b05 129%prep
33ccb468 130%setup -q
4cf6fc85 131%patch0 -p1
962c96ad 132%patch1 -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=\"\""
3259f60d
ŁK
143%{__libtoolize}
144%{__aclocal} -I .
145%{__autoconf}
146%{__automake}
d5cc2b05 147%configure \
1c943d86 148 --sysconfdir=%{_sysconfdir}/%{name} \
48a18303 149 --disable-static \
3259f60d 150 --with-lua \
e72cbcd1 151 --with-pgsql-includes=%{_includedir} \
48a18303 152 --with-pgsql-lib=%{_libdir} \
6fee4fd0 153 --with-mysql-includes=%{_includedir} \
48a18303 154 --with-mysql-lib=%{_libdir} \
48a18303
JB
155 --with-dynmodules="gsqlite3 gmysql gpgsql pipe ldap" \
156 --with-modules="" \
f6c8362c 157 --with-system-polarssl \
48a18303 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
f6c8362c
ŁK
169cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
170cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
171cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/pdns
1c943d86
JB
172
173# useless - modules are dlopened by *.so
eaff2c55
JR
174%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
175
176# we put that in using %doc
177%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
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)
f6c8362c 207%doc INSTALL README 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
e96a5cfd
ŁK
212%attr(755,root,root) %{_sbindir}/pdns_server
213%attr(755,root,root) %{_bindir}/pdns_control
214%attr(755,root,root) %{_bindir}/pdnssec
215%attr(755,root,root) %{_bindir}/zone2json
216%attr(755,root,root) %{_bindir}/zone2ldap
217%attr(755,root,root) %{_bindir}/zone2sql
f8845daa 218%dir %{_libdir}/%{name}
e96a5cfd
ŁK
219%{_mandir}/man1/pdns_control.1*
220%{_mandir}/man1/pdns_server.1*
221%{_mandir}/man1/pdnssec.1*
222%{_mandir}/man1/zone2ldap.1*
223%{_mandir}/man1/zone2sql.1*
d5cc2b05 224
69c8ac47 225%files backend-gmysql
1c943d86 226%defattr(644,root,root,755)
eaff2c55 227%doc modules/gmysqlbackend/*schema.mysql.sql
33ccb468 228%attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
37897a72 229
69c8ac47 230%files backend-gpgsql
1c943d86 231%defattr(644,root,root,755)
eaff2c55 232%doc modules/gpgsqlbackend/*schema.pgsql.sql
33ccb468 233%attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
37897a72 234
78b0f5c7 235%files backend-gsqlite3
236%defattr(644,root,root,755)
eaff2c55 237%doc modules/gsqlite3backend/*schema.sqlite3.sql
78b0f5c7 238%attr(755,root,root) %{_libdir}/%{name}/*sqlite3*.so*
239
37897a72 240%files backend-pipe
1c943d86 241%defattr(644,root,root,755)
33ccb468 242%attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
69c8ac47 243
244%files backend-ldap
245%defattr(644,root,root,755)
246%attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*
This page took 0.587187 seconds and 4 git commands to generate.