mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Integrate memberof plugin into build.
This commit is contained in:
parent
d3415f85b0
commit
e27ab98fd2
@ -49,6 +49,7 @@ rm -rf %{buildroot}
|
|||||||
%{_usr}/share/ipa/*
|
%{_usr}/share/ipa/*
|
||||||
|
|
||||||
%{plugin_dir}/libipa_pwd_extop.so
|
%{plugin_dir}/libipa_pwd_extop.so
|
||||||
|
%{plugin_dir}/libipa-memberof-plugin.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -49,6 +49,7 @@ rm -rf %{buildroot}
|
|||||||
%{_usr}/share/ipa/*
|
%{_usr}/share/ipa/*
|
||||||
|
|
||||||
%{plugin_dir}/libipa_pwd_extop.so
|
%{plugin_dir}/libipa_pwd_extop.so
|
||||||
|
%{plugin_dir}/libipa-memberof-plugin.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
SUBDIRS=ipa-pwd-extop
|
SUBDIRS=ipa-pwd-extop ipa-memberof
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@for subdir in $(SUBDIRS); do \
|
@for subdir in $(SUBDIRS); do \
|
||||||
|
@ -1,5 +1,28 @@
|
|||||||
all:
|
PREFIX ?= $(DESTDIR)/usr
|
||||||
gcc ipa-memberof.c -I/usr/include/nss3 -I/usr/include/mozldap -I/usr/include/nspr4 -I/usr/include/fedora-ds -I/usr/include -llber -shared -fPIC -DPIC -g -Wl,-soname -Wl,libipa-memberof-plugin.so -o libipa-memberof-plugin.so
|
LIBDIR = $(PREFIX)/lib/fedora-ds/plugins
|
||||||
|
SHAREDIR = $(DESTDIR)/usr/share/ipa
|
||||||
|
|
||||||
|
SONAME = libipa-memberof-plugin.so
|
||||||
|
LDFLAGS += -llber
|
||||||
|
CFLAGS ?= -Wall -Wshadow -O2
|
||||||
|
CFLAGS += -I/usr/include/fedora-ds -I/usr/include/nss3 -I/usr/include/mozldap -I/usr/include/nspr4 -fPIC -DPIC
|
||||||
|
|
||||||
|
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(CC) $(LDFLAGS) $(OBJS) -Wl,-soname -Wl,$(SONAME) -shared -o $(SONAME)
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f libipa-memberof-plugin.so /usr/lib/fedora-ds/plugins/
|
-mkdir -p $(LIBDIR)
|
||||||
|
install -m 644 $(SONAME) $(LIBDIR)
|
||||||
|
install -m 644 *.ldif $(SHAREDIR)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o
|
||||||
|
rm -f $(SONAME)
|
||||||
|
rm -f *~
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user