]> git.pld-linux.org Git - packages/heimdal.git/commitdiff
- added openldap-schema-heimdal package auto/th/heimdal-1_2_1-3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 17 Jun 2009 13:15:07 +0000 (13:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    heimdal.spec -> 1.158

heimdal.spec

index 8d96f4ae4b96a80a116c98f3acd309acfd8259fa..c7737d6da2147727e48aef57bb1fba4dcd3548a8 100644 (file)
@@ -58,6 +58,8 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _localstatedir  /var/lib/%{name}
 %define                _sysconfdir     /etc/%{name}
 
+%define                schemadir       /usr/share/openldap/schema
+
 %description
 Heimdal is a free implementation of Kerberos 5. The goals are to:
 - have an implementation that can be freely used by anyone
@@ -106,6 +108,19 @@ LDAP HDB plugin.
 %description ldap -l pl.UTF-8
 Wtyczka HDB LDAP.
 
+%package -n openldap-schema-heimdal
+Summary:       Heimdal LDAP schema
+Summary(pl.UTF-8):     Schemat LDAP dla Heimdala
+Group:         Networking/Daemons
+Requires(post,postun): sed >= 4.0
+Requires:      openldap-servers
+
+%description -n openldap-schema-heimdal
+This package contains Heimdal kerberos LDAP schema for openldap.
+
+%description -n openldap-schema-heimdal -l pl.UTF-8
+en pakiet zawiera schemat Heimdal kerberosa dla openldap-a.
+
 %package devel
 Summary:       Header files for heimdal
 Summary(pl.UTF-8):     Pliki nagłówkowe i dokumentacja do bibliotek heimdal
@@ -348,12 +363,14 @@ rm -f acinclude.m4 cf/{libtool,lt*}.m4
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_localstatedir},%{_sysconfdir}} \
+install -d $RPM_BUILD_ROOT{%{_localstatedir},%{_sysconfdir},%{schemadir}} \
        $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,logrotate.d,rc.d/init.d}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install lib/hdb/hdb.schema $RPM_BUILD_ROOT%{schemadir}
+
 mv $RPM_BUILD_ROOT%{_bindir}/su $RPM_BUILD_ROOT%{_bindir}/ksu
 mv $RPM_BUILD_ROOT%{_mandir}/man1/su.1  $RPM_BUILD_ROOT%{_mandir}/man1/ksu.1
 
@@ -443,6 +460,16 @@ fi
 /sbin/ldconfig
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
+%post -n openldap-schema-heimdal
+%openldap_schema_register %{schemadir}/hdb.schema
+%service -q ldap restart
+
+%postun -n openldap-schema-heimdal
+if [ "$1" = "0" ]; then
+       %openldap_schema_unregister %{schemadir}/hdb.schema
+       %service -q ldap restart
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog NEWS README TODO
@@ -542,6 +569,10 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/hdb_ldap.so
 
+%files -n openldap-schema-heimdal
+%defattr(644,root,root,755)
+%{schemadir}/*.schema
+
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/krb5-config
This page took 0.087998 seconds and 4 git commands to generate.