packages: heimdal/heimdal.spec - added openldap-schema-heimdal package
baggins
baggins at pld-linux.org
Wed Jun 17 15:15:15 CEST 2009
Author: baggins Date: Wed Jun 17 13:15:15 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- added openldap-schema-heimdal package
---- Files affected:
packages/heimdal:
heimdal.spec (1.157 -> 1.158)
---- Diffs:
================================================================
Index: packages/heimdal/heimdal.spec
diff -u packages/heimdal/heimdal.spec:1.157 packages/heimdal/heimdal.spec:1.158
--- packages/heimdal/heimdal.spec:1.157 Wed Jun 17 13:48:27 2009
+++ packages/heimdal/heimdal.spec Wed Jun 17 15:15:07 2009
@@ -59,6 +59,8 @@
%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
@@ -107,6 +109,19 @@
%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
@@ -349,12 +364,14 @@
%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
@@ -444,6 +461,16 @@
/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
@@ -543,6 +570,10 @@
%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
@@ -694,6 +725,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.158 2009/06/17 13:15:07 baggins
+- added openldap-schema-heimdal package
+
Revision 1.157 2009/06/17 11:48:27 baggins
- rel 3
- explicit conflict with krb5 programs
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/heimdal/heimdal.spec?r1=1.157&r2=1.158&f=u
More information about the pld-cvs-commit
mailing list