]> git.pld-linux.org Git - packages/pdns.git/blame_incremental - pdns.spec
- updated to 3.3
[packages/pdns.git] / pdns.spec
... / ...
CommitLineData
1Summary: PowerDNS is a Versatile Database Driven Nameserver
2Summary(pl.UTF-8): PowerDNS to wielofunkcyjny serwer nazw korzystający z relacyjnych baz danych
3Name: pdns
4Version: 3.3
5Release: 1
6License: GPL
7Group: Networking/Daemons
8Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
9# Source0-md5: 73932211fe9895e02dc60713fe12c005
10Source1: http://downloads.powerdns.com/documentation/%{name}.pdf
11# Source1-md5: cb69cd9655e4cb319c66adb2c733314d
12Source2: http://downloads.powerdns.com/documentation/%{name}.txt
13Source3: %{name}.init
14Source4: %{name}.conf
15Source5: %{name}.sysconfig
16Patch0: configure.ac.patch
17Patch1: %{name}-int16.patch
18Patch2: %{name}-openldap-2.3.patch
19URL: http://www.powerdns.com/
20BuildRequires: autoconf >= 2.52
21BuildRequires: automake
22BuildRequires: bison
23BuildRequires: boost-devel >= 1.35.0
24BuildRequires: flex
25BuildRequires: libpq++-devel
26BuildRequires: libstdc++-devel
27BuildRequires: libtool
28BuildRequires: lua51-devel
29BuildRequires: mysql-devel
30BuildRequires: openldap-devel >= 2.4.6
31BuildRequires: rpmbuild(macros) >= 1.268
32BuildRequires: sed >= 4.0
33BuildRequires: sqlite3-devel
34BuildRequires: zlib-devel
35Requires(post): sed >= 4.0
36Requires(post,preun): /sbin/chkconfig
37Requires(postun): /usr/sbin/groupdel
38Requires(postun): /usr/sbin/userdel
39Requires(pre): /bin/id
40Requires(pre): /usr/bin/getgid
41Requires(pre): /usr/sbin/groupadd
42Requires(pre): /usr/sbin/useradd
43Requires: rc-scripts
44Provides: group(djbdns)
45Provides: nameserver
46Provides: user(pdns)
47Obsoletes: powerdns
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
60
61%package backend-pipe
62Summary: PowerDNS support for custom pipe backend
63Summary(pl.UTF-8): Obsługa własnego mechanizmu przechowywania stref dla PowerDNS-a
64Group: Development/Libraries
65Requires: %{name} = %{version}-%{release}
66
67%description backend-pipe
68This package allows creation of own backend using simple STDIN/STDOUT
69API. Example backend script in Perl is provided in package
70documentation.
71
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.
76
77%package backend-gpgsql
78Summary: PowerDNS support for PostgreSQL
79Summary(pl.UTF-8): Obsługa baz PostgreSQL dla PowerDNS-a
80Group: Development/Libraries
81Requires: %{name} = %{version}-%{release}
82
83%description backend-gpgsql
84This package allows zone storage in PostgreSQL relational db tables.
85
86%description backend-gpgsql -l pl.UTF-8
87Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
88relacyjnej bazy danych PostgreSQL.
89
90%package backend-gmysql
91Summary: PowerDNS support for MySQL
92Summary(pl.UTF-8): Obsługa baz MySQL dla PowerDNS-a
93Group: Development/Libraries
94Requires: %{name} = %{version}-%{release}
95
96%description backend-gmysql
97This package allows zone storage in MySQL relational db tables.
98
99%description backend-gmysql -l pl.UTF-8
100Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
101relacyjnej bazy danych MySQL.
102
103%package backend-gsqlite3
104Summary: PowerDNS support for SQLite 3
105Summary(pl.UTF-8): Obsługa baz SQLite 3 dla PowerDNS-a
106Group: Development/Libraries
107Requires: %{name} = %{version}-%{release}
108
109%description backend-gsqlite3
110This package allows zone storage in SQLite 3 relational db tables.
111
112%description backend-gsqlite3 -l pl.UTF-8
113Ten pakiet pozwala na przechowywanie danych o strefach w tabelach
114relacyjnej bazy danych SQLite 3.
115
116%package backend-ldap
117Summary: PowerDNS support for LDAP
118Summary(pl.UTF-8): Obsługa LDAP dla PowerDNS-a
119Group: Development/Libraries
120Requires: %{name} = %{version}-%{release}
121
122%description backend-ldap
123This package allows zone storage in LDAP directory.
124
125%description backend-ldap -l pl.UTF-8
126Ten pakiet pozwala na przechowywanie danych o strefach w katalogu
127LDAP.
128
129%prep
130%setup -q
131%patch0 -p1
132%patch1 -p1
133%patch2 -p1
134cp %{SOURCE1} .
135cp %{SOURCE2} .
136cp %{SOURCE4} .
137
138%if "%{_lib}" != "lib"
139%{__sed} -i -e 's/module-dir=\/usr\/lib\/pdns/module-dir=\/usr\/%{_lib}\/pdns/' pdns.conf
140%endif
141
142%build
143CPPFLAGS="-DHAVE_NAMESPACE_STD -DHAVE_CXX_STRING_HEADER -DDLLIMPORT=\"\""
144%{__libtoolize}
145%{__aclocal} -I .
146%{__autoconf}
147%{__automake}
148%configure \
149 --libdir=%{_libdir}/%{name} \
150 --sysconfdir=%{_sysconfdir}/%{name} \
151 --disable-static \
152 --with-lua \
153 --with-pgsql-includes=%{_includedir} \
154 --with-pgsql-lib=%{_libdir} \
155 --with-mysql-includes=%{_includedir} \
156 --with-mysql-lib=%{_libdir} \
157 --with-dynmodules="gsqlite3 gmysql gpgsql pipe ldap" \
158 --with-modules="" \
159 --with-socketdir=/var/run
160
161%{__make}
162
163%install
164rm -rf $RPM_BUILD_ROOT
165install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/%{name},/etc/sysconfig}
166
167%{__make} install \
168 DESTDIR=$RPM_BUILD_ROOT
169
170install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
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
176
177%clean
178rm -rf $RPM_BUILD_ROOT
179
180%pre
181%groupadd -g 32 djbdns
182%useradd -u 30 -d /var/lib/pdns -s /bin/false -c "pdns User" -g djbdns pdns
183
184%post
185# dirty hack so the config file is processed correctly, and server does not respawn
186sed -i -e 's/^ *//' /etc/pdns/pdns.conf
187
188/sbin/chkconfig --add pdns
189%service pdns restart
190
191%preun
192if [ "$1" = "0" ]; then
193 %service pdns stop
194 /sbin/chkconfig --del pdns
195fi
196
197%postun
198if [ "$1" = "0" ]; then
199 %userremove pdns
200 %groupremove djbdns
201fi
202
203%files
204%defattr(644,root,root,755)
205%doc HACKING INSTALL README TODO pdns.pdf pdns.txt
206%attr(754,root,root) /etc/rc.d/init.d/%{name}
207%dir %{_sysconfdir}/%{name}
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
210%attr(755,root,root) %{_sbindir}/*
211%attr(755,root,root) %{_bindir}/*
212%dir %{_libdir}/%{name}
213%{_mandir}/man8/*
214
215%files backend-gmysql
216%defattr(644,root,root,755)
217%attr(755,root,root) %{_libdir}/%{name}/*mysql*.so*
218
219%files backend-gpgsql
220%defattr(644,root,root,755)
221%attr(755,root,root) %{_libdir}/%{name}/*pgsql*.so*
222
223%files backend-gsqlite3
224%defattr(644,root,root,755)
225%attr(755,root,root) %{_libdir}/%{name}/*sqlite3*.so*
226
227%files backend-pipe
228%defattr(644,root,root,755)
229%attr(755,root,root) %{_libdir}/%{name}/*pipe*.so*
230
231%files backend-ldap
232%defattr(644,root,root,755)
233%attr(755,root,root) %{_libdir}/%{name}/*ldap*.so*
This page took 0.030881 seconds and 4 git commands to generate.