]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - bind/bind.nm
Merge remote-tracking branch 'stevee/compat-packages'
[people/ms/ipfire-3.x.git] / bind / bind.nm
index 2799b0e700c3d0f34db95d8a5f44a9b96f91e720..484c5e02819de8e1f4daa9c0ec25145a861abbd9 100644 (file)
@@ -67,18 +67,16 @@ build
 
        configure_options += \
                --with-libtool \
-               --sysconfdir=/etc \
-               --localstatedir=/var \
                --enable-threads \
                --enable-ipv6 \
                --with-pic \
                --disable-static \
                --disable-openssl-version-check \
                --enable-exportlib \
-               --with-export-libdir=/lib/ \
+               --with-export-libdir=/%{lib}/ \
                --with-export-includedir=/usr/include/ \
                --includedir=/usr/include/bind9/ \
-               --with-pkcs11=/usr/lib/pkcs11/PKCS11_API.so \
+               --with-pkcs11=%{libdir}/pkcs11/PKCS11_API.so \
                --with-gssapi=yes \
                --disable-isc-spnego
 
@@ -108,7 +106,7 @@ build
                gzip -9 doc/rfc/*
 
                # Create directory layout.
-               mkdir -pv %{BUILDROOT}/usr/lib/bind
+               mkdir -pv %{BUILDROOT}%{libdir}/bind
                mkdir -pv %{BUILDROOT}/var/named/{slaves,data,dynamic}
                mkdir -pv %{BUILDROOT}/usr/share/man/{man1,man5,man8}
                mkdir -pv %{BUILDROOT}/run/named
@@ -142,18 +140,18 @@ build
                tar -C %{BUILDROOT} -xaf %{DIR_DL}/bind-config-8.tar.bz2
                touch %{BUILDROOT}/etc/rndc.key
                touch %{BUILDROOT}/etc/rndc.conf
-               
+
                mkdir %{BUILDROOT}/etc/named
                install -m 644 bind.keys %{BUILDROOT}/etc/named.iscdlv.key
                install -m 644 %{DIR_SOURCE}/trusted-key.key %{BUILDROOT}/etc/trusted-key.key
 
                # Recreate symlinks for export libraries
-               rm -rf %{BUILDROOT}/lib/lib*-export.so
+               rm -rf %{BUILDROOT}/%{lib}/lib*-export.so
 
-               ln -svf ../../lib/libdns-export.so.81 %{BUILDROOT}/usr/lib/libdns-export.so
-               ln -svf ../../lib/libirs-export.so.80 %{BUILDROOT}/usr/lib/libirs-export.so
-               ln -svf ../../lib/libisccfg-export.so.82 %{BUILDROOT}/usr/lib/libisccfg-export.so
-               ln -svf ../../lib/libisc-export.so.83 %{BUILDROOT}/usr/lib/libisc-export.so
+               ln -svf ../../%{lib}/libdns-export.so.81 %{BUILDROOT}%{libdir}/libdns-export.so
+               ln -svf ../../%{lib}/libirs-export.so.80 %{BUILDROOT}%{libdir}/libirs-export.so
+               ln -svf ../../%{lib}/libisccfg-export.so.82 %{BUILDROOT}%{libdir}/libisccfg-export.so
+               ln -svf ../../%{lib}/libisc-export.so.83 %{BUILDROOT}%{libdir}/libisc-export.so
 
                # Create /run/named.
                mkdir -pv %{BUILDROOT}/run/named
@@ -215,4 +213,8 @@ packages
        package %{name}-devel
                template DEVEL
        end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
 end