mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -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/*
|
||||
|
||||
%{plugin_dir}/libipa_pwd_extop.so
|
||||
%{plugin_dir}/libipa-memberof-plugin.so
|
||||
|
||||
|
||||
%changelog
|
||||
|
@ -49,6 +49,7 @@ rm -rf %{buildroot}
|
||||
%{_usr}/share/ipa/*
|
||||
|
||||
%{plugin_dir}/libipa_pwd_extop.so
|
||||
%{plugin_dir}/libipa-memberof-plugin.so
|
||||
|
||||
|
||||
%changelog
|
||||
|
@ -1,4 +1,4 @@
|
||||
SUBDIRS=ipa-pwd-extop
|
||||
SUBDIRS=ipa-pwd-extop ipa-memberof
|
||||
|
||||
all:
|
||||
@for subdir in $(SUBDIRS); do \
|
||||
|
@ -1,5 +1,28 @@
|
||||
all:
|
||||
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
|
||||
PREFIX ?= $(DESTDIR)/usr
|
||||
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:
|
||||
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