Initial commit of dna plugin - origin: FDS with fix ups

This commit is contained in:
Pete Rowley
2007-09-04 15:39:53 -07:00
parent 3afd023c3a
commit 82943c31de
4 changed files with 1222 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
SUBDIRS=ipa-pwd-extop ipa-memberof
SUBDIRS=ipa-pwd-extop ipa-memberof dna
all:
@for subdir in $(SUBDIRS); do \

View File

@@ -0,0 +1,34 @@
DIRSRV ?= fedora-ds
PREFIX ?= $(DESTDIR)/usr
LIBDIR ?= $(PREFIX)/lib/$(DIRSRV)/plugins
LIB64DIR ?= $(PREFIX)/lib64/$(DIRSRV)/plugins
SHAREDIR = $(DESTDIR)/usr/share/ipa
SONAME = libipa-dna-plugin.so
LDFLAGS += -llber
CFLAGS ?= -g -Wall -Wshadow
CFLAGS += -I/usr/include/$(DIRSRV) -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:
-mkdir -p $(LIBDIR)
if [ -e $(PREFIX)/lib/$(DIRSRV) ]; then \
install -m 644 $(SONAME) $(LIBDIR); \
else \
install -m 644 $(SONAME) $(LIB64DIR); \
fi
install -m 644 *.ldif $(SHAREDIR)
clean:
rm -f *.o
rm -f $(SONAME)
rm -f *~

View File

@@ -0,0 +1,13 @@
dn: cn=ipa-dna,cn=plugins,cn=config
objectclass: top
objectclass: nsSlapdPlugin
objectclass: extensibleObject
cn: ipa-dna
nsslapd-pluginpath: libipa-dna-plugin
nsslapd-plugininitfunc: dna_init
nsslapd-plugintype: postoperation
nsslapd-pluginenabled: on
nsslapd-pluginid: ipa-dna
nsslapd-pluginversion: 1.0
nsslapd-pluginvendor: Red Hat
nsslapd-plugindescription: Distributed numeric assignment plugin

File diff suppressed because it is too large Load Diff