]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pdns/pdns.nm
Merge remote-tracking branch 'stevee/compat-xz'
[ipfire-3.x.git] / pdns / pdns.nm
index 939e980d32856c3b5b77b75b3c1ba46ea8f178ab..3c25e9d46e2e1face392573b249c738b4ea07b09 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = pdns
-version    = 3.1
+version    = 3.3.1
 release    = 2
 
 groups     = Networking/DNS
@@ -27,6 +27,7 @@ build
                chrpath
                gcc-c++
                lua-devel
+               polarssl-devel
                shadow-utils
                sqlite-devel
                zlib-devel
@@ -38,9 +39,11 @@ build
        configure_options += \
                --sysconfdir=%{sysconfdir}/pdns \
                --libdir=%{libdir}/powerdns \
+               --with-system-polarssl \
                --with-modules="" \
                --with-dynmodules="pipe geo gsqlite3" \
                --with-lua \
+               --enable-tools \
                --disable-static
 
        prepare_cmds
@@ -59,6 +62,7 @@ build
                # Install default configuration.
                install -m 0644 %{DIR_SOURCE}/pdns.conf \
                        %{BUILDROOT}%{sysconfdir}/pdns/pdns.conf
+               rm -vf %{BUILDROOT}%{sysconfdir}/pdns/pdns.conf-dist
 
                # Create empty database file.
                touch %{BUILDROOT}%{sharedstatedir}/pdns/pdns.db
@@ -94,9 +98,13 @@ packages
                        shadow-utils
                        sqlite
                end
+
                configfiles
-                       /etc/pdns/pdns.conf
+                       %{sysconfdir}/pdns/pdns.conf
+               end
+
+               datafiles
+                       %{sharedstatedir}/pdns/pdns.db
                end
 
                script prein