fix build for older distries
OBS-URL: https://build.opensuse.org/package/show/network/krb5?expand=0&rev=75
This commit is contained in:
parent
dc50be2adf
commit
4152ef5ebb
@ -240,10 +240,12 @@ install -m 755 %{vendorFiles}/kadmind.init %{buildroot}%{_sysconfdir}/init.d/kad
|
||||
install -m 755 %{vendorFiles}/krb5kdc.init %{buildroot}%{_sysconfdir}/init.d/krb5kdc
|
||||
install -m 755 %{vendorFiles}/kpropd.init %{buildroot}%{_sysconfdir}/init.d/kpropd
|
||||
# install systemd files
|
||||
%if 0%{?suse_version} >= 1210
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
install -m 644 %{vendorFiles}/kadmind.service %{buildroot}%{_unitdir}
|
||||
install -m 644 %{vendorFiles}/krb5kdc.service %{buildroot}%{_unitdir}
|
||||
install -m 644 %{vendorFiles}/kpropd.service %{buildroot}%{_unitdir}
|
||||
%endif
|
||||
# install sysconfig templates
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_var}/adm/fillup-templates
|
||||
install -m 644 %{vendorFiles}/sysconfig.kadmind $RPM_BUILD_ROOT/%{_var}/adm/fillup-templates/
|
||||
@ -254,9 +256,10 @@ install -m 644 %{vendorFiles}/krb5-server.logrotate %{buildroot}%{_sysconfdir}/l
|
||||
find . -type f -name '*.ps' -exec gzip -9 {} \;
|
||||
# create rc* links
|
||||
mkdir -p %{buildroot}/usr/bin/
|
||||
ln -sf ../../etc/init.d/kadmind %{buildroot}/usr/bin/rckadmind
|
||||
ln -sf ../../etc/init.d/krb5kdc %{buildroot}/usr/bin/rckrb5kdc
|
||||
ln -sf ../../etc/init.d/kpropd %{buildroot}/usr/bin/rckpropd
|
||||
mkdir -p %{buildroot}/usr/sbin/
|
||||
ln -sf ../../etc/init.d/kadmind %{buildroot}/usr/sbin/rckadmind
|
||||
ln -sf ../../etc/init.d/krb5kdc %{buildroot}/usr/sbin/rckrb5kdc
|
||||
ln -sf ../../etc/init.d/kpropd %{buildroot}/usr/sbin/rckpropd
|
||||
# create links for kinit and klist, because of the java ones
|
||||
ln -sf ../../usr/lib/mit/bin/kinit %{buildroot}/usr/bin/kinit
|
||||
ln -sf ../../usr/lib/mit/bin/klist %{buildroot}/usr/bin/klist
|
||||
@ -304,9 +307,11 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
# krb5 pre/post/postun
|
||||
#####################################################
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
#####################################################
|
||||
# krb5-server preun/postun/pre/post
|
||||
@ -344,9 +349,11 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
# krb5-plugin-kdb-ldap post/postun
|
||||
#####################################################
|
||||
|
||||
%post plugin-kdb-ldap -p /sbin/ldconfig
|
||||
%post plugin-kdb-ldap
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun plugin-kdb-ldap -p /sbin/ldconfig
|
||||
%postun plugin-kdb-ldap
|
||||
/sbin/ldconfig
|
||||
|
||||
%endif
|
||||
|
||||
@ -405,7 +412,9 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/k*
|
||||
%{_var}/adm/fillup-templates/sysconfig.*
|
||||
%{_sysconfdir}/init.d/*
|
||||
%if 0%{?suse_version} >= 1210
|
||||
%{_unitdir}/*.service
|
||||
%endif
|
||||
%{_libdir}/libgssapi_krb5.*
|
||||
%{_libdir}/libgssrpc.so.*
|
||||
%{_libdir}/libk5crypto.so.*
|
||||
@ -448,7 +457,7 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
/usr/lib/mit/bin/sim_client
|
||||
/usr/bin/kinit
|
||||
/usr/bin/klist
|
||||
/usr/bin/rc*
|
||||
/usr/sbin/rc*
|
||||
#%{_mandir}/man1/*
|
||||
%{_mandir}/man1/kvno.1*
|
||||
%{_mandir}/man1/kinit.1*
|
||||
@ -499,9 +508,11 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
%{_sysconfdir}/init.d/kadmind
|
||||
%{_sysconfdir}/init.d/krb5kdc
|
||||
%{_sysconfdir}/init.d/kpropd
|
||||
%if 0%{?suse_version} >= 1210
|
||||
%{_unitdir}/kadmind.service
|
||||
%{_unitdir}/krb5kdc.service
|
||||
%{_unitdir}/kpropd.service
|
||||
%endif
|
||||
%dir %{krb5docdir}
|
||||
%dir /usr/lib/mit
|
||||
%dir /usr/lib/mit/sbin
|
||||
@ -515,7 +526,7 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
%attr(0600,root,root) %config(noreplace) %{_localstatedir}/lib/kerberos/krb5kdc/kadm5.dict
|
||||
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/k*
|
||||
%{_var}/adm/fillup-templates/sysconfig.*
|
||||
/usr/bin/rc*
|
||||
/usr/sbin/rc*
|
||||
/usr/lib/mit/sbin/kadmin.local
|
||||
/usr/lib/mit/sbin/kadmind
|
||||
/usr/lib/mit/sbin/kpropd
|
||||
|
29
krb5.spec
29
krb5.spec
@ -240,10 +240,12 @@ install -m 755 %{vendorFiles}/kadmind.init %{buildroot}%{_sysconfdir}/init.d/kad
|
||||
install -m 755 %{vendorFiles}/krb5kdc.init %{buildroot}%{_sysconfdir}/init.d/krb5kdc
|
||||
install -m 755 %{vendorFiles}/kpropd.init %{buildroot}%{_sysconfdir}/init.d/kpropd
|
||||
# install systemd files
|
||||
%if 0%{?suse_version} >= 1210
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
install -m 644 %{vendorFiles}/kadmind.service %{buildroot}%{_unitdir}
|
||||
install -m 644 %{vendorFiles}/krb5kdc.service %{buildroot}%{_unitdir}
|
||||
install -m 644 %{vendorFiles}/kpropd.service %{buildroot}%{_unitdir}
|
||||
%endif
|
||||
# install sysconfig templates
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_var}/adm/fillup-templates
|
||||
install -m 644 %{vendorFiles}/sysconfig.kadmind $RPM_BUILD_ROOT/%{_var}/adm/fillup-templates/
|
||||
@ -254,9 +256,10 @@ install -m 644 %{vendorFiles}/krb5-server.logrotate %{buildroot}%{_sysconfdir}/l
|
||||
find . -type f -name '*.ps' -exec gzip -9 {} \;
|
||||
# create rc* links
|
||||
mkdir -p %{buildroot}/usr/bin/
|
||||
ln -sf ../../etc/init.d/kadmind %{buildroot}/usr/bin/rckadmind
|
||||
ln -sf ../../etc/init.d/krb5kdc %{buildroot}/usr/bin/rckrb5kdc
|
||||
ln -sf ../../etc/init.d/kpropd %{buildroot}/usr/bin/rckpropd
|
||||
mkdir -p %{buildroot}/usr/sbin/
|
||||
ln -sf ../../etc/init.d/kadmind %{buildroot}/usr/sbin/rckadmind
|
||||
ln -sf ../../etc/init.d/krb5kdc %{buildroot}/usr/sbin/rckrb5kdc
|
||||
ln -sf ../../etc/init.d/kpropd %{buildroot}/usr/sbin/rckpropd
|
||||
# create links for kinit and klist, because of the java ones
|
||||
ln -sf ../../usr/lib/mit/bin/kinit %{buildroot}/usr/bin/kinit
|
||||
ln -sf ../../usr/lib/mit/bin/klist %{buildroot}/usr/bin/klist
|
||||
@ -304,9 +307,11 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
# krb5 pre/post/postun
|
||||
#####################################################
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
#####################################################
|
||||
# krb5-server preun/postun/pre/post
|
||||
@ -344,9 +349,11 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
# krb5-plugin-kdb-ldap post/postun
|
||||
#####################################################
|
||||
|
||||
%post plugin-kdb-ldap -p /sbin/ldconfig
|
||||
%post plugin-kdb-ldap
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun plugin-kdb-ldap -p /sbin/ldconfig
|
||||
%postun plugin-kdb-ldap
|
||||
/sbin/ldconfig
|
||||
|
||||
%endif
|
||||
|
||||
@ -405,7 +412,9 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/k*
|
||||
%{_var}/adm/fillup-templates/sysconfig.*
|
||||
%{_sysconfdir}/init.d/*
|
||||
%if 0%{?suse_version} >= 1210
|
||||
%{_unitdir}/*.service
|
||||
%endif
|
||||
%{_libdir}/libgssapi_krb5.*
|
||||
%{_libdir}/libgssrpc.so.*
|
||||
%{_libdir}/libk5crypto.so.*
|
||||
@ -448,7 +457,7 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
/usr/lib/mit/bin/sim_client
|
||||
/usr/bin/kinit
|
||||
/usr/bin/klist
|
||||
/usr/bin/rc*
|
||||
/usr/sbin/rc*
|
||||
#%{_mandir}/man1/*
|
||||
%{_mandir}/man1/kvno.1*
|
||||
%{_mandir}/man1/kinit.1*
|
||||
@ -499,9 +508,11 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
%{_sysconfdir}/init.d/kadmind
|
||||
%{_sysconfdir}/init.d/krb5kdc
|
||||
%{_sysconfdir}/init.d/kpropd
|
||||
%if 0%{?suse_version} >= 1210
|
||||
%{_unitdir}/kadmind.service
|
||||
%{_unitdir}/krb5kdc.service
|
||||
%{_unitdir}/kpropd.service
|
||||
%endif
|
||||
%dir %{krb5docdir}
|
||||
%dir /usr/lib/mit
|
||||
%dir /usr/lib/mit/sbin
|
||||
@ -515,7 +526,7 @@ rm -rf %{buildroot}/usr/lib/mit/share
|
||||
%attr(0600,root,root) %config(noreplace) %{_localstatedir}/lib/kerberos/krb5kdc/kadm5.dict
|
||||
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/k*
|
||||
%{_var}/adm/fillup-templates/sysconfig.*
|
||||
/usr/bin/rc*
|
||||
/usr/sbin/rc*
|
||||
/usr/lib/mit/sbin/kadmin.local
|
||||
/usr/lib/mit/sbin/kadmind
|
||||
/usr/lib/mit/sbin/kpropd
|
||||
|
Loading…
Reference in New Issue
Block a user