- make the example ldif files multilib safe by assuming that omitting the

directory is safe because the plugin will be installed where the server
    will be looking for it
This commit is contained in:
Nalin Dahyabhai 2008-12-09 16:44:20 +00:00
parent 2a68175e01
commit 89171e744b
2 changed files with 35 additions and 1 deletions

27
slapi-nis-paths.patch Normal file
View File

@ -0,0 +1,27 @@
Take advantage of the server's ability to prepend the right directory name
and append the right extension to make the resulting file multilib-safe.
diff -ru slapi-nis-0.8.5/doc/nis-plugin.ldif.in slapi-nis-0.8.5/doc/nis-plugin.ldif.in
--- slapi-nis-0.8.5/doc/nis-plugin.ldif.in 2008-12-08 14:00:53.000000000 -0500
+++ slapi-nis-0.8.5/doc/nis-plugin.ldif.in 2008-12-09 11:18:13.000000000 -0500
@@ -3,7 +3,7 @@
objectclass: nsSlapdPlugin
objectclass: extensibleObject
cn: NIS Server
-nsslapd-pluginpath: @myplugindir@/nisserver-plugin.so
+nsslapd-pluginpath: nisserver-plugin
nsslapd-plugininitfunc: nis_plugin_init
nsslapd-plugintype: object
nsslapd-pluginenabled: on
diff -ru slapi-nis-0.8.5/doc/sch-plugin.ldif.in slapi-nis-0.8.5/doc/sch-plugin.ldif.in
--- slapi-nis-0.8.5/doc/sch-plugin.ldif.in 2008-12-08 14:00:53.000000000 -0500
+++ slapi-nis-0.8.5/doc/sch-plugin.ldif.in 2008-12-09 11:18:21.000000000 -0500
@@ -3,7 +3,7 @@
objectclass: nsSlapdPlugin
objectclass: extensibleObject
cn: Schema Compatibility
-nsslapd-pluginpath: @myplugindir@/schemacompat-plugin.so
+nsslapd-pluginpath: schemacompat-plugin
nsslapd-plugininitfunc: schema_compat_plugin_init
nsslapd-plugintype: object
nsslapd-pluginenabled: on

View File

@ -1,11 +1,12 @@
Name: slapi-nis
Version: 0.8.5
Release: 1%{?dist}
Release: 2%{?dist}
Summary: NIS Server and Schema Compatibility plugins for Directory Server
Group: System Environment/Daemons
License: GPLv2
URL: http://slapi-nis.fedorahosted.org/
Source0: https://fedorahosted.org/releases/s/l/slapi-nis/slapi-nis-%{version}.tar.gz
Patch0: slapi-nis-paths.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fedora-ds-base-devel, mozldap-devel, tcp_wrappers-devel
@ -20,6 +21,7 @@ in the directory.
%prep
%setup -q
%patch0 -p1 -b .paths
%build
%configure --disable-static --with-tcp-wrappers
@ -46,6 +48,11 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/nisserver-plugin-defs
%changelog
* Tue Dec 9 2008 Nalin Dahyabhai <nalin@redhat.com> - 0.8.5-2
- make the example nsslapd-pluginpath values the same on 32- and 64-bit
systems, because we can depend on the directory server "knowing" which
directory to search for the plugins
* Mon Dec 8 2008 Nalin Dahyabhai <nalin@redhat.com> - 0.8.5-1
- update to 0.8.5 to suppress duplicate values for attributes in the schema
compatibility plugin