Move plugins to upstream default directory
Keep backward-compatible links from old directory. Any original configuration should keep running like before.
This commit is contained in:
parent
f290ef8ed6
commit
bd20caa99a
17
bind.spec
17
bind.spec
@ -40,7 +40,7 @@
|
||||
%global chroot_prefix %{bind_dir}/chroot
|
||||
%global chroot_create_directories /dev /run/named %{_localstatedir}/{log,named,tmp} \\\
|
||||
%{_sysconfdir}/{crypto-policies/back-ends,pki/dnssec-keys,named} \\\
|
||||
%{_libdir}/bind %{_datadir}/GeoIP
|
||||
%{_libdir}/bind %{_libdir}/named %{_datadir}/GeoIP
|
||||
|
||||
%global selinuxbooleans named_write_master_zones=1
|
||||
## The order of libs is important. See lib/Makefile.in for details
|
||||
@ -650,7 +650,7 @@ fi
|
||||
%install
|
||||
# Build directory hierarchy
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/bind
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/{bind,named}
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/named/{slaves,data,dynamic}
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/{man1,man5,man8}
|
||||
mkdir -p ${RPM_BUILD_ROOT}/run/named
|
||||
@ -713,6 +713,9 @@ install -m 644 %{SOURCE49} ${RPM_BUILD_ROOT}%{_sysconfdir}/named-chroot.files
|
||||
for DIR in filesystem ldap mysql mysqldyn sqlite3; do
|
||||
make -C $DIR DESTDIR=${RPM_BUILD_ROOT} libdir=%{_libdir}/named install
|
||||
done
|
||||
pushd ${RPM_BUILD_ROOT}/%{_libdir}/bind
|
||||
cp -s ../named/dlz_*.so .
|
||||
popd
|
||||
mv mysqldyn/testing/README mysqldyn/testing/README.testing
|
||||
popd
|
||||
popd
|
||||
@ -1136,23 +1139,23 @@ fi;
|
||||
|
||||
%if %{with DLZ}
|
||||
%files dlz-filesystem
|
||||
%{_libdir}/bind/dlz_filesystem_dynamic.so
|
||||
%{_libdir}/{named,bind}/dlz_filesystem_dynamic.so
|
||||
|
||||
%files dlz-mysql
|
||||
%{_libdir}/bind/dlz_mysql_dynamic.so
|
||||
%{_libdir}/{named,bind}/dlz_mysql_dynamic.so
|
||||
%doc contrib/dlz/modules/mysql/testing/*
|
||||
|
||||
%files dlz-mysqldyn
|
||||
%{_libdir}/bind/dlz_mysqldyn_mod.so
|
||||
%{_libdir}/{named,bind}/dlz_mysqldyn_mod.so
|
||||
%doc contrib/dlz/modules/mysqldyn/testing/*
|
||||
%doc contrib/dlz/modules/mysqldyn/README*
|
||||
|
||||
%files dlz-ldap
|
||||
%{_libdir}/bind/dlz_ldap_dynamic.so
|
||||
%{_libdir}/{named,bind}/dlz_ldap_dynamic.so
|
||||
%doc contrib/dlz/modules/ldap/testing/*
|
||||
|
||||
%files dlz-sqlite3
|
||||
%{_libdir}/bind/dlz_sqlite3_dynamic.so
|
||||
%{_libdir}/{named,bind}/dlz_sqlite3_dynamic.so
|
||||
%doc contrib/dlz/modules/sqlite3/testing/*
|
||||
|
||||
%endif
|
||||
|
@ -16,6 +16,8 @@
|
||||
/etc/named
|
||||
/usr/lib64/bind
|
||||
/usr/lib/bind
|
||||
/usr/lib64/named
|
||||
/usr/lib/named
|
||||
/usr/share/GeoIP
|
||||
/run/named
|
||||
# Warning: the order is important
|
||||
|
Loading…
Reference in New Issue
Block a user