[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#6238) contrib: lastbind overlay to record timestamp of last successful bind

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

hyc@symas.com wrote:
> michael@stroeder.com wrote:
>> Could we have this overlay in contrib/ shipped with 2.4.24?
>> That would be really nice.
>> I've tested it with 2.4.23 and it still seems to work.
> Committed with changes in HEAD.

Also in RE24. Thanks a lot!

Any objections adding a slightly more complete Makefile (see attachment)?

Ciao, Michael.

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;

# Copyright 2009 Jonathan Clarke <jonathan@phillipoux.net>.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted only as authorized by the OpenLDAP
# Public License.
# A copy of this license is available in the file LICENSE in the
# top-level directory of the distribution or, alternatively, at
# <http://www.OpenLDAP.org/license.html>.


CPPFLAGS+=-I../../../include -I../../../servers/slapd 
OPT=-g -O2

all: lastbind.la

lastbind.lo:    lastbind.c
	$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) -Wall -c $?

lastbind.la:    lastbind.lo
	$(LIBTOOL) --mode=link $(CC) -version-info 0:0:0 \
		   -rpath $(PREFIX)/lib -module -o $@ $?

	rm -rf lastbind.lo lastbind.la lastbind.o .libs/

install: lastbind.la
	mkdir -p $(PREFIX)/libexec/openldap
	$(LIBTOOL) --mode=install cp lastbind.la $(PREFIX)/libexec/openldap
	$(LIBTOOL) --finish $(PREFIX)/libexec/openldap