summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-05-12 19:18:38 +0000
committerStef Walter <stef@memberwebs.com>2009-05-12 19:18:38 +0000
commitc7093ba47710804ff8da32dc401fdef7f73171a4 (patch)
tree9651eee46a7c0aa21d16e4f61970d67b271fbc37
Initial import
-rw-r--r--AUTHORS3
-rw-r--r--COPYING31
-rw-r--r--ChangeLog3
-rw-r--r--Makefile.am6
-rw-r--r--NEWS1
-rw-r--r--README3
-rwxr-xr-xautogen.sh10
-rw-r--r--configure.in97
-rw-r--r--module/Makefile.am30
9 files changed, 184 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..5789b12
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,3 @@
+AUTHORS:
+Stef Walter <stef@memberwebs.com>
+
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..545a0f5
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,31 @@
+
+Copyright (c) 2009, Stefan Walter
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ * Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+ * Redistributions in binary form must reproduce the
+ above copyright notice, this list of conditions and
+ the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+ * The names of contributors to this software may not be
+ used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
+THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..cfa0068
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,3 @@
+0.1
+ - Initial non-public implementation
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..4cff35f
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,6 @@
+
+SUBDIRS = module
+
+dist-hook:
+ rm -rf `find $(distdir)/ -name '.??*'`
+
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..c7ab92a
--- /dev/null
+++ b/NEWS
@@ -0,0 +1 @@
+See ChangeLog \ No newline at end of file
diff --git a/README b/README
new file mode 100644
index 0000000..f9a31cf
--- /dev/null
+++ b/README
@@ -0,0 +1,3 @@
+=================================================================
+ MOD_AUTH_SINGLEID README
+
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..3b52ffd
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -ex
+
+set -ex
+
+aclocal
+autoheader
+automake -a
+autoconf
+./configure --enable-maintainer-mode "$@"
+
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..de38bd9
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,97 @@
+dnl
+dnl Copyright (c) 2009, Stefan Walter
+dnl All rights reserved.
+dnl
+dnl Redistribution and use in source and binary forms, with or without
+dnl modification, are permitted provided that the following conditions
+dnl are met:
+dnl
+dnl * Redistributions of source code must retain the above
+dnl copyright notice, this list of conditions and the
+dnl following disclaimer.
+dnl * Redistributions in binary form must reproduce the
+dnl above copyright notice, this list of conditions and
+dnl the following disclaimer in the documentation and/or
+dnl other materials provided with the distribution.
+dnl * The names of contributors to this software may not be
+dnl used to endorse or promote products derived from this
+dnl software without specific prior written permission.
+dnl
+dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+dnl "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+dnl LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+dnl FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+dnl COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+dnl INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+dnl BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+dnl OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+dnl AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+dnl OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
+dnl THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+dnl DAMAGE.
+dnl
+dnl
+dnl CONTRIBUTORS
+dnl Stef Walter <stef@memberwebs.com>
+dnl
+
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(mod_auth_singleid, 0.1, stef@memberwebs.com)
+AM_INIT_AUTOMAKE(mod_auth_singleid, 0.1)
+
+AC_CONFIG_SRCDIR([module/mod_auth_singleid.c])
+AM_CONFIG_HEADER([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
+# APACHE Build stuff
+
+AC_PATH_PROG(APXS, apxs, "failed")
+if test "$APXS" = "failed"; then
+ AC_PATH_PROG(APXS2, apxs2, "failed")
+ if test "$APXS2" = "failed"; then
+ APXS="apxs"
+ else
+ APXS=$APXS2
+ fi
+fi
+
+AM_CONDITIONAL(MANUAL_BUILD, false)
+AC_SUBST(APXS)
+
+AC_PATH_PROG(APACHECTL, apachectl, "failed")
+if test "$APACHECTL" = "failed"; then
+ AC_PATH_PROG(APACHE2CTL, apache2ctl, "failed")
+ if test "$APACHE2CTL" = "failed"; then
+ APACHECTL="apachectl"
+ else
+ APACHECTL=$APACHE2CTL
+ fi
+fi
+
+AC_SUBST(APACHECTL)
+
+AC_DEFINE_UNQUOTED(CONF_PREFIX, "`eval echo ${sysconfdir}`", [Installation Prefix] )
+
+# Debug mode
+AC_ARG_ENABLE(debug,
+ AC_HELP_STRING([--enable-debug],
+ [Compile binaries in debug mode]))
+
+if test "$enable_debug" = "yes"; then
+ CFLAGS="$CFLAGS -g -O0 -Wall"
+ AC_DEFINE_UNQUOTED(_DEBUG, 1, [In debug mode])
+ echo "enabling debug compile mode"
+fi
+
+AC_CONFIG_FILES([
+ Makefile
+ module/Makefile
+])
+
+AC_OUTPUT
+
diff --git a/module/Makefile.am b/module/Makefile.am
new file mode 100644
index 0000000..b303c5e
--- /dev/null
+++ b/module/Makefile.am
@@ -0,0 +1,30 @@
+
+EXTRA_DIST = mod_auth_singleid.c
+
+DEF =
+INC = -I../
+
+all: mod_auth_singleid.so
+
+mod_auth_singleid.so: mod_auth_singleid.c
+ @APXS@ -c -Wc,-g -Wc,-O0 -Wc,-Wall $(DEF) $(INC) $(LIB) mod_auth_singleid.c
+
+# Install the DSO file into the Apache installation and activate it in config
+install: all
+ @APXS@ -i -a -c -Wc,-g -Wc,-O0 $(DEF) $(INC) $(LIB) mod_auth_singleid.c
+
+# Cleanup
+clean:
+ -rm -f mod_auth_singleid.o mod_auth_singleid.so
+
+# Reload the module by installing and restarting Apache
+reload: install restart
+
+# The general Apache start/restart/stop procedures
+start:
+ @APACHECTL@ start
+restart:
+ @APACHECTL@ restart
+stop:
+ @APACHECTL@ stop
+