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