Blame SOURCES/openldap-module-passwd-sha2.patch

adf540
Include sha2 module
adf540
adf540
Author: Matus Honek <mhonek@redhat.com>
adf540
adf540
diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in
adf540
--- a/servers/slapd/overlays/Makefile.in
adf540
+++ b/servers/slapd/overlays/Makefile.in
adf540
@@ -35,7 +35,8 @@ SRCS = overlays.c \
adf540
 	unique.c \
adf540
 	valsort.c \
adf540
 	smbk5pwd.c \
adf540
-	allop.c
adf540
+	allop.c \
adf540
+	sha2.c slapd-sha2.c
adf540
 OBJS = statover.o \
adf540
 	@SLAPD_STATIC_OVERLAYS@ \
adf540
 	overlays.o
adf540
@@ -55,7 +56,7 @@ NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
adf540
 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
adf540
 
adf540
 LIBRARY = ../liboverlays.a
adf540
-PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la
adf540
+PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la pw-sha2.la
adf540
 
adf540
 XINCPATH = -I.. -I$(srcdir)/..
adf540
 XDEFS = $(MODULES_CPPFLAGS)
adf540
@@ -139,6 +140,15 @@ allop.lo : allop.c
adf540
 allop.la : allop.lo
adf540
 	$(LTLINK_MOD) -module -o $@ allop.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
adf540
 
adf540
+sha2.lo : sha2.c
adf540
+	$(LTCOMPILE_MOD) $<
adf540
+
adf540
+slapd-sha2.lo : slapd-sha2.c
adf540
+	$(LTCOMPILE_MOD) $<
adf540
+
adf540
+pw-sha2.la : sha2.lo slapd-sha2.lo
adf540
+	$(LTLINK_MOD) -module -o $@ $? version.lo $(LINK_LIBS)
adf540
+
adf540
 install-local:	$(PROGRAMS)
adf540
 	@if test -n "$?" ; then \
adf540
 		$(MKDIR) $(DESTDIR)$(moduledir); \