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