Accepting request 311393 from home:guohouzuo:freeipa
Fix inappropriate use of /var/lib/named for locating dynamic-DB plugins. Dynamic-DB plugins are now loaded from %{_libexecdir}/bind, consistent with openSUSE packaging guideline. Install additional header files which are helpful to the development of dynamic-DB plugins. Please note that - the so-far only implementation of dyanmic-DB plugin does not support running in chroot environment very well, there is great performance impact in doing so. OBS-URL: https://build.opensuse.org/request/show/311393 OBS-URL: https://build.opensuse.org/package/show/network/bind?expand=0&rev=169
This commit is contained in:
parent
1ea9273bb0
commit
755db9e738
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 13 09:35:40 UTC 2015 - hguo@suse.com
|
||||
|
||||
- Fix inappropriate use of /var/lib/named for locating dynamic-DB plugins.
|
||||
Dynamic-DB plugins are now loaded from %{_libexecdir}/bind, consistent with openSUSE packaging guideline.
|
||||
- Install additional header files which are helpful to the development of dynamic-DB plugins.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 8 18:00:41 UTC 2015 - lmuelle@suse.com
|
||||
|
||||
|
14
bind.spec
14
bind.spec
@ -490,13 +490,18 @@ mkdir -p \
|
||||
${RPM_BUILD_ROOT}/var/adm/fillup-templates \
|
||||
${RPM_BUILD_ROOT}/%{_rundir} \
|
||||
${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services \
|
||||
${RPM_BUILD_ROOT}%{_includedir}/bind/dns
|
||||
${RPM_BUILD_ROOT}%{_includedir}/bind/dns \
|
||||
${RPM_BUILD_ROOT}%{_libexecdir}/bind
|
||||
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
|
||||
pushd contrib/idn/idnkit-1.0-src
|
||||
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
|
||||
popd
|
||||
# install header file for developing Dynamic DB plugin
|
||||
install -m 0644 ./lib/dns/include/dns/dynamic_db.h ${RPM_BUILD_ROOT}%{_includedir}/bind/dns/
|
||||
# install interface header file for developing Dynamic DB plugin
|
||||
install -m 0644 lib/dns/include/dns/dynamic_db.h ${RPM_BUILD_ROOT}%{_includedir}/bind/dns/
|
||||
# install errno2result.h, some dynamic DB plugins could use it.
|
||||
install -m 0755 -d ${RPM_BUILD_ROOT}%{_includedir}/isc/
|
||||
install -m 0644 lib/isc/unix/errno2result.h ${RPM_BUILD_ROOT}%{_includedir}/isc/
|
||||
|
||||
# remove useless .la files
|
||||
rm -f ${RPM_BUILD_ROOT}/%{_lib}/libidnkit.la
|
||||
rm -f ${RPM_BUILD_ROOT}/%{_lib}/libidnkitlite.la
|
||||
@ -834,6 +839,7 @@ fi
|
||||
%ghost %{_var}/lib/named/etc/localtime
|
||||
%attr(0644,root,named) %ghost %{_var}/lib/named/etc/named.conf.include
|
||||
%attr(-,named,named) %dir %{_var}/lib/named/var/run/named
|
||||
%dir %{_libexecdir}/bind
|
||||
|
||||
%files -n idnkit
|
||||
%defattr(-,root,root)
|
||||
@ -920,6 +926,8 @@ fi
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/isc
|
||||
%{_includedir}/isc/errno2result.h
|
||||
%{_bindir}/isc-config.sh
|
||||
%{_libdir}/libbind9.so
|
||||
%{_libdir}/libdns.so
|
||||
|
@ -670,7 +670,7 @@ diff -rupN bind-9.10.1-P1-orig/lib/dns/Makefile.in bind-9.10.1-P1-patched/lib/dn
|
||||
|
||||
+dynamic_db.@O@: dynamic_db.c
|
||||
+ ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
||||
+ -DDYNDB_LIBDIR=\"/var/lib/named/\" \
|
||||
+ -DDYNDB_LIBDIR=\"/usr/lib/bind/\" \
|
||||
+ -c ${srcdir}/dynamic_db.c
|
||||
+
|
||||
libdns.@SA@: ${OBJS}
|
||||
|
Loading…
Reference in New Issue
Block a user