Blame SOURCES/openldap-allop-overlay.patch

3b9fe0
Compile AllOp together with other overlays.
3b9fe0
3b9fe0
Author: Matus Honek <mhonek@redhat.com>
3b9fe0
Resolves: #1319782
3b9fe0
3b9fe0
diff --git a/servers/slapd/overlays/Makefile.in b/servers/slapd/overlays/Makefile.in
3b9fe0
--- a/servers/slapd/overlays/Makefile.in
3b9fe0
+++ b/servers/slapd/overlays/Makefile.in
3b9fe0
@@ -33,7 +33,8 @@ SRCS = overlays.c \
3b9fe0
 	translucent.c \
3b9fe0
 	unique.c \
3b9fe0
 	valsort.c \
3b9fe0
-	smbk5pwd.c
3b9fe0
+	smbk5pwd.c \
3b9fe0
+	allop.c
3b9fe0
 OBJS = statover.o \
3b9fe0
 	@SLAPD_STATIC_OVERLAYS@ \
3b9fe0
 	overlays.o
3b9fe0
@@ -53,7 +54,7 @@ NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
3b9fe0
 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
3b9fe0
 
3b9fe0
 LIBRARY = ../liboverlays.a
3b9fe0
-PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la
3b9fe0
+PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@ smbk5pwd.la allop.la
3b9fe0
 
3b9fe0
 XINCPATH = -I.. -I$(srcdir)/..
3b9fe0
 XDEFS = $(MODULES_CPPFLAGS)
3b9fe0
@@ -125,6 +126,12 @@ unique.la : unique.lo
3b9fe0
 smbk5pwd.la : smbk5pwd.lo
3b9fe0
 	$(LTLINK_MOD) -module -o $@ smbk5pwd.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
3b9fe0
 
3b9fe0
+allop.lo : allop.c
3b9fe0
+	$(LTCOMPILE_MOD) -DDO_SAMBA -UHAVE_MOZNSS -DHAVE_OPENSSL $(shell pkg-config openssl --cflags) $<
3b9fe0
+
3b9fe0
+allop.la : allop.lo
3b9fe0
+	$(LTLINK_MOD) -module -o $@ allop.lo version.lo $(LINK_LIBS) $(shell pkg-config openssl --libs)
3b9fe0
+
3b9fe0
 install-local:	$(PROGRAMS)
3b9fe0
 	@if test -n "$?" ; then \
3b9fe0
 		$(MKDIR) $(DESTDIR)$(moduledir); \