Skip to content

Commit

Permalink
Bug#1651 - Add contrib module to limit connection acceptance based on…
Browse files Browse the repository at this point in the history
… system

load.
  • Loading branch information
castaglia committed Jan 1, 2005
1 parent 8a52ff8 commit 0dcf224
Show file tree
Hide file tree
Showing 7 changed files with 3,395 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$Id: NEWS,v 1.640 2005-01-01 03:02:05 castaglia Exp $
$Id: NEWS,v 1.641 2005-01-01 18:37:42 castaglia Exp $

-----------------------------------------------------------------------------
More details on the bugs listed below can be found by using the bug number
Expand Down Expand Up @@ -104,6 +104,8 @@ CVS
- Bug 2541 - <Directory ~user> path resolved at startup time, rather than at
session time.
- Bug 2549 - Allow contrib modules to be built from multiple source files.
- Bug 1651 - Add contrib module to limit connection acceptance based on system
load. mod_load is now one of the provided contrib/ modules.

1.2.10 - Released 04-Sep-2004
--------------------------------
Expand Down
36 changes: 36 additions & 0 deletions contrib/mod_load/Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
top_builddir=../..
top_srcdir=../../
srcdir=@srcdir@

include $(top_srcdir)/Make.rules

SHARED_CFLAGS=-DPR_SHARED_MODULE
SHARED_LDFLAGS=-avoid-version -export-dynamic -module
VPATH=@srcdir@

MODULE_NAME=mod_load

# Necessary redefinitions
INCLUDES=-I. -I../.. -I../../include
CPPFLAGS= -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES)
LDFLAGS=-L../../lib

%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

%.la: %.c
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(SHARED_CFLAGS) -c $(basename $@).c
$(LIBTOOL) --mode=link $(CC) -o $@ -rpath $(LIBEXECDIR) $(LDFLAGS) $(SHARED_LDFLAGS) $(basename $@).lo `cat $(basename $@).c | grep '$$Libraries:' | sed -e 's/^.*\$$Libraries: \(.*\)\\$$/\1/'`

shared: $(MODULE_NAME).la

static: $(MODULE_NAME).o

install:
$(LIBTOOL) --mode=install $(INSTALL_BIN) $(MODULE_NAME).la $(LIBEXECDIR)

clean:
$(RM) *.o
$(LIBTOOL) --mode=clean $(RM) "$(MODULE_NAME).o"
$(LIBTOOL) --mode=clean $(RM) `echo "$(MODULE_NAME).la" | sed 's/\.la$\/.lo/g'`

Loading

0 comments on commit 0dcf224

Please sign in to comment.