mod_qos-10.28/0000775000000000000020000000000012264072142011454 5ustar rootbinmod_qos-10.28/tools/0000775000000000000020000000000012264072142012614 5ustar rootbinmod_qos-10.28/tools/configure.ac0000664000000000000020000000722512264072142015110 0ustar rootbin# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.50]) AC_INIT(mod_qos, 9.0, pbuchbinder@users.sourceforge.net) AC_CONFIG_SRCDIR([src/qscheck.c]) AM_INIT_AUTOMAKE AM_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC # Checks for libraries. # Checks for header files. AC_CHECK_HEADERS([fcntl.h netdb.h stdlib.h string.h strings.h sys/socket.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_PID_T AC_TYPE_UID_T # Checks for library functions. AC_FUNC_FORK AC_FUNC_MALLOC AC_CHECK_FUNCS([ftruncate gethostbyname memset regcomp select socket strchr strerror strrchr strstr]) # START customize settings AC_ARG_ENABLE([use-static], AS_HELP_STRING(--enable-use-static,Try to use archives instead of shared libraries)) AC_ARG_ENABLE([full-static], AS_HELP_STRING(--enable-full-static,Try to compile a statical linked executable)) AC_ARG_ENABLE([ssl], AS_HELP_STRING(--disable-ssl,Disable ssl support (not supported yet))) AC_ARG_WITH(apr,AS_HELP_STRING(--with-apr=PATH,path to apr-1-config script), [if test ! -x $withval/apr-1-config; then AC_MSG_ERROR($withval/apr-1-config do not exist or is not executable); else APR_CONFIG="$withval/apr-1-config"; fi], [APR_CONFIG="apr-1-config"]) AC_ARG_WITH(apr-util,AS_HELP_STRING(--with-apr-util=PATH,path to apu-1-config script), [if test ! -x $withval/apu-1-config; then AC_MSG_ERROR($withval/apu-1-config do not exist or is not executable); else APU_CONFIG="$withval/apu-1-config"; fi], [APU_CONFIG="apu-1-config"]) AC_ARG_WITH(pcre,AS_HELP_STRING(--with-pcre=PATH,path to pcre-config script), [if test ! -x $withval/pcre-config; then AC_MSG_ERROR($withval/pcre-config do not exist or is not executable); else PCRE_CONFIG="$withval/pcre-config"; fi], [PCRE_CONFIG="pcre-config"]) AC_ARG_WITH(png,AS_HELP_STRING(--with-png=PATH,path to libpng-config script), [if test ! -x $withval/libpng-config; then AC_MSG_ERROR($withval/libpng-config do not exist or is not executable); else PNG_CONFIG="$withval/libpng-config"; fi], [PNG_CONFIG="libpng-config"]) AC_ARG_WITH(ssl,AS_HELP_STRING(--with-ssl=PATH,path to openssl source), [if test ! -d $withval; then AC_MSG_ERROR($withval is not a directory); else OPENSSL_LIB_PATH="-L${withval}"; OPENSSL_INCLUDES="-I${withval}/include"; fi], [OPENSSL_LIB_PATH=""; OPENSSL_INCLUDES=""]) APR_VERSION=`$APR_CONFIG --version` if test ! "$?" = "0"; then echo "libapr is missing, use --with-apr=PATH" exit -1 fi APU_VERSION=`$APU_CONFIG --version` if test ! "$?" = "0"; then echo "libaprutil is missing, use --with-apr-util=PATH" exit -1 fi PCRE_VERSION=`$PCRE_CONFIG --version` if test ! "$?" = "0"; then echo "libpcre is missing, use --with-pcre=PATH to specify the location of your pcre library" exit -1 fi PNG_VERSION=`$PNG_CONFIG --version` if test ! "$?" = "0"; then echo "libpng is missing, use --with-png=PATH to specify the location of your png library" #exit -1 fi # Store settings for includes, libs and flags INCLUDES="`$APR_CONFIG --includes` `$APU_CONFIG --includes` $OPENSSL_INCLUDES" CFLAGS="`$APR_CONFIG --cflags` `$PCRE_CONFIG --cflags` `$PNG_CONFIG --cflags` $CFLAGS $INCLUDES" CPPFLAGS="`$APR_CONFIG --cppflags` $CPPFLAGS" LIBS="$OPENSSL_LIB_PATH -lssl -lcrypto `$APR_CONFIG --link-ld` `$APU_CONFIG --link-ld` `$APR_CONFIG --libs` `$APU_CONFIG --libs` `$PCRE_CONFIG --libs` `$PNG_CONFIG --libs` -lz" # if link static if test "$enable_full_static" = "yes"; then LDFLAGS="-all-static" fi # if link static if test "$enable_use_static" = "yes"; then LDFLAGS="-static" fi # END customize settings AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT mod_qos-10.28/tools/src/0000775000000000000020000000000012264072142013403 5ustar rootbinmod_qos-10.28/tools/src/qslogger.c0000644000000000000020000002720412264072142015375 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Utilities for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qslogger.c,v 1.15 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include #include #include #include #include #include "qs_util.h" // [Wed Mar 28 22:40:41 2012] [warn] #define QS_DEFAULTPATTERN "^\\[[0-9a-zA-Z :]+\\] \\[([a-z]+)\\] " // huge (2mb) buffer supporting very long long lines #define MAX_LINE_BUFFER 2097152 #define QS_MAX_PATTERN_MA 2 static int m_default_severity = LOG_NOTICE; /** * Similar to standard strstr() but case insensitive and lenght limitation * (string which is not 0 terminated). * * @param s1 String to search in * @param s2 Pattern to ind * @param len Length of s1 * @return pointer to the beginning of the substring s2 within s1, or NULL * if the substring is not found */ static const char *qs_strncasestr(const char *s1, const char *s2, int len) { const char *e1 = &s1[len-1]; char *p1, *p2; if (*s2 == '\0') { /* an empty s2 */ return((char *)s1); } while(1) { for ( ; (*s1 != '\0') && (s1 <= e1) && (apr_tolower(*s1) != apr_tolower(*s2)); s1++); if (*s1 == '\0' || s1 > e1) { return(NULL); } /* found first character of s2, see if the rest matches */ p1 = (char *)s1; p2 = (char *)s2; for (++p1, ++p2; (apr_tolower(*p1) == apr_tolower(*p2)) && (p1 <= e1); ++p1, ++p2) { if((p1 > e1) && (*p2 != '\0')) { // reached the end without match return NULL; } if (*p2 == '\0') { /* both strings ended together */ return((char *)s1); } } if (*p2 == '\0') { /* second string ended, a match */ break; } /* didn't find a match here, try starting at next character in s1 */ s1++; } return((char *)s1); } /** * Rerurns the priority value * * @param priorityname Part of the log message to search the priority in * @param len Length of the priority string * @return Priority, LOG_NOTICE (see m_default_severity) if provided name is not recognized. */ static int qsgetprio(const char *priorityname, int len) { int p = m_default_severity; if(!priorityname) { return p; } if(qs_strncasestr(priorityname, "alert", len)) { p = LOG_ALERT; } else if(qs_strncasestr(priorityname, "crit", len)) { p = LOG_CRIT; } else if(qs_strncasestr(priorityname, "debug", len)) { p = LOG_DEBUG; } else if(qs_strncasestr(priorityname, "emerg", len)) { p = LOG_EMERG; } else if(qs_strncasestr(priorityname, "err", len)) { p = LOG_ERR; } else if(qs_strncasestr(priorityname, "info", len)) { p = LOG_INFO; } else if(qs_strncasestr(priorityname, "notice", len)) { p = LOG_NOTICE; } else if(qs_strncasestr(priorityname, "panic", len)) { p = LOG_EMERG; } else if(qs_strncasestr(priorityname, "warn", len)) { p = LOG_WARNING; } return p; } /** * Extracts the severity of the message using the provided * regular expression and determinest the priofity using * qsgetprio(). * * @param preg Regular expression to extract the serverity * @param line Log fline to extract the severity from * @return Level or LOG_NOTICE (see m_default_severity) if level could not be determined. */ static int qsgetlevel(regex_t preg, const char *line) { int level = m_default_severity; regmatch_t ma[QS_MAX_PATTERN_MA]; if(regexec(&preg, line, QS_MAX_PATTERN_MA, ma, 0) == 0) { int len = ma[1].rm_eo - ma[1].rm_so; level = qsgetprio(&line[ma[1].rm_so], len); } return level; } /* entry within the facility table */ typedef struct { const char* name; int f; } qs_f_t; /** * Table of known facilities, see sys/syslog.h. */ static const qs_f_t qs_facilities[] = { #ifdef LOG_AUTHPRIV { "authpriv", LOG_AUTHPRIV }, #endif { "auth", LOG_AUTH }, { "cron", LOG_CRON }, { "daemon", LOG_DAEMON }, #ifdef LOG_FTP { "ftp", LOG_FTP }, #endif { "kern", LOG_KERN }, { "lpr", LOG_LPR }, { "mail", LOG_MAIL }, { "news", LOG_NEWS }, { "security", LOG_AUTH }, { "syslog", LOG_SYSLOG }, { "user", LOG_USER }, { "uucp", LOG_UUCP }, { "local0", LOG_LOCAL0 }, { "local1", LOG_LOCAL1 }, { "local2", LOG_LOCAL2 }, { "local3", LOG_LOCAL3 }, { "local4", LOG_LOCAL4 }, { "local5", LOG_LOCAL5 }, { "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { NULL, -1 } }; /** * Determines the facility (user input). * * @param facilityname * @return The facility id or LOG_DAEMON if the provided * string is unknown. */ static int qsgetfacility(const char *facilityname) { int f = LOG_DAEMON; const qs_f_t *facilities = qs_facilities; if(!facilityname) { return f; } while(facilities->name) { if(strcasecmp(facilityname, facilities->name) == 0) { f = facilities->f; break; } facilities++; } return f; } /** * Usage message (or man page) * * @param cmd * @param man */ static void usage(const char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - another shell command interface to the system log module (syslog).\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s [-r ] [-t ] [-f ] [-l ] [-d ] [-p]\n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "Use this utility to forward log messages to the systems syslog\n"); qs_man_print(man, "facility, e.g., to forward the messages to a remote host.\n"); qs_man_print(man, "It reads data from stdin.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf("\n.TP\n"); qs_man_print(man, " -r \n"); if(man) printf("\n"); qs_man_print(man, " Specifies a regular expression which shall be used to\n"); qs_man_print(man, " determine the severity (syslog level) for each log line.\n"); qs_man_print(man, " The default pattern '"QS_DEFAULTPATTERN"' can\n"); qs_man_print(man, " be used for Apache error log messages but you may configure\n"); qs_man_print(man, " your own pattern matching and other log format too. Use brackets\n"); qs_man_print(man, " to define the string enclosing the severity string.\n"); qs_man_print(man, " Default level (if severity can't be determined) is defined by the\n"); qs_man_print(man, " option '-d' (see below).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -t \n"); if(man) printf("\n"); qs_man_print(man, " Defines the tag name which shall be used to define the origin\n"); qs_man_print(man, " of the messages, e.g. 'httpd'.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -f \n"); if(man) printf("\n"); qs_man_print(man, " Defines the syslog facility. Default is 'daemon'.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -l \n"); if(man) printf("\n"); qs_man_print(man, " Defines the minimal severity a message must have in order to\n"); qs_man_print(man, " be forwarded. Default is 'DEBUG'.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -d \n"); if(man) printf("\n"); qs_man_print(man, " The default severity if the specified pattern (-r) does not\n"); qs_man_print(man, " match and the message's serverity can't be determined. Default\n"); qs_man_print(man, " is 'NOTICE'.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p\n"); if(man) printf("\n"); qs_man_print(man, " Writes data also to stdout (for piped logging).\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); } else { printf("Example:\n"); } qs_man_println(man, " ErrorLog \"|./%s -t apache -f local7\"\n", cmd); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qspng(1), qsrotate(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } int main(int argc, const char * const argv[]) { int line_len; char *line = calloc(1, MAX_LINE_BUFFER+1); const char *cmd = strrchr(argv[0], '/'); int pass = 0; const char *tag = NULL; int facility = LOG_DAEMON; int severity = LOG_DEBUG; int level = LOG_INFO; const char *regexpattern = QS_DEFAULTPATTERN; regex_t preg; if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv, "-p") == 0) { pass = 1; } else if(strcmp(*argv, "-f") == 0) { if (--argc >= 1) { const char *facilityname = *(++argv); facility = qsgetfacility(facilityname); } } else if(strcmp(*argv, "-l") == 0) { if (--argc >= 1) { const char *severityname = *(++argv); severity = qsgetprio(severityname, strlen(severityname)); } } else if(strcmp(*argv, "-d") == 0) { if (--argc >= 1) { const char *severityname = *(++argv); m_default_severity = qsgetprio(severityname, strlen(severityname)); } } else if(strcmp(*argv, "-t") == 0) { if (--argc >= 1) { tag = *(++argv); } } else if(strcmp(*argv, "-r") == 0) { if (--argc >= 1) { regexpattern = *(++argv); } } else if(strcmp(*argv,"-h") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } else { usage(cmd, 0); } argc--; argv++; } if(regcomp(&preg, regexpattern, REG_EXTENDED)) { fprintf(stderr, "[%s] failed to compile pattern %s", cmd, regexpattern); exit(1); } openlog(tag ? tag : getlogin(), 0, facility); // start reading from stdin while(fgets(line, MAX_LINE_BUFFER, stdin) != NULL) { line_len = strlen(line) - 1; while(line_len > 0) { // cut tailing CR/LF if(line[line_len] >= ' ') { break; } line[line_len] = '\0'; line_len--; } // severity is determined using the regular expression provided by the user level = qsgetlevel(preg, line); if(level <= severity) { // send message syslog(level, "%s", line); } if(pass) { printf("%s\n", line); fflush(stdout); } } return 0; } mod_qos-10.28/tools/src/qsgeo.c0000644000000000000020000003524712264072142014676 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Utilities for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qsgeo.c,v 1.14 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include #include /* apr */ #include #include #include #include #include #include #include #include #include #include "qs_util.h" #define MAX_REG_MATCH 10 // "3758096128","3758096383","AU" #define QS_GEO_PATTERN "\"([0-9]+)\",\"([0-9]+)\",\"([A-Z0-9]{2})\"" // "3758096128","3758096383","AU","Australia" #define QS_GEO_PATTERN_D "\"([0-9]+)\",\"([0-9]+)\",\"([A-Z0-9]{2})\",\"(.*)\"" // 182.12.34.23 #define IPPATTERN "([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})[\"'\x0d\x0a, ]+" #define IPPATTERN2 "([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})[\"'\x0d\x0a,; ]+" static int m_inject = 0; typedef struct { unsigned long start; char *c; } qos_inj_t; static const qos_inj_t m_inj[] = { { 167772160, "\"10.0.0.0\",\"10.255.255.255.255\",\"167772160\",\"184549375\",\"PV\",\"private network\"" }, { 2130706432, "\"127.0.0.0\",\"127.255.255.255\",\"2130706432\",\"2147483647\",\"LO\",\"local loopback\"" }, { 2886729728, "\"172.16.0.0\",\"172.31.255.255\",\"2886729728\",\"2887778303\",\"PV\",\"private network\"" }, { 3232235520, "\"192.168.0.0\",\"192.168.255.255\",\"3232235520\",\"3232301055\",\"PV\",\"private network\"" }, { 0, NULL } }; typedef struct { unsigned long start; unsigned long end; char country[3]; char c[500]; } qos_geo_t; typedef struct { int num; char *c; } qos_geo_stat_t; static int qos_is_num(const char *num) { int i = 0; while(num[i]) { if(!isdigit(num[i])) { return 0; } i++; } return 1; } /** * Converts an IPv4 address string to it's numeric value. * w.x.y.z results in 16777216*w + 65536*x + 256*y + z * * @param pool To make a copy of the address to parse * @param ip * @return The address or 0 on error */ static unsigned long qos_geo_str2long(apr_pool_t *pool, const char *ip) { char *p; char *i = apr_pstrdup(pool, ip); unsigned long addr = 0; p = strchr(i, '.'); if(!p) return 0; p[0] = '\0'; if(!qos_is_num(i)) return 0; addr += (atol(i) * 16777216); i = p; i++; p = strchr(i, '.'); if(!p) return 0; p[0] = '\0'; if(!qos_is_num(i)) return 0; addr += (atol(i) * 65536); i = p; i++; p = strchr(i, '.'); if(!p) return 0; p[0] = '\0'; if(!qos_is_num(i)) return 0; addr += (atol(i) * 256); i = p; i++; if(!qos_is_num(i)) return 0; addr += (atol(i)); return addr; } /* static char *qos_geo_long2str(apr_pool_t *pool, unsigned long ip) { int a,b,c,d; a = ip % 256; ip = ip / 256; b = ip % 256; ip = ip / 256; c = ip % 256; ip = ip / 256; d = ip % 256; return apr_psprintf(pool, "%d.%d.%d.%d", d, c, b, a); } */ /** * Usage message (text or manpage format). */ static void usage(const char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - an utility to lookup a client's country code.\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -d [-l] [-s] [-ip ]\n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "Use this utility to resolve the country codes of IP addresses\n"); qs_man_print(man, "within existing log files. The utility reads the log file data\n"); qs_man_print(man, "from stdin and writes them, with the injected country code, to\n"); qs_man_print(man, "stdout.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf("\n.TP\n"); qs_man_print(man, " -d \n"); if(man) printf("\n"); qs_man_print(man, " Specifies the path to the geographical database files (CSV\n"); qs_man_print(man, " file containing IP address ranges and country codes).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -s\n"); if(man) printf("\n"); qs_man_print(man, " Writes a summary of the requests per country only.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -l\n"); if(man) printf("\n"); qs_man_print(man, " Writes the database to stdout (ignoring stdin) inserting\n"); qs_man_print(man, " local (127.*) and private (10.*, 172.16*, 192.168.*)\n"); qs_man_print(man, " network addresses.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -ip \n"); if(man) printf("\n"); qs_man_print(man, " Resolves a single IP address instead of processing a log file.\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); printf("Reading the file access_log and adding the country code to the IP address field:\n"); printf("\n"); } else { printf("Example reading the file access_log and adding the country code to\n"); printf("the IP address field:\n"); } qs_man_println(man, " cat access_log | %s -d GeoIPCountryWhois.csv\n", cmd); printf("\n"); if(man) { printf("Reading the file access_log and showing a summary only:\n"); printf("\n"); } else { printf("Example reading the file access_log and showing a summary only:\n"); } qs_man_println(man, " cat access_log | %s -d GeoIPCountryWhois.csv -s\n", cmd); printf("\n"); if(man) { printf("Resolving a single IP address:\n"); printf("\n"); } else { printf("Example resolving a single IP address:\n"); } qs_man_println(man, " %s -d GeoIPCountryWhois.csv -ip 192.84.12.23\n", cmd); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } /** * Comperator to search entries using bsearch. */ static int qos_geo_comp(const void *_pA, const void *_pB) { unsigned long *pA = (unsigned long *)_pA; qos_geo_t *pB = (qos_geo_t *)_pB; unsigned long search = *pA; if((search >= pB->start) && (search <= pB->end)) return 0; if(search > pB->start) return 1; if(search < pB->start) return -1; return -1; // error } /** * Loads the (sorted) CSV file into the memory. * * @param pool * @param db Path to the db file * @param size Returns the size f the db (elements in the array) * @param msg Error message if something got wrong * @return Array with all entries from the CSV file (or NULL on error) */ static qos_geo_t *qos_loadgeo(apr_pool_t *pool, const char *db, int *size, char **msg) { regmatch_t ma[MAX_REG_MATCH]; regex_t preg; regex_t pregd; qos_geo_t *geo = NULL; qos_geo_t *g = NULL; qos_geo_t *last = NULL; int lines = 0; char line[HUGE_STRING_LEN]; char buf[HUGE_STRING_LEN]; FILE *file = fopen(db, "r"); const qos_inj_t *inj = m_inj; *size = 0; if(!file) { return NULL; } if(regcomp(&preg, QS_GEO_PATTERN, REG_EXTENDED)) { *msg = apr_pstrdup(pool, "failed to compile regular expression "QS_GEO_PATTERN); return NULL; } if(regcomp(&pregd, QS_GEO_PATTERN_D, REG_EXTENDED)) { *msg = apr_pstrdup(pool, "failed to compile regular expression "QS_GEO_PATTERN_D); return NULL; } while(fgets(line, sizeof(line), file) != NULL) { if(strlen(line) > 0) { if(regexec(&preg, line, 0, NULL, 0) == 0) { lines++; } else { *msg = apr_psprintf(pool, "invalid entry in database: '%s'", line); } } } *size = lines; geo = apr_pcalloc(pool, sizeof(qos_geo_t) * lines); g = geo; fseek(file, 0, SEEK_SET); lines = 0; while(fgets(line, sizeof(line), file) != NULL) { lines++; if(strlen(line) > 0) { int plus = 0; if(m_inject) { strcpy(buf, line); } if(regexec(&pregd, line, MAX_REG_MATCH, ma, 0) == 0) { plus = 1; } if(plus || regexec(&preg, line, MAX_REG_MATCH, ma, 0) == 0) { line[ma[1].rm_eo] = '\0'; line[ma[2].rm_eo] = '\0'; line[ma[3].rm_eo] = '\0'; g->start = atoll(&line[ma[1].rm_so]); g->end = atoll(&line[ma[2].rm_so]); g->c[0] = '\0'; if(m_inject) { if(inj->start && (g->start > inj->start)) { printf("%s\n", inj->c); inj++; } else { printf("%s", buf); } } strncpy(g->country, &line[ma[3].rm_so], 2); if(last) { if(g->start < last->start) { *msg = apr_psprintf(pool, "wrong order/lines not sorted (line %d)", lines); } } if(plus) { line[ma[4].rm_eo] = '\0'; strncpy(g->c, &line[ma[4].rm_so], 500); } last = g; g++; } } } return geo; } int main(int argc, const char * const argv[]) { int rc; int stat = 0; const char *ip = NULL; char *msg = NULL; qos_geo_t *geo; int size; const char *db = NULL; apr_table_t *entries; apr_pool_t *pool; const char *cmd = strrchr(argv[0], '/'); apr_app_initialize(&argc, &argv, NULL); apr_pool_create(&pool, NULL); entries = apr_table_make(pool, 100); if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv, "-d") == 0) { if (--argc >= 1) { db = *(++argv); } } else if(strcmp(*argv, "-ip") == 0) { if (--argc >= 1) { ip = *(++argv); } } else if(strcmp(*argv, "-s") == 0) { stat = 1; } else if(strcmp(*argv, "-l") == 0) { m_inject = 1; } else if(strcmp(*argv,"-h") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } else { usage(cmd, 0); } argc--; argv++; } if(db == NULL) { usage(cmd, 0); } rc = nice(10); if(rc == -1) { fprintf(stderr, "ERROR, failed to change nice value: %s\n", strerror(errno)); } geo = qos_loadgeo(pool, db, &size, &msg); if(geo == NULL || msg != NULL) { fprintf(stderr, "failed to load database: %s\n", msg ? msg : "-"); exit(1); } if(m_inject) { exit(0); } if(ip) { qos_geo_t *pB; unsigned long search = qos_geo_str2long(pool, ip); printf("search %lu: ", search); pB = bsearch(&search, geo, size, sizeof(qos_geo_t), qos_geo_comp); if(pB) { printf("%s\n", pB->country); } else { printf("n/a\n"); } return 0; } // start reading from stdin { char prev; qos_geo_t *pB; apr_pool_t *tmp; char line[HUGE_STRING_LEN]; regex_t preg; regex_t preg2; regmatch_t ma[MAX_REG_MATCH]; apr_pool_create(&tmp, NULL); if(regcomp(&preg, IPPATTERN, REG_EXTENDED)) { exit(1); } regcomp(&preg2, IPPATTERN2, REG_EXTENDED); while(fgets(line, sizeof(line), stdin) != NULL) { int match = regexec(&preg, line, MAX_REG_MATCH, ma, 0); if(match != 0) { char *dx = strchr(line, ';'); if(dx && ((dx - line) <= 15)) { // file starts probably with ; => a qslog -pc file? match = regexec(&preg2, line, MAX_REG_MATCH, ma, 0); } } if(match == 0) { unsigned long search; prev = line[ma[1].rm_eo]; line[ma[1].rm_eo] = '\0'; search = qos_geo_str2long(tmp, &line[ma[1].rm_so]); apr_pool_clear(tmp); pB = bsearch(&search, geo, size, sizeof(qos_geo_t), qos_geo_comp); if(stat) { /* creates a single statistic entry for each country (used to collect requests per source country) */ if(pB) { qos_geo_stat_t *s = (qos_geo_stat_t *)apr_table_get(entries, pB->country); if(s == NULL) { s = apr_pcalloc(pool, sizeof(qos_geo_stat_t)); s->num = 0; s->c = pB->c; apr_table_addn(entries, apr_pstrdup(pool, pB->country), (char *)s); } s->num++; } } else { /* modifies each log line inserting the country code */ char cr = prev; char delw[2]; char delx[2]; delw[1] = '\0'; delw[0] = ' '; delx[1] = '\0'; delx[0] = ' '; if(line[ma[1].rm_eo+1] == ' ') { delx[0] = '\0'; } if(line[ma[1].rm_eo+1] == ';') { delx[0] = ';'; } if(prev <= CR) { prev = ' '; } if(prev == ' ') { delw[0] = '\0'; } if(prev == ';') { delw[0] = '\0'; delx[0] = ';'; } if(pB) { printf("%s%c%s%s%s%s", line, prev, delw, pB->country, delx, &line[ma[1].rm_eo+1]); } else { printf("%s%c%s--%s%s", line, prev, delw, delx, &line[ma[1].rm_eo+1]); } if(cr <= CR) { printf("\n"); } } } else { printf("%s", line); } fflush(stdout); } if(stat) { int i; apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(entries)->elts; for(i = 0; i < apr_table_elts(entries)->nelts; i++) { qos_geo_stat_t *s = (qos_geo_stat_t *)entry[i].val; printf("%7.d %s %s\n", s->num, entry[i].key, s->c ? s->c : ""); } } } return 0; } mod_qos-10.28/tools/src/qsexec.c0000644000000000000020000003003512264072142015036 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Command line execution utility for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further details. * * Copyright (C) 2011-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is released under the GPL with the additional * exemption that compiling, linking, and/or using OpenSSL is allowed. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qsexec.c,v 1.19 2014/01/09 08:13:07 pbuchbinder Exp $"; /* system */ #include #include #include #include #include #include /* apr */ #include #include #include #include #include #include #include #include #include #include #include "qs_util.h" #ifndef POSIX_MALLOC_THRESHOLD #define POSIX_MALLOC_THRESHOLD (10) #endif #define MAX_REG_MATCH 10 /* same as APR_SIZE_MAX which doesn't appear until APR 1.3 */ #define QSUTIL_SIZE_MAX (~((apr_size_t)0)) typedef struct { int rm_so; int rm_eo; } regmatch_t; static void usage(char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } printf("%s %s- parses the data received via stdin and executes the defined command on a pattern match.\n", cmd, man ? "\\" : ""); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -e [-t :] [-c []]\n", man ? "" : "Usage: ", cmd); qs_man_print(man, " [-p] [-u ] \n"); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "%s reads log lines from stdin and searches for the defined pattern.\n", cmd); qs_man_print(man, "It executes the defined command string on pattern match.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -e \n"); if(man) printf("\n"); qs_man_print(man, " Specifes the search pattern causing an event which shall trigger the\n"); qs_man_print(man, " command.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -t :\n"); if(man) printf("\n"); qs_man_print(man, " Defines the number of pattern match within the the defined number of\n"); qs_man_print(man, " seconds in order to trigger the command execution. By default, every\n"); qs_man_print(man, " pattern match causes a command execution.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -c []\n"); if(man) printf("\n"); qs_man_print(man, " Pattern which clears the event counter. Executes optionally a command\n"); qs_man_print(man, " if an event command has been executed before.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p\n"); if(man) printf("\n"); qs_man_print(man, " Writes data also to stdout (for piped logging).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -u \n"); if(man) printf("\n"); qs_man_print(man, " Become another user, e.g. www-data.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " \n"); if(man) printf("\n"); qs_man_print(man, " Defines the event command string where $0-$9 are substituted by the\n"); qs_man_print(man, " submatches of the regular expression.\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); } else { printf("Example:\n"); } qs_man_print(man, "Executes the deny.sh script providing the IP address of\n"); qs_man_print(man, "the client causing a mod_qos(031) messages whenever the log message\n"); qs_man_print(man, "appears 10 times within at most one minute:\n"); if(man) printf("\n"); qs_man_println(man, " ErrorLog \"|%s -e 'mod_qos\\(031\\).*, c=([0-9.]*)' -t 10:60 '/bin/deny.sh $1'\"\n", cmd); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } /* * Substitutes for $0-$9 within the matching string. * See ap_pregsub(). */ char *qs_pregsub(apr_pool_t *pool, const char *input, const char *source, size_t nmatch, regmatch_t pmatch[]) { const char *src = input; char *dest, *dst; char c; size_t no; int len; if(!source) { return NULL; } if(!nmatch) { return apr_pstrdup(pool, src); } /* First pass, find the size */ len = 0; while((c = *src++) != '\0') { if(c == '&') no = 0; else if (c == '$' && apr_isdigit(*src)) no = *src++ - '0'; else no = 10; if (no > 9) { /* Ordinary character. */ if (c == '\\' && (*src == '$' || *src == '&')) src++; len++; } else if (no < nmatch && pmatch[no].rm_so < pmatch[no].rm_eo) { if(QSUTIL_SIZE_MAX - len <= pmatch[no].rm_eo - pmatch[no].rm_so) { fprintf(stderr, "ERROR, integer overflow or out of memory condition"); return NULL; } len += pmatch[no].rm_eo - pmatch[no].rm_so; } } dest = dst = apr_pcalloc(pool, len + 1); /* Now actually fill in the string */ src = input; while ((c = *src++) != '\0') { if (c == '&') no = 0; else if (c == '$' && apr_isdigit(*src)) no = *src++ - '0'; else no = 10; if (no > 9) { /* Ordinary character. */ if (c == '\\' && (*src == '$' || *src == '&')) c = *src++; *dst++ = c; } else if (no < nmatch && pmatch[no].rm_so < pmatch[no].rm_eo) { len = pmatch[no].rm_eo - pmatch[no].rm_so; memcpy(dst, source + pmatch[no].rm_so, len); dst += len; } } *dst = '\0'; return dest; } int qs_regexec(pcre *preg, const char *string, apr_size_t nmatch, regmatch_t pmatch[]) { int rc; int options = 0; int *ovector = NULL; int small_ovector[POSIX_MALLOC_THRESHOLD * 3]; int allocated_ovector = 0; if (nmatch > 0) { if (nmatch <= POSIX_MALLOC_THRESHOLD) { ovector = &(small_ovector[0]); } else { ovector = (int *)malloc(sizeof(int) * nmatch * 3); if (ovector == NULL) { return 1; } allocated_ovector = 1; } } rc = pcre_exec(preg, NULL, string, (int)strlen(string), 0, options, ovector, nmatch * 3); if (rc == 0) rc = nmatch; /* All captured slots were filled in */ if (rc >= 0) { apr_size_t i; for (i = 0; i < (apr_size_t)rc; i++) { pmatch[i].rm_so = ovector[i*2]; pmatch[i].rm_eo = ovector[i*2+1]; } if (allocated_ovector) free(ovector); for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; return 0; } else { if (allocated_ovector) free(ovector); return rc; } } int main(int argc, const char * const argv[]) { const char *username = NULL; int nr = 0; char line[32768]; apr_pool_t *pool; char *cmd = strrchr(argv[0], '/'); const char *command = NULL; const char *pattern = NULL; const char *clearcommand = NULL; const char *clearpattern = NULL; int executed = 0; pcre *preg; pcre *clearpreg; const char *errptr = NULL; int erroffset; regmatch_t regm[MAX_REG_MATCH]; time_t sec = 0; int threshold = 0; int counter = 0; time_t countertime; static int pass = 0; apr_app_initialize(&argc, &argv, NULL); apr_pool_create(&pool, NULL); if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv,"-e") == 0) { if (--argc >= 1) { pattern = *(++argv); } } else if(strcmp(*argv,"-u") == 0) { if (--argc >= 1) { username = *(++argv); } } else if(strcmp(*argv,"-c") == 0) { if (--argc >= 1) { clearpattern = *(++argv); if (argc >=1 && *argv[0] != '-') { clearcommand = *(++argv); argc--; } } } else if(argc >= 1 && strcmp(*argv,"-t") == 0) { if (--argc >= 1) { char *str = apr_pstrdup(pool, *(++argv)); char *tme = strchr(str, ':'); if(tme == NULL) { fprintf(stderr,"[%s]: ERROR, invalid number:sec format\n", cmd); exit(1); } tme[0] = '\0'; tme++; threshold = atoi(str); sec = atol(tme); if(threshold == 0 || sec == 0) { fprintf(stderr,"[%s]: ERROR, invalid number:sec format\n", cmd); exit(1); } } } else if(argc >= 1 && strcmp(*argv,"-p") == 0) { pass = 1; } else if(argc >= 1 && strcmp(*argv,"-h") == 0) { usage(cmd, 0); } else if(argc >= 1 && strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(argc >= 1 && strcmp(*argv,"-help") == 0) { usage(cmd, 0); } else if(argc >= 1 && strcmp(*argv,"--man") == 0) { usage(cmd, 1); } else { command = *argv; } argc--; argv++; } if(pattern == NULL || command == NULL) { usage(cmd, 0); } if(username && getuid() == 0) { struct passwd *pwd = getpwnam(username); uid_t uid, gid; if(pwd == NULL) { fprintf(stderr,"[%s]: ERROR, unknown user id %s\n", cmd, username); exit(1); } uid = pwd->pw_uid; gid = pwd->pw_gid; setgid(gid); setuid(uid); if(getuid() != uid) { fprintf(stderr,"[%s]: ERROR, setuid failed (%s,%d)\n", cmd, username, uid); exit(1); } if(getgid() != gid) { fprintf(stderr,"[%s]: ERROR, setgid failed (%d)\n", cmd, gid); exit(1); } } preg = pcre_compile(pattern, PCRE_DOTALL, &errptr, &erroffset, NULL); if(!preg) { fprintf(stderr, "ERROR, could not compile '%s' at position %d, reason: %s\n", pattern, erroffset, errptr); exit(1); } if(clearpattern) { clearpreg = pcre_compile(clearpattern, PCRE_DOTALL, &errptr, &erroffset, NULL); if(!clearpreg) { fprintf(stderr, "ERROR, could not compile '%s' at position %d, reason: %s\n", clearpattern, erroffset, errptr); exit(1); } } while(fgets(line, sizeof(line), stdin) != NULL) { nr++; if(pass) { printf("%s", line); fflush(stdout); } if(clearpattern && (qs_regexec(clearpreg, line, MAX_REG_MATCH, regm) == 0)) { counter = 0; countertime = 0; if(clearcommand && executed) { char *replaced = qs_pregsub(pool, clearcommand, line, MAX_REG_MATCH, regm); if(!replaced) { fprintf(stderr, "[%s]: ERROR, failed to substitute submatches '%s' in (%s)\n", cmd, clearcommand, line); } else { int rc = system(replaced); } executed = 0; } } else if(qs_regexec(preg, line, MAX_REG_MATCH, regm) == 0) { char *replaced = qs_pregsub(pool, command, line, MAX_REG_MATCH, regm); if(!replaced) { fprintf(stderr, "[%s]: ERROR, failed to substitute submatches '%s' in (%s)\n", cmd, command, line); } else { counter++; if(counter == 1) { countertime = time(NULL); } if(counter >= threshold) { if(countertime + sec >= time(NULL)) { int rc = system(replaced); executed = 1; } countertime = 0; counter = 0; } } apr_pool_clear(pool); } } apr_pool_destroy(pool); return 0; } mod_qos-10.28/tools/src/qsgrep.c0000644000000000000020000002165712264072142015061 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Filter utility for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further details. * * Copyright (C) 2011-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is released under the GPL with the additional * exemption that compiling, linking, and/or using OpenSSL is allowed. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qsgrep.c,v 1.15 2014/01/09 08:13:07 pbuchbinder Exp $"; /* system */ #include #include #include #include #include #include /* apr */ #include #include #include #include #include #include #include #include #include #include #include "qs_util.h" #ifndef POSIX_MALLOC_THRESHOLD #define POSIX_MALLOC_THRESHOLD (10) #endif #define MAX_REG_MATCH 10 /* same as APR_SIZE_MAX which doesn't appear until APR 1.3 */ #define QSUTIL_SIZE_MAX (~((apr_size_t)0)) typedef struct { int rm_so; int rm_eo; } regmatch_t; static void usage(char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - prints matching patterns within a file.\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -e -o []\n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "%s is a simple tool to search patterns within files.\n", cmd); qs_man_print(man, "It uses regular expressions to find patterns and prints the\n"); qs_man_print(man, "submatches within a pre-defined format string.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -e \n"); if(man) printf("\n"); qs_man_print(man, " Specifes the search pattern.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -o \n"); if(man) printf("\n"); qs_man_print(man, " Defines the output string where $0-$9 are substituted by the\n"); qs_man_print(man, " submatches of the regular expression.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " \n"); if(man) printf("\n"); qs_man_print(man, " Defines the input file to process. %s reads from\n", cmd); qs_man_print(man, " from standard input if this parameter is omitted.\n"); printf("\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); qs_man_println(man, "Shows the IP addresses of clients causing mod_qos(031) messages):\n"); printf("\n"); } else { printf("Example (shows the IP addresses of clients causing mod_qos(031) messages):\n"); } qs_man_println(man, " %s -e 'mod_qos\\(031\\).*, c=([0-9.]*)' -o 'ip=$1' error_log\n", cmd); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } /* * Substitutes for $0-$9 within the matching string. * See ap_pregsub(). */ char *qs_pregsub(apr_pool_t *pool, const char *input, const char *source, size_t nmatch, regmatch_t pmatch[]) { const char *src = input; char *dest, *dst; char c; size_t no; int len; if(!source) { return NULL; } if(!nmatch) { return apr_pstrdup(pool, src); } /* First pass, find the size */ len = 0; while((c = *src++) != '\0') { if(c == '&') no = 0; else if (c == '$' && apr_isdigit(*src)) no = *src++ - '0'; else no = 10; if (no > 9) { /* Ordinary character. */ if (c == '\\' && (*src == '$' || *src == '&')) src++; len++; } else if (no < nmatch && pmatch[no].rm_so < pmatch[no].rm_eo) { if(QSUTIL_SIZE_MAX - len <= pmatch[no].rm_eo - pmatch[no].rm_so) { fprintf(stderr, "ERROR, integer overflow or out of memory condition"); return NULL; } len += pmatch[no].rm_eo - pmatch[no].rm_so; } } dest = dst = apr_pcalloc(pool, len + 1); /* Now actually fill in the string */ src = input; while ((c = *src++) != '\0') { if (c == '&') no = 0; else if (c == '$' && apr_isdigit(*src)) no = *src++ - '0'; else no = 10; if (no > 9) { /* Ordinary character. */ if (c == '\\' && (*src == '$' || *src == '&')) c = *src++; *dst++ = c; } else if (no < nmatch && pmatch[no].rm_so < pmatch[no].rm_eo) { len = pmatch[no].rm_eo - pmatch[no].rm_so; memcpy(dst, source + pmatch[no].rm_so, len); dst += len; } } *dst = '\0'; return dest; } int qs_regexec(pcre *preg, const char *string, apr_size_t nmatch, regmatch_t pmatch[]) { int rc; int options = 0; int *ovector = NULL; int small_ovector[POSIX_MALLOC_THRESHOLD * 3]; int allocated_ovector = 0; if (nmatch > 0) { if (nmatch <= POSIX_MALLOC_THRESHOLD) { ovector = &(small_ovector[0]); } else { ovector = (int *)malloc(sizeof(int) * nmatch * 3); if (ovector == NULL) { return 1; } allocated_ovector = 1; } } rc = pcre_exec(preg, NULL, string, (int)strlen(string), 0, options, ovector, nmatch * 3); if (rc == 0) rc = nmatch; /* All captured slots were filled in */ if (rc >= 0) { apr_size_t i; for (i = 0; i < (apr_size_t)rc; i++) { pmatch[i].rm_so = ovector[i*2]; pmatch[i].rm_eo = ovector[i*2+1]; } if (allocated_ovector) free(ovector); for (; i < nmatch; i++) pmatch[i].rm_so = pmatch[i].rm_eo = -1; return 0; } else { if (allocated_ovector) free(ovector); return rc; } } int main(int argc, const char * const argv[]) { unsigned long nr = 0; char line[32768]; FILE *file = 0; apr_pool_t *pool; char *cmd = strrchr(argv[0], '/'); const char *out = NULL; const char *pattern = NULL; const char *filename = NULL; pcre *preg; const char *errptr = NULL; int erroffset; regmatch_t regm[MAX_REG_MATCH]; apr_app_initialize(&argc, &argv, NULL); apr_pool_create(&pool, NULL); if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv,"-e") == 0) { if (--argc >= 1) { pattern = *(++argv); } } else if(strcmp(*argv,"-o") == 0) { if (--argc >= 1) { out = *(++argv); } } else if(strcmp(*argv,"-h") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } else { filename = *argv; } argc--; argv++; } if(pattern == NULL || out == NULL) { usage(cmd, 0); } if(nice(10) == -1) { fprintf(stderr, "ERROR, failed to change nice value: %s\n", strerror(errno)); } preg = pcre_compile(pattern, PCRE_DOTALL, &errptr, &erroffset, NULL); if(!preg) { fprintf(stderr, "ERROR, could not compile '%s' at position %d, reason: %s\n", pattern, erroffset, errptr); exit(1); } if(filename) { file = fopen(filename, "r"); if(!file) { fprintf(stderr, "ERROR, could not open file\n"); exit(1); } } else { file = stdin; } while(fgets(line, sizeof(line), file) != NULL) { nr++; if(qs_regexec(preg, line, MAX_REG_MATCH, regm) == 0) { char *replaced = qs_pregsub(pool, out, line, MAX_REG_MATCH, regm); if(!replaced) { fprintf(stderr, "ERROR, failed to substitute submatches (line=%lu)\n", nr); } else { printf("%s\n", replaced); fflush(stdout); } apr_pool_clear(pool); } } if(filename) { fclose(file); } apr_pool_destroy(pool); return 0; } mod_qos-10.28/tools/src/qstail.c0000644000000000000020000001454012264072142015046 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Utilities for the quality of service module mod_qos. * * Shows the end of a log file beginning at the provided pattern. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2010-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qstail.c,v 1.15 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include "qs_util.h" #define BUFFER 2048 static void usage(char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - an utility printing the end of a log file" " starting at the specified pattern.\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -i -p \n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, " %s shows the end of a log file beginning with the line containing the\n", cmd); qs_man_print(man, " specified pattern. This may be used to show all lines which has been written\n"); qs_man_print(man, " after a certain event (e.g., server restart) or time stamp.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -i \n"); if(man) printf("\n"); qs_man_print(man, " Input file to read the data from.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p \n"); if(man) printf("\n"); qs_man_print(man, " Search pattern (literal string).\n"); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } /* search the beginning of the line starting at the provided position */ static void qs_readline(long pos, FILE *f) { size_t len; long startpos = pos - BUFFER + 1; long readlen = BUFFER; char line[readlen + 1]; if(startpos < 0) { // we are at the beginning of the file startpos = 0; readlen = pos + 1; } fseek(f, startpos, SEEK_SET); len = fread(&line, 1, readlen, f); if(len > 0) { char *s = &line[len-1]; line[len] = '\0'; while((s >= line) && (s[0] != CR) && (s[0] != LF)) { s--; } if((s[0] == CR) || (s[0] == LF)) { s++; } printf("%s", s); } } static int qs_tail(const char *cmd, FILE *f, const char *pattern) { char *cont = NULL; long search_win_len = (strlen(pattern) * 2) + 32; char line[search_win_len + 10]; long pos = 0; size_t len; char *startpattern = NULL; fseek(f, 0L, SEEK_END); pos = ftell(f); while(pos > search_win_len) { int offset = 0; pos = pos - (search_win_len/2); fseek(f, pos, SEEK_SET); len = fread(&line, 1, search_win_len, f); if(len <= 0) { /* pattern not found / reached end */ return 1; } line[len] = '\0'; if((startpattern = strstr(line, pattern)) != NULL) { int containsend = 0; char *s = startpattern; char *end; offset = startpattern - line; /* search the beginning of the line */ while((s > line) && (s[0] != CR) && (s[0] != LF)) { s--; } if((s[0] != CR) && (s[0] != LF)) { // beginning of the line not in the buffer qs_readline(pos, f); } s++; end = startpattern; /* search the end of the line */ while((offset < search_win_len) && end[0] && end[0] != CR && end[0] != LF) { end++; offset++; } /* print the line containing the pattern */ if((end[0] == CR) || (end[0] == LF)) { end[0] = '\0'; printf("%s\n", s); containsend = 1; } else { printf("%s", s); } fseek(f, pos + offset, SEEK_SET); if(containsend) { // skip the line at the current position cont = fgets(line, sizeof(line), f); } else { cont = line; } if(cont) { while(fgets(line, sizeof(line), f) != NULL) { printf("%s", line); } } return 0; } } return 1; } int main(int argc, const char * const argv[]) { FILE *f; const char *filename = NULL; const char *pattern = NULL; char *cmd = strrchr(argv[0], '/'); int status = 0; if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv,"-i") == 0) { if (--argc >= 1) { filename = *(++argv); } } else if(strcmp(*argv,"-p") == 0) { if (--argc >= 1) { pattern = *(++argv); } } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } argc--; argv++; } if(filename == NULL || pattern == NULL) { usage(cmd, 0); } if((f = fopen(filename, "r")) == NULL) { fprintf(stderr, "[%s]: ERROR, could not open file '%s'\n", cmd, filename); exit(1); } status = qs_tail(cmd, f, pattern); fclose(f); return status; } mod_qos-10.28/tools/src/qspng.c0000644000000000000020000005264012264072142014704 0ustar rootbin/** * Utilities for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qspng.c,v 1.18 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include //#include #include "qs_util.h" #include "char.h" #define HUGE_STRING_LEN 1024 #define X_SAMPLE_RATE 3 /* width */ #define X_COUNTS 60 * 24 / X_SAMPLE_RATE // 24 hours, every 3th sample /* height */ #define Y_COUNTS 100 /* border */ #define XY_BORDER 20 typedef struct { const char* param; const char* name; int r; int g; int b; } qs_png_elt_t; /* known graph types */ static const qs_png_elt_t qs_png_elts[] = { { "r/s", "requests per second", 20, 30, 130, }, { "req", "requests per minute", 20, 30, 130, }, { "b/s", "bytes per second (out)", 30, 45, 130 }, { "ib/s", "bytes per second (in)", 30, 45, 125 }, { "esco", "established connections per minute", 40, 95, 140 }, { "av", "average response time", 40, 95, 140 }, { "avms", "average response time in milliseconds", 45, 95, 135 }, { "<1s", "requests faster than 1 second", 35, 95, 180 }, { "1s", "requests faster or equal than 1 second", 35, 90, 180 }, { "2s", "requests with 2 seconds response time", 30, 85, 180 }, { "3s", "requests with 3 seconds response time", 25, 90, 180 }, { "4s", "requests with 4 seconds response time", 25, 95, 180 }, { "5s", "requests with 5 seconds response time", 15, 90, 180 }, { ">5s","requests slower than 5 seconds", 35, 90, 185 }, { "1xx","requets with HTTP status 1xx", 50, 70, 150 }, { "2xx","requets with HTTP status 2xx", 50, 70, 150 }, { "3xx","requets with HTTP status 3xx", 50, 70, 150 }, { "4xx","requets with HTTP status 4xx", 50, 70, 150 }, { "5xx","requets with HTTP status 5xx", 50, 70, 150 }, { "ip", "IP addresses", 55, 60, 150 }, { "usr","active users", 55, 66, 150 }, { "qv", "created VIP sessions", 55, 50, 155 }, { "qs", "session pass", 55, 75, 160 }, { "qd", "access denied", 55, 70, 170 }, { "qk", "conection closed", 55, 60, 145 }, { "qt", "dynamic keep-alive", 55, 55, 153 }, { "ql", "slow down", 55, 65, 140 }, { "sl", "system load", 25, 60, 175 }, { "m", "free memory", 35, 90, 185 }, { NULL, NULL, 0, 0, 0 } }; typedef struct qs_png_conf_st { char *path; char *param; } qs_png_conf; /************************************************************************ * Functions ***********************************************************************/ /** * Read the stat_log data line by line * * @param s IN buffer to store line to * @param n IN buffer size * @param f IN file descriptor * * @return 1 on EOF, else 0 */ static int qs_png_getline(char *s, int n, FILE *f) { register int i = 0; while (1) { s[i] = (char) fgetc(f); if (s[i] == CR) { s[i] = fgetc(f); } if ((s[i] == 0x4) || (s[i] == LF) || (i == (n - 1))) { s[i] = '\0'; return (feof(f) ? 1 : 0); } ++i; } } /* png io callback (should write to buff/bio/bucket when using in apache) */ void lp_write_data(png_structp png_ptr, png_bytep data, png_size_t length) { FILE *f = png_get_io_ptr(png_ptr); fwrite(data, length, 1, f); } /* png io callback (not used) */ void lp_flush_data(png_structp png_ptr) { png_get_io_ptr(png_ptr); fprintf(stderr, "flush\n"); } /** * Writes a single char to the graph * * @param x IN x position * @param y IN y position * @param row_pointers IN start pointer (0/0) * @param n IN char to write */ static void qs_png_write_char(int x, int y, png_bytep *row_pointers, char n) { int ix, iy; int *f = &s_X[0][0]; switch(n) { case 'a': f = &s_a[0][0]; break; case 'b': f = &s_b[0][0]; break; case 'c': f = &s_c[0][0]; break; case 'd': f = &s_d[0][0]; break; case 'e': f = &s_e[0][0]; break; case 'f': f = &s_f[0][0]; break; case 'g': f = &s_g[0][0]; break; case 'h': f = &s_h[0][0]; break; case 'i': f = &s_i[0][0]; break; case 'j': f = &s_j[0][0]; break; case 'k': f = &s_k[0][0]; break; case 'l': f = &s_l[0][0]; break; case 'm': f = &s_m[0][0]; break; case 'n': f = &s_n[0][0]; break; case 'o': f = &s_o[0][0]; break; case 'p': f = &s_p[0][0]; break; case 'q': f = &s_q[0][0]; break; case 'r': f = &s_r[0][0]; break; case 's': f = &s_s[0][0]; break; case 't': f = &s_t[0][0]; break; case 'u': f = &s_u[0][0]; break; case 'v': f = &s_v[0][0]; break; case 'w': f = &s_w[0][0]; break; case 'x': f = &s_x[0][0]; break; case 'y': f = &s_y[0][0]; break; case 'z': f = &s_z[0][0]; break; case ' ': f = &s_SP[0][0]; break; case '_': f = &s_US[0][0]; break; case '(': f = &s_BRO[0][0]; break; case ')': f = &s_BRC[0][0]; break; case '<': f = &s_LT[0][0]; break; case '>': f = &s_GT[0][0]; break; case '-': f = &s_MI[0][0]; break; case '/': f = &s_SL[0][0]; break; case ';': f = &s_SC[0][0]; break; case ',': f = &s_CM[0][0]; break; case ':': f = &s_CO[0][0]; break; case '.': f = &s_DT[0][0]; break; case '\'': f = &s_SQ[0][0]; break; case 'A': f = &s_a[0][0]; break; case 'B': f = &s_b[0][0]; break; case 'C': f = &s_c[0][0]; break; case 'D': f = &s_d[0][0]; break; case 'E': f = &s_e[0][0]; break; case 'F': f = &s_f[0][0]; break; case 'G': f = &s_g[0][0]; break; case 'H': f = &s_h[0][0]; break; case 'I': f = &s_i[0][0]; break; case 'J': f = &s_j[0][0]; break; case 'K': f = &s_k[0][0]; break; case 'L': f = &s_l[0][0]; break; case 'M': f = &s_M[0][0]; break; case 'N': f = &s_n[0][0]; break; case 'O': f = &s_o[0][0]; break; case 'P': f = &s_p[0][0]; break; case 'Q': f = &s_q[0][0]; break; case 'R': f = &s_r[0][0]; break; case 'S': f = &s_s[0][0]; break; case 'T': f = &s_t[0][0]; break; case 'U': f = &s_u[0][0]; break; case 'V': f = &s_v[0][0]; break; case 'W': f = &s_w[0][0]; break; case 'X': f = &s_x[0][0]; break; case 'Y': f = &s_y[0][0]; break; case 'Z': f = &s_z[0][0]; break; case '0': f = &s_0[0][0]; break; case '1': f = &s_1[0][0]; break; case '2': f = &s_2[0][0]; break; case '3': f = &s_3[0][0]; break; case '4': f = &s_4[0][0]; break; case '5': f = &s_5[0][0]; break; case '6': f = &s_6[0][0]; break; case '7': f = &s_7[0][0]; break; case '8': f = &s_8[0][0]; break; case '9': f = &s_9[0][0]; break; } /* print the char matrix */ for(iy = 0; iy < S_H_MAX; iy++) { png_byte* row = row_pointers[y+iy]; for(ix = 0; ix < S_W_MAX; ix++) { png_byte* ptr = &(row[(x+ix)*4]); if(f[iy*S_W_MAX + ix] == 1) { /* foreground */ ptr[0] = 0; ptr[1] = 0; ptr[2] = 0; } else { /* background */ ptr[0] = 250; ptr[1] = 250; ptr[2] = 255; } } } } /** * Writes a single digit 0..9. * You should normally use either qs_png_write_int() or qs_png_write_int(). * * @param x IN x position * @param y IN y position * @param row_pointers IN start pointer (0/0) * @param n IN number to write */ static void qs_png_write_digit(int x, int y, png_bytep *row_pointers, int n) { char f = 'X'; if(n == 0) f = '0'; if(n == 1) f = '1'; if(n == 2) f = '2'; if(n == 3) f = '3'; if(n == 4) f = '4'; if(n == 5) f = '5'; if(n == 6) f = '6'; if(n == 7) f = '7'; if(n == 8) f = '8'; if(n == 9) f = '9'; qs_png_write_char(x, y, row_pointers, f); } /** * Writes a string to the graph. * * @param x IN x position * @param y IN y position * @param row_pointers IN start pointer (0/0) * @param n IN string to write */ static void qs_png_write_string(int x, int y, png_bytep *row_pointers, const char *n) { int i = 0; int offset = 0; while(n[i] != '\0') { qs_png_write_char(x+offset, y, row_pointers, n[i]); i++; offset = offset + S_W_MAX; } } /** * Writes a number (int) to the graph (1:1). * * @param x IN x position * @param y IN y position * @param row_pointers IN start pointer (0/0) * @param n IN number to write */ static void qs_png_write_int(int x, int y, png_bytep *row_pointers, int n) { char num_str[HUGE_STRING_LEN]; snprintf(num_str, sizeof(num_str), "%d", n); qs_png_write_string(x, y, row_pointers, num_str); } /** * Writes a number (long) to the graph using k,M for big numbers. * * @param x IN x position * @param y IN y position * @param row_pointers IN start pointer (0/0) * @param n IN string to write */ static void qs_png_write_long(int x, int y, png_bytep *row_pointers, long n) { char num_str[HUGE_STRING_LEN]; snprintf(num_str, sizeof(num_str), "%ld", n); if(n >= 1000) { snprintf(num_str, sizeof(num_str), "%ldk", n/1000); } if(n >= 1000000) { snprintf(num_str, sizeof(num_str), "%ldM", n/1000000); } qs_png_write_string(x, y, row_pointers, num_str); } /** * Labels the graph (min,max,title). * * @param width IN size (x axis) of the graph * @param height IN size (y axis) of the graph * @param border IN border size around the graph * @param row_pointers IN start pointer (0/0) * @param max IN max y value * @param name IN title */ static void qs_png_label(int width, int height, int border, png_bytep *row_pointers, long max, const char *name) { /* MAX */ int i; int step = height/5; int c = 5; for(i = 0; i < height; i = i + step) { qs_png_write_long(1, border - (S_W_MAX/2) + i, row_pointers, max/5*c); c--; } /* MIN */ qs_png_write_int(1, height + border - (S_W_MAX/2), row_pointers, 0); /* title */ { char buf[HUGE_STRING_LEN]; snprintf(buf, sizeof(buf), "%s", name); qs_png_write_string(XY_BORDER, XY_BORDER/2-S_H_MAX/2, row_pointers, buf); } } static void lp_init(int width, int height, int border, png_bytep **start) { png_bytep *row_pointers; int b_width = width + (2 * border); int b_height = height + (2 * border); int x, y; /* alloc memory */ row_pointers = (png_bytep*) malloc(sizeof(png_bytep) * b_height); for(y=0; y 8)) { char *e; p=p+strlen(name); e = strchr(p,';'); if(e) e[0] = '\0'; e = strchr(p, '.'); /** sl uses fp value */ if(e) e[0] = '\0'; tmp[sample-1] = atol(p); } else { tmp[sample-1] = 0; } /* hour (stat_log time format: %d.%m.%Y %H:%M:%S (19 char)) */ p = strchr(line, ';'); if(p && (p-line == 19 )) { p = p - 6; p[0] = '\0'; p = p - 2; hours[i] = atoi(p); } /* use the defined sample rate */ if(sample == X_SAMPLE_RATE) { int j; int max_value = 0; for(j = 0; j < X_SAMPLE_RATE; j++) { req[i] = req[i] + tmp[j]; if(max_value < tmp[j]) { max_value = tmp[j]; } } max_req[i] = max_value; if(max_req[i] > peak) peak = max_req[i]; /* build average */ req[i] = req[i] / X_SAMPLE_RATE; sample = 1; i++; /* and store the current date (%d.%m.%Y (10 char)) if the first value is at 00h */ if(hours[i] == 0 && i == 1) { p = strchr(line, ' '); if(p && (p-line == 10)) { p[0] = '\0'; strcpy(date_str, line); } } } else { sample++; } } /* calculate y axis scaling (1:1 are heigth pixels) */ if(peak < 10) { scale = 0.1; } else { while((peak / scale) > height) { if(scale < 8) { scale = scale * 2; } else { if(scale == 8) { scale = 10; } else { scale = scale * 10; } } } } /* draw the curve */ for(x=0; x -p -o [-10]\n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "%s is a tool to generate png (portable network graphics)\n", cmd); qs_man_print(man, "raster images files from semicolon separated data generated by the\n"); qs_man_print(man, "qslog utility. It reads up to the first 1440 entries (24 hours)\n"); qs_man_print(man, "and prints a graph using the values defined by the 'parameter' \n"); qs_man_print(man, "name.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -i \n"); if(man) printf("\n"); qs_man_print(man, " Input file to read data from.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p \n"); if(man) printf("\n"); qs_man_print(man, " Parameter name, e.g. r/s or usr.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -o \n"); if(man) printf("\n"); qs_man_print(man, " Output file name, e.g. stat.png.\n"); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslogger(1), qslog(1), qsrotate(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("\n"); printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } int main(int argc, char **argv) { int y; int width, height, b_width, b_height; png_byte color_type; png_byte bit_depth; int scale; png_structp png_ptr; png_infop info_ptr; png_bytep *row_pointers; char *infile = NULL; FILE *f; FILE *stat_log; char *cmd = strrchr(argv[0], '/'); const char *param = NULL; const char *name = ""; char *out = NULL; int c_r = 20; int c_g = 50; int c_b = 175; const qs_png_elt_t* elt; if(cmd == NULL) { cmd = argv[0]; } else { cmd++; } while(argc >= 1) { if(strcmp(*argv,"-i") == 0) { if (--argc >= 1) { infile = *(++argv); } } else if(strcmp(*argv,"-p") == 0) { if (--argc >= 1) { param = *(++argv); name = param; } } else if(strcmp(*argv,"-o") == 0) { if (--argc >= 1) { out = *(++argv); } } else if(strcmp(*argv,"-h") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } argc--; argv++; } if(infile == NULL || param == NULL || out == NULL) usage(cmd, 0); for(elt = qs_png_elts; elt->param != NULL ; ++elt) { if(strcmp(elt->param, param) == 0) { name = elt->name; c_r = elt->r; c_g = elt->g; c_b = elt->b; } } stat_log = fopen(infile, "r"); if(stat_log == NULL) { fprintf(stderr,"[%s]: ERROR, could not open input file <%s>\n", cmd, infile); exit(1); } f = fopen(out, "wb"); if(f == NULL) { fprintf(stderr,"[%s]: ERROR, could not open output file <%s>\n", cmd, out); exit(1); } png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if(png_ptr == NULL) { fprintf(stderr,"[%s]: ERROR, could not create png struct\n", cmd); exit(1); } info_ptr = png_create_info_struct(png_ptr); if(info_ptr == NULL) { fprintf(stderr,"[%s]: ERROR, could not create png information struct\n", cmd); exit(1); } if(setjmp(png_jmpbuf(png_ptr))) { fprintf(stderr,"[%s]: ERROR, could not init png struct\n", cmd); exit(1); } png_set_write_fn(png_ptr, f, lp_write_data, NULL); /* write header */ if(setjmp(png_jmpbuf(png_ptr))) { fprintf(stderr,"[%s]: ERROR, could not write png header\n", cmd); exit(1); } color_type = PNG_COLOR_TYPE_RGB_ALPHA; bit_depth = 8; width = X_COUNTS; height = Y_COUNTS; b_width = width + (2 * XY_BORDER); b_height = height + (2 * XY_BORDER); png_set_IHDR(png_ptr, info_ptr, b_width, b_height, bit_depth, color_type, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); png_write_info(png_ptr, info_ptr); /* write bytes */ if(setjmp(png_jmpbuf(png_ptr))) { fprintf(stderr,"[%s]: ERROR, could not write png data\n", cmd); exit(1); } /* alloc and background */ lp_init(width, height, XY_BORDER, &row_pointers); /* paint */ { char buf[HUGE_STRING_LEN]; snprintf(buf, sizeof(buf), ";%s;", param); scale = qs_png_draw(width, height, XY_BORDER, row_pointers, stat_log, buf, c_r, c_g, c_b); } /* min/max/title label */ qs_png_label(width, height, XY_BORDER, row_pointers, scale, name); /* done, write image */ png_write_image(png_ptr, row_pointers); /* end write */ if(setjmp(png_jmpbuf(png_ptr))) { fprintf(stderr,"[%s]: ERROR, could not write png data\n", cmd); exit(1); } png_write_end(png_ptr, NULL); /* cleanup heap allocation */ for(y=0; y #include #include #include #include #include /* apr */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include /* OpenSSL */ #include #include "qs_util.h" #define MAX_LINE 32768 /* 2mb */ #define MAX_LINE_BUFFER 2097152 #define CR 13 #define LF 10 typedef enum { QS_UT_PATH, QS_UT_QUERY } qs_url_type_e; #define QS_PCRE_RESERVED "{}[]()^$.|*+?\\-" //#define QS_PCRE_RESERVED "{}[]()^$.|*+?\"'\\-" /* reserved (to be escaped): {}[]()^$.|*+?\- */ #define QS_UNRESERVED "a-zA-Z0-9-\\._~% " #define QS_GEN ":/\\?#\\[\\]@" #define QS_SUB "!$&'\\(\\)\\*\\+,;=" #define QS_SUB_S "!$&\\(\\)\\*\\+,;=" #define QS_SIMPLE_PATH_PCRE "(/[a-zA-Z0-9\\-_]+)+[/]?\\.?[a-zA-Z]{0,4}" #define QS_B64 "([a-z]+[a-z0-9]*[A-Z]+[A-Z0-9]*)" #define QS_HX "([A-F0-9]*[A-F]+[0-9]+[A-F0-9]*)" #define QS_OVECCOUNT 3 /* request line detection */ #define QOSC_REQ "(OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT|PROPFIND|PROPPATCH|MKCOL|COPY|MOVE|LOCK|UNLOCK|VERSION-CONTROL|REPORT|CHECKOUT|CHECKIN|UNCHECKOUT|MKWORKSPACE|UPDATE|LABEL|MERGE|BASELINE-CONTROL|MKACTIVITY|ORDERPATCH|ACL|PATCH|SEARCH|BCOPY|BDELETE|BMOVE|BPROPFIND|BPROPPATCH|NOTIFY|POLL|SUBSCRIBE|UNSUBSCRIBE|X-MS-ENUMATTS|RPC_IN_DATA|RPC_OUT_DATA) /[\x20-\x21\x23-\xFF]* HTTP/" pcre *pcre_b64; pcre *pcre_hx; pcre *pcre_simple_path; #define QOS_DEC_MODE_FLAGS_URL 0x00 #define QOS_DEC_MODE_FLAGS_HTML 0x01 #define QOS_DEC_MODE_FLAGS_UNI 0x02 #define QOS_DEC_MODE_FLAGS_ANSI 0x04 /* global variables to store settings */ static int m_mode = QOS_DEC_MODE_FLAGS_URL; static int m_base64 = 5; static int m_verbose = 1; static int m_path_depth = 1; static int m_redundant = 1; static int m_query_pcre = 0; static int m_query_multi_pcre = 0; static int m_query_o_pcre = 0; static int m_query_single_pcre = 0; static int m_query_len_pcre = 10; static int m_exit_on_error = 0; static int m_handler = 0; static pcre *m_req_regex = NULL; static int m_log_req_regex = 0; static const char *m_pfx = NULL; static const char *m_filter = NULL; typedef struct { pcre *pcre; pcre_extra *extra; char *rule; char *path; char *query_m_string; char *query_m_pcre; int fragment; } qs_rule_t; /* openssl stack compare function used to sort the rules */ int STACK_qs_cmp(const char * const *_pA, const char * const *_pB) { qs_rule_t *pA=*(( qs_rule_t **)_pA); qs_rule_t *pB=*(( qs_rule_t **)_pB); return strcmp(pA->rule,pB->rule); } /* compiles a pcre (exit on error) */ static pcre *qos_pcre_compile(char *pattern, int option) { const char *errptr = NULL; int erroffset; pcre *pcre = pcre_compile(pattern, PCRE_DOTALL|option, &errptr, &erroffset, NULL); if(pcre == NULL) { fprintf(stderr, "ERROR, rule <%s> could not compile pcre at position %d," " reason: %s\n", pattern, erroffset, errptr); exit(1); } return pcre; } /* tries to detect base64/hex patterns (mix of upper and lower case characters) */ static char *qos_detect_b64(char *line, int silent) { int ovector[QS_OVECCOUNT]; int rc_c = pcre_exec(pcre_b64, NULL, line, strlen(line), 0, 0, ovector, QS_OVECCOUNT); if(rc_c >= 0) { if((m_verbose > 1) && !silent) printf(" B64: %.*s\n", ovector[1] - ovector[0], &line[ovector[0]]); return &line[ovector[0]]; } rc_c = pcre_exec(pcre_hx, NULL, line, strlen(line), 0, 0, ovector, QS_OVECCOUNT); if(rc_c >= 0) { if((m_verbose > 1) && !silent) printf(" HX: %.*s\n", ovector[1] - ovector[0], &line[ovector[0]]); return &line[ovector[0]]; } return NULL; } /* escape double quotes and backslash (to be used for Apache directive) */ static char *qs_apache_escape(apr_pool_t *pool, const char *line) { char *ret = apr_pcalloc(pool, strlen(line) * 4); int i = 0; const char *in = line; while(in && in[0]) { if(in[0] == '"') { ret[i] = '\\'; i++; ret[i] = 'x'; i++; ret[i] = '2'; i++; ret[i] = '2'; i++; } else if(in[0] == '\\' && in[1] == '\\') { ret[i] = '\\'; i++; ret[i] = 'x'; i++; ret[i] = '5'; i++; ret[i] = 'c'; i++; in++; } else { ret[i] = (char)in[0]; i++; } in++; } return ret; } /* escape a string in order to be used withn a pcre */ static char *qos_escape_pcre(apr_pool_t *pool, char *line) { int i = 0; unsigned char prev = 0; unsigned char *in = (unsigned char *)line; char *ret = apr_pcalloc(pool, strlen(line) * 4); int reti = 0; if(strlen(line) == 0) return ""; while(in[i]) { if(strchr(QS_PCRE_RESERVED, in[i]) != NULL) { if(prev && (prev == '\\')) { /* already escaped */ ret[reti] = in[i]; reti++; } else if(prev && (in[i] == '\\') && (strchr(QS_PCRE_RESERVED, in[i+1]) != NULL)) { /* escape char */ ret[reti] = in[i]; reti++; } else { ret[reti] = '\\'; reti++; ret[reti] = in[i]; reti++; } } else if((in[i] < ' ') || (in[i] > '~')) { sprintf(&ret[reti], "\\x%02x", in[i]); reti = reti + 4; } else { ret[reti] = in[i]; reti++; } prev = in[i]; i++; } return ret; } /* helper for url decoding */ static int qos_hex2c(const char *x) { int i, ch; ch = x[0]; if (isdigit(ch)) { i = ch - '0'; }else if (isupper(ch)) { i = ch - ('A' - 10); } else { i = ch - ('a' - 10); } i <<= 4; ch = x[1]; if (isdigit(ch)) { i += ch - '0'; } else if (isupper(ch)) { i += ch - ('A' - 10); } else { i += ch - ('a' - 10); } return i; } static int qos_ishex(char x) { if((x >= '0') && (x <= '9')) return 1; if((x >= 'a') && (x <= 'f')) return 1; if((x >= 'A') && (x <= 'F')) return 1; return 0; } /* url decoding */ static int qos_unescaping(char *x) { int i, j, ch; if (x[0] == '\0') return 0; for (i = 0, j = 0; x[i] != '\0'; i++, j++) { ch = x[i]; if(ch == '%' && qos_ishex(x[i + 1]) && qos_ishex(x[i + 2])) { ch = qos_hex2c(&x[i + 1]); i += 2; } else if((m_mode & QOS_DEC_MODE_FLAGS_UNI) && ((ch == '%') || (ch == '\\')) && ((x[i + 1] == 'u') || (x[i + 1] == 'U')) && qos_ishex(x[i + 2]) && qos_ishex(x[i + 3]) && qos_ishex(x[i + 4]) && qos_ishex(x[i + 5])) { /* unicode %uXXXX */ ch = qos_hex2c(&x[i + 4]); if((ch > 0x00) && (ch < 0x5f) && ((x[i + 2] == 'f') || (x[i + 2] == 'F')) && ((x[i + 3] == 'f') || (x[i + 3] == 'F'))) { ch += 0x20; } i += 5; } else if (ch == '\\' && (x[i + 1] == 'x') && qos_ishex(x[i + 2]) && qos_ishex(x[i + 3])) { ch = qos_hex2c(&x[i + 2]); i += 3; } else if (ch == '+') { ch = ' '; } x[j] = ch; } x[j] = '\0'; if(strlen(x) != j) { fprintf(stderr, "WARNING, found escaped null char %s\n", x); } return j; } static int qos_fgetline(char *s, int n, FILE *f) { register int i = 0; while (1) { s[i] = (char) fgetc(f); if (s[i] == CR) { s[i] = fgetc(f); } if ((s[i] == 0x4) || (s[i] == LF) || (i == (n - 1))) { s[i] = '\0'; return (feof(f) ? 1 : 0); } ++i; } } /* init global pcre */ static void qos_init_pcre() { char buf[1024]; sprintf(buf, "%s{%d,}", QS_B64, m_base64); pcre_b64 = qos_pcre_compile(buf, 0); sprintf(buf, "%s{%d,}", QS_HX, m_base64); pcre_hx = qos_pcre_compile(buf, 0); pcre_simple_path = qos_pcre_compile("^"QS_SIMPLE_PATH_PCRE"$", 0); m_req_regex = qos_pcre_compile(QOSC_REQ, 0); } static void usage(char *cmd, int man) { char space[1024]; memset(space, ' ', 1024); space[strlen(cmd)] = '\0'; if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - an utility to generate mod_qos request line rules out from\n", cmd); qs_man_print(man, "existing access/audit log data.\n"); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -i [-c ] [-d ] [-h] [-b ]\n", man ? "" : "Usage: ", cmd); qs_man_print(man, " %s [-p|-s|-m|-o] [-l ] [-n] [-e] [-u 'uni']\n", space); qs_man_print(man, " %s [-k ] [-t] [-f ] [-v 0|1|2]\n", space); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, " mod_qos implements a request filter which validates each request\n"); qs_man_print(man, " line. The module supports both, negative and positive security\n"); qs_man_print(man, " model. The QS_Deny* directives are used to specify request line\n"); qs_man_print(man, " patterns which are not allowed to access the server (negative\n"); qs_man_print(man, " security model / blacklist). These rules are used to restrict\n"); qs_man_print(man, " access to certain resources which should not be available to\n"); qs_man_print(man, " users or to protect the server from malicious patterns. The\n"); qs_man_print(man, " QS_Permit* rules implement a positive security model (whitelist).\n"); qs_man_print(man, " These directives are used to define allowed request line patterns.\n"); qs_man_print(man, " Request which do not match any of thses patterns are not allowed\n"); qs_man_print(man, " to access the server.\n"); if(man) printf("\n\n"); qs_man_print(man, " %s is an audit log analyzer used to generate filter\n", cmd); qs_man_print(man, " rules (perl compatible regular expressions) which may be used\n"); qs_man_print(man, " by mod_qos to deny access for suspect requests (QS_PermitUri rules).\n"); qs_man_print(man, " It parses existing audit log files in order to generate request\n"); qs_man_print(man, " patterns covering all allowed requests.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -i \n"); if(man) printf("\n"); qs_man_print(man, " Input file containing request URIs.\n"); qs_man_print(man, " The URIs for this file have to be extracted from the servers\n"); qs_man_print(man, " access logs. Each line of the input file contains a request\n"); qs_man_print(man, " URI consiting of a path and and query.\n"); printf("\n"); printf(" Example:\n"); qs_man_println(man, " /aaa/index.do\n"); qs_man_println(man, " /aaa/edit?image=1.jpg\n"); qs_man_println(man, " /aaa/image/1.jpg\n"); qs_man_println(man, " /aaa/view?page=1\n"); qs_man_println(man, " /aaa/edit?document=1\n"); printf("\n"); qs_man_print(man, " These access log data must include current request URIs but\n"); qs_man_print(man, " also request lines from previous rule generation steps. It\n"); qs_man_print(man, " must also include request lines which cover manually generated\n"); qs_man_print(man, " rules.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -c \n"); if(man) printf("\n"); qs_man_print(man, " mod_qos configuration file defining QS_DenyRequestLine and\n"); qs_man_print(man, " QS_PermitUri directives.\n"); qs_man_print(man, " %s generates rules from access log data automatically.\n", cmd); qs_man_print(man, " Manually generated rules (QS_PermitUri) may be provided from\n"); qs_man_print(man, " this file. Note: each manual rule must be represented by a\n"); qs_man_print(man, " request URI in the input data (-i) in order to make sure not\n"); qs_man_print(man, " to be deleted by the rule optimisation algorithm.\n"); qs_man_print(man, " QS_Deny* rules from this file are used to filter request lines\n"); qs_man_print(man, " which should not be used for whitelist rule generation.\n"); printf("\n"); printf(" Example:\n"); qs_man_println(man, " # manually defined whitelist rule:\n"); qs_man_println(man, " QS_PermitUri +view deny \"^[/a-zA-Z0-9]+/view\\?(page=[0-9]+)?$\"\n"); qs_man_println(man, " # filter unwanted request line patterns:\n"); qs_man_println(man, " QS_DenyRequestLine +printable deny \".*[\\x00-\\x19].*\"\n"); printf("\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -d \n"); if(man) printf("\n"); qs_man_print(man, " Depth (sub locations) of the path string which is defined as a\n"); qs_man_print(man, " literal string. Default is 1.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -h\n"); if(man) printf("\n"); qs_man_print(man, " Always use a string representing the handler name in the path even\n"); qs_man_print(man, " the url does not have a query. See also -d option.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -b \n"); if(man) printf("\n"); qs_man_print(man, " Replaces url pattern by the regular expression when detecting\n"); qs_man_print(man, " a base64/hex encoded string. Detecting sensibility is defined by a\n"); qs_man_print(man, " numeric value. You should use values higher than 5 (default)\n"); qs_man_print(man, " or 0 to disable this function.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p\n"); if(man) printf("\n"); qs_man_print(man, " Repesents query by pcre only (no literal strings).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -s\n"); if(man) printf("\n"); qs_man_print(man, " Uses one single pcre for the whole query string.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -m\n"); if(man) printf("\n"); qs_man_print(man, " Uses one pcre for multipe query values (recommended mode).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -o\n"); if(man) printf("\n"); qs_man_print(man, " Does not care the order of query parameters.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -l \n"); if(man) printf("\n"); qs_man_print(man, " Outsizes the query length by the defined length ({0,size+len}),\n"); qs_man_print(man, " default is %d.\n", m_query_len_pcre); if(man) printf("\n.TP\n"); qs_man_print(man, " -n\n"); if(man) printf("\n"); qs_man_print(man, " Disables redundant rules elimination.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -e\n"); if(man) printf("\n"); qs_man_print(man, " Exit on error.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -u 'uni'\n"); if(man) printf("\n"); qs_man_print(man, " Enables additional decoding methods. Use the same settings as you have\n"); qs_man_print(man, " used for the QS_Decoding directive.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p\n"); if(man) printf("\n"); qs_man_print(man, " Repesents query by pcre only (no literal strings).\n"); qs_man_print(man, " Determines the worst case performance for the generated whitelist\n"); qs_man_print(man, " by applying each rule for each request line (output is real time\n"); qs_man_print(man, " filter duration per request line in milliseconds).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -k \n"); if(man) printf("\n"); qs_man_print(man, " Prefix used to generate rule identifiers (QSF by default).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -t\n"); if(man) printf("\n"); qs_man_print(man, " Calculates the maximal latency per request (worst case) using the\n"); qs_man_print(man, " generated rules.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -f \n"); if(man) printf("\n"); qs_man_print(man, " Filters the input by the provided path (prefix) only processing\n"); qs_man_print(man, " matching lines.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -v \n"); if(man) printf("\n"); qs_man_print(man, " Verbose mode. (0=silent, 1=rule source, 2=detailed). Default is 1.\n"); qs_man_print(man, " Don't use rules you haven't checked the request data used to\n"); qs_man_print(man, " generate it! Level 1 is highly recommended (as long as you don't\n"); qs_man_print(man, " have created the log data using your own web crawler).\n"); printf("\n"); if(man) { printf(".SH OUTPUT\n"); } else { printf("Output\n"); } qs_man_print(man, " The output of %s is written to stdout. The output\n", cmd); qs_man_print(man, " contains the generated QS_PermitUri directives but also\n"); qs_man_print(man, " information about the source which has been used to generate\n"); qs_man_print(man, " these rules. It is very important to check the validity of\n"); qs_man_print(man, " each request line which has been used to calculate the\n"); qs_man_print(man, " QS_PermitUri rules. Each request line which has been used to\n"); qs_man_print(man, " generate a new rule is shown in the output prefixed by\n"); qs_man_print(man, " \"ADD line :\". These request lines should be\n"); qs_man_print(man, " stored and reused at any later rule generation (add them to\n"); qs_man_print(man, " the URI input file). The subsequent line shows the generated\n"); qs_man_print(man, " rule.\n"); qs_man_print(man, " At the end of data processing a list of all generated\n"); qs_man_print(man, " QS_PermitUri rules is shown. These directives may be used\n"); qs_man_print(man, " withn the configuration file used by mod_qos.\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); } else { printf("Sample Usage and Output\n"); } qs_man_println(man, " ./%s -i loc.txt -c httpd.conf -m -e\n", cmd); qs_man_println(man, " ...\n"); qs_man_println(man, " # ADD line 1: /aaa/index.do\n"); qs_man_println(man, " # 003 ^(/[a-zA-Z0-9\\-_]+)+[/]?\\.?[a-zA-Z]{0,4}$\n"); qs_man_println(man, " # ADD line 3: /aaa/view?page=1\n"); qs_man_println(man, " # --- ^[/a-zA-Z0-9]+/view\\?(page=[0-9]+)?$\n"); qs_man_println(man, " # ADD line 4: /aaa/edit?document=1\n"); qs_man_println(man, " # 004 ^[/a-zA-Z]+/edit\\?((document)(=[0-9]*)*[&]?)*$\n"); qs_man_println(man, " # ADD line 5: /aaa/edit?image=1.jpg\n"); qs_man_println(man, " # 005 ^[/a-zA-Z]+/edit\\?((image)(=[0-9\\.a-zA-Z]*)*[&]?)*$\n"); qs_man_println(man, " ...\n"); qs_man_println(man, " QS_PermitUri +QSF001 deny \"^[/a-zA-Z]+/edit\\?((document|image)(=[0-9\\.a-zA-Z]*)*[&]?)*$\"\n"); qs_man_println(man, " QS_PermitUri +QSF002 deny \"^[/a-zA-Z0-9]+/view\\?(page=[0-9]+)?$\"\n"); qs_man_println(man, " QS_PermitUri +QSF003 deny \"^(/[a-zA-Z0-9\\-_]+)+[/]?\\.?[a-zA-Z]{0,4}$\"\n"); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("mod_qos %s\n", man_version); printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } /* worker struct, used for parallel processing */ typedef struct { apr_pool_t *pool; apr_table_t *rules; apr_table_t *rules_url; int from; int to; } qs_worker_t; /* determines, if a rule is really required */ static apr_table_t *qos_get_used(apr_pool_t *pool, apr_table_t *rules, apr_table_t *rules_url, int from, int to) { apr_table_t *used = apr_table_make(pool, 1); int j; for(j = from; j < to; j++) { int l; apr_table_entry_t *linee = (apr_table_entry_t *)apr_table_elts(rules_url)->elts; if(m_verbose) { printf("[%d]", j); fflush(stdout); } for(l = 0; l < apr_table_elts(rules_url)->nelts; l++) { char *line = linee[l].key; int i; int match = 0; apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; for(i = 0; i < apr_table_elts(rules)->nelts; i++) { if(i != j) { qs_rule_t *rs = (qs_rule_t *)entry[i].val; if(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) >= 0) { match = 1; break; } } } if(!match) { /* no match, rule j is required */ apr_table_add(used, entry[j].key, "+"); } } } return used; } static void *qos_worker(void *argv) { qs_worker_t *wt = argv; return qos_get_used(wt->pool, wt->rules, wt->rules_url, wt->from, wt->to); } /* get the characters used withn the string in order to define a pcre */ static char *qos_2pcre(apr_pool_t *pool, const char *line) { int hasA = 0; int hasD = 0; int hasE = 0; int hasB = 0; int i = 0; unsigned char *in = (unsigned char *)line; char *ret = apr_pcalloc(pool, strlen(line) * 6); int reti = 0; char *existing = ""; if(strlen(line) == 0) return ""; while(in[i]) { if(isdigit(in[i])) { if(!hasD) { hasD = 1; strcpy(&ret[reti], "0-9"); reti = reti + 3; } } else if(isalpha(in[i])) { if(!hasA) { hasA = 1; strcpy(&ret[reti], "a-zA-Z"); reti = reti + 6; } } else if(in[i] == '\\') { if(!hasE) { hasE = 1; strcpy(&ret[reti], "\\\\"); reti = reti + 2; } } else if(in[i] == '-') { if(!hasB) { hasB = 1; strcpy(&ret[reti], "\\-"); reti = reti + 2; } } else if(in[i] == '\0') { char *ck = apr_psprintf(pool, "#\\x%02x#", in[i]); if(strstr(existing, ck) == NULL) { sprintf(&ret[reti], "\\x%02x", in[i]); reti = reti + 4; existing = apr_pstrcat(pool, existing, ck, NULL); } } else if(strchr(ret, in[i]) == NULL) { if(strchr(QS_PCRE_RESERVED, in[i]) != NULL) { ret[reti] = '\\'; reti++; ret[reti] = in[i]; reti++; } else if((in[i] < ' ') || (in[i] > '~')) { char *ck = apr_psprintf(pool, "#\\x%02x#", in[i]); if(strstr(existing, ck) == NULL) { sprintf(&ret[reti], "\\x%02x", in[i]); reti = reti + 4; existing = apr_pstrcat(pool, existing, ck, NULL); } } else { ret[reti] = in[i]; reti++; } } i++; } if(strlen(ret) == 0) return NULL; ret[reti] = '\0'; return ret; } /* check for the pattern "p" in "r" using the delimter "d", returns 1 if it is in the string */ static int qos_checkstr(apr_pool_t *pool, char *r, char *d, char *p) { /* * r = ..|p|.. * r = p|... * r = ..|p * r = p */ char *check1 = apr_pstrcat(pool, d, p, d, NULL); char *check2 = apr_pstrcat(pool, p, d, NULL); char *check3 = apr_pstrcat(pool, d, p, NULL); if(strstr(r, check1) != NULL) { return 1; } if(strncmp(r, check2, strlen(check2)) == 0) { return 1; } if(strlen(r) > strlen(check3)) { if((strncmp(&r[strlen(r)-strlen(check3)], check3, strlen(check3)) == 0)) { return 1; } } if(strcmp(r, p) == 0) { return 1; } return 0; } /* add the string "n" to "o" using the delimiter "d" (only if not already available */ static char *qos_addstr(apr_pool_t *pool, char *o, char *d, char *n) { char *p = apr_pstrdup(pool, n); char *r = o; if(n == NULL) return o; while(p && p[0]) { char *this = p; char *next = strchr(p, d[0]); /* \| */ while(next) { if((next > this) && (next[-1] == '\\')) { next++; next = strchr(next, d[0]); } else { break; } } if(next == NULL) { p = NULL; } else { next[0] = '\0'; next++; p = next; } if(!qos_checkstr(pool, r, d, this)) { r = apr_pstrcat(pool, r, d, this, NULL); } } return r; } /* create a name=pcre string like this: ((s1|s2)(=[]*)*[&]?)*" */ static char *qos_qqs(apr_pool_t *pool, char *string, char *query_pcre, int singleEq, int hasEq, int startAmp) { char *se = NULL; char *s = ""; if(startAmp) s = "[&]?"; if(singleEq) { se = "(=[&]?)*"; } if(strlen(query_pcre) > 0) { return apr_pstrcat(pool, s, "((", string, ")(=[", qos_2pcre(pool, query_pcre), "]*)*[&]?)*", se, NULL); } else { if(hasEq && !singleEq) { se = "(=[&]?)*"; return apr_pstrcat(pool, s, "(((", string, ")[&]?)*", se, ")*", NULL); } return apr_pstrcat(pool, s, "((", string, ")[&]?)*", se, NULL); } } /* tries to optimize the rules by merging all query into one single pcre matching all values */ static void qos_query_optimization(apr_pool_t *pool, apr_table_t *rules) { apr_table_t *delete = apr_table_make(pool, 1); apr_table_t *checked_path = apr_table_make(pool, 1); apr_table_t *new = apr_table_make(pool, 1); int i, j; apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; for(i = 0; i < apr_table_elts(rules)->nelts; i++) { char *rule_str = entry[i].key; qs_rule_t *r = (qs_rule_t *)entry[i].val; if(!r->fragment && r->path && (apr_table_get(checked_path, r->path) == NULL)) { int merged = 0; char *query_m_string = r->query_m_string == NULL ? "" : r->query_m_string; char *query_m_pcre = r->query_m_pcre == NULL ? "" : r->query_m_pcre; if(m_verbose > 1) printf(" search for path %s (%s)\n", r->path, rule_str); if(m_verbose > 1) printf(" . %s %s\n", query_m_string, query_m_pcre); apr_table_add(checked_path, r->path, ""); /* search for rules with the same path and delete them */ for(j = 0; j < apr_table_elts(rules)->nelts; j++) { if(i != j) { qs_rule_t *n = (qs_rule_t *)entry[j].val; if(!n->fragment && n->path && (strcmp(r->path, n->path) == 0)) { if(m_verbose > 1) printf(" + %s %s\n", n->query_m_string == NULL ? "-" : n->query_m_string, n->query_m_pcre == NULL ? "-" : n->query_m_pcre); if(strlen(query_m_string) == 0) { query_m_string = apr_pstrcat(pool, query_m_string, n->query_m_string, NULL); } else { query_m_string = qos_addstr(pool, query_m_string, "|", n->query_m_string); } if(m_verbose > 1) printf(" > %s\n", query_m_string); query_m_pcre = apr_pstrcat(pool, query_m_pcre, n->query_m_pcre, NULL); apr_table_add(delete, entry[j].key, ""); merged = 1; } } } /* update rule if merged to any */ if(merged) { apr_table_add(delete, entry[i].key, ""); if(m_verbose) { printf("# CHANGE: <%s>", rule_str); } { const char *errptr = NULL; char *rule = apr_pstrcat(pool, "^", r->path, NULL); qs_rule_t *rs = apr_pcalloc(pool, sizeof(qs_rule_t)); if(strlen(query_m_string) > 0) { rule = apr_pstrcat(pool, rule, "\\?", qos_qqs(pool, query_m_string, query_m_pcre, 0, 0, 0), NULL); } rule = apr_pstrcat(pool, rule, "$", NULL); rs->pcre = qos_pcre_compile(rule, 0); rs->extra = pcre_study(rs->pcre, 0, &errptr); rs->path = r->path; apr_table_setn(new, rule, (char *)rs); if(m_verbose) { printf(" to <%s>\n", rule); fflush(stdout); } } } } } entry = (apr_table_entry_t *)apr_table_elts(delete)->elts; for(i = 0; i < apr_table_elts(delete)->nelts; i++) { if(m_verbose) printf("# DEL rule: %s\n", entry[i].key); apr_table_unset(rules, entry[i].key); } entry = (apr_table_entry_t *)apr_table_elts(new)->elts; for(i = 0; i < apr_table_elts(new)->nelts; i++) { apr_table_setn(rules, entry[i].key, entry[i].val); } } /* deletes rules which are not required and merge query name/value pairs */ static void qos_delete_obsolete_rules(apr_pool_t *pool, apr_table_t *rules, apr_table_t *rules_url) { apr_table_t *not_used = apr_table_make(pool, 1); apr_table_t *used; apr_table_t *used1; pthread_attr_t *tha = NULL; pthread_t tid; qs_worker_t *wt = apr_pcalloc(pool, sizeof(qs_worker_t)); if(m_query_multi_pcre) { if(m_verbose) { printf("# search for redundant rules ...\n"); fflush(stdout); } qos_query_optimization(pool, rules); if(m_verbose) printf("# "); } else { if(m_verbose) { printf("# search for redundant rules "); fflush(stdout); } } wt->pool = pool; wt->rules = rules; wt->rules_url = rules_url; wt->from = apr_table_elts(rules)->nelts / 2; wt->to = apr_table_elts(rules)->nelts; pthread_create(&tid, tha, qos_worker, (void *)wt); used = qos_get_used(pool, rules, rules_url, 0, apr_table_elts(rules)->nelts / 2); pthread_join(tid, (void *)&used1); if(m_verbose) printf(" done\n"); { int i; apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; for(i = 0; i < apr_table_elts(rules)->nelts; i++) { if((apr_table_get(used, entry[i].key) == NULL) && (apr_table_get(used1, entry[i].key) == NULL)) { if(m_verbose) printf("# DEL rule (not required): %s\n", entry[i].key); apr_table_add(not_used, entry[i].key, "-"); } } entry = (apr_table_entry_t *)apr_table_elts(not_used)->elts; for(i = 0; i < apr_table_elts(not_used)->nelts; i++) { apr_table_unset(rules, entry[i].key); } } } /* test if we need to create a new url (and save line if the rule is used the very first time (rule has been read from the configuration file)) */ static int qos_test_for_existing_rule(char *plain, char *line, apr_table_t *rules, apr_table_t *special_rules, int line_nr, apr_table_t *rules_url, apr_table_t *source_rules, int first) { int i; apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; if((line == 0) || (strlen(line) == 0)) return 0; for(i = 0; i < apr_table_elts(rules)->nelts; i++) { qs_rule_t *rs = (qs_rule_t *)entry[i].val; if(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) >= 0) { if(first && (apr_table_get(source_rules, entry[i].key) == NULL)) { apr_table_add(source_rules, entry[i].key, ""); apr_table_add(rules_url, line, ""); apr_table_setn(special_rules, entry[i].key, (char *)rs); if(m_verbose) { printf("# ADD line %d: %s\n", line_nr, plain); printf("# --- %s\n", entry[i].key); } } if(m_verbose > 1){ printf("LINE %d, exiting rule: %s\n", line_nr, entry[i].key); } return 1; } } /* check for special rules */ entry = (apr_table_entry_t *)apr_table_elts(special_rules)->elts; for(i = 0; i < apr_table_elts(special_rules)->nelts; i++) { qs_rule_t *rs = (qs_rule_t *)entry[i].val; if(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) >= 0) { if(m_verbose) { printf("# ADD line %d: %s\n", line_nr, plain); printf("# -(S) %s\n", entry[i].key); } apr_table_setn(rules, entry[i].key, (char *)rs); return 1; } } return 0; } /* filter lines we don't want to add to the whitelist */ static int qos_enforce_blacklist(apr_table_t *rules, const char *line) { int i; apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; if((line == 0) || (strlen(line) == 0)) return 0; for(i = 0; i < apr_table_elts(rules)->nelts; i++) { qs_rule_t *rs = (qs_rule_t *)entry[i].val; if(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) == 0) { if(m_verbose > 1) printf(" blacklist match, rule %s\n", entry[i].key); return 1; } } return 0; } /* load existing rules */ static void qos_load_rules(apr_pool_t *pool, apr_table_t *ruletable, const char *httpdconf, const char *command, int option) { FILE *f = fopen(httpdconf, "r"); char line[MAX_LINE]; if(f == NULL) { fprintf(stderr, "ERROR, could not open %s\n", httpdconf); exit(1); } while(!qos_fgetline(line, sizeof(line), f)) { // QS_DenyRequestLine '+'|'-' 'log'|'deny' char *p = strstr(line, command); if(p) { p[0] = '\0'; p++; } if(p && (strchr(line, '#') == NULL)) { p = strchr(p, ' '); if(p) { while(p[0] == ' ') p++; p = strchr(p, ' '); if(p) { while(p[0] == ' ') p++; p = strchr(p, ' '); if(p) { while(p[0] == ' ') p++; if(m_verbose > 1) { printf("load %s\n", p); } { const char *errptr = NULL; char *pattern; pcre *pcre_test; pcre_extra *extra; qs_rule_t *rs; if(p[0] == '"') { int fl = strlen(p)-2; pattern = apr_psprintf(pool, "%.*s", fl, &p[1]); } else { int fl = strlen(p); pattern = apr_psprintf(pool, "%.*s", fl, p); } pcre_test = qos_pcre_compile(pattern, option); extra = pcre_study(pcre_test, 0, &errptr); rs = apr_pcalloc(pool, sizeof(qs_rule_t)); rs->pcre = pcre_test; rs->extra = extra; apr_table_setn(ruletable, pattern, (char *)rs); } } } } } } fclose(f); } static void qos_load_blacklist(apr_pool_t *pool, apr_table_t *blacklist, const char *httpdconf) { qos_load_rules(pool, blacklist, httpdconf, "QS_DenyRequestLine", PCRE_CASELESS); } static void qos_load_whitelist(apr_pool_t *pool, apr_table_t *rules, const char *httpdconf) { qos_load_rules(pool, rules, httpdconf, "QS_PermitUri", 0); } /* tries to map a base64 string to a pcre */ static char *qos_b64_2pcre(apr_pool_t *pool, const char *line) { char *copy = apr_pstrdup(pool, line); char *b64 = qos_detect_b64(copy, 1); char *st = b64; char *ed = &b64[1]; if(m_verbose > 1) printf(" B642pcre: %s", copy); /* reserved: {}[]()^$.|*+?\ */ #define QS_BX "-_$+!" while(st[0] && (isdigit(st[0]) || isalpha(st[0]) || (strchr(QS_BX, st[0]) != NULL))) { st--; } st++; st[0] = '\0'; while(ed[0] && (isdigit(ed[0]) || isalpha(ed[0]) || (strchr(QS_BX, ed[0]) != NULL))) { ed++; } if(m_verbose > 1) printf(" %s <> %s\n", copy, ed); return apr_pstrcat(pool, qos_escape_pcre(pool, copy), "[a-zA-Z0-9\\-_\\$\\+!]+", ed[0] == '\0' ? NULL : qos_escape_pcre(pool, ed), NULL); } /* maps a query string to a pairs of = or = */ static char *qos_query_string_pcre(apr_pool_t *pool, const char *path) { char *copy = apr_pstrdup(pool, path); char *pos = copy; char *ret = ""; int isValue = 0; int open = 0; while(copy[0]) { if((copy[0] == '=') && (copy[1] != '=') && !open) { copy[0] = '\0'; qos_unescaping(pos); if(!open) { ret = apr_pstrcat(pool, ret, "(", NULL); open = 1; } if(m_query_pcre) { if(strlen(pos) > 0) { ret = apr_pstrcat(pool, ret, "[", qos_2pcre(pool, pos), "]+=", NULL); } else { ret = apr_pstrcat(pool, ret, "=", NULL); } } else { ret = apr_pstrcat(pool, ret, qos_escape_pcre(pool, pos), "=", NULL); } open = 1; pos = copy; pos++; isValue = 1; } if(copy[0] == '&') { copy[0] = '\0'; if(strlen(pos) == 0) { ret = apr_pstrcat(pool, ret, "[&]?", NULL); if(open) { ret = apr_pstrcat(pool, ret, ")?", NULL); open = 0; } } else { qos_unescaping(pos); ret = apr_psprintf(pool, "%s[%s]{0,%"APR_SIZE_T_FMT"}[&]?", ret, qos_2pcre(pool, pos), strlen(pos) + m_query_len_pcre); if(open) { ret = apr_pstrcat(pool, ret, ")?", NULL); open = 0; } } pos = copy; pos++; isValue = 0; } copy++; } if(pos != copy) { qos_unescaping(pos); if(isValue) { ret = apr_psprintf(pool, "%s[%s]{0,%"APR_SIZE_T_FMT"}[&]?", ret, qos_2pcre(pool, pos), strlen(pos) + m_query_len_pcre); } else { if(!open) { ret = apr_pstrcat(pool, "(", ret, NULL); open = 1; } if(m_query_pcre) { ret = apr_pstrcat(pool, ret, "[", qos_2pcre(pool, pos), "]+", NULL); } else { ret = apr_pstrcat(pool, ret, qos_escape_pcre(pool, pos), NULL); } } if(open) { ret = apr_pstrcat(pool, ret, ")?", NULL); open = 0; } } if(open) { ret = apr_pstrcat(pool, ret, ")?", NULL); open = 0; } if(m_query_pcre) { return ret; } else { return ret; /* it woud be nice to use (see -o): * ((a=b)?(c=d)?)* * instead of: * (a=b)?(c=d)? and (c=d)?(a=b)? * but in this case, two rules are much faster than one * it's probably better to use the -m option */ } } /* maps a query string to a list of names and a single pcre for all values: |= */ static char *qos_multi_query_string_pcre(apr_pool_t *pool, const char *path, char **query_m_string, char **query_m_pcre) { char *copy = apr_pstrdup(pool, path); char *pos = copy; char *string = ""; char *query_pcre = ""; int isValue = 0; int singleEq = 0; int hasEq = 0; int startAmp = 0; if(copy[0] == '&') startAmp = 1; while(copy[0]) { if(copy[0] == '=') hasEq = 1; if((copy[0] == '=') && (copy[1] != '=') && !isValue) { copy[0] = '\0'; qos_unescaping(pos); if(strlen(pos) > 0) { if(strlen(string) > 0) string = apr_pstrcat(pool, string, "|", NULL); string = apr_pstrcat(pool, string, qos_escape_pcre(pool, pos), NULL); } else { if((copy[1] == '&') || (copy[1] == '\0')) { singleEq = 1; } } pos = copy; pos++; isValue = 1; } if(copy[0] == '&') { copy[0] = '\0'; if(!isValue) { qos_unescaping(pos); if(strlen(string) > 0) string = apr_pstrcat(pool, string, "|", NULL); string = apr_pstrcat(pool, string, qos_escape_pcre(pool, pos), NULL); } else { if(strlen(pos) != 0) { qos_unescaping(pos); query_pcre = apr_pstrcat(pool, query_pcre, pos, NULL); } } pos = copy; pos++; isValue = 0; } copy++; } if(pos != copy) { qos_unescaping(pos); if(isValue) { query_pcre = apr_pstrcat(pool, query_pcre, pos, NULL); } else { if(strlen(string) > 0) string = apr_pstrcat(pool, string, "|", NULL); string = apr_pstrcat(pool, string, qos_escape_pcre(pool, pos), NULL); } } *query_m_string = string; *query_m_pcre = query_pcre; return qos_qqs(pool, string, query_pcre, singleEq, hasEq, startAmp); } /* maps a path to a single pcre (don't mind its length) */ static char *qos_path_pcre(apr_pool_t *lpool, const char *path) { char *dec = apr_pstrdup(lpool, path); qos_unescaping(dec); return apr_pstrcat(lpool, "[", qos_2pcre(lpool, dec), "]+", NULL); } /* maps a path to / */ static char *qos_path_pcre_string(apr_pool_t *lpool, const char *path) { int nohandler = 0; char *lpath = apr_pstrdup(lpool, path); char *last; char *str = ""; int depth = m_path_depth; char *rx = ""; if(lpath[strlen(lpath)-1] == '/') { lpath[strlen(lpath)-1] = '\0'; nohandler = 1; } last = strrchr(lpath, '/'); while(last && depth) { qos_unescaping(last); if(m_base64 && qos_detect_b64(last, 0)) { str = apr_pstrcat(lpool, qos_b64_2pcre(lpool, last), str, NULL); } else { str = apr_pstrcat(lpool, qos_escape_pcre(lpool, last), str, NULL); } last[0] = '\0'; last = strrchr(lpath, '/'); depth--; } if(lpath[0]) { qos_unescaping(lpath); rx = apr_pstrcat(lpool, "[", qos_2pcre(lpool, lpath), "]+", NULL); } if(strlen(str) > 0) { if(nohandler) { rx = apr_pstrcat(lpool, rx, str, "[/]?", NULL); } else { rx = apr_pstrcat(lpool, rx, str, NULL); } } return rx; } static int qos_is_alnum(const char *string) { unsigned char *in = (unsigned char *)string; int i = 0; if(in == NULL) return 0; while(in[i]) { if(!apr_isalnum(in[i])) return 0; i++; } return 1; } static void qos_rule_optimization(apr_pool_t *pool, apr_pool_t *lpool, apr_table_t *rules, apr_table_t *special_rules) { int i; apr_table_t *new_rules = apr_table_make(pool, 5); apr_table_t *del_rules = apr_table_make(pool, 5); apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; for(i = 0; i < apr_table_elts(rules)->nelts; i++) { qs_rule_t *rs = (qs_rule_t *)entry[i].val; int hit = 0; int j; for(j = 0; j < apr_table_elts(rules)->nelts; j++) { if(i != j) { qs_rule_t *rsj = (qs_rule_t *)entry[j].val; if(rs->query_m_string && rsj->query_m_string) { if(strcmp(rs->query_m_string, rsj->query_m_string) == 0) { if(strlen(entry[i].key) == strlen(entry[j].key)) { hit++; } } if(hit == 5) { int s = 0; int e = 0; while(entry[i].key[s] && (entry[i].key[s] == entry[j].key[s])) s++; e = s; while(entry[i].key[e] && ((entry[i].key[e] != entry[j].key[e]) || (apr_isalnum(entry[i].key[e]) && apr_isalnum(entry[j].key[e])))) e++; if((e > s) && (s > 14) && (e < strlen(entry[i].key)) && (strstr(&entry[i].key[e], "\?") != NULL)) { const char *errptr = NULL; char *match = apr_psprintf(lpool, "%.*s%.*s", e-s, &entry[i].key[s], e-s, &entry[j].key[s]); if(qos_is_alnum(match)) { char *matchx = apr_psprintf(lpool, "[%s]{%d}", qos_2pcre(lpool, match), e-s); char *new = apr_psprintf(pool, "%.*s%s%s", s, entry[i].key, matchx, &entry[i].key[e]); qs_rule_t *rsn = apr_pcalloc(pool, sizeof(qs_rule_t)); rsn->pcre = qos_pcre_compile(new, 0); rsn->extra = pcre_study(rsn->pcre, 0, &errptr); rsn->path = rs->path; rsn->query_m_string = rs->query_m_string; rsn->query_m_pcre = rs->query_m_pcre; rsn->fragment = rs->fragment; if(m_verbose) { printf("# CHANGE: <%s> to <%s>\n", entry[i].key, new); fflush(stdout); } apr_table_setn(new_rules, new, (char *)rsn); apr_table_addn(del_rules, entry[i].key, entry[i].val); apr_table_addn(del_rules, entry[j].key, entry[j].val); if(m_verbose > 1) { if(m_verbose) printf(" [%s] [%s]\n", entry[i].key, entry[j].key); if(m_verbose) printf(" [%s] [%s]\n", match, matchx); } break; } } } } } } } entry = (apr_table_entry_t *)apr_table_elts(new_rules)->elts; for(i = 0; i < apr_table_elts(new_rules)->nelts; i++) { apr_table_setn(rules, entry[i].key, entry[i].val); } entry = (apr_table_entry_t *)apr_table_elts(del_rules)->elts; for(i = 0; i < apr_table_elts(del_rules)->nelts; i++) { apr_table_unset(rules, entry[i].key); } } /* rules do not care the order of parameter values (makes rule processing slow) * (id=[0-9]{0,13}[&]?)?(name=[a-zA-Z]{0,12}[&]?)? * ((id=[0-9]{0,13}[&]?)|(name=[a-zA-Z]{0,12}[&]?))* */ static char *qos_post_optimization(apr_pool_t *lpool, char *query) { int hit = 0; char *p = query; while(p && p[0]) { if(strncmp(p, "[&]?)?(", 7) == 0) { hit = 1; p[5] = '|'; } p++; } if(hit) { query[strlen(query)-1] = '\0'; return apr_psprintf(lpool, "(%s)*", query); } return query; } static void qos_auto_detect(char **raw) { char *line = *raw; int rc_c = -1; if(m_req_regex) { int ovector[QS_OVECCOUNT]; /* no request line, maybe raw Apache access log? */ rc_c = pcre_exec(m_req_regex, NULL, line, strlen(line), 0, 0, ovector, QS_OVECCOUNT); if(rc_c >= 0) { char *sr; line = &line[ovector[0]]; line[ovector[1] - ovector[0]] = '\0'; sr = strchr(line, ' '); while(sr[0] == ' ')sr++; *raw = sr; sr = strrchr(line, ' '); sr[0] = '\0'; } } if(rc_c < 0) { /* or an audit log like "%h %>s %{qos-loc}n %{qos-path}n%{qos-query}n" */ char *pe = line; int pi = 3; while(pe && (pi > 0)) { pi--; pe = strchr(pe, ' '); if(pe) { pe++; } } if(pe && pe[0] == '/' && (pi == 0)) { *raw = pe; } } return; } /* process the input file line by line */ static void qos_process_log(apr_pool_t *pool, apr_table_t *blacklist, apr_table_t *rules, apr_table_t *rules_url, apr_table_t *special_rules, FILE *f, int *ln, int *dc, int first) { char *readline = apr_pcalloc(pool, MAX_LINE_BUFFER); int deny_count = *dc; int line_nr = *ln; apr_table_t *source_rules = apr_table_make(pool, 10); int rule_optimization = 300; while(!qos_fgetline(readline, MAX_LINE_BUFFER, f)) { int doubleSlash = 0; apr_uri_t parsed_uri; apr_pool_t *lpool; char *line = readline; apr_pool_create(&lpool, NULL); line_nr++; if((strlen(line) > 1) && line[1] == '/') { doubleSlash = 1; line++; } if(line[0] != '/') { if(!m_log_req_regex) { m_log_req_regex = 1; fprintf(stderr, "WARNING, line %d: " "unexpected data format, try to detect request lines automatically\n", line_nr); } qos_auto_detect(&line); } if(apr_uri_parse(lpool, line, &parsed_uri) != APR_SUCCESS) { fprintf(stderr, "ERROR, could parse uri %s\n", line); if(m_exit_on_error) exit(1); } if(parsed_uri.path == NULL || (parsed_uri.path[0] != '/')) { fprintf(stderr, "WARNING, line %d: invalid request %s\n", line_nr, line); } else if(m_filter && parsed_uri.path && strncmp(parsed_uri.path, m_filter, strlen(m_filter)) != 0) { // skip filtered line } else { char *path = NULL; char *query = NULL; char *query_m_string = NULL; char *query_m_pcre = NULL; char *fragment = NULL; char *copy = apr_pstrdup(lpool, line); qos_unescaping(copy); if(qos_enforce_blacklist(blacklist, copy)) { fprintf(stderr, "WARNING: blacklist filter match at line %d for %s\n", line_nr, line); deny_count++; } else { if(!qos_test_for_existing_rule(line, copy, rules, special_rules, line_nr, rules_url, source_rules, first)) { if(m_verbose > 1) printf("LINE %d, analyse: %s\n", line_nr, line); if(parsed_uri.query) { if(strcmp(parsed_uri.path, "/") == 0) { path = apr_pstrdup(lpool, "/"); } else { path = qos_path_pcre_string(lpool, parsed_uri.path); } if(m_query_single_pcre) { char *qc = apr_pstrdup(lpool, parsed_uri.query); qos_unescaping(qc); query = apr_pstrcat(lpool, "[", qos_2pcre(lpool, qc), "]+", NULL); } else { if(!m_query_multi_pcre) { query = qos_query_string_pcre(lpool, parsed_uri.query); if(m_query_o_pcre) { query = qos_post_optimization(lpool, query); } } else { query = qos_multi_query_string_pcre(lpool, parsed_uri.query, &query_m_string, &query_m_pcre); } } } else { if(strcmp(parsed_uri.path, "/") == 0) { path = apr_pstrdup(lpool, "/"); } else { if(m_handler) { path = qos_path_pcre_string(lpool, parsed_uri.path); } else { if(pcre_exec(pcre_simple_path, NULL, parsed_uri.path, strlen(parsed_uri.path), 0, 0, NULL, 0) >= 0) { path = apr_pstrdup(lpool, QS_SIMPLE_PATH_PCRE); } else { path = qos_path_pcre(lpool, parsed_uri.path); } } } } if(parsed_uri.fragment) { char *f = apr_pstrdup(lpool, parsed_uri.fragment); if(strlen(f) > 0) { qos_unescaping(f); fragment = apr_pstrcat(lpool, "[", qos_2pcre(lpool, f), "]+", NULL); } else { fragment = apr_pstrcat(lpool, "", NULL); } } if(m_verbose > 1) { printf(" path: %s\n", parsed_uri.path); printf(" path rule: %s\n", path); if(query) { printf(" query: %s\n", parsed_uri.query); printf(" query rule: %s\n", query); } if(fragment) { printf(" fragment: %s\n", parsed_uri.fragment); printf(" fragment rule: %s\n", fragment); } } { const char *errptr = NULL; char *rule; qs_rule_t *rs = apr_pcalloc(pool, sizeof(qs_rule_t)); if(doubleSlash) { rule = apr_pstrcat(pool, "^[/]?", path, NULL); } else { rule = apr_pstrcat(pool, "^", path, NULL); } if(query) { rule = apr_pstrcat(pool, rule, "\\?", query, NULL); } if(fragment) { rule = apr_pstrcat(pool, rule, "#", fragment, NULL); rs->fragment = 1; } else { rs->fragment = 0; } rule = apr_pstrcat(pool, rule, "$", NULL); rs->pcre = qos_pcre_compile(rule, 0); rs->extra = pcre_study(rs->pcre, 0, &errptr); rs->path = apr_pstrdup(pool, path); if(m_query_multi_pcre && !fragment) { rs->query_m_string = apr_pstrdup(pool, query_m_string); rs->query_m_pcre = apr_pstrdup(pool, query_m_pcre); } else { rs->query_m_string = NULL; rs->query_m_pcre = NULL; } // don't mind if extra is null if(m_verbose) { printf("# ADD line %d: %s\n", line_nr, line); printf("# %.3d %s\n", apr_table_elts(rules)->nelts+1, rule); fflush(stdout); } if(pcre_exec(rs->pcre, rs->extra, copy, strlen(copy), 0, 0, NULL, 0) < 0) { fprintf(stderr, "ERROR, rule check failed (did not match)!\n"); fprintf(stderr, " line %d: %s\n", line_nr, line); fprintf(stderr, " string: %s\n", copy); fprintf(stderr, " rule: %s\n", rule); if(m_exit_on_error) exit(1); } else { apr_table_add(rules_url, copy, "unescaped line"); apr_table_add(source_rules, rule, ""); apr_table_setn(rules, rule, (char *)rs); } if(apr_table_elts(rules)->nelts == 2000) { fprintf(stderr, "ERROR, too many rules (limited to max. 2000)\n"); if(m_exit_on_error) exit(1); } /* rule optimazion searching for redundant patterns (only in conjunction with -m, -b and !-n */ if((apr_table_elts(rules)->nelts == rule_optimization) && m_redundant && m_query_multi_pcre && m_base64) { /* got too many rules, try to find more general rules */ if(m_verbose) { printf("# too many rules: start rule optimization ...\n"); fflush(stdout); } qos_rule_optimization(pool, lpool, rules, special_rules); if(m_verbose) { printf("# continue with rule generation\n"); fflush(stdout); } rule_optimization = rule_optimization + 200; } } } } } apr_pool_destroy(lpool); } *dc = deny_count; *ln = line_nr; } static void qos_measurement(apr_pool_t *pool, apr_table_t *blacklist, apr_table_t *rules, FILE *f, int *ln) { char *readline = apr_pcalloc(pool, MAX_LINE_BUFFER); int line_nr = 0; while(!qos_fgetline(readline, MAX_LINE_BUFFER, f)) { apr_uri_t parsed_uri; apr_pool_t *lpool; char *line = readline; apr_pool_create(&lpool, NULL); line_nr++; if((strlen(line) > 1) && line[1] == '/') { strcpy(line, &line[1]); } if(line[0] != '/') { qos_auto_detect(&line); } if(apr_uri_parse(lpool, line, &parsed_uri) != APR_SUCCESS) { fprintf(stderr, "ERROR, could parse uri %s\n", line); if(m_exit_on_error) exit(1); } if(parsed_uri.path == NULL || (parsed_uri.path[0] != '/')) { fprintf(stderr, "WARNING, line %d: invalid request %s\n", line_nr, line); } else { char *copy = apr_pstrdup(lpool, line); int i; apr_table_entry_t *entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; qos_unescaping(copy); for(i = 0; i < apr_table_elts(rules)->nelts; i++) { qs_rule_t *rs = (qs_rule_t *)entry[i].val; pcre_exec(rs->pcre, NULL, copy, strlen(copy), 0, 0, NULL, 0); } } apr_pool_destroy(lpool); } *ln = line_nr; } int main(int argc, const char * const argv[]) { apr_table_entry_t *entry; long performance = -1; time_t start = time(NULL); time_t end; int line_nr = 0; int deny_count = 0; char *time_string; int i, rc; const char *access_log = NULL; FILE *f; apr_pool_t *pool; apr_table_t *rules; apr_table_t *special_rules; apr_table_t *blacklist; apr_table_t *rules_url; int blacklist_size = 0; int whitelist_size = 0; char *cmd = strrchr(argv[0], '/'); const char *httpdconf = NULL; apr_app_initialize(&argc, &argv, NULL); apr_pool_create(&pool, NULL); rules = apr_table_make(pool, 10); special_rules = apr_table_make(pool, 10); blacklist = apr_table_make(pool, 10); rules_url = apr_table_make(pool, 10); rc = nice(10); if(rc == -1) { fprintf(stderr, "ERROR, failed to change nice value: %s\n", strerror(errno)); } if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv,"-v") == 0) { if (--argc >= 1) { m_verbose = atoi(*(++argv)); } } else if(strcmp(*argv,"-c") == 0) { if (--argc >= 1) { httpdconf = *(++argv); } } else if(strcmp(*argv,"-i") == 0) { if (--argc >= 1) { access_log = *(++argv); } } else if(strcmp(*argv,"-k") == 0) { if (--argc >= 1) { m_pfx = *(++argv); } } else if(strcmp(*argv,"-f") == 0) { if (--argc >= 1) { m_filter = *(++argv); } } else if(strcmp(*argv,"-d") == 0) { if (--argc >= 1) { m_path_depth = atoi(*(++argv)); } } else if(strcmp(*argv,"-u") == 0) { if (--argc >= 1) { const char *coders = *(++argv); if(strstr(coders, "uni")) { m_mode |= QOS_DEC_MODE_FLAGS_UNI; } if(strstr(coders, "ansi")) { m_mode |= QOS_DEC_MODE_FLAGS_ANSI; } if(strstr(coders, "html")) { m_mode |= QOS_DEC_MODE_FLAGS_HTML; } } } else if(strcmp(*argv,"-n") == 0) { m_redundant = 0; } else if(strcmp(*argv,"-b") == 0) { if (--argc >= 1) { m_base64 = atoi(*(++argv)); } } else if(strcmp(*argv,"-l") == 0) { if (--argc >= 1) { m_query_len_pcre = atoi(*(++argv)); } } else if(strcmp(*argv,"-p") == 0) { m_query_pcre = 1; } else if(strcmp(*argv,"-m") == 0) { m_query_multi_pcre = 1; } else if(strcmp(*argv,"-o") == 0) { m_query_o_pcre = 1; } else if(strcmp(*argv,"-s") == 0) { m_query_single_pcre = 1; } else if(strcmp(*argv,"-e") == 0) { m_exit_on_error = 1; } else if(strcmp(*argv,"-t") == 0) { performance = 0; } else if(strcmp(*argv,"-h") == 0) { m_handler = 1; } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } argc--; argv++; } qos_init_pcre(); if((m_query_pcre && m_query_multi_pcre) || (m_query_pcre && m_query_single_pcre) || (m_query_multi_pcre && m_query_single_pcre) || (m_query_pcre && m_query_o_pcre) || (m_query_multi_pcre && m_query_o_pcre) || (m_query_single_pcre && m_query_o_pcre)) { fprintf(stderr, "ERROR, option -s,-m,-o or -p can't be used together.\n"); exit(1); } if(httpdconf) { qos_load_blacklist(pool, blacklist, httpdconf); blacklist_size = apr_table_elts(blacklist)->nelts; qos_load_whitelist(pool, rules, httpdconf); whitelist_size = apr_table_elts(rules)->nelts; } if(access_log == NULL) usage(cmd, 0); f = fopen(access_log, "r"); if(f == NULL) { fprintf(stderr, "ERROR, could not open input file %s\n", access_log); exit(1); } qos_process_log(pool, blacklist, rules, rules_url, special_rules, f, &line_nr, &deny_count, 1); fclose(f); if(m_redundant) { int xl = 0; int y = 0; // delete useless rules qos_delete_obsolete_rules(pool, rules, rules_url); // ensure, we have not deleted to many! if(m_verbose) { printf("# verify new rules ...\n"); fflush(stdout); } // if(httpdconf) { // qos_load_whitelist(pool, rules, httpdconf); // } f = fopen(access_log, "r"); qos_process_log(pool, blacklist, rules, rules_url, special_rules, f, &xl, &y, 0); fclose(f); } if(performance == 0) { int lx = 0; apr_time_t tv; f = fopen(access_log, "r"); tv = apr_time_now(); qos_measurement(pool, blacklist, rules, f, &lx); tv = apr_time_now() - tv; performance = apr_time_msec(tv) + (apr_time_sec(tv) * 1000); performance = performance / lx; fclose(f); } end = time(NULL); time_string = ctime(&end); time_string[strlen(time_string) - 1] = '\0'; printf("\n# --------------------------------------------------------\n"); printf("# %s\n", time_string); printf("# %d rules from %d access log lines\n", apr_table_elts(rules)->nelts, line_nr); printf("# mod_qos version: %s\n", man_version); if(performance >= 0) { printf("# performance index (ms/req): %ld\n", performance); } printf("# source (-i): %s\n", access_log); printf("# path depth (-d): %d\n", m_path_depth); printf("# disable path only regex (-h): %s\n", m_handler == 1 ? "yes" : "no"); printf("# base64 detection level (-b): %d\n", m_base64); printf("# redundancy check (-n): %s\n", m_redundant == 1 ? "yes" : "no"); printf("# pcre only for query (-p): %s\n", m_query_pcre == 1 ? "yes" : "no"); printf("# decoding (-u): url"); if(m_mode & QOS_DEC_MODE_FLAGS_UNI) { printf(" uni"); } if(m_mode & QOS_DEC_MODE_FLAGS_HTML) { printf(" html"); } if(m_mode & QOS_DEC_MODE_FLAGS_ANSI) { printf(" ansi"); } printf("\n"); printf("# one pcre for query value (-m): %s\n", m_query_multi_pcre == 1 ? "yes" : "no"); if(m_query_o_pcre) { printf("# ignore query order (-o): yes\n"); } printf("# single pcre for query (-s): %s\n", m_query_single_pcre == 1 ? "yes" : "no"); printf("# query outsize (-l): %d\n", m_query_len_pcre); printf("# exit on error (-e): %s\n", m_exit_on_error == 1 ? "yes" : "no"); printf("# rule file (-c): %s\n", httpdconf == NULL ? "-" : httpdconf); if(httpdconf) { printf("# whitelist (loaded existing rules): %d\n", whitelist_size); printf("# blacklist (loaded deny rules): %d\n", blacklist_size); printf("# blacklist matches: %d\n", deny_count); } printf("# duration: %ld minutes\n", (end - start) / 60); printf("# --------------------------------------------------------\n"); { STACK_OF(qs_rule_t) *st = sk_new(STACK_qs_cmp); qs_rule_t *r; int j = 1; entry = (apr_table_entry_t *)apr_table_elts(rules)->elts; for(i = 0; i < apr_table_elts(rules)->nelts; i++) { // printf("QS_PermitUri +QSF%0.3d deny \"%s\"\n", i+1, entry[i].key); r = apr_pcalloc(pool, sizeof(qs_rule_t)); r->rule = entry[i].key; sk_push(st, (char *)r); } sk_sort(st); i = sk_num(st); for(; i > 0; i--) { r = (qs_rule_t *)sk_value(st, i-1); printf("QS_PermitUri +%s%.3d deny \"%s\"\n", m_pfx ? m_pfx : "QSF", j, qs_apache_escape(pool, r->rule)); j++; } } apr_pool_destroy(pool); return 0; } mod_qos-10.28/tools/src/qssign.c0000644000000000000020000004761112264072142015062 0ustar rootbin/** * Utilities for the quality of service module mod_qos. * * Log data signing tool to ensure data integrity. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2010-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is released under the GPL with the additional * exemption that compiling, linking, and/or using OpenSSL is allowed. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qssign.c,v 1.30 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include /* openssl */ #include #include /* apr/apr-util */ #include #include #include #include #include #include #include #include "qs_util.h" #define SEQDIG "12" #define MAX_STRING_LEN 32768 #define QS_END "qssign---end-of-data" static const char *m_fmt = ""; static long m_nr = 1; static int m_logend = 0; static void (*m_end)(const char *) = NULL; static int m_end_pos = 0; static const char *m_sec = NULL; typedef struct { const char* fmt; const char* pattern; const char* test; } qos_p_t; #define severity "[A-Z]+" static const qos_p_t pattern[] = { { "%s | INFO | "QS_END, "^[0-9]{4}[-][0-9]{2}[-][0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}[ ]+[|][ ]+"severity"[ ]+[|][ ]+[a-zA-Z0-9]+", "2010-04-14 20:18:37,464 | INFO | org.hibernate.cfg.Configuration" }, { "%s INFO "QS_END, "^[0-9]{4}[-][0-9]{2}[-][0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}[ ]+"severity"[ ]+", "2011-08-30 07:27:22,738 INFO loginId='test'" }, { "%s qssign end INFO "QS_END, "^[0-9]{4}[-][0-9]{2}[-][0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}[ ]+[a-zA-Z0-9\\.-]+[ ]+[a-zA-Z0-9\\.-]+[ ]+"severity"[ ]+", "2011-09-01 07:37:17,275 main org.apache.catalina.startup.Catalina INFO Server" }, { "%s INFO "QS_END, "^[0-9]{4}[-][0-9]{2}[-][0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}[ ]+", "2011-08-30 07:27:22,738 " }, { NULL, NULL, NULL } }; /** * Writes the signed log line to stdout. * * @param line Data to sign * @param line_size Length of the data * @param sec Secret * @param sec_len Length of the secret */ static void qs_write(char *line, int line_size, const char *sec, int sec_len) { HMAC_CTX ctx; unsigned char data[HMAC_MAX_MD_CBLOCK]; unsigned int len; char *m; int data_len; sprintf(&line[strlen(line)], " %."SEQDIG"ld", m_nr); HMAC_Init(&ctx, sec, sec_len, EVP_sha1()); HMAC_Update(&ctx, (const unsigned char *)line, strlen(line)); HMAC_Final(&ctx, data, &len); m = calloc(1, apr_base64_encode_len(len) + 1); data_len = apr_base64_encode(m, (char *)data, len); m[data_len] = '\0'; printf("%s#%s\n", line, m); fflush(stdout); free(m); m_nr++; return; } /* * [Fri Dec 03 07:37:40 2010] [notice] ......... */ static void qs_end_apache_err(const char *sec) { int sec_len = strlen(sec); char line[MAX_LINE]; int dig = atoi(SEQDIG); /* ' ' '#' */ int line_size = sizeof(line) - 1 - dig - 1 - (2*HMAC_MAX_MD_CBLOCK) - 1; char time_string[1024]; time_t tm = time(NULL); struct tm *ptr = localtime(&tm); strftime(time_string, sizeof(time_string), "%a %b %d %H:%M:%S %Y", ptr); sprintf(line, "[%s] [notice] "QS_END, time_string); qs_write(line, line_size, sec, sec_len); return; } /* * 12.12.12.12 - - [03/Dec/2010:07:36:51 +0100] ............... */ static void qs_end_apache_acc(const char *sec) { int sec_len = strlen(sec); char line[MAX_LINE]; int dig = atoi(SEQDIG); /* ' ' '#' */ int line_size = sizeof(line) - 1 - dig - 1 - (2*HMAC_MAX_MD_CBLOCK) - 1; char time_string[1024]; time_t tm = time(NULL); struct tm *ptr = localtime(&tm); char sign; int timz; apr_time_exp_t xt; apr_time_exp_lt(&xt, apr_time_now()); timz = xt.tm_gmtoff; if(timz < 0) { timz = -timz; sign = '-'; } else { sign = '+'; } strftime(time_string, sizeof(time_string), "%d/%b/%Y:%H:%M:%S", ptr); sprintf(line, "0.0.0.0 - - [%s %c%.2d%.2d] "QS_END, time_string, sign, timz / (60*60), (timz % (60*60)) / 60); qs_write(line, line_size, sec, sec_len); return; } /* * 2010 12 03 17:00:30.425 qssign end 0.0 5-NOTICE: .............. */ static void qs_end_nj(const char *sec) { int sec_len = strlen(sec); char line[MAX_LINE]; int dig = atoi(SEQDIG); /* ' ' '#' */ int line_size = sizeof(line) - 1 - dig - 1 - (2*HMAC_MAX_MD_CBLOCK) - 1; char time_string[1024]; time_t tm = time(NULL); struct tm *ptr = localtime(&tm); char buf[1024]; int i; for(i = 0; i < m_end_pos; i++) { buf[i] = ' '; } buf[i] = '\0'; strftime(time_string, sizeof(time_string), "%Y %m %d %H:%M:%S.000", ptr); sprintf(line, "%s qssign end 0.0%s 5-NOTICE: "QS_END, time_string, buf); qs_write(line, line_size, sec, sec_len); return; } /* * 2010-04-14 20:18:37,464 ... (using m_fmt) */ static void qs_end_lj(const char *sec) { int sec_len = strlen(sec); char line[MAX_LINE]; int dig = atoi(SEQDIG); /* ' ' '#' */ int line_size = sizeof(line) - 1 - dig - 1 - (2*HMAC_MAX_MD_CBLOCK) - 1; char time_string[1024]; time_t tm = time(NULL); struct tm *ptr = localtime(&tm); strftime(time_string, sizeof(time_string), "%Y-%m-%d %H:%M:%S,000", ptr); sprintf(line, m_fmt, time_string); qs_write(line, line_size, sec, sec_len); return; } /* * Dec 6 04:00:06 localhost kernel: */ static void qs_end_lx(const char *sec) { char hostname[1024]; int len = sizeof(hostname); int sec_len = strlen(sec); char line[MAX_LINE]; int dig = atoi(SEQDIG); /* ' ' '#' */ int line_size = sizeof(line) - 1 - dig - 1 - (2*HMAC_MAX_MD_CBLOCK) - 1; char time_string[1024]; time_t tm = time(NULL); struct tm *ptr = localtime(&tm); strftime(time_string, sizeof(time_string), "%b %e %H:%M:%S", ptr); if(gethostname(hostname, len) != 0) { hostname[0] = '-'; hostname[1] = '\0'; } sprintf(line, "%s %s qssign: "QS_END, time_string, hostname); qs_write(line, line_size, sec, sec_len); return; } /* * 2013/11/13 17:38:41 [error] 6577#0: *1 open() */ static void qs_end_ngx(const char *sec) { int sec_len = strlen(sec); char line[MAX_LINE]; int dig = atoi(SEQDIG); /* ' ' '#' */ int line_size = sizeof(line) - 1 - dig - 1 - (2*HMAC_MAX_MD_CBLOCK) - 1; char time_string[1024]; time_t tm = time(NULL); struct tm *ptr = localtime(&tm); strftime(time_string, sizeof(time_string), "%Y/%m/%d %H:%M:%S", ptr); sprintf(line, "%s [notice] 0#0: "QS_END, time_string); qs_write(line, line_size, sec, sec_len); return; } void qs_signal_exit(int e) { if(m_logend && (m_end != NULL)) { m_end(m_sec); } exit(0); } /** * Tries to find out a suiteable log line format which is used * to log sign end messages (so let the verifier known, that the * data ends nothing has been cut off). * * Sets the format to global variables. * * known pattern * - [Fri Dec 03 07:37:40 2010] [notice] ......... * - 12.12.12.12 - - [03/Dec/2010:07:36:51 +0100] ............... * - 2010 12 03 17:00:30.425 qssign end 0.0 5-NOTICE: .............. * 46 <- var -> 63 71 * - Dec 6 04:00:06 localhost kernel: * - some 2010-12-03 17:00:30,425 ... * * @param s */ static void qs_set_format(char *s) { regex_t r_apache_err; regex_t r_apache_acc; regex_t r_nj; regex_t r_lx; regex_t r_ngx; if(regcomp(&r_apache_err, "^\\[[a-zA-Z]{3} [a-zA-Z]{3} [0-9]+ [0-9]+:[0-9]+:[0-9]+ [0-9]+\\] \\[[a-zA-Z]+\\] ", REG_EXTENDED) != 0) { fprintf(stderr, "failed to compile regex (err)\n"); exit(1); } if(regcomp(&r_apache_acc, "^[0-9.]+ [a-zA-Z0-9\\@_\\.\\-]+ [a-zA-Z0-9\\@_\\.\\-]+ \\[[0-9]+/[a-zA-Z]{3}/[0-9:]+[0-9\\+ ]+\\] ", REG_EXTENDED) != 0) { fprintf(stderr, "failed to compile regex (acc)\n"); exit(1); } if(regcomp(&r_nj, "^[0-9]{4} [0-9]{2} [0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3} [a-zA-Z0-9]+[ ]+.*[A-Z]+[ ]*:", REG_EXTENDED) != 0) { fprintf(stderr, "failed to compile regex (nj)\n"); exit(1); } if(regcomp(&r_lx, "^[a-zA-Z]{3}[ ]+[0-9]+[ ]+[0-9]{2}:[0-9]{2}:[0-9]{2}[ ]+[a-zA-Z0-9_\\.\\-]+[ ]+[a-zA-Z0-9_\\.\\-]+:", REG_EXTENDED) != 0) { fprintf(stderr, "failed to compile regex (lx)\n"); exit(1); } if(regcomp(&r_ngx, "^[0-9]{4}/[0-9]{2}/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} \\[[a-z]+\\] [0-9]+#[0-9]+: ", REG_EXTENDED) != 0) { fprintf(stderr, "failed to compile regex (ngx)\n"); exit(1); } if(regexec(&r_apache_err, s, 0, NULL, 0) == 0) { m_end = &qs_end_apache_err; } else if(regexec(&r_apache_acc, s, 0, NULL, 0) == 0) { m_end = &qs_end_apache_acc; } else if(regexec(&r_nj, s, 0, NULL, 0) == 0) { char *dp = strstr(s, ": "); if(dp) { /* calculate the "var" size, see comment above */ m_end_pos = dp - s - 47 - 8 - 3; if((m_end_pos < 0) || (m_end_pos > 1000)) { m_end_pos = 0; } } m_end = &qs_end_nj; } else if(regexec(&r_lx, s, 0, NULL, 0) == 0) { m_end = &qs_end_lx; } else if(regexec(&r_ngx, s, 0, NULL, 0) == 0) { m_end = &qs_end_ngx; } // search within the generic yyyy-mm-dd hh-mm-ss,mmm patterns if(!m_end) { const qos_p_t *p = pattern; while(p->fmt) { regex_t r_j; if(regcomp(&r_j, p->pattern, REG_EXTENDED) != 0) { fprintf(stderr, "failed to compile regex (%s)\n", p->pattern); exit(1); } if(regexec(&r_j, s, 0, NULL, 0) == 0) { m_fmt = p->fmt; m_end = &qs_end_lj; break; } p++; } } /* default (apache error log format) */ if(m_end == NULL) { m_end = &qs_end_apache_err; } return; } /** * Process the data from stdin. * * @param sec Passphrase */ static void qs_sign(const char *sec) { int sec_len = strlen(sec); char line[MAX_LINE]; int dig = atoi(SEQDIG); /* ' ' '#' */ int line_size = sizeof(line) - 1 - dig - 1 - (2*HMAC_MAX_MD_CBLOCK) - 1; int line_len; while(fgets(line, sizeof(line), stdin) != NULL) { line_len = strlen(line) - 1; while(line_len > 0) { // cut tailing CR/LF if(line[line_len] >= ' ') { break; } line[line_len] = '\0'; line_len--; } if(m_logend && (m_end == NULL)) { qs_set_format(line); } qs_write(line, line_size, sec, sec_len); } return; } static long qs_verify(const char *sec) { int end_seen = 0; int sec_len = strlen(sec); long err = 0; // errors long lnr = 0; // line number char line[MAX_LINE]; int line_size = sizeof(line); int line_len; m_nr = -1; // sequence number while(fgets(line, line_size, stdin) != NULL) { int valid = 0; long ns = 0; HMAC_CTX ctx; unsigned char data[HMAC_MAX_MD_CBLOCK]; unsigned int len; char *m; int data_len; char *sig; char *seq; line_len = strlen(line) - 1; while(line_len > 0) { // cut tailing CR/LF if(line[line_len] >= ' ') { break; } line[line_len] = '\0'; line_len--; } sig = strrchr(line, '#'); seq = strrchr(line, ' '); lnr++; if(seq && sig) { sig[0] = '\0'; sig++; /* verify hmac */ HMAC_Init(&ctx, sec, sec_len, EVP_sha1()); HMAC_Update(&ctx, (const unsigned char *)line, strlen(line)); HMAC_Final(&ctx, data, &len); m = calloc(1, apr_base64_encode_len(len) + 1); data_len = apr_base64_encode(m, (char *)data, len); m[data_len] = '\0'; if(strcmp(m, sig) != 0) { err++; fprintf(stderr, "ERROR on line %ld: invalid signature\n", lnr); } else { valid = 1; } free(m); /* verify sequence */ seq++; ns = atol(seq); if(ns == 0) { err++; fprintf(stderr, "ERROR on line %ld: invalid sequence\n", lnr); } else { if(m_nr != -1) { if(m_nr != ns) { if(ns == 1) { if(!end_seen) { err++; fprintf(stderr, "ERROR on line %ld: wrong sequence, server restart? (expect %."SEQDIG"ld)\n", lnr, m_nr); } } else { err++; fprintf(stderr, "ERROR on line %ld: wrong sequence (expect %."SEQDIG"ld)\n", lnr, m_nr); } } } else if(m_logend) { // log should (if not rotated) with message 0 if(ns != 1) { fprintf(stderr, "NOTICE: log starts with sequence %."SEQDIG"ld, log rotation?" " (expect %."SEQDIG"d)\n", ns, 1); } } if(valid) { m_nr = ns; } } } else { err++; fprintf(stderr, "ERROR on line %ld: missing signature/sequence\n", lnr); } end_seen = 0; if(valid) { char *end_marker = strstr(line, QS_END); m_nr++; if(end_marker != NULL) { /* QS_END + " " + SEQDIG */ int sz = strlen(QS_END) + 1 + atoi(SEQDIG); if(sz == (strlen(line) - (end_marker - line))) { end_seen = 1; } } } } if(m_logend && !end_seen) { fprintf(stderr, "NOTICE: no end marker seen, log rotation? (expect %."SEQDIG"ld)\n", m_nr); } return err; } static void qs_failedexec(const char *msg, const char *cmd, apr_status_t status) { char buf[MAX_STRING_LEN]; apr_strerror(status, buf, sizeof(buf)); fprintf(stderr, "ERROR %s '%s': '%s'\n", msg, cmd, buf); exit(1); } static apr_table_t *qs_args(apr_pool_t *pool, const char *line) { char *last = apr_pstrdup(pool, line); apr_table_t* table = apr_table_make(pool, 10); char *val; while((val = apr_strtok(NULL, " ", &last))) { apr_table_addn(table, val, ""); } return table; } static char *qs_readpwd(apr_pool_t *pool, const char *prg) { apr_status_t status; apr_proc_t proc; const char **args; apr_table_entry_t *entry; char *last; char *copy = apr_pstrdup(pool, prg); char *cmd = apr_strtok(copy, " ", &last); apr_table_t *a = qs_args(pool, prg); int i; apr_procattr_t *attr; apr_size_t len = MAX_STRING_LEN; char *buf = apr_pcalloc(pool, len); args = apr_pcalloc(pool, (apr_table_elts(a)->nelts + 1) * sizeof(const char *)); entry = (apr_table_entry_t *) apr_table_elts(a)->elts; for(i = 0; i < apr_table_elts(a)->nelts; i++) { args[i] = entry[i].key; } args[i] = NULL; if(cmd == NULL) { qs_failedexec("can't read password, invalid executable", prg, APR_EGENERAL); } if((status = apr_procattr_create(&attr, pool)) != APR_SUCCESS) { qs_failedexec("while reading password from executable", prg, status); } if((status = apr_procattr_cmdtype_set(attr, APR_PROGRAM_PATH)) != APR_SUCCESS) { qs_failedexec("while reading password from executable", prg, status); } if((status = apr_procattr_detach_set(attr, 0)) != APR_SUCCESS) { qs_failedexec("while reading password from executable", prg, status); } if((status = apr_procattr_io_set(attr, APR_FULL_BLOCK, APR_FULL_BLOCK, APR_NO_PIPE)) != APR_SUCCESS) { qs_failedexec("while reading password from executable", prg, status); } if((status = apr_proc_create(&proc, cmd, args, NULL, attr, pool)) != APR_SUCCESS) { qs_failedexec("could not execute program", prg, status); } else { char *e; status = apr_proc_wait(&proc, NULL, NULL, APR_WAIT); if(status != APR_CHILD_DONE && status != APR_SUCCESS) { qs_failedexec("while reading password from executable", prg, status); } status = apr_file_read(proc.out, buf, &len); if(status != APR_SUCCESS) { qs_failedexec("failed to read password from program", prg, status); } e = buf; while(e && e[0]) { if((e[0] == LF) || (e[0] == CR)) { e[0] = '\0'; } else { e++; } } } return buf; } static void usage(char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - an utility to sign and verify the integrity of log data.\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -s|S [-e] [-v]\n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "%s is a log data integrity check tool. It reads log data\n", cmd); qs_man_print(man, "from stdin (pipe) and writes the signed data to stdout.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -s \n"); if(man) printf("\n"); qs_man_print(man, " Passphrase used to calculate signature.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -S \n"); if(man) printf("\n"); qs_man_print(man, " Specifies a program which writes the passphrase to stdout.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -e\n"); if(man) printf("\n"); qs_man_print(man, " Writes end marker when stopping data signing.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -v\n"); if(man) printf("\n"); qs_man_print(man, " Verification mode checking the integrity of signed data.\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); printf("Sign:\n"); printf("\n"); } else { printf("Example (sign):\n"); } qs_man_println(man, " TransferLog \"|/bin/%s -s password -e |/bin/qsrotate -o /var/log/apache/access_log\"\n", cmd); printf("\n"); if(man) { printf("\n"); printf("Verify:\n"); printf("\n"); } else { qs_man_print(man, "Example (verify):\n"); } qs_man_println(man, " cat access_log | %s -s password -v\n", cmd); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } int main(int argc, const char * const argv[]) { apr_pool_t *pool; int verify = 0; char *cmd = strrchr(argv[0], '/'); if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } apr_app_initialize(&argc, &argv, NULL); apr_pool_create(&pool, NULL); argc--; argv++; while(argc >= 1) { if(strcmp(*argv,"-s") == 0) { if (--argc >= 1) { m_sec = *(++argv); } } else if(strcmp(*argv,"-S") == 0) { if (--argc >= 1) { m_sec = qs_readpwd(pool, *(++argv)); } } else if(strcmp(*argv,"-v") == 0) { verify = 1; } else if(strcmp(*argv,"-e") == 0) { m_logend = 1; } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } argc--; argv++; } if(m_sec == NULL) { usage(cmd, 0); } if(verify) { long err = qs_verify(m_sec); if(err != 0) { return 1; } } else { if(m_logend) { signal(SIGTERM, qs_signal_exit); } qs_sign(m_sec); if(m_logend && (m_end != NULL)) { m_end(m_sec); } } apr_pool_destroy(pool); return 0; } mod_qos-10.28/tools/src/qslog.c0000644000000000000020000016661312264072142014707 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Utilities for the quality of service module mod_qos. * * Real time access log data correlation. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qslog.c,v 1.83 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include #include #include #include #include #include /* apr */ #include #include #include #include #include "qs_util.h" /* ---------------------------------- * definitions * ---------------------------------- */ #define ACTIVE_TIME 600 /* how long is a client "active" (ip addresses seen in the log) */ #define LOG_INTERVAL 60 /* log interval ist 60 sec, don't change this value */ #define LOG_DET ".detailed" #define RULE_DELIM ':' #define MAX_CLIENT_ENTRIES 25000 #define QS_GENERATIONS 14 #define EVENT_DELIM ',' #define QSEVENTPATH "QSEVENTPATH" /* varibale name to find event definitions */ /* ---------------------------------- * structures * ---------------------------------- */ typedef struct { long request_count; long status_1; long status_2; long status_3; long status_4; long status_5; long long duration_count_ms; } url_rec_t; typedef struct { long request_count; long error_count; long long byte_count; long long duration; long long duration_count_ms; long duration_0; long duration_1; long duration_2; long duration_3; long duration_4; long duration_5; long duration_6; long status_1; long status_2; long status_3; long status_4; long status_5; long status_304; long connections; apr_table_t *events; apr_pool_t *pool; long get; long post; long html; long img; long cssjs; long other; time_t start_s; time_t end_s; long firstLine; long lastLine; } client_rec_t; typedef struct stat_rec_st { // id char *id; regex_t preg; struct stat_rec_st *next; // counters long line_count; long long i_byte_count; long long byte_count; long long duration_count; long long duration_count_ms; long duration_0; long duration_1; long duration_2; long duration_3; long duration_4; long duration_5; long duration_6; long connections; unsigned long long sum; unsigned long long average; long average_count; unsigned long long averAge; long averAge_count; long status_1; long status_2; long status_3; long status_4; long status_5; long qos_v; long qos_s; long qos_d; long qos_k; long qos_t; long qos_l; long qos_ser; apr_table_t *events; apr_pool_t *pool; } stat_rec_t; /* ---------------------------------- * global stat counter * ---------------------------------- */ static stat_rec_t* m_stat_rec; static stat_rec_t* m_stat_sub = NULL; static qs_event_t *m_ip_list = NULL; static qs_event_t *m_user_list = NULL; /* output file */ static FILE *m_f = NULL; static FILE *m_f2 = NULL; static char m_file_name[MAX_LINE]; static char m_file_name2[MAX_LINE]; static int m_rotate = 0; static int m_generations = QS_GENERATIONS; /* regex to search the time string */ static regex_t m_trx; static regex_t m_trx2; /* real time mode (default) or offline */ static int m_off = 0; static int m_offline = 0; static int m_offline_data = 0; static char m_date_str[MAX_LINE]; static int m_mem = 0; static int m_avms = 0; static int m_ct = 0; static int m_customcounter = 0; static apr_table_t *m_client_entries = NULL; static int m_max_entries = 0; static int m_offline_count = 0; static apr_table_t *m_url_entries = NULL; static int m_offline_url = 0; static int m_offline_url_cropped = 0; static int m_methods = 0; /* debug/offline */ static long m_lines = 0; static int m_verbose = 0; /** * Helper to print an error message when terminating * the programm due to an unexpected error. */ static void qerror(const char *fmt,...) { char buf[MAX_LINE]; va_list args; time_t t = time(NULL); char *time_string = ctime(&t); va_start(args, fmt); vsprintf(buf, fmt, args); time_string[strlen(time_string) - 1] = '\0'; fprintf(stderr, "[%s] [error] qslog: %s\n", time_string, buf); fflush(stderr); } /* * Similar to standard strstr() but we ignore case in this version. * see server/util.c */ static char *qsstrcasestr(const char *s1, const char *s2) { char *p1, *p2; if (*s2 == '\0') { /* an empty s2 */ return((char *)s1); } while(1) { for ( ; (*s1 != '\0') && (tolower(*s1) != tolower(*s2)); s1++); if (*s1 == '\0') { return(NULL); } /* found first character of s2, see if the rest matches */ p1 = (char *)s1; p2 = (char *)s2; for (++p1, ++p2; tolower(*p1) == tolower(*p2); ++p1, ++p2) { if (*p1 == '\0') { /* both strings ended together */ return((char *)s1); } } if (*p2 == '\0') { /* second string ended, a match */ break; } /* didn't find a match here, try starting at next character in s1 */ s1++; } return((char *)s1); } /* * skip an element to the next space */ static char *skipElement(const char* line) { char *p = (char *)line; /* check for quotes (double or single) */ char delim = p[0]; if(delim == '\'' || delim == '\"') { p++; // read while we found an '" '" which is not escaped while(p[0] != 0 && !(p[0] == delim && p[-1] != '\\' && (p[1] == '\0' || p[1] == ' '))) { p++; } p++; } else { char *eq = NULL; if(m_off) { // offline mode: check for ='' entry eq = strstr(p, "='"); if(eq && (eq - p) < 10) { // near hit p = &eq[3]; while(p[0] != '\'' && p[0] != 0 && p[-1] != '\\') { p++; } p++; } else { // something else... eq=NULL; } } if(!eq) { while(p[0] != ' ' && p[0] != 0) { p++; } } } while(p[0] == ' ') { p++; } return p; } /** * Cut fp */ static void qsNoFloat(char *s) { char *pn = strchr(s, '.'); if(pn) { pn[0] = '\0'; } else { pn = strchr(s, ','); if(pn) { pn[0] = '\0'; } } } /** * Strip a number. */ static void stripNum(char **p) { char *s = *p; int len; while(s && s[0] && (s[0] < '0' || s[0] > '9')) { s++; } len = strlen(s); while(len > 0 && (s[len] < '0' || s[len] > '9')) { s[len] = '\0'; len--; } *p = s; } /** * Get and cut an element. * * @param line Line to parse for the next element. * @return Pointer to the next element. */ static char *cutNext(char **line) { char *c = *line; char *p = skipElement(*line); char delim; *line = p; if(p[0]) { p--; p[0] = '\0'; } /* cut leading and tailing " */ delim = c[0]; if(delim == '\'' || delim == '\"') { int len; c++; len = strlen(c); while(len > 0 && c[strlen(c)-1] == delim) { c[strlen(c)-1] = '\0'; len--; } } return c; } /** * Calculates the free system memory. Experimental code. * Tested on Solaris (calling vmstat) and Linux (reading * from /proc/meminfo). * * @param buf Buffer to write result to * @sz Max. length of the buffer */ static void getFreeMem(char *buf, int sz) { FILE *f = fopen("/proc/meminfo", "r"); int mem = 0; buf[0] = '\0'; if(f) { char line[MAX_LINE]; while(!qs_getLinef(line, sizeof(line), f)) { if(strncmp(line, "MemFree: ", 9) == 0) { char *c = &line[9]; char *e; while(c[0] && ((c[0] == ' ') || (c[0] == '\t'))) c++; e = c; while(e[0] && (e[0] != ' ')) e++; e[0] = '\0'; mem = mem + atoi(c); } if(strncmp(line, "Cached: ", 8) == 0) { char *c = &line[8]; char *e; while(c[0] && ((c[0] == ' ') || (c[0] == '\t'))) c++; e = c; while(e[0] && (e[0] != ' ')) e++; e[0] = '\0'; mem = mem + atoi(c); } } fclose(f); snprintf(buf, sz, "%d", mem); } else { // non linux //#ifdef _SC_AVPHYS_PAGES // long pageSize = sysconf(_SC_PAGESIZE); // long freePages = sysconf(_SC_AVPHYS_PAGES); // mem = pageSize * freePages / 1024; // snprintf(buf, sz, "%d", mem); //#else /* fallback using vmstat (experimental code) */ char vmstat[] = "/usr/bin/vmstat"; struct stat attr; if(stat(vmstat, &attr) == 0) { char command[1024]; char outfile[1024]; snprintf(outfile, sizeof(outfile), "/tmp/qslog.%d", getpid()); snprintf(command, sizeof(command), "%s 1 2 1>%s", vmstat, outfile); system(command); f = fopen(outfile, "r"); if(f) { char line[MAX_LINE]; int i = 1; while(!qs_getLinef(line, sizeof(line), f)) { if(i == 4) { // free memory only (ignores cache) int j = 0; char *p = line; while(p && j < 4) { p++; p = strchr(p, ' '); j++; } if(p && (j == 4)) { char *e; p++; e = strchr(p, ' '); if(e) { e[0] = '\0'; snprintf(buf, sz, "%s", p); } } break; } i++; } fclose(f); unlink(outfile); } } //#endif } } /* value names in csv output */ #define NRS "r/s" #define NBS "b/s" #define NBIS "ib/s" #define NAV "av" #define NAVMS "avms" /** * Writes the statistic entry stat_rec to the file. * * @param f File to write to * @param timeStr Time string (prefix) * @param stat_rec Data to write * @offline Offline mode (less data, e.g. no load) * @param main Indicates if it is the main log or a sub entry for the detailed log * @param av Load * @param mem Free memory */ static void printStat2File(FILE *f, char *timeStr, stat_rec_t *stat_rec, int offline, int main, double *av, const char *mem) { char bis[256]; char esco[256]; char ip[256]; char usr[256]; char avms[256]; char custom[256]; bis[0] = '\0'; esco[0] = '\0'; avms[0] = '\0'; custom[0] = '\0'; if(stat_rec->i_byte_count != -1) { sprintf(bis, NBIS";%lld;", stat_rec->i_byte_count/LOG_INTERVAL); } if(main && stat_rec->connections != -1) { sprintf(esco, "esco;%ld;", stat_rec->connections); } if(m_avms) { sprintf(avms, NAVMS";%lld;", stat_rec->duration_count_ms/(stat_rec->line_count == 0 ? 1 : stat_rec->line_count)); // improve accuracy (rounding errors): stat_rec->duration_count = stat_rec->duration_count_ms / 1000; } if(m_customcounter) { // max len: 18446744073709551615 sprintf(custom, "s;%llu;a;%llu;A;%llu;", stat_rec->sum, stat_rec->average / (stat_rec->average_count == 0 ? 1 : stat_rec->average_count), stat_rec->averAge / (stat_rec->averAge_count == 0 ? 1 : stat_rec->averAge_count)); } if(main) { sprintf(ip, "ip;%ld;", qs_countEvent(&m_ip_list)); sprintf(usr, "usr;%ld;", qs_countEvent(&m_user_list)); } else { ip[0] = '\0'; usr[0] = '\0'; } fprintf(f, "%s;" "%s" NRS";%ld;" "req;%ld;" NBS";%lld;" "%s" "%s" "1xx;%ld;" "2xx;%ld;" "3xx;%ld;" "4xx;%ld;" "5xx;%ld;" "%s" NAV";%lld;" "<1s;%ld;" "1s;%ld;" "2s;%ld;" "3s;%ld;" "4s;%ld;" "5s;%ld;" ">5s;%ld;" "%s" "%s" "qV;%ld;" "qS;%ld;" "qD;%ld;" "qK;%ld;" "qT;%ld;" "qL;%ld;" "qs;%ld;" "%s" , timeStr, main ? "" : stat_rec->id, stat_rec->line_count/LOG_INTERVAL, stat_rec->line_count, stat_rec->byte_count/LOG_INTERVAL, bis, esco, stat_rec->status_1, stat_rec->status_2, stat_rec->status_3, stat_rec->status_4, stat_rec->status_5, avms, stat_rec->duration_count/(stat_rec->line_count == 0 ? 1 : stat_rec->line_count), stat_rec->duration_0, stat_rec->duration_1, stat_rec->duration_2, stat_rec->duration_3, stat_rec->duration_4, stat_rec->duration_5, stat_rec->duration_6, ip, usr, stat_rec->qos_v, stat_rec->qos_s, stat_rec->qos_d, stat_rec->qos_k, stat_rec->qos_t, stat_rec->qos_l, stat_rec->qos_ser, custom ); stat_rec->line_count = 0; stat_rec->byte_count = 0; if(stat_rec->i_byte_count != -1) { stat_rec->i_byte_count = 0; } if(main && (stat_rec->connections != -1)) { stat_rec->connections = 0; } stat_rec->sum = 0; stat_rec->average = 0; stat_rec->average_count = 0; stat_rec->averAge = 0; stat_rec->averAge_count = 0; stat_rec->status_1 = 0; stat_rec->status_2 = 0; stat_rec->status_3 = 0; stat_rec->status_4 = 0; stat_rec->status_5 = 0; stat_rec->duration_count = 0; stat_rec->duration_count_ms = 0; stat_rec->duration_0 = 0; stat_rec->duration_1 = 0; stat_rec->duration_2 = 0; stat_rec->duration_3 = 0; stat_rec->duration_4 = 0; stat_rec->duration_5 = 0; stat_rec->duration_6 = 0; stat_rec->qos_v = 0; stat_rec->qos_s = 0; stat_rec->qos_d = 0; stat_rec->qos_k = 0; stat_rec->qos_t = 0; stat_rec->qos_l = 0; stat_rec->qos_ser = 0; if(main) { if(!offline) { fprintf(f, "sl;%.2f;", av[0]); if(m_mem) { fprintf(f, "m;%s;", mem[0] ? mem : "-"); } } else { m_offline_data = 0; } } if(apr_table_elts(stat_rec->events)->nelts > 0) { int i; apr_table_entry_t *entry = (apr_table_entry_t *) apr_table_elts(stat_rec->events)->elts; for(i = 0; i < apr_table_elts(stat_rec->events)->nelts; i++) { const char *eventName = entry[i].key; int *eventVal = (int *)entry[i].val; fprintf(f, "%s;%d;", eventName, *eventVal); (*eventVal) = 0; } } fprintf(f, "\n"); } static void qs_updateEvents(apr_pool_t *pool, char *E, apr_table_t *events) { if(!E[0]) { return; } while(E) { char *restore = NULL; char *sep = strchr(E, EVENT_DELIM); int *val; if(sep) { sep[0] = '\0'; restore = sep; sep++; } if(isalnum(E[0])) { val = (int *)apr_table_get(events, E); if(val) { (*val)++; } else { // new event char *name = apr_pstrdup(pool, E); val = apr_pcalloc(pool, sizeof(int)); (*val) = 1; apr_table_setn(events, name, (char *)val); } } E = sep; if(restore) { // suports multiple parsing of the event string restore[0] = EVENT_DELIM; } } } /** * Initializes the event table by the events specified within the * file whose path is defined by the QSEVENTPATH environment * variable. * * @param pool To allocate memory * @param events Table to init */ static void qsInitEvent(apr_pool_t *pool, apr_table_t *events) { const char *envFile = getenv(QSEVENTPATH); if(envFile != NULL) { FILE *file = fopen(envFile, "r"); if(file != NULL) { char line[MAX_LINE]; while(!qs_getLinef(line, sizeof(line), file)) { char *p = line; char *name; int *val; while(p && p[0]) { /* file contains a list of known events (comma sep. event names on one or multiple lines) */ char *n = strchr(p, EVENT_DELIM); if(n) { n[0] = '\0'; n++; } name = apr_pstrdup(pool, p); val = apr_pcalloc(pool, sizeof(int)); (*val) = 0; apr_table_setn(events, name, (char *)val); p = n; } } fclose(file); } } } /** * Creates and init new status rec * * @param id Identification of the id * @param pattern Pattern to match the log data line * @return */ static stat_rec_t *createRec(apr_pool_t *pool, const char *id, const char *pattern) { stat_rec_t *rec = calloc(sizeof(stat_rec_t), 1); rec->id = calloc(strlen(id)+2, 1); sprintf(rec->id, "%s;", id); rec->id[strlen(id)+1] = '\0'; if(regcomp(&rec->preg, pattern, REG_EXTENDED)) { qerror("failed to compile pattern %s", pattern); exit(1); } rec->next = NULL; rec->line_count = 0; rec->i_byte_count = -1; rec->byte_count = 0; rec->duration_count = 0; rec->duration_count_ms = 0; rec->duration_0 = 0; rec->duration_1 = 0; rec->duration_2 = 0; rec->duration_3 = 0; rec->duration_4 = 0; rec->duration_5 = 0; rec->duration_6 = 0; rec->connections = -1; rec->sum = 0; rec->average = 0; rec->average_count = 0; rec->averAge = 0; rec->averAge_count = 0; rec->status_1 = 0; rec->status_2 = 0; rec->status_3 = 0; rec->status_4 = 0; rec->status_5 = 0; rec->qos_v = 0; rec->qos_s = 0; rec->qos_d = 0; rec->qos_k = 0; rec->qos_t = 0; rec->qos_l = 0; rec->qos_ser = 0; rec->events = apr_table_make(pool, 300); rec->pool = pool; qsInitEvent(pool, rec->events); return rec; } /** * Retrieves the best matching record (longest match( * * @param Parameter to match, e.g. URL * @return Matching entry (NULL if no match) */ static stat_rec_t *getRec(const char *value) { regmatch_t ma[1]; int len = 0; stat_rec_t *r = m_stat_sub; stat_rec_t *rec = NULL; while(r) { if(regexec(&r->preg, value, 1, ma, 0) == 0) { int l = ma[0].rm_eo - ma[0].rm_so + 1; if(l > len) { // longest match len = l; rec = r; } } r = r->next; } return rec; } /** * writes all stat data to the out file * an resets all counters. * * @param timeStr */ static void printAndResetStat(char *timeStr) { stat_rec_t *r = m_stat_sub; double av[1]; char mem[256]; if(!m_offline) { getloadavg(av, 1); if(m_mem) { getFreeMem(mem, sizeof(mem)); } else { mem[0] = '\0'; } } else { mem[0] = '\0'; } qs_csLock(); printStat2File(m_f, timeStr, m_stat_rec, m_offline, 1, av, mem); while(r) { printStat2File(m_f2, timeStr, r, m_offline, 0, av, mem); r = r->next; } qs_csUnLock(); fflush(m_f); if(m_f2) { fflush(m_f2); } } /** * Updates the per url records */ static void updateUrl(apr_pool_t *pool, char *R, char *S, long tmems) { url_rec_t *url_rec; char *marker; if(R == NULL) { return; } if(!isalpha(R[0])) { fprintf(stdout, "A(%ld)", m_lines); return; } marker = strchr(R, ' '); if(marker == NULL) { fprintf(stdout, "E(%ld)", m_lines); return; } marker[0] = ';'; marker = strrchr(R, ' '); if(marker) { marker[0] = '\0'; } marker = strchr(R, '?'); if(marker) { marker[0] = '\0'; } if(m_offline_url_cropped) { char *root = strchr(R, '/'); marker = strrchr(R, '/'); if(marker && marker != root) { marker[0] = '\0'; } } url_rec = (url_rec_t *)apr_table_get(m_url_entries, R); if(url_rec == NULL) { if(apr_table_elts(m_url_entries)->nelts >= MAX_CLIENT_ENTRIES) { // limitation if(!m_max_entries) { fprintf(stderr, "\nreached max url entries (%d)\n", MAX_CLIENT_ENTRIES); m_max_entries = 1; } return; } url_rec = apr_pcalloc(pool, sizeof(url_rec_t)); url_rec->request_count = 0; url_rec->status_1 = 0; url_rec->status_2 = 0; url_rec->status_3 = 0; url_rec->status_4 = 0; url_rec->status_5 = 0; url_rec->duration_count_ms = 0; apr_table_setn(m_url_entries, apr_pstrdup(pool, R), (char *)url_rec); } url_rec->request_count++; if(S[0] == '1') { url_rec->status_1++; } else if(S[0] == '1') { url_rec->status_1++; } else if(S[0] == '2') { url_rec->status_2++; } else if(S[0] == '3') { url_rec->status_3++; } else if(S[0] == '4') { url_rec->status_4++; } else if(S[0] == '5') { url_rec->status_5++; } url_rec->duration_count_ms += tmems; } /** * Updates the per client record */ static void updateClient(apr_pool_t *pool, char *T, char *t, char *D, char *S, char *BI, char *B, char *R, char *I, char *U, char *Q, char *E, char *k, char *C, char *ct, long tme, long tmems, char *m) { client_rec_t *client_rec; const char *id = I; // ip if(id == NULL) { id = U; // user } if(id == NULL) { return; } client_rec = (client_rec_t *)apr_table_get(m_client_entries, id); if(client_rec == NULL) { char *tid; if(apr_table_elts(m_client_entries)->nelts >= MAX_CLIENT_ENTRIES) { // limitation: speed (table to big) and memory if(!m_max_entries) { fprintf(stderr, "\nreached max client entries (%d)\n", MAX_CLIENT_ENTRIES); m_max_entries = 1; } return; } tid = calloc(strlen(id)+1, 1); client_rec = calloc(sizeof(client_rec_t), 1); strcpy(tid, id); tid[strlen(id)] = '\0'; client_rec->request_count = 0; client_rec->error_count = 0; client_rec->byte_count = 0; client_rec->duration = 0; client_rec->duration_count_ms = 0; client_rec->duration_0 = 0; client_rec->duration_1 = 0; client_rec->duration_2 = 0; client_rec->duration_3 = 0; client_rec->duration_4 = 0; client_rec->duration_5 = 0; client_rec->duration_6 = 0; client_rec->status_1 = 0; client_rec->status_2 = 0; client_rec->status_3 = 0; client_rec->status_4 = 0; client_rec->status_5 = 0; client_rec->status_304 = 0; client_rec->connections = 0; client_rec->events = apr_table_make(pool, 100); client_rec->pool = pool; client_rec->get = 0; client_rec->post = 0; client_rec->html = 0; client_rec->img = 0; client_rec->cssjs = 0; client_rec->other = 0; qs_time(&client_rec->start_s); client_rec->end_s = client_rec->start_s + 1; // +1 prevents div by 0 client_rec->firstLine = m_lines; qsInitEvent(pool, client_rec->events); apr_table_setn(m_client_entries, tid, (char *)client_rec); } else { qs_time(&client_rec->end_s); } client_rec->lastLine = m_lines; client_rec->request_count++; client_rec->duration += tme; client_rec->duration_count_ms += tmems; if(k != NULL) { if(k[0] == '0' && k[1] == '\0') { client_rec->connections++; } } if(tme < 1) { client_rec->duration_0++; } else if(tme == 1) { client_rec->duration_1++; } else if(tme == 2) { client_rec->duration_2++; } else if(tme == 3) { client_rec->duration_3++; } else if(tme == 4) { client_rec->duration_4++; } else if(tme == 5) { client_rec->duration_5++; } else { client_rec->duration_6++; } if(B != NULL) { client_rec->byte_count += atol(B); } if(ct) { if(qsstrcasestr(ct, "html")) { client_rec->html++; } else if(qsstrcasestr(ct, "image")) { client_rec->img++; } else if(qsstrcasestr(ct, "css")) { client_rec->cssjs++; } else if(qsstrcasestr(ct, "javascript")) { client_rec->cssjs++; } else { client_rec->other++; } } if(m) { if(strcasecmp(m, "get") == 0) { client_rec->get++; } else if(strcasecmp(m, "post") == 0) { client_rec->post++; } } if(S != NULL) { if(strcmp(S, "200") != 0 && strcmp(S, "304") != 0 && strcmp(S, "302") != 0) { client_rec->error_count++; } if(S[0] == '1') { client_rec->status_1++; } else if(S[0] == '1') { client_rec->status_1++; } else if(S[0] == '2') { client_rec->status_2++; } else if(S[0] == '3') { client_rec->status_3++; if(S[1] == '0' && S[2] == '4') { client_rec->status_304++; } } else if(S[0] == '4') { client_rec->status_4++; } else if(S[0] == '5') { client_rec->status_5++; } } if(E != NULL) { qs_updateEvents(client_rec->pool, E, client_rec->events); } return; } /** * Updates standard record */ static void updateRec(stat_rec_t *rec, char *T, char *t, char *D, char *S, char *s, char *a, char *A, char *BI, char *B, char *R, char *I, char *U, char *Q, char *E, char *k, char *C, long tme, long tmems) { if(Q != NULL) { if(strchr(Q, 'V') != NULL) { rec->qos_v++; } if(strchr(Q, 'S') != NULL) { rec->qos_s++; } if(strchr(Q, 'D') != NULL) { rec->qos_d++; } if(strchr(Q, 'K') != NULL) { rec->qos_k++; } if(strchr(Q, 'T') != NULL) { rec->qos_t++; } if(strchr(Q, 'L') != NULL) { rec->qos_l++; } if(strchr(Q, 's') != NULL) { rec->qos_ser++; } } if(E != NULL) { qs_updateEvents(rec->pool, E, rec->events); } if(I != NULL) { /* update/store client IP */ qs_insertEvent(&m_ip_list, I); } if(U != NULL) { /* update/store user */ qs_insertEvent(&m_user_list, U); } if(B != NULL) { /* transferred bytes */ rec->byte_count += atoi(B); } if(BI != NULL) { /* transferred bytes */ rec->i_byte_count += atoi(BI); } if(k != NULL) { if(k[0] == '0' && k[1] == '\0') { rec->connections++; } } if(s != NULL) { rec->sum += atol(s); } if(a != NULL && a[0]) { rec->average += atol(a); rec->average_count++; } if(A != NULL && A[0]) { rec->averAge += atol(A); rec->averAge_count++; } if(S != NULL) { if(S[0] == '1') { rec->status_1++; } else if(S[0] == '1') { rec->status_1++; } else if(S[0] == '2') { rec->status_2++; } else if(S[0] == '3') { rec->status_3++; } else if(S[0] == '4') { rec->status_4++; } else if(S[0] == '5') { rec->status_5++; } } if(T != NULL || t != NULL || D != NULL) { /* response duration */ rec->duration_count += tme; rec->duration_count_ms += tmems; if(tme < 1) { rec->duration_0++; } else if(tme == 1) { rec->duration_1++; } else if(tme == 2) { rec->duration_2++; } else if(tme == 3) { rec->duration_3++; } else if(tme == 4) { rec->duration_4++; } else if(tme == 5) { rec->duration_5++; } else { rec->duration_6++; } } /* request counter */ rec->line_count++; } /* * updates the counters based on the information * found in the current access log line * * . = any string to skip till the next [space] * T = duration * B = bytes * * Example: * 127.0.0.1 [03/Nov/2006:21:06:41 +0100] "GET /index.html HTTP/1.1" 200 2836 "Wget/1.9.1" 0 * . . . R . T */ static void updateStat(apr_pool_t *pool, const char *cstr, char *line) { stat_rec_t *rec = NULL; char *T = NULL; /* time */ char *t = NULL; /* time ms */ char *D = NULL; /* time us */ char *S = NULL; /* status */ char *BI = NULL; /* bytes in */ char *B = NULL; /* bytes */ char *R = NULL; /* request line */ char *I = NULL; /* client ip */ char *U = NULL; /* user */ char *Q = NULL; /* mod_qos event message */ char *k = NULL; /* connections (keep alive requests = 0) */ char *C = NULL; /* custom patter matching the config file */ char *s = NULL; /* sum */ char *a = NULL; /* avarage 1 */ char *A = NULL; /* average 2 */ char *E = NULL; /* events */ char *ct = NULL; /* content type */ char *m = NULL; /* method */ const char *c = cstr; char *l = line; long tme; long tmems; if(!line[0]) return; if(m_off) { m_lines++; } while(c[0]) { /* process known types */ if(c[0] == '.') { if(l != NULL && l[0] != '\0') { l = skipElement(l); } } else if(c[0] == 'T') { if(l != NULL && l[0] != '\0') { T = cutNext(&l); } } else if(c[0] == 't') { if(l != NULL && l[0] != '\0') { t = cutNext(&l); } } else if(c[0] == 'D') { if(l != NULL && l[0] != '\0') { D = cutNext(&l); } } else if(c[0] == 'S') { if(l != NULL && l[0] != '\0') { S = cutNext(&l); } } else if(c[0] == 'B') { if(l != NULL && l[0] != '\0') { B = cutNext(&l); } } else if(c[0] == 'i') { if(l != NULL && l[0] != '\0') { BI = cutNext(&l); } } else if(c[0] == 'k') { if(l != NULL && l[0] != '\0') { k = cutNext(&l); } } else if(c[0] == 'C') { if(l != NULL && l[0] != '\0') { C = cutNext(&l); } } else if(c[0] == 'c') { if(l != NULL && l[0] != '\0') { ct = cutNext(&l); } } else if(c[0] == 'm') { if(l != NULL && l[0] != '\0') { m = cutNext(&l); } } else if(c[0] == 'R') { if(l != NULL && l[0] != '\0') { R = cutNext(&l); } } else if(c[0] == 'I') { if(l != NULL && l[0] != '\0') { I = cutNext(&l); } } else if(c[0] == 'U') { if(l != NULL && l[0] != '\0') { U = cutNext(&l); } } else if(c[0] == 'Q') { if(l != NULL && l[0] != '\0') { Q = cutNext(&l); } } else if(c[0] == 's') { if(l != NULL && l[0] != '\0') { s = cutNext(&l); } } else if(c[0] == 'a') { if(l != NULL && l[0] != '\0') { a = cutNext(&l); } } else if(c[0] == 'A') { if(l != NULL && l[0] != '\0') { A = cutNext(&l); } } else if(c[0] == 'E') { if(l != NULL && l[0] != '\0') { E = cutNext(&l); } } else if(c[0] == ' ') { /* do nothing */ } else { /* undefined/unknown char, skip it */ if(l != NULL && l[0] != '\0') { l++; } } c++; } if(C) { rec = getRec(C); } qs_csLock(); if(B != NULL) { /* transferred bytes */ stripNum(&B); } if(BI != NULL) { /* transferred bytes */ stripNum(&BI); } if(k != NULL) { stripNum(&k); } if(S != NULL) { stripNum(&S); } if(s != NULL) { stripNum(&s); qsNoFloat(s); } if(a != NULL) { stripNum(&a); qsNoFloat(a); } if(A != NULL) { stripNum(&A); qsNoFloat(A); } tme = 0; if(T != NULL || t != NULL || D != NULL) { /* response duration */ tmems = 0; if(T) { stripNum(&T); tme = atol(T); } else if(t) { stripNum(&t); tmems= atol(t); tme = tmems / 1000; } else if(D) { stripNum(&D); tmems = atol(D); tmems = tmems / 1000; tme = tmems / 1000; } } if(m_offline_count) { updateClient(pool, T, t, D, S, BI, B, R, I, U, Q, E, k, C, ct, tme, tmems, m); } else if(m_offline_url) { if((tmems) == 0 && (tme > 0)) { tmems = 1000 * tme; } updateUrl(pool, R, S, tmems); } else { updateRec(m_stat_rec, T, t, D, S, s, a, A, BI, B, R, I, U, Q, E, k, C, tme, tmems); if(rec) { updateRec(rec, T, t, D, S, s, a, A, BI, B, R, I, U, Q, E, k, C, tme, tmems); } } qs_csUnLock(); if(m_verbose && m_off) { printf("[%ld] I=[%s] U=[%s] B=[%s] i=[%s] S=[%s] T=[%ld](%ld) Q=[%s] E=[%s] k=[%s] R=[%s]\n", m_lines, I == NULL ? "(null)" : I, U == NULL ? "(null)" : U, B == NULL ? "(null)" : B, BI == NULL ? "(null)" : BI, S == NULL ? "(null)" : S, tme, tmems, Q == NULL ? "(null)" : Q, E == NULL ? "(null)" : E, k == NULL ? "(null)" : k, R == NULL ? "(null)" : R ); } line[0] = '\0'; } /* * convert month string to int */ static int mstr2i(const char *m) { if(strcmp(m, "Jan") == 0) return 1; if(strcmp(m, "Feb") == 0) return 2; if(strcmp(m, "Mar") == 0) return 3; if(strcmp(m, "Apr") == 0) return 4; if(strcmp(m, "May") == 0) return 5; if(strcmp(m, "Jun") == 0) return 6; if(strcmp(m, "Jul") == 0) return 7; if(strcmp(m, "Aug") == 0) return 8; if(strcmp(m, "Sep") == 0) return 9; if(strcmp(m, "Oct") == 0) return 10; if(strcmp(m, "Nov") == 0) return 11; if(strcmp(m, "Dec") == 0) return 12; return 0; } /* * get the time in minutes from the access log line */ static time_t getMinutes(char *line) { regmatch_t ma; if(regexec(&m_trx, line, 1, &ma, 0) != 0) { if(regexec(&m_trx2, line, 1, &ma, 0) == 0) { time_t minutes = 0; int buf_len = ma.rm_eo - ma.rm_so + 1; char buf[buf_len]; strncpy(buf, &line[ma.rm_so], ma.rm_eo - ma.rm_so); buf[ma.rm_eo - ma.rm_so] = '\0'; /* yyyy mm dd hh:mm:ss,mmm */ /* cut seconds */ buf[strlen(buf)-7] = '\0'; /* get minutes */ minutes = minutes + (atoi(&buf[strlen(buf)-2])); /* cut minutes */ buf[strlen(buf)-3] = '\0'; /* get hours */ minutes = minutes + (atoi(&buf[strlen(buf)-2]) * 60); /* store date information */ { char *year; char *month; char *day; /* cut hours */ buf[strlen(buf)-3] = '\0'; day = &buf[strlen(buf)-2]; /* cut day */ buf[strlen(buf)-3] = '\0'; month = &buf[strlen(buf)-2]; /* cut month */ buf[strlen(buf)-3] = '\0'; year = buf; snprintf(m_date_str, sizeof(m_date_str), "%s.%s.%s", day, month, year); } return minutes; } else { // unknown format fprintf(stdout, "F(%ld)", m_lines); return 0; } } else { time_t minutes = 0; int buf_len = ma.rm_eo - ma.rm_so + 1; char buf[buf_len]; strncpy(buf, &line[ma.rm_so], ma.rm_eo - ma.rm_so); buf[ma.rm_eo - ma.rm_so] = '\0'; /* dd/MMM/yyyy:hh:mm:ss */ /* cut seconds */ buf[strlen(buf)-3] = '\0'; /* get minutes */ minutes = minutes + (atoi(&buf[strlen(buf)-2])); /* cut minutes */ buf[strlen(buf)-3] = '\0'; /* get hours */ minutes = minutes + (atoi(&buf[strlen(buf)-2]) * 60); /* store date information */ { char *year; char *month; char *day; /* cut hours */ buf[strlen(buf)-3] = '\0'; year = &buf[strlen(buf)-4]; /* cut year */ buf[strlen(buf)-5] = '\0'; month = &buf[strlen(buf)-3]; /* cut month */ buf[strlen(buf)-4] = '\0'; day = buf; snprintf(m_date_str, sizeof(m_date_str), "%s.%02d.%s", day, mstr2i(month), year); } return minutes; } } /* * reads from stdin and calls updateStat() * => used for real time analysis */ static void readStdin(apr_pool_t *pool, const char *cstr) { char line[MAX_LINE]; int line_len; while(fgets(line, sizeof(line), stdin) != NULL) { line_len = strlen(line) - 1; while(line_len > 0) { // cut tailing CR/LF if(line[line_len] >= ' ') { break; } line[line_len] = '\0'; line_len--; } updateStat(pool, cstr, line); } } /* * reads from stdin and calls updateStat() * and printAndResetStat() * processes the time information from the * access log lines * => used for offline analysis */ static void readStdinOffline(apr_pool_t *pool, const char *cstr) { char line[MAX_LINE]; char buf[32]; time_t unitTime = 0; int line_len; FILE *outdev = stdout; if(m_offline_count || m_offline_url) { outdev = stderr; } while(fgets(line, sizeof(line), stdin) != NULL) { time_t l_time; line_len = strlen(line) - 1; while(line_len > 0) { // cut tailing CR/LF if(line[line_len] >= ' ') { break; } line[line_len] = '\0'; line_len--; } l_time = getMinutes(line); m_offline_data = 1; if(unitTime == 0) { unitTime = l_time; qs_setTime(unitTime * 60); } if(unitTime == l_time) { updateStat(pool, cstr, line); } if(l_time < unitTime) { /* leap in time... */ updateStat(pool, cstr, line); fprintf(outdev, "X"); fflush(outdev); unitTime = 0; } else { if(l_time > unitTime) { if(!m_verbose) { fprintf(outdev, "."); fflush(outdev); } } while(l_time > unitTime) { snprintf(buf, sizeof(buf), "%s %.2ld:%.2ld:00", m_date_str, unitTime/60, unitTime%60); if(m_offline) { printAndResetStat(buf); } unitTime++; qs_setTime(unitTime * 60);; } updateStat(pool, cstr, line); } } if(m_offline_data) { snprintf(buf, sizeof(buf), "%s %.2ld:%.2ld:00", m_date_str, unitTime/60, unitTime%60); if(m_offline) { printAndResetStat(buf); } } } /* * calls printAndResetStat() every minute * => used for real time analysis */ static void *loggerThread(void *argv) { char buf[1024]; while(1) { struct tm *ptr; time_t tm = time(NULL); time_t w = tm / LOG_INTERVAL * LOG_INTERVAL + LOG_INTERVAL; sleep(w - tm); tm = time(NULL); ptr = localtime(&tm); strftime(buf, sizeof(buf), "%d.%m.%Y %H:%M:%S", ptr); printAndResetStat(buf); if(m_rotate) { strftime(buf, sizeof(buf), "%H:%M", ptr); if(strcmp(buf, "23:59") == 0) { char arch[MAX_LINE]; char arch2[MAX_LINE]; strftime(buf, sizeof(buf), "%Y%m%d%H%M%S", ptr); snprintf(arch, sizeof(arch), "%s.%s", m_file_name, buf); snprintf(arch2, sizeof(arch), "%s.%s", m_file_name2, buf); if(fclose(m_f) != 0) { qerror("failed to close file '%s': %s", m_file_name, strerror(errno)); } if(rename(m_file_name, arch) != 0) { qerror("failed to move file '%s': %s", arch, strerror(errno)); } qs_deleteOldFiles(m_file_name, m_generations); m_f = fopen(m_file_name, "a+"); if(m_f2) { fclose(m_f2); rename(m_file_name2, arch2); qs_deleteOldFiles(m_file_name2, m_generations); m_f2 = fopen(m_file_name2, "a+"); } } } } return NULL; } /** * usage text */ static void usage(const char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - collects request statistics from access log data.\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -f -o [-p[c|u[c]] [-v]] [-x []] [-u ] [-m] [-c ]\n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "%s is a real time access log analyzer. It collects\n", cmd); qs_man_print(man, "the data from stdin. The output is written to the specified\n"); qs_man_println(man, "file every minute and includes the following entries:\n"); qs_man_println(man, " - requests per second ("NRS")\n"); qs_man_println(man, " - number of requests within measured time (req)\n"); qs_man_println(man, " - bytes sent to the client per second ("NBS")\n"); qs_man_println(man, " - bytes received from the client per second ("NBIS")\n"); qs_man_println(man, " - repsonse status codes within the last minute (1xx,2xx,3xx,4xx,5xx)\n"); qs_man_println(man, " - average response duration ("NAV")\n"); qs_man_println(man, " - average response duration in milliseconds ("NAVMS")\n"); qs_man_println(man, " - distribution of response durations within the last minute\n"); qs_man_print(man, " (<1s,1s,2s,3s,4s,5s,>5)\n"); if(man) printf("\n"); qs_man_println(man, " - number of established (new) connections within the measured time (esco)\n"); qs_man_println(man, " - average system load (sl)\n"); qs_man_println(man, " - free memory (m) (not available for all platforms)\n"); qs_man_println(man, " - number of client ip addresses seen withn the last %d seconds (ip)\n", ACTIVE_TIME); qs_man_println(man, " - number of different users seen withn the last %d seconds (usr)\n", ACTIVE_TIME); qs_man_println(man, " - number of events identified by the 'E' format character\n"); qs_man_println(man, " - number of mod_qos events within the last minute (qV=create session,\n"); qs_man_print(man, " qS=session pass, qD=access denied, qK=connection closed, qT=dynamic\n"); qs_man_print(man, " keep-alive, qL=request/response slow down, qs=serialized request)\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -f \n"); if(man) printf("\n"); qs_man_print(man, " Defines the log data format and the positions of data\n"); qs_man_print(man, " elements processed by this utility.\n"); qs_man_print(man, " See to the 'LogFormat' directive of the httpd.conf file\n"); qs_man_print(man, " to see the format defintions of the servers access log data.\n"); if(man) printf("\n"); qs_man_println(man, " %s knows the following elements:\n", cmd); qs_man_println(man, " I defines the client ip address (%%h)\n"); qs_man_println(man, " R defines the request line (%%r)\n"); qs_man_println(man, " S defines HTTP response status code (%%s)\n"); qs_man_println(man, " B defines the transferred bytes (%%b or %%O)\n"); qs_man_println(man, " i defines the received bytes (%%I)\n"); qs_man_println(man, " T defines the request duration (%%T)\n"); qs_man_println(man, " t defines the request duration in milliseconds (may be used instead of T)\n"); qs_man_println(man, " D defines the request duration in microseconds (may be used instead of T) (%%D)\n"); qs_man_println(man, " k defines the number of keepalive requests on the connection (%%k)\n"); qs_man_println(man, " U defines the user tracking id (%%{mod_qos_user_id}e)\n"); qs_man_println(man, " Q defines the mod_qos_ev event message (%%{mod_qos_ev}e)\n"); qs_man_println(man, " C defines the element for the detailed log (-c option), e.g. \"%%U\"\n"); qs_man_println(man, " s arbitrary counter to add up (sum within a minute)\n"); qs_man_println(man, " a arbitrary counter to build an average from (average per request)\n"); qs_man_println(man, " A arbitrary counter to build an average from (average per request)\n"); qs_man_println(man, " E comma separated list of event strings\n"); qs_man_println(man, " c content type (%%{content-type}o), available in -pc mode only\n"); qs_man_println(man, " m request method (GET/POST) (%%m), available in -pc mode only\n"); qs_man_println(man, " . defines an element to ignore (unknown string)\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -o \n"); if(man) printf("\n"); qs_man_print(man, " Specifies the file to store the output to.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p\n"); if(man) printf("\n"); qs_man_print(man, " Used for post processing when reading the log data from a file (cat/pipe).\n"); qs_man_print(man, " %s is started using it's offline mode (extracting the time stamps from\n", cmd); qs_man_print(man, " the log lines) in order to process existing log files.\n"); qs_man_print(man, " The option \"-pc\" may be used alternatively if you want to gather request\n"); qs_man_print(man, " information per client (identified by IP address (I) or user tracking id (U)\n"); qs_man_print(man, " showing how many request each client has performed within the captured period\n"); qs_man_print(man, " of time). \"-pc\" supports the format characters IURSBTtDkEcm.\n"); qs_man_print(man, " The option \"-pu\" collects statistics on a per URL level (supports format\n"); qs_man_print(man, " characters RSTtD).\n"); qs_man_print(man, " \"-puc\" is very similar to \"-pu\" but cuts the end (handler) of each URL.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -v\n"); if(man) printf("\n"); qs_man_print(man, " Verbose mode.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -x []\n"); if(man) printf("\n"); qs_man_print(man, " Rotates the output file once a day (move). You may specify the number of\n"); qs_man_print(man, " rotated files to keep. Default are %d.\n", QS_GENERATIONS); if(man) printf("\n.TP\n"); qs_man_print(man, " -u \n"); if(man) printf("\n"); qs_man_print(man, " Becomes another user, e.g. www-data.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -m\n"); if(man) printf("\n"); qs_man_print(man, " Calculates free system memory every minute.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -c \n"); if(man) printf("\n"); qs_man_print(man, " Enables the collection of log statitics for different request types.\n"); qs_man_print(man, " 'path' specifies the necessary rule file. Each rule consists of a rule\n"); qs_man_print(man, " identifier and a regular expression to identify a request seprarated\n"); qs_man_print(man, " by a colon, e.g., 01:^(/a)|(/c). The regular expressions are matched against\n"); qs_man_print(man, " the log data element which has been identified by the 'C' format character.\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); printf("Configuration using pipped logging:\n"); printf("\n"); } else { printf("Example configuration using pipped logging:\n"); } qs_man_println(man, " LogFormat \"%%t %%h \\\"%%r\\\" %%>s %%b \\\"%%{User-Agent}i\\\" %%T\"\n"); qs_man_println(man, " TransferLog \"|/bin/%s -f ..IRSB.T -x -o /var/logs/stat_log\"\n", cmd); printf("\n"); if(man) { printf("Configuration using the CustomLog directive:\n"); printf("\n"); } else { printf("Example configuration using the CustomLog directive:\n"); } qs_man_println(man, " CustomLog \"|/bin/%s -f ISBTQ -x -o /var/logs/stat_log\" \"%%h %%>s %%b %%T %%{mod_qos_ev}e\"\n", cmd); printf("\n"); if(man) { printf("Post processing:\n"); printf("\n"); } else { printf("Example for post processing:\n"); } qs_man_println(man, " cat access_log | /bin/%s -f ..IRSB.T -o /var/logs/stat_log -p\n", cmd); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } /** * Loads the rule files. Each rule (pattern) is prefixed by an id. * * @param confFile Path to the rule file to load * @return */ static stat_rec_t *loadRule(apr_pool_t *pool, const char *confFile) { char line[MAX_LINE]; FILE *file = fopen(confFile, "r"); stat_rec_t *rec = NULL; stat_rec_t *prev = NULL; stat_rec_t *next = NULL; if(file == NULL) { qerror("could not open file for writing '%s': ", confFile, strerror(errno)); exit(1); } while(!qs_getLinef(line, sizeof(line), file)) { char *id = line; char *p = strchr(line, RULE_DELIM); if(p) { p[0] = '\0'; p++; if(m_verbose) { printf("load rule %s: %s\n", id, p); } next = createRec(pool, id, p); if(rec == NULL) { // first record rec = next; } if(prev) { // has previous, append it to the list prev->next = next; } else { // sole record, no next rec->next = NULL; } // prev points now to the new record prev = next; } } fclose(file); return rec; } int main(int argc, const char *const argv[]) { const char *config = NULL; const char *file = NULL; const char *confFile = NULL; const char *cmd = strrchr(argv[0], '/'); const char *username = NULL; pthread_attr_t *tha = NULL; pthread_t tid; apr_pool_t *pool; apr_app_initialize(&argc, &argv, NULL); apr_pool_create(&pool, NULL); m_stat_rec = createRec(pool, "", ""); qs_csInitLock(); qs_setExpiration(ACTIVE_TIME); if(cmd == NULL) { cmd = argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv,"-f") == 0) { /* this is the format string */ if (--argc >= 1) { config = *(++argv); if(strchr(config, 'i')) { // enable ib/s m_stat_rec->i_byte_count = 0; } if(strchr(config, 'k')) { // enable esco m_stat_rec->connections = 0; } if(strchr(config, 'c')) { // enable content type m_ct = 1; } if(strchr(config, 'D') || strchr(config, 't')) { // enable average duration in ms m_avms = 1; } if(strchr(config, 'm')) { m_methods = 1; } if(strchr(config, 's') || strchr(config, 'a') || strchr(config, 'A')) { // enable custom counter m_customcounter = 1; } } } else if(strcmp(*argv,"-o") == 0) { /* this is the out file */ if (--argc >= 1) { file = *(++argv); } } else if(strcmp(*argv,"-u") == 0) { /* switch user id */ if (--argc >= 1) { username = *(++argv); } } else if(strcmp(*argv,"-c") == 0) { /* custom patterns (e.g. url pattern list, format: ':') */ if (--argc >= 1) { confFile = *(++argv); } } else if(strcmp(*argv,"-p") == 0) { /* activate offline analysis */ m_offline = 1; qs_set2OfflineMode(); } else if(strcmp(*argv,"-pc") == 0) { /* activate offline counting analysis */ m_offline_count = 1; qs_set2OfflineMode(); } else if(strcmp(*argv,"-pu") == 0) { /* activate offline url analysis */ m_offline_url = 1; qs_set2OfflineMode(); } else if(strcmp(*argv,"-puc") == 0) { /* activate offline url analysis */ m_offline_url = 1; m_offline_url_cropped = 1; qs_set2OfflineMode(); } else if(strcmp(*argv,"-m") == 0) { /* activate memory usage */ m_mem = 1; } else if(strcmp(*argv,"-v") == 0) { m_verbose = 1; } else if(strcmp(*argv,"-x") == 0) { /* activate log rotation */ m_rotate = 1; if(argc > 1) { if(*argv[1] >= '0' && *argv[1] <= '9') { argc--; argv++; m_generations = atoi(*argv); } } } else if(strcmp(*argv,"-h") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } else { qerror("unknown option '%s'", *argv); exit(1); } argc--; argv++; } m_off = m_offline || m_offline_count || m_offline_url; if(m_off) { if(nice(10) == -1) { fprintf(stderr, "ERROR, failed to change nice value: %s\n", strerror(errno)); } /* init time pattern regex, std apache access log */ regcomp(&m_trx, "[0-9]{2}/[a-zA-Z]{3}/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2}", REG_EXTENDED); /* other time patterns: "yyyy mm dd hh:mm:ss,mmm" or "yyyy mm dd hh:mm:ss.mmm" */ regcomp(&m_trx2, "[0-9]{4}[ -]{1}[0-9]{2}[ -]{1}[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}[,.]{1}[0-9]{3}", REG_EXTENDED); } /* * offline url mod */ if(m_offline_url) { int i; apr_table_entry_t *entry; long request_count = 0; long request_count_min = -1; long request_count_max = 0; long long duration_count_ms = 0; long long duration_count_ms_min = -1; long long duration_count_ms_max = 0; m_url_entries = apr_table_make(pool, MAX_CLIENT_ENTRIES + 1); readStdinOffline(pool, config); fprintf(stderr, ".\n"); m_f = stdout; if(file) { m_f = fopen(file, "a+"); if(!m_f) { m_f = stdout; } } entry = (apr_table_entry_t *) apr_table_elts(m_url_entries)->elts; for(i = 0; i < apr_table_elts(m_url_entries)->nelts; i++) { url_rec_t *url_rec = (url_rec_t *)entry[i].val; request_count += url_rec->request_count; if(request_count_min == -1) { request_count_min = url_rec->request_count; } if(request_count_min > url_rec->request_count) { request_count_min = url_rec->request_count; } if(request_count_max < url_rec->request_count) { request_count_max = url_rec->request_count; } duration_count_ms += url_rec->duration_count_ms; if(duration_count_ms_min == -1) { duration_count_ms_min = url_rec->duration_count_ms; } if(duration_count_ms_min > url_rec->duration_count_ms) { duration_count_ms_min = url_rec->duration_count_ms; } if(duration_count_ms_max < url_rec->duration_count_ms) { duration_count_ms_max = url_rec->duration_count_ms; } fprintf(m_f, "req;%ld;" "1xx;%ld;2xx;%ld;3xx;%ld;4xx;%ld;5xx;%ld;" NAVMS";%lld;%s\n", url_rec->request_count, url_rec->status_1, url_rec->status_2, url_rec->status_3, url_rec->status_4, url_rec->status_5, url_rec->duration_count_ms / url_rec->request_count, entry[i].key); } fprintf(m_f, "req;%ld;" ";;;;;;;;;;" NAVMS";%lld;min;\n", request_count_min, duration_count_ms_min); fprintf(m_f, "req;%ld;" ";;;;;;;;;;" NAVMS";%lld;max;\n", request_count_max, duration_count_ms_max); fprintf(m_f, "req;%ld;" ";;;;;;;;;;" NAVMS";%lld;average;\n", request_count / apr_table_elts(m_url_entries)->nelts, duration_count_ms / request_count); if(file && m_f != stdout) { fclose(m_f); } return 0; } /* * offline count mode creates statistics * on a per client basis (e.g. per source * ip or user id using the user tracking * feature of mod_qos) */ if(m_offline_count) { int i; apr_table_entry_t *entry; if(config == NULL) usage(cmd, 0); m_client_entries = apr_table_make(pool, MAX_CLIENT_ENTRIES + 1); readStdinOffline(pool, config); fprintf(stderr, ".\n"); entry = (apr_table_entry_t *) apr_table_elts(m_client_entries)->elts; m_f = stdout; if(file) { m_f = fopen(file, "a+"); if(!m_f) { m_f = stdout; } } for(i = 0; i < apr_table_elts(m_client_entries)->nelts; i++) { client_rec_t *client_rec = (client_rec_t *)entry[i].val; char esco[256]; char m[256]; /* ci (coverage index): low value indicates that we have seen the client at the end or beginning of the file (maybe not all requests due to log rotation) */ long coverage = (client_rec->firstLine * 100 / m_lines); long coverageend = 100 - ((client_rec->lastLine * 100) / m_lines); if(coverageend < coverage) { coverage = coverageend; } esco[0] = '\0'; if(m_stat_rec->connections != -1) { sprintf(esco, "esco;%ld;", client_rec->connections); } m[0] = '\0'; if(m_methods) { sprintf(m, "GET;%ld;POST;%ld;", client_rec->get, client_rec->post); } if(m_avms == 0) { // no ms available client_rec->duration_count_ms = 1000 * client_rec->duration; } else { // improve accuracy (rounding errors): client_rec->duration = client_rec->duration_count_ms / 1000; } fprintf(m_f, "%s;req;%ld;errors;%ld;duration;%ld;bytes;%lld;" "1xx;%ld;2xx;%ld;3xx;%ld;4xx;%ld;5xx;%ld;304;%ld;" "av;%lld;"NAVMS";%lld;<1s;%ld;1s;%ld;2s;%ld;3s;%ld;4s;%ld;5s;%ld;>5s;%ld;" "%s" "%s" "ci;%ld;", entry[i].key, client_rec->request_count, client_rec->error_count, client_rec->end_s - client_rec->start_s, client_rec->byte_count, client_rec->status_1, client_rec->status_2, client_rec->status_3, client_rec->status_4, client_rec->status_5, client_rec->status_304, client_rec->duration / client_rec->request_count, client_rec->duration_count_ms / client_rec->request_count, client_rec->duration_0, client_rec->duration_1, client_rec->duration_2, client_rec->duration_3, client_rec->duration_4, client_rec->duration_5, client_rec->duration_6, esco, m, coverage); if(m_ct) { fprintf(m_f, "html;%ld;css/js;%ld;img;%ld;other;%ld;", client_rec->html, client_rec->cssjs, client_rec->img, client_rec->other); } if(apr_table_elts(client_rec->events)->nelts > 0) { int k; apr_table_entry_t *client_entry = (apr_table_entry_t *) apr_table_elts(client_rec->events)->elts; for(k = 0; k < apr_table_elts(client_rec->events)->nelts; k++) { const char *eventName = client_entry[k].key; int *eventVal = (int *)client_entry[k].val; fprintf(m_f, "%s;%d;", eventName, *eventVal); (*eventVal) = 0; } } fprintf(m_f, "\n"); } if(file && m_f != stdout) { fclose(m_f); } return 0; } /* requires at least an output file and a format string */ if(file == NULL || config == NULL) usage(cmd, 0); if(username && getuid() == 0) { struct passwd *pwd = getpwnam(username); uid_t uid, gid; if(pwd == NULL) { qerror("unknown user id '%s': %s", username, strerror(errno)); exit(1); } uid = pwd->pw_uid; gid = pwd->pw_gid; setgid(gid); setuid(uid); if(getuid() != uid) { qerror("setuid failed (%s,%d)", username, uid); exit(1); } if(getgid() != gid) { qerror("setgid failed (%d)", gid); exit(1); } } m_f = fopen(file, "a+"); if(m_f == NULL) { qerror("could not open file for writing '%s': %s", file, strerror(errno)); exit(1); } if(strlen(file) > (sizeof(m_file_name) - strlen(".yyyymmddHHMMSS ") - strlen(LOG_DET))) { qerror("file name too long '%s'", file); exit(1); } strcpy(m_file_name, file); if(confFile) { snprintf(m_file_name2, sizeof(m_file_name2), "%s"LOG_DET, m_file_name); if(strchr(config, 'C') == NULL) { qerror("you need to add 'C' to the format string when enabling the pattern list (-c)"); exit(1); } m_stat_sub = loadRule(pool, confFile); m_f2 = fopen(m_file_name2, "a+"); if(m_f == NULL) { qerror("could not open file for writing '%s': %s", m_file_name2, strerror(errno)); exit(1); } } /* * Offline mode reads an existing file * adjusting a virtual clock based on * the date string match of the log * enties. */ if(m_offline) { fprintf(stderr, "[%s]: offline mode (writes to %s)\n", cmd, file); m_date_str[0] = '\0'; readStdinOffline(pool, config); if(!m_verbose) { fprintf(stdout, "\n"); } } else { /* standard mode reads data from * stdin and uses a separate thread * to write the data every minute. */ pthread_create(&tid, tha, loggerThread, NULL); readStdin(pool, config); } fclose(m_f); return 0; } mod_qos-10.28/tools/src/char.h0000664000000000000020000002241312264072142014473 0ustar rootbin/** * Utilities for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ #define S_W_MAX 6 #define S_H_MAX 7 static int s_0[S_H_MAX][S_W_MAX] = { { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_1[S_H_MAX][S_W_MAX] = { { 0,0,0,1,0,0}, { 0,0,1,1,0,0}, { 0,1,0,1,0,0}, { 0,0,0,1,0,0}, { 0,0,0,1,0,0}, { 0,0,0,1,0,0}, { 0,0,0,0,0,0} }; static int s_2[S_H_MAX][S_W_MAX] = { { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 0,0,0,1,0,0}, { 0,0,1,0,0,0}, { 0,1,0,0,0,0}, { 1,1,1,1,1,0}, { 0,0,0,0,0,0} }; static int s_3[S_H_MAX][S_W_MAX] = { { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 0,0,1,1,0,0}, { 0,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_4[S_H_MAX][S_W_MAX] = { { 0,0,0,1,0,0}, { 0,0,1,0,0,0}, { 0,1,0,0,0,0}, { 1,0,0,1,0,0}, { 1,1,1,1,1,0}, { 0,0,0,1,0,0}, { 0,0,0,0,0,0} }; static int s_5[S_H_MAX][S_W_MAX] = { { 1,1,1,1,1,0}, { 1,0,0,0,0,0}, { 1,1,1,1,0,0}, { 0,0,0,0,1,0}, { 0,0,0,0,1,0}, { 1,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_6[S_H_MAX][S_W_MAX] = { { 0,1,1,1,0,0}, { 1,0,0,0,0,0}, { 1,0,1,1,0,0}, { 1,1,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_7[S_H_MAX][S_W_MAX] = { { 1,1,1,1,1,0}, { 0,0,0,0,1,0}, { 0,0,0,1,0,0}, { 0,0,1,0,0,0}, { 0,1,0,0,0,0}, { 0,1,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_8[S_H_MAX][S_W_MAX] = { { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_9[S_H_MAX][S_W_MAX] = { { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 0,1,1,1,1,0}, { 0,0,0,0,1,0}, { 0,0,0,0,1,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; /* ----------------------------------------------- */ static int s_a[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,1,1,0,0}, { 0,0,0,0,1,0}, { 0,1,1,1,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,1,0}, { 0,0,0,0,0,0} }; static int s_b[S_H_MAX][S_W_MAX] = { { 1,0,0,0,0,0}, { 1,0,0,0,0,0}, { 1,1,1,1,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_c[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,0,0}, { 1,0,0,0,1,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_d[S_H_MAX][S_W_MAX] = { { 0,0,0,0,1,0}, { 0,0,0,0,1,0}, { 0,1,1,1,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,1,0}, { 0,0,0,0,0,0} }; static int s_e[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 1,1,1,1,1,0}, { 1,0,0,0,0,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_f[S_H_MAX][S_W_MAX] = { { 0,0,1,1,0,0}, { 0,1,0,0,0,0}, { 1,1,1,0,0,0}, { 0,1,0,0,0,0}, { 0,1,0,0,0,0}, { 0,1,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_g[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,1,1,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,1,0}, { 0,0,0,0,1,0}, { 0,1,1,1,0,0} }; static int s_h[S_H_MAX][S_W_MAX] = { { 1,0,0,0,0,0}, { 1,0,0,0,0,0}, { 1,0,1,1,0,0}, { 1,1,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,0,0,0,0,0} }; static int s_i[S_H_MAX][S_W_MAX] = { { 0,0,1,0,0,0}, { 0,0,0,0,0,0}, { 0,1,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_j[S_H_MAX][S_W_MAX] = { { 0,0,0,0,1,0}, { 0,0,0,0,0,0}, { 0,0,0,1,1,0}, { 0,0,0,0,1,0}, { 0,0,0,0,1,0}, { 0,0,0,0,1,0}, { 0,0,1,1,0,0} }; static int s_k[S_H_MAX][S_W_MAX] = { { 1,0,0,0,0,0}, { 1,0,0,0,0,0}, { 1,0,1,1,0,0}, { 1,1,0,0,0,0}, { 1,0,1,0,0,0}, { 1,0,0,1,0,0}, { 0,0,0,0,0,0} }; static int s_l[S_H_MAX][S_W_MAX] = { { 0,1,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,0,0,0,0} }; static int s_m[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,1,0,1,0,0}, { 1,0,1,0,1,0}, { 1,0,1,0,1,0}, { 1,0,1,0,1,0}, { 1,0,1,0,1,0}, { 0,0,0,0,0,0} }; static int s_n[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,0,1,1,0,0}, { 1,1,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,0,0,0,0,0} }; static int s_o[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,1,1,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_p[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,1,1,1,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,1,1,1,0,0}, { 1,0,0,0,0,0}, { 1,0,0,0,0,0} }; static int s_q[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,1,1,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,1,0}, { 0,0,0,0,1,0}, { 0,0,0,0,1,0} }; static int s_r[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,0,1,1,0,0}, { 1,1,0,0,1,0}, { 1,0,0,0,0,0}, { 1,0,0,0,0,0}, { 1,0,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_s[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,1,1,1,0}, { 1,0,0,0,0,0}, { 0,1,1,1,0,0}, { 0,0,0,0,1,0}, { 1,1,1,1,0,0}, { 0,0,0,0,0,0} }; static int s_t[S_H_MAX][S_W_MAX] = { { 0,0,1,0,0,0}, { 0,1,1,1,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,1,0}, { 0,0,0,1,0,0}, { 0,0,0,0,0,0} }; static int s_u[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,1,0}, { 0,0,0,0,0,0} }; static int s_v[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,0,1,0,0}, { 0,0,1,0,0,0}, { 0,0,0,0,0,0} }; static int s_w[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,1,0,1,0}, { 1,1,0,1,1,0}, { 1,0,0,0,1,0}, { 0,0,0,0,0,0} }; static int s_x[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,0,0,0,1,0}, { 0,1,0,1,0,0}, { 0,0,1,0,0,0}, { 0,1,0,1,0,0}, { 1,0,0,0,1,0}, { 0,0,0,0,0,0} }; static int s_y[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,1,1,1,1,0}, { 0,0,0,0,1,0}, { 1,1,1,1,0,0} }; static int s_z[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 1,1,1,1,1,0}, { 0,0,0,1,1,0}, { 0,0,1,0,0,0}, { 1,1,0,0,0,0}, { 1,1,1,1,1,0}, { 0,0,0,0,0,0} }; static int s_BRO[S_H_MAX][S_W_MAX] = { { 0,0,0,1,0,0}, { 0,0,1,0,0,0}, { 0,1,0,0,0,0}, { 0,1,0,0,0,0}, { 0,0,1,0,0,0}, { 0,0,0,1,0,0}, { 0,0,0,0,0,0} }; static int s_BRC[S_H_MAX][S_W_MAX] = { { 0,0,1,0,0,0}, { 0,0,0,1,0,0}, { 0,0,0,0,1,0}, { 0,0,0,0,1,0}, { 0,0,0,1,0,0}, { 0,0,1,0,0,0}, { 0,0,0,0,0,0} }; static int s_MI[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 1,1,1,1,1,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_LT[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,1,0,0}, { 0,1,1,0,0,0}, { 1,0,0,0,0,0}, { 0,1,1,0,0,0}, { 0,0,0,1,0,0}, { 0,0,0,0,0,0} }; static int s_GT[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,1,0,0,0,0}, { 0,0,1,1,0,0}, { 0,0,0,0,1,0}, { 0,0,1,1,0,0}, { 0,1,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_SP[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_US[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 1,1,1,1,1,0}, { 0,0,0,0,0,0} }; static int s_M[S_H_MAX][S_W_MAX] = { { 1,0,0,0,1,0}, { 1,1,0,1,1,0}, { 1,0,1,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 1,0,0,0,1,0}, { 0,0,0,0,0,0} }; static int s_DT[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,1,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_CM[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,1,0,0,0}, { 0,1,0,0,0,0} }; static int s_SC[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,1,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,1,0,0,0}, { 0,1,0,0,0,0} }; static int s_CO[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,1,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,1,0,0,0}, { 0,0,0,0,0,0} }; static int s_SL[S_H_MAX][S_W_MAX] = { { 0,0,0,0,0,1}, { 0,0,0,0,1,0}, { 0,0,0,1,0,0}, { 0,0,1,0,0,0}, { 0,1,0,0,0,0}, { 1,0,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_SQ[S_H_MAX][S_W_MAX] = { { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,1,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0}, { 0,0,0,0,0,0} }; static int s_X[S_H_MAX][S_W_MAX] = { { 1,1,1,1,1,0}, { 1,1,1,1,1,0}, { 1,1,1,1,1,0}, { 1,1,1,1,1,0}, { 1,1,1,1,1,0}, { 1,1,1,1,1,0}, { 0,0,0,0,0,0} }; mod_qos-10.28/tools/src/qsrotate.c0000644000000000000020000003075012264072142015414 0ustar rootbin /** * Utilities for the quality of service module mod_qos. * * Log rotation tool. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qsrotate.c,v 1.23 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "qs_util.h" #define BUFSIZE 65536 #define HUGE_STR 1024 /* global variables used by main and support thread */ static int m_force_rotation = 0; static time_t m_tLogEnd = 0; static time_t m_tRotation = 86400; /* default are 24h */ static int m_nLogFD = -1; static int m_generations = -1; static char *m_file_name = NULL; static long m_messages = 0; static char *m_cmd = NULL; static int m_compress = 0; static int m_stdout = 0; static long m_counter = 0; static long m_limit = 2147483648 - (128 * 1024); static int m_offset = 0; static int m_offset_enabled = 0; static void usage(char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - a log rotation tool (similar to Apache's rotatelogs).\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -o [-s [-t ]] [-f] [-z] [-g ] [-u ] [-p]\n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, "%s reads from stdin (piped log) and writes the data to the provided\n", cmd); qs_man_print(man, "file rotating the file after the specified time.\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -o \n"); if(man) printf("\n"); qs_man_print(man, " Output log file to write the data to (use an absolute path).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -s \n"); if(man) printf("\n"); qs_man_print(man, " Rotation interval in seconds, default are 86400 seconds.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -t \n"); if(man) printf("\n"); qs_man_print(man, " Offset to UTC (enables also DST support), default is 0.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -b \n"); if(man) printf("\n"); qs_man_print(man, " File size limitation (default are %ld bytes).\n", m_limit); if(man) printf("\n.TP\n"); qs_man_print(man, " -f\n"); if(man) printf("\n"); qs_man_print(man, " Forced log rotation even no data is written.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -z\n"); if(man) printf("\n"); qs_man_print(man, " Compress (gzip) the rotated file.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -g \n"); if(man) printf("\n"); qs_man_print(man, " Generations (number of files to keep).\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -u \n"); if(man) printf("\n"); qs_man_print(man, " Become another user, e.g. www-data.\n"); if(man) printf("\n.TP\n"); qs_man_print(man, " -p\n"); if(man) printf("\n"); qs_man_print(man, " Writes data also to stdout (for piped logging).\n"); printf("\n"); if(man) { printf(".SH EXAMPLE\n"); } else { printf("Example:\n"); } qs_man_println(man, " TransferLog \"|%s -f -z -g 3 -o /dest/file -s 86400\"\n", cmd); printf("\n"); qs_man_print(man, "The name of the rotated file will be /dest/filee.YYYYmmddHHMMSS\n"); qs_man_print(man, "where YYYYmmddHHMMSS is the system time at which the data has been\n"); qs_man_print(man, "rotated.\n"); printf("\n"); if(man) { printf(".SH NOTE\n"); } else { printf("Note:\n"); } qs_man_print(man, " Each %s instance must use an individual file.\n", cmd); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qssign(1), qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } static time_t get_now() { time_t now = time(NULL); if(m_offset_enabled) { struct tm lcl = *localtime(&now); if(lcl.tm_isdst) { now += 3600; } now += m_offset; } return now; } static int openFile(const char *cmd, const char *file_name) { int m_nLogFD = open(file_name, O_WRONLY | O_CREAT | O_APPEND, 0660); /* error while opening log file */ if(m_nLogFD < 0) { fprintf(stderr,"[%s]: ERROR, failed to open file <%s>\n", cmd, file_name); } return m_nLogFD; } /** * Compress method called by a child process (forked) * used to compress the rotated file. * * @param cmd Command name (used when logging errors) * @param arch Path to the file to compress. File gets renamed to .gz */ static void compressThread(const char *cmd, const char *arch) { gzFile *outfp; int infp; char dest[HUGE_STR+20]; char buf[HUGE_STR]; int len; snprintf(dest, sizeof(dest), "%s.gz", arch); /* low prio */ if(nice(10) == -1) { fprintf(stderr, "[%s]: WARNING, failed to change nice value: %s\n", cmd, strerror(errno)); } if((infp = open(arch, O_RDONLY)) == -1) { /* failed to open file, can't compress it */ fprintf(stderr,"[%s]: ERROR, could not open file for compression <%s>\n", cmd, arch); return; } if((outfp = gzopen(dest,"wb")) == NULL) { fprintf(stderr,"[%s]: ERROR, could not open file for compression <%s>\n", cmd, dest); close(infp); return; } while((len = read(infp, buf, sizeof(buf))) > 0) { gzwrite(outfp, buf, len); } gzclose(outfp); close(infp); /* done, delete the old file */ unlink(arch); } void sigchild(int signo) { pid_t pid; int stat; while((pid=waitpid(-1,&stat,WNOHANG)) > 0) { } } /** * Rotates a file * * @param cmd Command name to be used in log messages * @param now * @param file_name Name of the file to rotate (rename) * @param messages Error message if rotation was not successful */ static void rotate(const char *cmd, time_t now, const char *file_name, long *messages) { int rc; char arch[HUGE_STR+20]; char tmb[20]; struct tm *ptr = localtime(&now); strftime(tmb, sizeof(tmb), "%Y%m%d%H%M%S", ptr); snprintf(arch, sizeof(arch), "%s.%s", file_name, tmb); /* set next rotation time */ m_tLogEnd = ((now / m_tRotation) * m_tRotation) + m_tRotation; // reset byte counter m_counter = 0; /* rename current file */ if(m_nLogFD >= 0) { close(m_nLogFD); rename(file_name, arch); } /* open new file */ m_nLogFD = openFile(cmd, file_name); if(m_nLogFD < 0) { /* opening a new file has failed! try to reopen and clear the last file */ char msg[HUGE_STR]; snprintf(msg, sizeof(msg), "ERROR while writing to file, %ld messages lost\n", *messages); fprintf(stderr,"[%s]: ERROR, while writing to file <%s>\n", cmd, file_name); rename(arch, file_name); m_nLogFD = openFile(cmd, file_name); if(m_nLogFD > 0) { rc = ftruncate(m_nLogFD, 0); rc = write(m_nLogFD, msg, strlen(msg)); } } else { *messages = 0; if(m_compress || (m_generations != -1)) { signal(SIGCHLD,sigchild); if(fork() == 0) { if(m_compress) { compressThread(cmd, arch); } if(m_generations != -1) { qs_deleteOldFiles(file_name, m_generations); } exit(0); } } } } /** * Separate thread which initiates file rotation even no * log data is written. * * @param argv (not used) */ static void *forcedRotationThread(void *argv) { time_t now; time_t n; while(1) { qs_csLock(); now = get_now(); if(now > m_tLogEnd) { rotate(m_cmd, now, m_file_name, &m_messages); } qs_csUnLock(); now = get_now(); n = 1 + m_tLogEnd - now; sleep(n); } return NULL; } int main(int argc, char **argv) { char *username = NULL; int rc; char buf[BUFSIZE]; int nRead, nWrite; time_t now; pthread_attr_t *tha = NULL; pthread_t tid; char *m_cmd = strrchr(argv[0], '/'); if(m_cmd == NULL) { m_cmd = argv[0]; } else { m_cmd++; } while(argc >= 1) { if(strcmp(*argv,"-o") == 0) { if (--argc >= 1) { m_file_name = *(++argv); } } else if(strcmp(*argv,"-u") == 0) { if (--argc >= 1) { username = *(++argv); } } else if(strcmp(*argv,"-s") == 0) { if (--argc >= 1) { m_tRotation = atoi(*(++argv)); } } else if(strcmp(*argv,"-t") == 0) { if (--argc >= 1) { m_offset = atoi(*(++argv)); m_offset = m_offset * 3600; m_offset_enabled = 1; } } else if(strcmp(*argv,"-g") == 0) { if (--argc >= 1) { m_generations = atoi(*(++argv)); } } else if(strcmp(*argv,"-b") == 0) { if (--argc >= 1) { m_limit = atoi(*(++argv)); } } else if(strcmp(*argv,"-z") == 0) { m_compress = 1; } else if(strcmp(*argv,"-p") == 0) { m_stdout = 1; } else if(strcmp(*argv,"-f") == 0) { m_force_rotation = 1; } else if(strcmp(*argv,"-h") == 0) { usage(m_cmd, 0); } else if(strcmp(*argv,"--help") == 0) { usage(m_cmd, 0); } else if(strcmp(*argv,"-?") == 0) { usage(m_cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(m_cmd, 1); } argc--; argv++; } if(m_file_name == NULL) usage(m_cmd, 0); if(m_limit < (1024 * 1024)) usage(m_cmd, 0); if(username && getuid() == 0) { struct passwd *pwd = getpwnam(username); uid_t uid, gid; if(pwd == NULL) { fprintf(stderr,"[%s]: ERROR, unknown user id %s\n", m_cmd, username); exit(1); } uid = pwd->pw_uid; gid = pwd->pw_gid; setgid(gid); setuid(uid); if(getuid() != uid) { fprintf(stderr,"[%s]: ERROR, setuid failed (%s,%d)\n", m_cmd, username, uid); exit(1); } if(getgid() != gid) { fprintf(stderr,"[%s]: ERROR, setgid failed (%d)\n", m_cmd, gid); exit(1); } } /* set next rotation time */ now = get_now(); m_tLogEnd = ((now / m_tRotation) * m_tRotation) + m_tRotation; /* open file */ m_nLogFD = openFile(m_cmd, m_file_name); if(m_nLogFD < 0) { /* startup did not success */ exit(2); } if(m_force_rotation) { qs_csInitLock(); pthread_create(&tid, tha, forcedRotationThread, NULL); } for(;;) { nRead = read(0, buf, sizeof buf); if(nRead == 0) exit(3); if(nRead < 0) if(errno != EINTR) exit(4); if(m_force_rotation) { qs_csLock(); } m_counter += nRead; now = get_now(); /* write data if we have a file handle (else continue but drop log data, re-try to open the file at next rotation time) */ if(m_nLogFD >= 0) { do { nWrite = write(m_nLogFD, buf, nRead); if(m_stdout) { printf("%.*s", nRead, buf); } } while (nWrite < 0 && errno == EINTR); } if(nWrite != nRead) { m_messages++; if(m_nLogFD >= 0) { char msg[HUGE_STR]; snprintf(msg, sizeof(msg), "ERROR while writing to file, %ld messages lost\n", m_messages); /* error while writing data, try to delete the old file and continue ... */ rc = ftruncate(m_nLogFD, 0); rc = write(m_nLogFD, msg, strlen(msg)); } } else { m_messages++; } if((now > m_tLogEnd) || (m_counter > m_limit)) { /* rotate! */ rotate(m_cmd, now, m_file_name, &m_messages); } if(m_force_rotation) { qs_csUnLock(); } } return 0; } mod_qos-10.28/tools/src/Makefile.in0000664000000000000020000004551112264072142015456 0ustar rootbin# Makefile.in generated by automake 1.11.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # $Id: Makefile.am,v 1.12 2012/09/19 18:48:51 pbuchbinder Exp $ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = qsfilter2$(EXEEXT) qslog$(EXEEXT) qspng$(EXEEXT) \ qsrotate$(EXEEXT) qssign$(EXEEXT) qstail$(EXEEXT) \ qsgrep$(EXEEXT) qsexec$(EXEEXT) qscheck$(EXEEXT) \ qsgeo$(EXEEXT) qslogger$(EXEEXT) qshead$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_qscheck_OBJECTS = qscheck.$(OBJEXT) qs_util.$(OBJEXT) qscheck_OBJECTS = $(am_qscheck_OBJECTS) qscheck_LDADD = $(LDADD) am_qsexec_OBJECTS = qsexec.$(OBJEXT) qs_util.$(OBJEXT) qsexec_OBJECTS = $(am_qsexec_OBJECTS) qsexec_LDADD = $(LDADD) am_qsfilter2_OBJECTS = qsfilter2.$(OBJEXT) qs_util.$(OBJEXT) qsfilter2_OBJECTS = $(am_qsfilter2_OBJECTS) qsfilter2_LDADD = $(LDADD) am_qsgeo_OBJECTS = qsgeo.$(OBJEXT) qs_util.$(OBJEXT) qsgeo_OBJECTS = $(am_qsgeo_OBJECTS) qsgeo_LDADD = $(LDADD) am_qsgrep_OBJECTS = qsgrep.$(OBJEXT) qs_util.$(OBJEXT) qsgrep_OBJECTS = $(am_qsgrep_OBJECTS) qsgrep_LDADD = $(LDADD) am_qshead_OBJECTS = qshead.$(OBJEXT) qs_util.$(OBJEXT) qshead_OBJECTS = $(am_qshead_OBJECTS) qshead_LDADD = $(LDADD) am_qslog_OBJECTS = qslog.$(OBJEXT) qs_util.$(OBJEXT) qslog_OBJECTS = $(am_qslog_OBJECTS) qslog_LDADD = $(LDADD) am_qslogger_OBJECTS = qslogger.$(OBJEXT) qs_util.$(OBJEXT) qslogger_OBJECTS = $(am_qslogger_OBJECTS) qslogger_LDADD = $(LDADD) am_qspng_OBJECTS = qspng.$(OBJEXT) qs_util.$(OBJEXT) qspng_OBJECTS = $(am_qspng_OBJECTS) qspng_LDADD = $(LDADD) am_qsrotate_OBJECTS = qsrotate.$(OBJEXT) qs_util.$(OBJEXT) qsrotate_OBJECTS = $(am_qsrotate_OBJECTS) qsrotate_LDADD = $(LDADD) am_qssign_OBJECTS = qssign.$(OBJEXT) qs_util.$(OBJEXT) qssign_OBJECTS = $(am_qssign_OBJECTS) qssign_LDADD = $(LDADD) am_qstail_OBJECTS = qstail.$(OBJEXT) qs_util.$(OBJEXT) qstail_OBJECTS = $(am_qstail_OBJECTS) qstail_LDADD = $(LDADD) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(qscheck_SOURCES) $(qsexec_SOURCES) $(qsfilter2_SOURCES) \ $(qsgeo_SOURCES) $(qsgrep_SOURCES) $(qshead_SOURCES) \ $(qslog_SOURCES) $(qslogger_SOURCES) $(qspng_SOURCES) \ $(qsrotate_SOURCES) $(qssign_SOURCES) $(qstail_SOURCES) DIST_SOURCES = $(qscheck_SOURCES) $(qsexec_SOURCES) \ $(qsfilter2_SOURCES) $(qsgeo_SOURCES) $(qsgrep_SOURCES) \ $(qshead_SOURCES) $(qslog_SOURCES) $(qslogger_SOURCES) \ $(qspng_SOURCES) $(qsrotate_SOURCES) $(qssign_SOURCES) \ $(qstail_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ qsfilter2_SOURCES = \ qsfilter2.c qs_util.c qslog_SOURCES = \ qslog.c qs_util.c qspng_SOURCES = \ qspng.c qs_util.c qsrotate_SOURCES = \ qsrotate.c qs_util.c qssign_SOURCES = \ qssign.c qs_util.c qstail_SOURCES = \ qstail.c qs_util.c qshead_SOURCES = \ qshead.c qs_util.c qsgrep_SOURCES = \ qsgrep.c qs_util.c qsexec_SOURCES = \ qsexec.c qs_util.c qscheck_SOURCES = \ qscheck.c qs_util.c qsgeo_SOURCES = \ qsgeo.c qs_util.c qslogger_SOURCES = \ qslogger.c qs_util.c all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) qscheck$(EXEEXT): $(qscheck_OBJECTS) $(qscheck_DEPENDENCIES) $(EXTRA_qscheck_DEPENDENCIES) @rm -f qscheck$(EXEEXT) $(LINK) $(qscheck_OBJECTS) $(qscheck_LDADD) $(LIBS) qsexec$(EXEEXT): $(qsexec_OBJECTS) $(qsexec_DEPENDENCIES) $(EXTRA_qsexec_DEPENDENCIES) @rm -f qsexec$(EXEEXT) $(LINK) $(qsexec_OBJECTS) $(qsexec_LDADD) $(LIBS) qsfilter2$(EXEEXT): $(qsfilter2_OBJECTS) $(qsfilter2_DEPENDENCIES) $(EXTRA_qsfilter2_DEPENDENCIES) @rm -f qsfilter2$(EXEEXT) $(LINK) $(qsfilter2_OBJECTS) $(qsfilter2_LDADD) $(LIBS) qsgeo$(EXEEXT): $(qsgeo_OBJECTS) $(qsgeo_DEPENDENCIES) $(EXTRA_qsgeo_DEPENDENCIES) @rm -f qsgeo$(EXEEXT) $(LINK) $(qsgeo_OBJECTS) $(qsgeo_LDADD) $(LIBS) qsgrep$(EXEEXT): $(qsgrep_OBJECTS) $(qsgrep_DEPENDENCIES) $(EXTRA_qsgrep_DEPENDENCIES) @rm -f qsgrep$(EXEEXT) $(LINK) $(qsgrep_OBJECTS) $(qsgrep_LDADD) $(LIBS) qshead$(EXEEXT): $(qshead_OBJECTS) $(qshead_DEPENDENCIES) $(EXTRA_qshead_DEPENDENCIES) @rm -f qshead$(EXEEXT) $(LINK) $(qshead_OBJECTS) $(qshead_LDADD) $(LIBS) qslog$(EXEEXT): $(qslog_OBJECTS) $(qslog_DEPENDENCIES) $(EXTRA_qslog_DEPENDENCIES) @rm -f qslog$(EXEEXT) $(LINK) $(qslog_OBJECTS) $(qslog_LDADD) $(LIBS) qslogger$(EXEEXT): $(qslogger_OBJECTS) $(qslogger_DEPENDENCIES) $(EXTRA_qslogger_DEPENDENCIES) @rm -f qslogger$(EXEEXT) $(LINK) $(qslogger_OBJECTS) $(qslogger_LDADD) $(LIBS) qspng$(EXEEXT): $(qspng_OBJECTS) $(qspng_DEPENDENCIES) $(EXTRA_qspng_DEPENDENCIES) @rm -f qspng$(EXEEXT) $(LINK) $(qspng_OBJECTS) $(qspng_LDADD) $(LIBS) qsrotate$(EXEEXT): $(qsrotate_OBJECTS) $(qsrotate_DEPENDENCIES) $(EXTRA_qsrotate_DEPENDENCIES) @rm -f qsrotate$(EXEEXT) $(LINK) $(qsrotate_OBJECTS) $(qsrotate_LDADD) $(LIBS) qssign$(EXEEXT): $(qssign_OBJECTS) $(qssign_DEPENDENCIES) $(EXTRA_qssign_DEPENDENCIES) @rm -f qssign$(EXEEXT) $(LINK) $(qssign_OBJECTS) $(qssign_LDADD) $(LIBS) qstail$(EXEEXT): $(qstail_OBJECTS) $(qstail_DEPENDENCIES) $(EXTRA_qstail_DEPENDENCIES) @rm -f qstail$(EXEEXT) $(LINK) $(qstail_OBJECTS) $(qstail_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qs_util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qscheck.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qsexec.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qsfilter2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qsgeo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qsgrep.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qshead.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qslog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qslogger.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qspng.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qsrotate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qssign.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qstail.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: mod_qos-10.28/tools/src/qs_util.c0000644000000000000020000002470612264072142015236 0ustar rootbin/** * Utilities for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qs_util.c,v 1.13 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include #include #include "qs_util.h" /* ---------------------------------- * global stat counter * ---------------------------------- */ static time_t m_qs_expiration = 60 * 10; /* mutex for counter access */ static pthread_mutex_t m_qs_lock_cs; /* online/offline mode */ static int m_qs_offline = 0; /* internal clock for offline analysis * stores time in seconds */ static time_t m_qs_virtualSystemTime = 0; /* ---------------------------------- * functions * ---------------------------------- */ /** * man: * - escape special chars, like "\" and "-" * - wipe leading spaces * - wipe tailing LF */ void qs_man_print(int man, const char *fmt, ...) { char bufin[4096]; char bufout[4096]; va_list args; int i = 0; int j = 0; memset(bufin, 0, 4096); va_start(args, fmt); vsprintf(bufin, fmt, args); if(man) { // wipe leading spaces // while(bufin[i] == ' ' && bufin[i+1] == ' ') { while(bufin[i] == ' ') { i++; } } while(bufin[i] && j < 4000) { // escape "\\" and "-" for man page if(man && (bufin[i] == '\\' || bufin[i] == '-')) { bufout[j] = '\\'; j++; } if(bufin[i] == '\n') { if(man) { // skip LF for man page i++; } else { // keep LF bufout[j] = bufin[i]; i++; j++; } } else { // standard char bufout[j] = bufin[i]; i++; j++; } } bufout[j] = '\0'; printf("%s", bufout); if(man) { printf(" "); } } // escape only void qs_man_println(int man, const char *fmt, ...) { char bufin[4096]; char bufout[4096]; va_list args; int i = 0; int j = 0; memset(bufin, 0, 4096); va_start(args, fmt); vsprintf(bufin, fmt, args); while(bufin[i] && j < 4000) { // escape "\\" and "-" for man page if(man && (bufin[i] == '\\' || bufin[i] == '-')) { bufout[j] = '\\'; j++; } // standard char bufout[j] = bufin[i]; i++; j++; } bufout[j] = '\0'; printf("%s", bufout); } char *qs_CMD(const char *cmd) { char *buf = calloc(1024, 1); int i = 0; while(cmd[i] && i < 1023) { buf[i] = toupper(cmd[i]); i++; } buf[i] = '\0'; return buf; } /* io --------------------------------------------------------- */ /* * reads a line from stdin * * @param s Buffer to write line to * @param n Length of the buffer * @return 0 on EOF, or 1 if there is more data to read */ int qs_getLine(char *s, int n) { int i = 0; while (1) { s[i] = (char)getchar(); if(s[i] == EOF) return 0; if (s[i] == CR) { s[i] = getchar(); } if ((s[i] == 0x4) || (s[i] == LF) || (i == (n - 1))) { s[i] = '\0'; return 1; } ++i; } } /* * reads a line from file * * @param s Buffer to write line to * @param n Length of the buffer * @return 0 on EOF, or 1 if there is more data to read */ int qs_getLinef(char *s, int n, FILE *f) { register int i = 0; while (1) { s[i] = (char) fgetc(f); if (s[i] == CR) { s[i] = fgetc(f); } if ((s[i] == 0x4) || (s[i] == LF) || (i == (n - 1))) { s[i] = '\0'; return (feof(f) ? 1 : 0); } ++i; } } /* time ------------------------------------------------------- */ /* * We implement our own time which is either * the system time (real time) or the time from * the access log lines (offline) if m_qs_offline * has been set (use qs_set2OfflineMode() to enable * the offline mode). * * @param tme Set to the time since the Epoch in seconds. */ void qs_time(time_t *tme) { if(m_qs_offline) { /* use virtual time from the access log */ *tme = m_qs_virtualSystemTime; } else { time(tme); } } /** * Sets time measurement (qs_time()) to offline mode. */ void qs_set2OfflineMode() { m_qs_offline = 1; } /* * Updates the virtual time. */ void qs_setTime(time_t tme) { m_qs_virtualSystemTime = tme; } /* synchronisation -------------------------------------------- */ /* * locks all counter */ void qs_csLock() { pthread_mutex_lock(&m_qs_lock_cs); } /* * unlocks all counter */ void qs_csUnLock() { pthread_mutex_unlock(&m_qs_lock_cs); } /* * init locks */ void qs_csInitLock() { pthread_mutex_init(&m_qs_lock_cs, NULL); } /* events ----------------------------------------------------- */ /* * sets the expiration for events */ void qs_setExpiration(time_t sec) { m_qs_expiration = sec; } /* * creates a new event entry */ qs_event_t *qs_newEvent(char *id) { qs_event_t *ev = calloc(sizeof(qs_event_t), 1); ev->id = calloc(strlen(id) + 1, 1); strcpy(ev->id, id); qs_time(&ev->time); ev->count = 1; return ev; } /* * deletes an event */ void qs_freeEvent(qs_event_t *ev) { free(ev->id); free(ev); } /** * Inserts an event entry * * @param l_qs_event Pointer to the event list. * @param id Identifer, e.g. IP address or user tracking cookie * * @return event counter (number of updates) for the provided id */ int qs_insertEvent(qs_event_t **l_qs_event, char *id) { qs_event_t *lp = *l_qs_event; /** current entry to process */ qs_event_t *lpl = lp; time_t gmt_time; qs_time(&gmt_time); if(*l_qs_event == NULL) { *l_qs_event = qs_newEvent(id); return 1; } while(lp) { /* delete expired event */ if(lp->time < (gmt_time - m_qs_expiration)) { qs_event_t *tmp = lp; if(lpl == lp) { /* first element */ lpl = lp->next; lp = lp->next; *l_qs_event = lpl; } else { lpl->next = lp->next; lp = lp->next; } qs_freeEvent(tmp); } /* update time of existing event */ if((lp != NULL) && (strcmp(lp->id, id) == 0)) { qs_time(&lp->time); lp->count++; return lp->count; } if(lp != NULL) { lpl = lp; lp = lp->next; } } /* not found, insert new event */ if(lpl == NULL) { /* list has become empty */ lpl = qs_newEvent(id); *l_qs_event = lpl; } else { lpl->next = qs_newEvent(id); } return 1; } /** * Deletes the specified event. * * @param l_qs_event Pointer to the event list. * @param id Identifer, e.g. IP address or user tracking cookie */ void qs_deleteEvent(qs_event_t **l_qs_event, char *id) { qs_event_t *lp = *l_qs_event; qs_event_t *lpl = lp; if(*l_qs_event == NULL) { return; } while(lp) { if(strcmp(lp->id, id) == 0) { qs_event_t *tmp = lp; if(lpl == lp) { /* first element */ lpl = lp->next; lp = lp->next; *l_qs_event = lpl; } else { lpl->next = lp->next; lp = lp->next; } qs_freeEvent(tmp); return; } if(lp != NULL) { lpl = lp; lp = lp->next; } } } /** * Runs garbage collection (deletes expired events) * * @param l_qs_event Pointer to the event list. */ void qs_GCEvent(qs_event_t **l_qs_event) { qs_event_t *lp = *l_qs_event; qs_event_t *lpl = lp; time_t gmt_time; qs_time(&gmt_time); if(*l_qs_event == NULL) { return; } while(lp) { /* delete expired event */ if(lp->time < (gmt_time - m_qs_expiration)) { qs_event_t *tmp = lp; if(lpl == lp) { /* first element */ lpl = lp->next; lp = lp->next; *l_qs_event = lpl; } else { lpl->next = lp->next; lp = lp->next; } qs_freeEvent(tmp); } if(lp != NULL) { lpl = lp; lp = lp->next; } } } /** * Returns the number of events in the list * * @param id Identifer, e.g. IP address or user tracking cookie * @return Number of entries */ long qs_countEvent(qs_event_t **l_qs_event) { qs_event_t *lp = *l_qs_event; qs_event_t *lpl = lp; long count = 0; time_t gmt_time; qs_time(&gmt_time); while(lp) { /* delete expired entries */ if(lp->time < (gmt_time - m_qs_expiration)) { qs_event_t *tmp = lp; if(lpl == lp) { /* first element */ lpl = lp->next; lp = lp->next; *l_qs_event = lpl; } else { lpl->next = lp->next; lp = lp->next; } qs_freeEvent(tmp); } if(lp != NULL) { lpl = lp; lp = lp->next; count++; } } return count; } /* logs ------------------------------------------------------- */ /** * Keeps only the specified number of files * * @param file_name Absolute file name * @param generations Number of files to keep */ void qs_deleteOldFiles(const char *file_name, int generations) { char dirname[QS_HUGE_STR]; char *p; strcpy(dirname, file_name); p = strrchr(dirname, '/'); if(strlen(file_name) > (QS_HUGE_STR - 10)) { // invalid file length return; } if(p) { DIR *dir; p[0] = '\0'; p++; dir = opendir(dirname); if(dir) { int num = 0; struct dirent *de; char filename[QS_HUGE_STR]; snprintf(filename, sizeof(filename), "%s.20", p); /* determine how many files to delete */ while((de = readdir(dir)) != 0) { if(de->d_name && (strncmp(de->d_name, filename, strlen(filename)) == 0)) { num++; } } /* delete the oldest files (assumes they are ordered by their creation date) */ while(num > generations) { char old[QS_HUGE_STR]; old[0] = '\0'; rewinddir(dir); while((de = readdir(dir)) != 0) { if(de->d_name && (strncmp(de->d_name, filename, strlen(filename)) == 0)) { if(strcmp(old, de->d_name) > 0) { snprintf(old, sizeof(old), "%s", de->d_name); } else { if(old[0] == '\0') { snprintf(old, sizeof(old), "%s", de->d_name); } } } } { /* build abs path and delete it */ char unl[QS_HUGE_STR]; snprintf(unl, sizeof(unl), "%s/%s", dirname, old); unlink(unl); } num--; } closedir(dir); } } } mod_qos-10.28/tools/src/qs_util.h0000664000000000000020000000465512264072142015246 0ustar rootbin/** * Utilities for the quality of service module mod_qos. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ #ifndef QS_UTIL_H #define QS_UTIL_H /* ---------------------------------- * version info * ---------------------------------- */ static const char man_version[] = "10.28"; static const char man_date[] = "January 2014"; /* ---------------------------------- * definitions * ---------------------------------- */ #define MAX_LINE 32768 #define QS_HUGE_STR 2048 #define CR 13 #define LF 10 /* ---------------------------------- * structures * ---------------------------------- */ typedef struct qs_event_st { char *id; /**< id, e.g. ip address or client correlator string */ time_t time; /**< last update, used for expiration */ int count; /**< event count/updates */ struct qs_event_st *next; } qs_event_t; /* ---------------------------------- * functions * ---------------------------------- */ char *qs_CMD(const char *cmd); void qs_man_print(int man, const char *fmt, ...); void qs_man_println(int man, const char *fmt, ...); /* io */ int qs_getLine(char *s, int n); int qs_getLinef(char *s, int n, FILE *f); /* time */ void qs_time(time_t *tme); void qs_set2OfflineMode(); void qs_setTime(time_t tme); /* synchronisation */ void qs_csInitLock(); void qs_csLock(); void qs_csUnLock(); /* events */ void qs_setExpiration(time_t sec); int qs_insertEvent(qs_event_t **l_qs_event, char *id); long qs_countEvent(qs_event_t **l_qs_event); void qs_deleteEvent(qs_event_t **l_qs_event, char *id); void qs_GCEvent(qs_event_t **l_qs_event); /* log */ void qs_deleteOldFiles(const char *file_name, int generations); #endif mod_qos-10.28/tools/src/qscheck.c0000644000000000000020000002537212264072142015177 0ustar rootbin/** * Utilities for the quality of service module mod_qos. * * Monitor testing tcp connectivity to servers used by mod_proxy. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qscheck.c,v 1.8 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include #include #include #include #include "qs_util.h" //#include #define CR 13 #define LF 10 #define QS_TIMEOUT 2 #define QS_PROXYP "proxypass " #define QS_PROXYP_TAB "proxypass\t" #define QS_PROXYPR "proxypassreverse " #define QS_PROXYPR_TAB "proxypassreverse\t" #define QS_PROXYR "proxyremote " #define QS_PROXYR_TAB "proxyremote\t" #define QS_INCLUDE "nclude " #define QS_INCLUDE_TAB "nclude\t" #define QS_SERVERROOT "ServerRoot " #define QS_SERVERROOT_TAB "ServerRoot\t" static int m_verbose = 0; static char ServerRoot[1024]; static char *checkedHosts = NULL; /** * Prints usage text */ static void usage(char *cmd) { printf("\n"); printf("Monitor programm testing the TCP connectivity to servers.\n"); printf("\n"); printf("Usage: %s -c [-v]\n", cmd); printf("\n"); printf("Verifies the connectivity to the server referred either\n"); printf("by the ProxyPass, ProxyPassReverse, or ProxyReverse\n"); printf("directive used by mod_proxy.\n"); printf("\n"); printf("You may alternatively use \"%s -i :\" if\n", cmd); printf("you want to check the TCP connectivity to a single host.\n"); printf("\n"); printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); exit(1); } /** * Opens a tcp connection */ static int ping(unsigned long address, int port) { int status = 0; struct sockaddr_in addr; int skt; addr.sin_addr.s_addr = address; addr.sin_port = htons(port); addr.sin_family = PF_INET; skt = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); if(skt != -1) { int sflags = fcntl(skt,F_GETFL,0); if(sflags >=0) { /* set non blocking socket */ if(fcntl(skt,F_SETFL,sflags|O_NONBLOCK) >=0) { /* this connect returns immediately */ int ret = connect(skt, (struct sockaddr*)&addr, sizeof(struct sockaddr_in)); if(fcntl(skt,F_SETFL,sflags) >=0) { socklen_t lon = sizeof(int); int valopt; fd_set fd_w; struct timeval tme; tme.tv_sec = QS_TIMEOUT; tme.tv_usec = 0; FD_ZERO(&fd_w); FD_SET(skt, &fd_w); /* select returns -1 on timeout, else 1 (connected or refused) */ if(select(FD_SETSIZE, NULL, &fd_w, NULL, &tme) > 0) { /* check the status of the socket in order to distinguish between connected or refused */ if(getsockopt(skt, SOL_SOCKET, SO_ERROR, (void*)(&valopt), &lon) >= 0) { if(!valopt) { /* UP ! */ status = 1; } } } } } } } return status; } /** * resolves host address */ static unsigned long getAddress(const char *hostname) { int ip = 1; int i = 0; unsigned long address = 0L; struct hostent *hoste; for(i = 0; i < (int) strlen(hostname); i++) { if((!isdigit((int) hostname[i])) && (hostname[i] != '.')) { ip = 0; break; } } if (ip) { address = inet_addr(hostname); if(address == -1) { return 0L; } } else { hoste = gethostbyname(hostname); if (!hoste || !hoste->h_addr_list[ 0 ]) { /* can't resolve host name */ return 0L; } address = ((struct in_addr*)hoste->h_addr_list[ 0 ])->s_addr; } return address; } /* * Checks a single host (parse host string, resolve address, ping). */ static int checkHost(const char *cmd, const char *filename, int ln, char *abs_url) { int status = 1; char *schema = abs_url; char *host = NULL; char *ports = NULL; int port = 0; char hp[1024]; unsigned long address; char *x = strstr(abs_url, "://"); if(x == NULL) { if(m_verbose) { fprintf(stderr,"[%s]: ERROR, wrong syntax <%s> in %s on line %d\n", cmd, abs_url, filename, ln); } return 0; } x[0] = '\0'; x = x + strlen("://"); host = x; ports = strchr(x, ':'); if(ports != NULL) { ports[0] = '\0'; ports++; x = strchr(ports, '/'); if(x == NULL) { int i; x = ports; for(i=0;(x[i] != ' ') && (x[i] != '\t') && (x[i] != '\0'); i++); x[i] = '\0'; } else { x[0] = '\0'; } port = atoi(ports); } else { ports = strchr(x, '/'); if(ports == NULL) { int i; for(i=0;(x[i] != ' ') && (x[i] != '\t') && (x[i] != '\0'); i++); x[i] = '\0'; } else { ports[0] = '\0'; } if(strcmp(schema, "http") == 0) { port = 80; } else { port = 443; } } /* check each host only once */ snprintf(hp, sizeof(hp), "#%s:%d#", host, port); if(checkedHosts && strstr(checkedHosts, hp) != NULL) { /* already checked */ return 1; } if(checkedHosts == NULL) { checkedHosts = calloc(1, strlen(hp) + 1); strcpy(checkedHosts, hp); } else { int pl = strlen(checkedHosts) +strlen(hp) + 1; char *p = calloc(1, pl); snprintf(p, pl, "%s%s", checkedHosts, hp); free(checkedHosts); checkedHosts = p; } /* resolve address */ address = getAddress(host); if(address == 0L) { fprintf(stderr,"[%s]: ERROR, could not resolve hostname %s\n", cmd, host); return -1; } /* check connection */ if(ping(address, port)) { if(m_verbose) { printf("[%s]: %s:%d Up\n", cmd, host, port); } return 1; } else { printf("[%s]: %s:%d Down\n", cmd, host, port); return 0; } } /** * Open file and check every ProxyPass* or ProxyR* entry. * - follows include ... directive * - determines serverroot */ static int checkFile(const char *cmd, const char *filename) { int status = 1; int ln = 0; char line[1024]; FILE *f = fopen(filename, "r"); if(f == NULL) { if(ServerRoot[0] != '\0') { char fqfile[2048]; snprintf(fqfile, sizeof(fqfile), "%s/%s", ServerRoot, filename); f = fopen(fqfile, "r"); } } if(f == NULL) { fprintf(stderr,"[%s]: ERROR, could not open file %s\n", cmd, filename); return 0; } while(!qs_getLinef(line, sizeof(line), f)) { char *command = NULL; int cmd_len = 0; int to = 0; while(line[to]) { line[to] = tolower(line[to]); to++; } ln++; command = strstr(line, QS_PROXYP); cmd_len = strlen(QS_PROXYP); if(command == NULL) command = strstr(line, QS_PROXYP_TAB); if(command == NULL) { command = strstr(line, QS_PROXYPR); cmd_len = strlen(QS_PROXYPR); } if(command == NULL) command = strstr(line, QS_PROXYPR_TAB); if(command == NULL) { command = strstr(line, QS_PROXYR); cmd_len = strlen(QS_PROXYR); } if(command == NULL) command = strstr(line, QS_PROXYR_TAB); if(command && strchr(line, '#') == 0) { /* command = cmd url schema://host[:port]/url */ char *abs_url = &command[cmd_len]; int i, j; /* get the url */ for(i=0;(abs_url[i] == ' ') || (abs_url[i] == '\t'); i++); abs_url = &abs_url[i]; /* skip url */ for(i=0;(abs_url[i] != ' ') && (abs_url[i] != '\t') && (abs_url[i] != '\0'); i++); abs_url = &abs_url[i]; /* get schema://host[:port]/url */ for(i=0;(abs_url[i] == ' ') || (abs_url[i] == '\t'); i++); abs_url = &abs_url[i]; /* ping */ if(abs_url && abs_url[0] != '\0' && abs_url[0] != '!') { status = status & checkHost(cmd, filename, ln, abs_url); } } else { /* include commands */ command = strstr(line, QS_INCLUDE); if(command == NULL) command = strstr(line, QS_INCLUDE_TAB); if(command && strchr(line, '#') == 0) { char *file = &command[strlen(QS_INCLUDE)]; int i, j; /* get the value */ for(i=0;(file[i] == ' ') || (file[i] == '\t'); i++); /* delete spaces at the end of the value */ if(&file[i] != '\0') { for(j=i+1;(file[j] != ' ') && (file[j] != '\t') && (file[j] != '\0'); j++); file[j] = '\0'; } file = &file[i]; status = status & checkFile(cmd, file); } else { /* server root */ command = strstr(line, QS_SERVERROOT); if(command == NULL) command = strstr(line, QS_SERVERROOT_TAB); if(command && strchr(line, '#') == 0) { char *sr = &command[strlen(QS_SERVERROOT)]; int i, j; /* get the value */ for(i=0;(sr[i] == ' ') || (sr[i] == '\t'); i++); /* delete spaces at the end of the value */ if(&sr[i] != '\0') { for(j=i+1;(sr[j] != ' ') && (sr[j] != '\t') && (sr[j] != '\0'); j++); sr[j] = '\0'; } strcpy(ServerRoot, &sr[i]); } } } } fclose(f); return status; } int main(int argc, char **argv) { char *config = NULL; char *cmd = strrchr(argv[0], '/'); char *single = NULL; int status = 1; if(cmd == NULL) { cmd = argv[0]; } else { cmd++; } ServerRoot[0] = '\0'; while(argc >= 1) { if(strcmp(*argv,"-c") == 0) { if (--argc >= 1) { config = *(++argv); } } else if(strcmp(*argv,"-i") == 0) { if (--argc >= 1) { single = *(++argv); } } else if(strcmp(*argv,"-v") == 0) { m_verbose = 1; } argc--; argv++; } if(single) { char *hostName = single; char *portNumber = strchr(single, ':'); if(portNumber) { unsigned long addr; int prt; portNumber[0] = '\0'; portNumber++; addr = getAddress(hostName); prt = atoi(portNumber); if(addr && prt) { if(ping(addr, prt)) { if(m_verbose) { printf("[%s]: %s:%d Up\n", cmd, hostName, prt); } status = 1; } else { printf("[%s]: %s:%d Down\n", cmd, hostName, prt); status = 0; } } else { // could not resolve fprintf(stderr,"[%s]: ERROR, unknown host/port\n", cmd); status = 0; } } else { // invalid input fprintf(stderr,"[%s]: ERROR, invalid format\n", cmd); status = 0; } } else { if(config == NULL) { usage(cmd); } status = checkFile(cmd, config); } if(status == 0) { fprintf(stderr,"[%s]: ERROR, check failed\n", cmd); exit(1); } printf("[%s]: OK, check successful\n", cmd); return 0; } mod_qos-10.28/tools/src/Makefile.am0000644000000000000020000000120612264072142015434 0ustar rootbin# $Id: Makefile.am,v 1.12 2012/09/19 18:48:51 pbuchbinder Exp $ bin_PROGRAMS=qsfilter2 qslog qspng qsrotate qssign qstail qsgrep qsexec qscheck qsgeo qslogger qshead qsfilter2_SOURCES= \ qsfilter2.c qs_util.c qslog_SOURCES= \ qslog.c qs_util.c qspng_SOURCES= \ qspng.c qs_util.c qsrotate_SOURCES= \ qsrotate.c qs_util.c qssign_SOURCES= \ qssign.c qs_util.c qstail_SOURCES= \ qstail.c qs_util.c qshead_SOURCES= \ qshead.c qs_util.c qsgrep_SOURCES= \ qsgrep.c qs_util.c qsexec_SOURCES= \ qsexec.c qs_util.c qscheck_SOURCES= \ qscheck.c qs_util.c qsgeo_SOURCES= \ qsgeo.c qs_util.c qslogger_SOURCES= \ qslogger.c qs_util.c mod_qos-10.28/tools/src/qshead.c0000644000000000000020000000712612264072142015020 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Utilities for the quality of service module mod_qos. * * Shows the beginning of a log file stopping at the provided pattern. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2012-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ static const char revision[] = "$Id: qshead.c,v 1.3 2014/01/09 08:13:07 pbuchbinder Exp $"; #include #include #include #include #include #include #include "qs_util.h" static void usage(char *cmd, int man) { if(man) { //.TH [name of program] [section number] [center footer] [left footer] [center header] printf(".TH %s 1 \"%s\" \"mod_qos utilities %s\" \"%s man page\"\n", qs_CMD(cmd), man_date, man_version, cmd); } printf("\n"); if(man) { printf(".SH NAME\n"); } qs_man_print(man, "%s - an utility reading from stdin and printing all" " lines to stdout until" " reaching the defined pattern.\n", cmd); printf("\n"); if(man) { printf(".SH SYNOPSIS\n"); } qs_man_print(man, "%s%s -p \n", man ? "" : "Usage: ", cmd); printf("\n"); if(man) { printf(".SH DESCRIPTION\n"); } else { printf("Summary\n"); } qs_man_print(man, " %s reads lines from stdin and prints them to stdout unitl a line contains\n", cmd); qs_man_print(man, " the specified pattern (literal string).\n"); printf("\n"); if(man) { printf(".SH OPTIONS\n"); } else { printf("Options\n"); } if(man) printf(".TP\n"); qs_man_print(man, " -p \n"); if(man) printf("\n"); qs_man_print(man, " Search pattern (literal string).\n"); printf("\n"); if(man) { printf(".SH SEE ALSO\n"); printf("qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1) qstail(1)\n"); printf(".SH AUTHOR\n"); printf("Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/\n"); } else { printf("See http://opensource.adnovum.ch/mod_qos/ for further details.\n"); } if(man) { exit(0); } else { exit(1); } } int main(int argc, const char * const argv[]) { char line[32768]; const char *pattern = NULL; char *cmd = strrchr(argv[0], '/'); int status = 0; if(cmd == NULL) { cmd = (char *)argv[0]; } else { cmd++; } argc--; argv++; while(argc >= 1) { if(strcmp(*argv,"-p") == 0) { if (--argc >= 1) { pattern = *(++argv); } } else if(strcmp(*argv,"-?") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"-help") == 0) { usage(cmd, 0); } else if(strcmp(*argv,"--man") == 0) { usage(cmd, 1); } argc--; argv++; } if(pattern == NULL) { usage(cmd, 0); } while(fgets(line, sizeof(line), stdin) != NULL) { printf("%s", line); if(strstr(line, pattern)) { return status; } } return status; } mod_qos-10.28/tools/man1/0000775000000000000020000000000012264072142013450 5ustar rootbinmod_qos-10.28/tools/man1/qssign.10000664000000000000020000000170312264072142015037 0ustar rootbin.TH QSSIGN 1 "January 2014" "mod_qos utilities 10.28" "qssign man page" .SH NAME qssign \- an utility to sign and verify the integrity of log data. .SH SYNOPSIS qssign \-s|S [\-e] [\-v] .SH DESCRIPTION qssign is a log data integrity check tool. It reads log data from stdin (pipe) and writes the signed data to stdout. .SH OPTIONS .TP \-s Passphrase used to calculate signature. .TP \-S Specifies a program which writes the passphrase to stdout. .TP \-e Writes end marker when stopping data signing. .TP \-v Verification mode checking the integrity of signed data. .SH EXAMPLE Sign: TransferLog "|/bin/qssign \-s password \-e |/bin/qsrotate \-o /var/log/apache/access_log" Verify: cat access_log | qssign \-s password \-v .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qsexec.10000664000000000000020000000313512264072142015024 0ustar rootbin.TH QSEXEC 1 "January 2014" "mod_qos utilities 10.28" "qsexec man page .SH NAME qsexec \- parses the data received via stdin and executes the defined command on a pattern match. .SH SYNOPSIS qsexec \-e [\-t :] [\-c []] [\-p] [\-u ] .SH DESCRIPTION qsexec reads log lines from stdin and searches for the defined pattern. It executes the defined command string on pattern match. .SH OPTIONS .TP \-e Specifes the search pattern causing an event which shall trigger the command. .TP \-t : Defines the number of pattern match within the the defined number of seconds in order to trigger the command execution. By default, every pattern match causes a command execution. .TP \-c [] Pattern which clears the event counter. Executes optionally a command if an event command has been executed before. .TP \-p Writes data also to stdout (for piped logging). .TP \-u Become another user, e.g. www\-data. .TP Defines the event command string where $0\-$9 are substituted by the submatches of the regular expression. .SH EXAMPLE Executes the deny.sh script providing the IP address of the client causing a mod_qos(031) messages whenever the log message appears 10 times within at most one minute: ErrorLog "|qsexec \-e 'mod_qos\\(031\\).*, c=([0\-9.]*)' \-t 10:60 '/bin/deny.sh $1'" .SH SEE ALSO qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qstail.10000664000000000000020000000136212264072142015031 0ustar rootbin.TH QSTAIL 1 "January 2014" "mod_qos utilities 10.28" "qstail man page" .SH NAME qstail \- an utility printing the end of a log file starting at the specified pattern. .SH SYNOPSIS qstail \-i \-p .SH DESCRIPTION qstail shows the end of a log file beginning with the line containing the specified pattern. This may be used to show all lines which has been written after a certain event (e.g., server restart) or time stamp. .SH OPTIONS .TP \-i Input file to read the data from. .TP \-p Search pattern (literal string). .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qshead.10000664000000000000020000000115412264072142015000 0ustar rootbin.TH QSHEAD 1 "January 2014" "mod_qos utilities 10.28" "qshead man page" .SH NAME qshead \- an utility reading from stdin and printing all lines to stdout until reaching the defined pattern. .SH SYNOPSIS qshead \-p .SH DESCRIPTION qshead reads lines from stdin and prints them to stdout unitl a line contains the specified pattern (literal string). .SH OPTIONS .TP \-p Search pattern (literal string). .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1) qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qsfilter2.10000664000000000000020000001371212264072142015451 0ustar rootbin.TH QSFILTER2 1 "January 2014" "mod_qos utilities 10.28" "qsfilter2 man page" .SH NAME qsfilter2 \- an utility to generate mod_qos request line rules out from existing access/audit log data. .SH SYNOPSIS qsfilter2 \-i [\-c ] [\-d ] [\-h] [\-b ] [\-p|\-s|\-m|\-o] [\-l ] [\-n] [\-e] [\-u 'uni'] [\-k ] [\-t] [\-f ] [\-v 0|1|2] .SH DESCRIPTION mod_qos implements a request filter which validates each request line. The module supports both, negative and positive security model. The QS_Deny* directives are used to specify request line patterns which are not allowed to access the server (negative security model / blacklist). These rules are used to restrict access to certain resources which should not be available to users or to protect the server from malicious patterns. The QS_Permit* rules implement a positive security model (whitelist). These directives are used to define allowed request line patterns. Request which do not match any of thses patterns are not allowed to access the server. qsfilter2 is an audit log analyzer used to generate filter rules (perl compatible regular expressions) which may be used by mod_qos to deny access for suspect requests (QS_PermitUri rules). It parses existing audit log files in order to generate request patterns covering all allowed requests. .SH OPTIONS .TP \-i Input file containing request URIs. The URIs for this file have to be extracted from the servers access logs. Each line of the input file contains a request URI consiting of a path and and query. Example: /aaa/index.do /aaa/edit?image=1.jpg /aaa/image/1.jpg /aaa/view?page=1 /aaa/edit?document=1 These access log data must include current request URIs but also request lines from previous rule generation steps. It must also include request lines which cover manually generated rules. .TP \-c mod_qos configuration file defining QS_DenyRequestLine and QS_PermitUri directives. qsfilter2 generates rules from access log data automatically. Manually generated rules (QS_PermitUri) may be provided from this file. Note: each manual rule must be represented by a request URI in the input data (\-i) in order to make sure not to be deleted by the rule optimisation algorithm. QS_Deny* rules from this file are used to filter request lines which should not be used for whitelist rule generation. Example: # manually defined whitelist rule: QS_PermitUri +view deny "^[/a\-zA\-Z0\-9]+/view\\?(page=[0\-9]+)?$" # filter unwanted request line patterns: QS_DenyRequestLine +printable deny ".*[\\x00\-\\x19].*" .TP \-d Depth (sub locations) of the path string which is defined as a literal string. Default is 1. .TP \-h Always use a string representing the handler name in the path even the url does not have a query. See also \-d option. .TP \-b Replaces url pattern by the regular expression when detecting a base64/hex encoded string. Detecting sensibility is defined by a numeric value. You should use values higher than 5 (default) or 0 to disable this function. .TP \-p Repesents query by pcre only (no literal strings). .TP \-s Uses one single pcre for the whole query string. .TP \-m Uses one pcre for multipe query values (recommended mode). .TP \-o Does not care the order of query parameters. .TP \-l Outsizes the query length by the defined length ({0,size+len}), default is 10. .TP \-n Disables redundant rules elimination. .TP \-e Exit on error. .TP \-u 'uni' Enables additional decoding methods. Use the same settings as you have used for the QS_Decoding directive. .TP \-p Repesents query by pcre only (no literal strings). Determines the worst case performance for the generated whitelist by applying each rule for each request line (output is real time filter duration per request line in milliseconds). .TP \-k Prefix used to generate rule identifiers (QSF by default). .TP \-t Calculates the maximal latency per request (worst case) using the generated rules. .TP \-f Filters the input by the provided path (prefix) only processing matching lines. .TP \-v Verbose mode. (0=silent, 1=rule source, 2=detailed). Default is 1. Don't use rules you haven't checked the request data used to generate it! Level 1 is highly recommended (as long as you don't have created the log data using your own web crawler). .SH OUTPUT The output of qsfilter2 is written to stdout. The output contains the generated QS_PermitUri directives but also information about the source which has been used to generate these rules. It is very important to check the validity of each request line which has been used to calculate the QS_PermitUri rules. Each request line which has been used to generate a new rule is shown in the output prefixed by "ADD line :". These request lines should be stored and reused at any later rule generation (add them to the URI input file). The subsequent line shows the generated rule. At the end of data processing a list of all generated QS_PermitUri rules is shown. These directives may be used withn the configuration file used by mod_qos. .SH EXAMPLE ./qsfilter2 \-i loc.txt \-c httpd.conf \-m \-e ... # ADD line 1: /aaa/index.do # 003 ^(/[a\-zA\-Z0\-9\\\-_]+)+[/]?\\.?[a\-zA\-Z]{0,4}$ # ADD line 3: /aaa/view?page=1 # \-\-\- ^[/a\-zA\-Z0\-9]+/view\\?(page=[0\-9]+)?$ # ADD line 4: /aaa/edit?document=1 # 004 ^[/a\-zA\-Z]+/edit\\?((document)(=[0\-9]*)*[&]?)*$ # ADD line 5: /aaa/edit?image=1.jpg # 005 ^[/a\-zA\-Z]+/edit\\?((image)(=[0\-9\\.a\-zA\-Z]*)*[&]?)*$ ... QS_PermitUri +QSF001 deny "^[/a\-zA\-Z]+/edit\\?((document|image)(=[0\-9\\.a\-zA\-Z]*)*[&]?)*$" QS_PermitUri +QSF002 deny "^[/a\-zA\-Z0\-9]+/view\\?(page=[0\-9]+)?$" QS_PermitUri +QSF003 deny "^(/[a\-zA\-Z0\-9\\\-_]+)+[/]?\\.?[a\-zA\-Z]{0,4}$" .SH SEE ALSO qsexec(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qspng.10000664000000000000020000000155512264072142014670 0ustar rootbin.TH QSPNG 1 "January 2014" "mod_qos utilities 10.28" "qspng man page" .SH NAME qspng \- an utility to draw a png graph from qslog(1) output data. .SH SYNOPSIS qspng \-i \-p \-o [\-10] .SH DESCRIPTION qspng is a tool to generate png (portable network graphics) raster images files from semicolon separated data generated by the qslog utility. It reads up to the first 1440 entries (24 hours) and prints a graph using the values defined by the 'parameter' name. .SH OPTIONS .TP \-i Input file to read data from. .TP \-p Parameter name, e.g. r/s or usr. .TP \-o Output file name, e.g. stat.png. .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslogger(1), qslog(1), qsrotate(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qsrotate.10000664000000000000020000000264312264072142015401 0ustar rootbin.TH QSROTATE 1 "January 2014" "mod_qos utilities 10.28" "qsrotate man page" .SH NAME qsrotate \- a log rotation tool (similar to Apache's rotatelogs). .SH SYNOPSIS qsrotate \-o [\-s [\-t ]] [\-f] [\-z] [\-g ] [\-u ] [\-p] .SH DESCRIPTION qsrotate reads from stdin (piped log) and writes the data to the provided file rotating the file after the specified time. .SH OPTIONS .TP \-o Output log file to write the data to (use an absolute path). .TP \-s Rotation interval in seconds, default are 86400 seconds. .TP \-t Offset to UTC (enables also DST support), default is 0. .TP \-b File size limitation (default are 2147352576 bytes). .TP \-f Forced log rotation even no data is written. .TP \-z Compress (gzip) the rotated file. .TP \-g Generations (number of files to keep). .TP \-u Become another user, e.g. www\-data. .TP \-p Writes data also to stdout (for piped logging). .SH EXAMPLE TransferLog "|qsrotate \-f \-z \-g 3 \-o /dest/file \-s 86400" The name of the rotated file will be /dest/filee.YYYYmmddHHMMSS where YYYYmmddHHMMSS is the system time at which the data has been rotated. .SH NOTE Each qsrotate instance must use an individual file. .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qsgeo.10000664000000000000020000000252512264072142014654 0ustar rootbin.TH QSGEO 1 "January 2014" "mod_qos utilities 10.28" "qsgeo man page" .SH NAME qsgeo \- an utility to lookup a client's country code. .SH SYNOPSIS qsgeo \-d [\-l] [\-s] [\-ip ] .SH DESCRIPTION Use this utility to resolve the country codes of IP addresses within existing log files. The utility reads the log file data from stdin and writes them, with the injected country code, to stdout. .SH OPTIONS .TP \-d Specifies the path to the geographical database files (CSV file containing IP address ranges and country codes). .TP \-s Writes a summary of the requests per country only. .TP \-l Writes the database to stdout (ignoring stdin) inserting local (127.*) and private (10.*, 172.16*, 192.168.*) network addresses. .TP \-ip Resolves a single IP address instead of processing a log file. .SH EXAMPLE Reading the file access_log and adding the country code to the IP address field: cat access_log | qsgeo \-d GeoIPCountryWhois.csv Reading the file access_log and showing a summary only: cat access_log | qsgeo \-d GeoIPCountryWhois.csv \-s Resolving a single IP address: qsgeo \-d GeoIPCountryWhois.csv \-ip 192.84.12.23 .SH SEE ALSO qsexec(1), qsfilter2(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qsgrep.10000664000000000000020000000177112264072142015041 0ustar rootbin.TH QSGREP 1 "January 2014" "mod_qos utilities 10.28" "qsgrep man page" .SH NAME qsgrep \- prints matching patterns within a file. .SH SYNOPSIS qsgrep \-e \-o [] .SH DESCRIPTION qsgrep is a simple tool to search patterns within files. It uses regular expressions to find patterns and prints the submatches within a pre\-defined format string. .SH OPTIONS .TP \-e Specifes the search pattern. .TP \-o Defines the output string where $0\-$9 are substituted by the submatches of the regular expression. .TP Defines the input file to process. qsgrep reads from from standard input if this parameter is omitted. .SH EXAMPLE Shows the IP addresses of clients causing mod_qos(031) messages): qsgrep \-e 'mod_qos\\(031\\).*, c=([0\-9.]*)' \-o 'ip=$1' error_log .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qslog.10000664000000000000020000001134012264072142014656 0ustar rootbin.TH QSLOG 1 "January 2014" "mod_qos utilities 10.28" "qslog man page" .SH NAME qslog \- collects request statistics from access log data. .SH SYNOPSIS qslog \-f \-o [\-p[c|u[c]] [\-v]] [\-x []] [\-u ] [\-m] [\-c ] .SH DESCRIPTION qslog is a real time access log analyzer. It collects the data from stdin. The output is written to the specified file every minute and includes the following entries: \- requests per second (r/s) \- number of requests within measured time (req) \- bytes sent to the client per second (b/s) \- bytes received from the client per second (ib/s) \- repsonse status codes within the last minute (1xx,2xx,3xx,4xx,5xx) \- average response duration (av) \- average response duration in milliseconds (avms) \- distribution of response durations within the last minute (<1s,1s,2s,3s,4s,5s,>5) \- number of established (new) connections within the measured time (esco) \- average system load (sl) \- free memory (m) (not available for all platforms) \- number of client ip addresses seen withn the last 600 seconds (ip) \- number of different users seen withn the last 600 seconds (usr) \- number of events identified by the 'E' format character \- number of mod_qos events within the last minute (qV=create session, qS=session pass, qD=access denied, qK=connection closed, qT=dynamic keep\-alive, qL=request/response slow down, qs=serialized request) .SH OPTIONS .TP \-f Defines the log data format and the positions of data elements processed by this utility. See to the 'LogFormat' directive of the httpd.conf file to see the format defintions of the servers access log data. qslog knows the following elements: I defines the client ip address (%h) R defines the request line (%r) S defines HTTP response status code (%s) B defines the transferred bytes (%b or %O) i defines the received bytes (%I) T defines the request duration (%T) t defines the request duration in milliseconds (may be used instead of T) D defines the request duration in microseconds (may be used instead of T) (%D) k defines the number of keepalive requests on the connection (%k) U defines the user tracking id (%{mod_qos_user_id}e) Q defines the mod_qos_ev event message (%{mod_qos_ev}e) C defines the element for the detailed log (\-c option), e.g. "%U" s arbitrary counter to add up (sum within a minute) a arbitrary counter to build an average from (average per request) A arbitrary counter to build an average from (average per request) E comma separated list of event strings c content type (%{content\-type}o), available in \-pc mode only m request method (GET/POST) (%m), available in \-pc mode only . defines an element to ignore (unknown string) .TP \-o Specifies the file to store the output to. .TP \-p Used for post processing when reading the log data from a file (cat/pipe). qslog is started using it's offline mode (extracting the time stamps from the log lines) in order to process existing log files. The option "\-pc" may be used alternatively if you want to gather request information per client (identified by IP address (I) or user tracking id (U) showing how many request each client has performed within the captured period of time). "\-pc" supports the format characters IURSBTtDkEcm. The option "\-pu" collects statistics on a per URL level (supports format characters RSTtD). "\-puc" is very similar to "\-pu" but cuts the end (handler) of each URL. .TP \-v Verbose mode. .TP \-x [] Rotates the output file once a day (move). You may specify the number of rotated files to keep. Default are 14. .TP \-u Becomes another user, e.g. www\-data. .TP \-m Calculates free system memory every minute. .TP \-c Enables the collection of log statitics for different request types. 'path' specifies the necessary rule file. Each rule consists of a rule identifier and a regular expression to identify a request seprarated by a colon, e.g., 01:^(/a)|(/c). The regular expressions are matched against the log data element which has been identified by the 'C' format character. .SH EXAMPLE Configuration using pipped logging: LogFormat "%t %h \\"%r\\" %>s %b \\"%{User\-Agent}i\\" %T" TransferLog "|/bin/qslog \-f ..IRSB.T \-x \-o /var/logs/stat_log" Configuration using the CustomLog directive: CustomLog "|/bin/qslog \-f ISBTQ \-x \-o /var/logs/stat_log" "%h %>s %b %T %{mod_qos_ev}e" Post processing: cat access_log | /bin/qslog \-f ..IRSB.T \-o /var/logs/stat_log \-p .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/man1/qslogger.10000664000000000000020000000321512264072142015356 0ustar rootbin.TH QSLOGGER 1 "January 2014" "mod_qos utilities 10.28" "qslogger man page" .SH NAME qslogger \- another shell command interface to the system log module (syslog). .SH SYNOPSIS qslogger [\-r ] [\-t ] [\-f ] [\-l ] [\-d ] [\-p] .SH DESCRIPTION Use this utility to forward log messages to the systems syslog facility, e.g., to forward the messages to a remote host. It reads data from stdin. .SH OPTIONS .TP \-r Specifies a regular expression which shall be used to determine the severity (syslog level) for each log line. The default pattern '^\\[[0\-9a\-zA\-Z :]+\\] \\[([a\-z]+)\\] ' can be used for Apache error log messages but you may configure your own pattern matching and other log format too. Use brackets to define the string enclosing the severity string. Default level (if severity can't be determined) is defined by the option '\-d' (see below). .TP \-t Defines the tag name which shall be used to define the origin of the messages, e.g. 'httpd'. .TP \-f Defines the syslog facility. Default is 'daemon'. .TP \-l Defines the minimal severity a message must have in order to be forwarded. Default is 'DEBUG'. .TP \-d The default severity if the specified pattern (\-r) does not match and the message's serverity can't be determined. Default is 'NOTICE'. .TP \-p Writes data also to stdout (for piped logging). .SH EXAMPLE ErrorLog "|./qslogger \-t apache \-f local7" .SH SEE ALSO qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qspng(1), qsrotate(1), qssign(1), qstail(1) .SH AUTHOR Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/ mod_qos-10.28/tools/missing0000755000000000000020000002415212264072142014215 0ustar rootbin#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.13; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mod_qos-10.28/tools/Makefile.in0000664000000000000020000005351712264072142014674 0ustar rootbin# Makefile.in generated by automake 1.11.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure depcomp install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign SUBDIRS = src all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then rm -f stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: mod_qos-10.28/tools/install-sh0000755000000000000020000003325612264072142014627 0ustar rootbin#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-01-19.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for `test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mod_qos-10.28/tools/configure0000775000000000000020000052744612264072142014545 0ustar rootbin#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for mod_qos 9.0. # # Report bugs to . # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: pbuchbinder@users.sourceforge.net about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='mod_qos' PACKAGE_TARNAME='mod_qos' PACKAGE_VERSION='9.0' PACKAGE_STRING='mod_qos 9.0' PACKAGE_BUGREPORT='pbuchbinder@users.sourceforge.net' PACKAGE_URL='' ac_unique_file="src/qscheck.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_use_static enable_full_static enable_ssl with_apr with_apr_util with_pcre with_png with_ssl ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures mod_qos 9.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/mod_qos] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of mod_qos 9.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-use-static Try to use archives instead of shared libraries --enable-full-static Try to compile a statical linked executable --disable-ssl Disable ssl support (not supported yet) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-apr=PATH path to apr-1-config script --with-apr-util=PATH path to apu-1-config script --with-pcre=PATH path to pcre-config script --with-png=PATH path to libpng-config script --with-ssl=PATH path to openssl source Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF mod_qos configure 9.0 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## ------------------------------------------------ ## ## Report this to pbuchbinder@users.sourceforge.net ## ## ------------------------------------------------ ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by mod_qos $as_me 9.0, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='mod_qos' VERSION='9.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' ac_config_headers="$ac_config_headers config.h" # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi # Checks for libraries. # Checks for header files. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h netdb.h stdlib.h string.h strings.h sys/socket.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } if ${ac_cv_type_uid_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "uid_t" >/dev/null 2>&1; then : ac_cv_type_uid_t=yes else ac_cv_type_uid_t=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 $as_echo "$ac_cv_type_uid_t" >&6; } if test $ac_cv_type_uid_t = no; then $as_echo "#define uid_t int" >>confdefs.h $as_echo "#define gid_t int" >>confdefs.h fi # Checks for library functions. for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" if test "x$ac_cv_header_vfork_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VFORK_H 1 _ACEOF fi done for ac_func in fork vfork do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 $as_echo_n "checking for working fork... " >&6; } if ${ac_cv_func_fork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fork_works=yes else ac_cv_func_fork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 $as_echo "$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 $as_echo_n "checking for working vfork... " >&6; } if ${ac_cv_func_vfork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_vfork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_vfork_works=yes else ac_cv_func_vfork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 $as_echo "$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h else $as_echo "#define vfork fork" >>confdefs.h fi if test "x$ac_cv_func_fork_works" = xyes; then $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes else ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then : $as_echo "#define HAVE_MALLOC 1" >>confdefs.h else $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac $as_echo "#define malloc rpl_malloc" >>confdefs.h fi for ac_func in ftruncate gethostbyname memset regcomp select socket strchr strerror strrchr strstr do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # START customize settings # Check whether --enable-use-static was given. if test "${enable_use_static+set}" = set; then : enableval=$enable_use_static; fi # Check whether --enable-full-static was given. if test "${enable_full_static+set}" = set; then : enableval=$enable_full_static; fi # Check whether --enable-ssl was given. if test "${enable_ssl+set}" = set; then : enableval=$enable_ssl; fi # Check whether --with-apr was given. if test "${with_apr+set}" = set; then : withval=$with_apr; if test ! -x $withval/apr-1-config; then as_fn_error $? "$withval/apr-1-config do not exist or is not executable" "$LINENO" 5; else APR_CONFIG="$withval/apr-1-config"; fi else APR_CONFIG="apr-1-config" fi # Check whether --with-apr-util was given. if test "${with_apr_util+set}" = set; then : withval=$with_apr_util; if test ! -x $withval/apu-1-config; then as_fn_error $? "$withval/apu-1-config do not exist or is not executable" "$LINENO" 5; else APU_CONFIG="$withval/apu-1-config"; fi else APU_CONFIG="apu-1-config" fi # Check whether --with-pcre was given. if test "${with_pcre+set}" = set; then : withval=$with_pcre; if test ! -x $withval/pcre-config; then as_fn_error $? "$withval/pcre-config do not exist or is not executable" "$LINENO" 5; else PCRE_CONFIG="$withval/pcre-config"; fi else PCRE_CONFIG="pcre-config" fi # Check whether --with-png was given. if test "${with_png+set}" = set; then : withval=$with_png; if test ! -x $withval/libpng-config; then as_fn_error $? "$withval/libpng-config do not exist or is not executable" "$LINENO" 5; else PNG_CONFIG="$withval/libpng-config"; fi else PNG_CONFIG="libpng-config" fi # Check whether --with-ssl was given. if test "${with_ssl+set}" = set; then : withval=$with_ssl; if test ! -d $withval; then as_fn_error $? "$withval is not a directory" "$LINENO" 5; else OPENSSL_LIB_PATH="-L${withval}"; OPENSSL_INCLUDES="-I${withval}/include"; fi else OPENSSL_LIB_PATH=""; OPENSSL_INCLUDES="" fi APR_VERSION=`$APR_CONFIG --version` if test ! "$?" = "0"; then echo "libapr is missing, use --with-apr=PATH" exit -1 fi APU_VERSION=`$APU_CONFIG --version` if test ! "$?" = "0"; then echo "libaprutil is missing, use --with-apr-util=PATH" exit -1 fi PCRE_VERSION=`$PCRE_CONFIG --version` if test ! "$?" = "0"; then echo "libpcre is missing, use --with-pcre=PATH to specify the location of your pcre library" exit -1 fi PNG_VERSION=`$PNG_CONFIG --version` if test ! "$?" = "0"; then echo "libpng is missing, use --with-png=PATH to specify the location of your png library" #exit -1 fi # Store settings for includes, libs and flags INCLUDES="`$APR_CONFIG --includes` `$APU_CONFIG --includes` $OPENSSL_INCLUDES" CFLAGS="`$APR_CONFIG --cflags` `$PCRE_CONFIG --cflags` `$PNG_CONFIG --cflags` $CFLAGS $INCLUDES" CPPFLAGS="`$APR_CONFIG --cppflags` $CPPFLAGS" LIBS="$OPENSSL_LIB_PATH -lssl -lcrypto `$APR_CONFIG --link-ld` `$APU_CONFIG --link-ld` `$APR_CONFIG --libs` `$APU_CONFIG --libs` `$PCRE_CONFIG --libs` `$PNG_CONFIG --libs` -lz" # if link static if test "$enable_full_static" = "yes"; then LDFLAGS="-all-static" fi # if link static if test "$enable_use_static" = "yes"; then LDFLAGS="-static" fi # END customize settings ac_config_files="$ac_config_files Makefile src/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by mod_qos $as_me 9.0, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ mod_qos config.status 9.0 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi mod_qos-10.28/tools/depcomp0000755000000000000020000004755612264072142014210 0ustar rootbin#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2011-12-04.11; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, # 2011 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test "$stat" = 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/ \1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/ / G p }' >> "$depfile" rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: mod_qos-10.28/tools/config.h.in0000664000000000000020000000627312264072142014647 0ustar rootbin/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `ftruncate' function. */ #undef HAVE_FTRUNCATE /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the `regcomp' function. */ #undef HAVE_REGCOMP /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK /* Define to 1 if you have the header file. */ #undef HAVE_VFORK_H /* Define to 1 if `fork' works. */ #undef HAVE_WORKING_FORK /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to `int' if doesn't define. */ #undef gid_t /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `int' if does not define. */ #undef pid_t /* Define to `int' if doesn't define. */ #undef uid_t /* Define as `fork' if `vfork' does not work. */ #undef vfork mod_qos-10.28/tools/Makefile.am0000664000000000000020000000004512264072142014647 0ustar rootbinAUTOMAKE_OPTIONS=foreign SUBDIRS=src mod_qos-10.28/doc/0000775000000000000020000000000012264072142012221 5ustar rootbinmod_qos-10.28/doc/qspng.1.html0000664000000000000020000000401412264072142014375 0ustar rootbin Man page of QSPNG

QSPNG

Section: qspng man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qspng - an utility to draw a png graph from qslog(1) output data.  

SYNOPSIS

qspng -i <stat_log_file> -p <parameter> -o <out_file> [-10]  

DESCRIPTION

qspng is a tool to generate png (portable network graphics) raster images files from semicolon separated data generated by the qslog utility. It reads up to the first 1440 entries (24 hours) and prints a graph using the values defined by the 'parameter' name.  

OPTIONS

-i <stats_log_file>
Input file to read data from.
-p <parameter>
Parameter name, e.g. r/s or usr.
-o <out_file>
Output file name, e.g. stat.png.
 

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslogger(1), qslog(1), qsrotate(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR

mod_qos-10.28/doc/qsrotate.1.html0000664000000000000020000000543212264072142015114 0ustar rootbin Man page of QSROTATE

QSROTATE

Section: qsrotate man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qsrotate - a log rotation tool (similar to Apache's rotatelogs).  

SYNOPSIS

qsrotate -o <file> [-s <sec> [-t <hours>]] [-f] [-z] [-g <num>] [-u <name>] [-p]  

DESCRIPTION

qsrotate reads from stdin (piped log) and writes the data to the provided file rotating the file after the specified time.  

OPTIONS

-o <file>
Output log file to write the data to (use an absolute path).
-s <sec>
Rotation interval in seconds, default are 86400 seconds.
-t <hours>
Offset to UTC (enables also DST support), default is 0.
-b <bytes>
File size limitation (default are 2147352576 bytes).
-f
Forced log rotation even no data is written.
-z
Compress (gzip) the rotated file.
-g <num>
Generations (number of files to keep).
-u <name>
Become another user, e.g. www-data.
-p
Writes data also to stdout (for piped logging).
 

EXAMPLE


  TransferLog "|qsrotate -f -z -g 3 -o /dest/file -s 86400"

The name of the rotated file will be /dest/filee.YYYYmmddHHMMSS where YYYYmmddHHMMSS is the system time at which the data has been rotated.  

NOTE

Each qsrotate instance must use an individual file.  

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
NOTE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/qssign.1.html0000664000000000000020000000434412264072142014557 0ustar rootbin Man page of QSSIGN

QSSIGN

Section: qssign man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qssign - an utility to sign and verify the integrity of log data.  

SYNOPSIS

qssign -s|S <secret> [-e] [-v]  

DESCRIPTION

qssign is a log data integrity check tool. It reads log data from stdin (pipe) and writes the signed data to stdout.  

OPTIONS

-s <secret>
Passphrase used to calculate signature.
-S <program>
Specifies a program which writes the passphrase to stdout.
-e
Writes end marker when stopping data signing.
-v
Verification mode checking the integrity of signed data.
 

EXAMPLE

Sign:


 TransferLog "|/bin/qssign -s password -e |/bin/qsrotate -o /var/log/apache/access_log"

Verify:


 cat access_log | qssign -s password -v

 

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/qsgeo.1.html0000664000000000000020000000523112264072142014365 0ustar rootbin Man page of QSGEO

QSGEO

Section: qsgeo man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qsgeo - an utility to lookup a client's country code.  

SYNOPSIS

qsgeo -d <path> [-l] [-s] [-ip <ip>]  

DESCRIPTION

Use this utility to resolve the country codes of IP addresses within existing log files. The utility reads the log file data from stdin and writes them, with the injected country code, to stdout.  

OPTIONS

-d <path>
Specifies the path to the geographical database files (CSV file containing IP address ranges and country codes).
-s
Writes a summary of the requests per country only.
-l
Writes the database to stdout (ignoring stdin) inserting local (127.*) and private (10.*, 172.16*, 192.168.*) network addresses.
-ip <ip>
Resolves a single IP address instead of processing a log file.
 

EXAMPLE

Reading the file access_log and adding the country code to the IP address field:


  cat access_log | qsgeo -d GeoIPCountryWhois.csv

Reading the file access_log and showing a summary only:


  cat access_log | qsgeo -d GeoIPCountryWhois.csv -s

Resolving a single IP address:


  qsgeo -d GeoIPCountryWhois.csv -ip 192.84.12.23

 

SEE ALSO

qsexec(1), qsfilter2(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/CHANGES.txt0000664000000000000020000007727112264072142014050 0ustar rootbinVersion 10.28 - Fixed: QS_ClientEventLimit did overwrite counters of other clients if multiple events have been configured. Version 10.27 - qslog features the option "-pu" and "-puc" used to gather request information on a per URL basis. - Fixed: Wrong includes within the support utilities. - Extends QS_ClientSerialize max. timeout from 1 to 5 minutes. Version 10.26 - QS_ClientSerialize supports the QS_ClientIpFromHeader directive. - Refactor method used to determine redirect port (user tracking) supporting servers not using virtual hosts. - Fixed: QS_UserTrackingCookieName uses correct server_rec to retrieve configuration. - Hook implementing user tracking is now called after mod_unique_id. - Slightly changed unique-id generator. - Adds fflush() to qsgrep utility when writing data to stdout. Version 10.25 - QS_EventLimitCount writes the current value to the process environment variables. - Fixed: QS_[Cond]ClientEventLimitCount logs request id and propagtes message code (067) to the QS_ErrorNotes variable. - New variable QS_IPConn representing the number of connections opened from the very same source IP (works in conjunction with QS_SrvMaxConnPerIP only). Version 10.24 - New directive QS_CondClientEventLimitCount. - QS_SrvMinDataRate: limits the max. data rate to the configured value (prevents invalid rate due to misconfiguration server or died child process). Version 10.23 - Fixed: QS_ClientEventLimitCount log message 067 contains now the IP address of the request header if QS_ClientIpFromHeader is used. - QS_SetEnvRes: supports multiple variables with the same name. Version 10.22 - Process QS_SetEnvResHeader(Match) and QS_SetEnvRes at error filter too. Version 10.21 - Fixed: qslogger may had detected the wrong message severity. - Adds debug message when detecting "NullConnection" events. - Built-in request header rules: adapt If-Match, If-None-Match, Cookie, and Cookie2 HTTP header patterns. Version 10.20 - Fixed: QS_CondLocRequestLimitMatch did work only if other QS_Loc* directive had been configured. Version 10.19 - New directive QS_RedirectIf. Version 10.18 - QS_ClientEventLimitCount may be cleared by environment variable (suffixed by "_Clear", e.g. QS_Limit_Clear). Version 10.17 - QS_ClientEventLimitCount supports unlimited number of events. - Stores the value of the QS_ClientEventLimitCount variables as environment variables suffixed by "_Counter", e.g. QS_Limit_Counter for the default QS_Limit variable, in order to be processed by other rules. - Add Content-Security-Policy to the default response header white list. - qslog features enhanced "-pc" mode providing more information: * Collects content type information (%{content-type}o). * Duration between the first and the last request. * Average response in ms. * "ci" indicates if we have seen the client at the end or the beginning of the file (maybe not all requests in the log due to log rotation). * Bytes downloaded. * Writes status characters to stderr. * HTTP request methods (GET/POST) - qsgeo features option "-l" and is able to process "qslog -pc" files. Version 10.16 - qslog adds 'E' (event identifiers) to the format string. QSEVENTPATH environment variable specifies a file containing all known event names (comma separated list). - qslog average counter (a/A) count only if a numeric value is available. - qssing does not try to execute invalid program name (space only). Version 10.15 - qsrotate supports DST and offset to UTC. - Add the "connections" argument to the QS_SrvMaxConnPerIP directive to disable the rule enforcement on idle web servers. Version 10.14 - Minor changes to status viewer (color for QS_EventLimitCount counter). - Q3594444: adapted man page subject. - QS_ErrorResponseCode verifies that the defined error code is valid resp. known by Apache. - Add option "-b" to the qsrotate utility. Version 10.13 - Add new directive QS_EventLimitCount. Version 10.12 - Fixed: Per-client status viewer did not show numbers correctly (depending on the platform it has been compiled for). Version 10.11 - Don't write QS_ClientEventBlockCount event messages (060) every time a client is blocked. - Adjust log message severity of permitted QS_SrvMinDataRate rule violations from 'info' to 'debug'. Version 10.10 - Add DNT HTTP request header to the default request header white list. - qslog "-pc" supports counting established connections. - Fixed: Endless loop when using option "-c" with only one rule. - New utility qshead. Version 10.9 - Q3535677: Don't use prce_info() any longer. - qslog option "-x" allows the specification how many files to keep. Default are 14 days. - qslog counter 'a', 'A', and 's'. - Adapted log message mod_qos(069) - QS_ClientIpFromHeader@logger searches for the header in r->prev and r->main too. Version 10.8 - Fixed: QS_SetEnvIfResBody did not properly detect pattern. - qslogger features severity filter (forward only messages with a matching/higher severity) and adjustable default severity for those log lines which do not contain the severity pattern. Version 10.7 - Writes notice message at server startup if the Apache version is not supported (mod_qos has been implemented for Apache 2.2 worker binaries only). - Use pcre_study() API call only if QOS_EXTRA_USE_PCRE_STUDY has been defined while compiling mod_qos. - Adds fflush() to qslogger/qsexec/qsgeo/qslogger utility when writing data to stdout. Version 10.6 - qslog measures average response time in milliseconds (avms). - Fixed: Viewer shows number of per client ip connections if no server limitations are set (query "option=ip"). - Fixed: qslogger did not compile on non-Linux platforms. Version 10.5 - New utility: qslogger. - JSON includes array index number (note: you need to adapt existing JSON rules). - Experimental: mod_qos compiles with Apache 2.4 * QS_SrvMinDataRate is not available (does not work, use mod_reqtimeout instead) * QS_Srv* directives shall not be used (connection cleanup takes very long) Version 10.4 - Improved qs* utility performance. Version 10.3 - Fixed: ABR in QS_SetEnvIfResBody. Version 10.2 - Fixed: QS_Milestone uses now URL decoding before applying the expression (pcre). - Add the qsgeo utility to the distribution archive file. - Fixed: Supress warning message about missing mod_unique_id if mod_navajo.cpp is available. - New connection correlation id QS_ConnectionId (available as an event for logging purposes). Version 10.1 - QS_ClientIpFromHeader may be used to set QS_Country variable. - Viewer shows QS_AllConn variable. Version 10.0 - New directives QS_ClientGeoCountryDB and QS_ClientGeoCountryPriv. - New variables: QS_AllConn and QS_Country. Version 9.79 - Fixed: Wrong IP conversion (str2long) used by console and QS_ClientIpFromHeader. Version 9.78 - Fixed: QS_UserTrackingCookieName enforcement did not work if server creates internal redirect. Version 9.77 - Use pcre_study() and match_limit where applicable. - qslog features the option "-c" to collect separate statistics, e.g., for different URLs. - qslog features the option "-pc" used to gather request information per client. - New directive QS_SrvSampleRate (may be used to adjust the QS_REQ_RATE_TM sample rate at runtime/post compilation). Not documented. - Fixed: qslog line parsing bug (double backslash). Version 9.76 - New directive QS_ClientIpFromHeader (may be used in conjunction with QS_ClientEventLimitCount only). - qslog measures new connections per minute (%k == 0). - Fixed: Don't show connections in the overview if not measured. - Internal: QS_EventRequestLimit are added (insted of set) to the event table in order to prevent multiple increments by the very same request. Version 9.75 - New directive QS_SetEnvRes. - Viewer keeps value about the last measured kbytes/second result for a longer time. - Update documentation (description of QS_LocKBytesPerSecLimit* directives). Version 9.74 - Fix header file in qsfilter2 (possible compile problems). - Fix pre connection handling for outgoing (mod_proxy) connections. Version 9.73 - Q3429879: Format usage text of the mod_qos utilities to man page format. Use " --man" to generate the man page. - Make "NullConnection" detection (known by QS_SetEnvIfStatus) more aggressive. Version 9.72 - Module tries to detect a suitable default error document for QS_ErrorPage automatically. - New status "NullConnection" known by QS_SetEnvIfStatus detecting TCP connections which are not used to send a HTTP request (closed without transmitting HTTP request line and header or denied by any other module). - QS_ClientEventBlockCount is processed at pre_connection hook (more aggressive, before mod_ssl). - Supress warning message about missing mod_unique_id if mod_navajo is available. Version 9.71 - QS_RequestHeaderFilterRule and QS_ResponseHeaderFilterRule may be configured within a host (outside location). - QS_ResponseHeaderFilterRule features the action "silent" which drops header silently without writing a log message. - Headers X-Content-Type-Options and X-XSS-Protection has been added to the default response header rules. - Fixed: Bug in JSON parser. - Fixed: Propagation of Apache environment variables to sub-requests (solves bug when using QS_ClientEventBlockCount and ErrorDocument). Version 9.70 - QS_EventPerSecLimit and QS_EventKBytesPerSecLimit counters are no longer updated if a request has already been denied by a QS_EventRequestLimit rule. - QS_LocRequestPerSecLimit* and QS_LocKBytesPerSecLimit* counter are no longer updated if a request has already been denied by a QS_LocRequestLimit* rule. - Adjust attributes/number of requests required to identify the client behavior. - Update request header white list rule for Content-Type. Version 9.69 - Client behavior (content type a client is downloading) is calculated in a percent of the whole trafic type distribution. The directive QS_ClientTolerance supports only values between 5 and 80. - Add directive QS_ClientContentTypes to define the normally downloaded content types statically (instead of self learning). - Detection if module has been build for a different MPM implementation than the server is using at runtime. - JSON parser processes request query (if starting with an array '[' of object '{') if no body is available. - qssing supports additional log format detection. - qslog supports request time duration measurement in milli- and microseconds too (t and D instead of T). - qslog isolates numeric values (B, i, T, t, D, S) even they are surrounded or prefixed by other characters, e.g. time="". - qslog treats single quoted string with (short) leading name and eaual sign (e.g., agent='Mozilla 1') as single element (offline mode only). - qslog extracts additional time formats (offline mode). - Added "X-Do-Not-Track" to the built-in request header white list. - Minor changes within the status viewer (machine-readable view). Version 9.68 - Change in order to support HP-UX. Version 9.67 - Fixed: QS_ClientSerialize has required other client level control directive. Version 9.66 - Client data store updates entry time stamp every access. Version 9.65 - Fixed: Could not compile the support utility qscheck. - qsexec features option "-c" (pattern clearing the event counter). Version 9.64 - New utility: qsexec - Dynamic client data store partition (depending on the size of the store as defined by QS_ClientEntries) for improved performance. Version 9.62 - Some code refactoring (performance improvements, no functional changes). Version 9.61 - New directive QS_LogOnly may be used to disable rule enforcement (permissive mode). - Minor changes within the status viewer. - "QS_SetEnvIfStatus QS_SrvMinDataRate QS_Block" limits the allowed number of QS_SrvMinDataRate rule violations. Version 9.60 - Fixed: QS_ClientEventBlockCount/QS_ClientEventLimitCount get not reset if client causes events continuously. Version 9.58 - Fixed: IP does not get marked as VIP if QS_ClientPrefer has not been defined. - New variable QS_ErrorNotes. - Add "Transfer-Encoding" (very strict) to the built-in request header white list. Version 9.57 - Status viewer features query name "refresh" which causes the browser to reload the page every 10 seconds. Version 9.56 - Clear per client data store counters at graceful restart to prevent dead enties (counter grow) due unclear client shutdown. - qsfilter2 features url filter (-f). - QS_ClientSerialize does not block for more than 10 minutes. Version 9.55 - Minor changes in configure script (autotools) of the support utilities (png library name). - Add allowed response header X-Content-Security-Policy. - Fixed: qslog cuts last character if parameter is at end of line. - Fixed: qsfilter2 handling of 0 byte characters. Version 9.54 - QS_SetEnvIf may unset a variable. - New variable QS_IsVipRequest. Version 9.53 - Re-introduce qscheck to the support utilities tarball. Version 9.52 - Double per client data store speed (insert new entries) by partitioning of odd and even ip addresses. - Overview section in qos viewer (showing connections and load). - Remove packet-rate measurement. Version 9.51 - Set IP based VIP status to connection even before we receive the HTTP request. - New argument "connections" for the QS_SrvMinDataRate directive allows to disable the limitation if the server is idle/has only little traffic. - Adapt built-in request header filter rules. Version 9.49 - Adapt built-in request header filter rules. - New utility: qsgrep. - Change process order: process QS_SetEnvResHeader after QS_SetEnvResHeaderMatch. - New directive QS_UnsetResHeader. - New directive QS_ClientEventLimitCount (works similar as QS_ClientEventBlockCount but enforces rule at request level only). Version 9.48 - qslog supports mod_logio (%I and %O). - Re-introduce deprecated QS_SetEnvStatus directive (for backwards compatibility). Version 9.47 - QS_SetEnvIfStatus may be used within Locations. - Sequence: execute QS_SetEnvIfStatus earlier (before QS_SetEnvResHeader). - Remove directive QS_SetEnvStatus (alias for QS_SetEnvIfStatus). Version 9.46 - QS_VipUser/QS_VipIpUser detects r->user earlier (@fixup). - QS_KeepAliveTimeout allows value "0" disabling keep-alive. - Process QS_KeepAliveTimeout variable at response too. - QS_SetEnvIfStatus may be specified multiple times for the same response code. - QS_SetEnvIfStatus accepts the definition of a variable value. Version 9.45 - Add directive QS_ClientSerialize. - qslog used new parameter names for event message counts. Version 9.44 - Add directive QS_DisableHandler. Version 9.43 - QS_ClientEventBlockCount rule violation marks client to have low priority. Version 9.42 - Console "action=search&address=*" returns a list of all clients. - Fixed: Removes the apr_shm_destroy() calls to avaoid double-free errors on Linux with old APR library versions. Version 9.41 - Fixed: Console action 'block' did not set event number. Version 9.40 - Fixed: Search IP in console - Fixed: User tracking set-cookie is set twice. - Process QS_SetEnvIfStatus on internal errors (protocol). Version 9.38 - Web console allows the modification of attributes of entries within the client data store. - Status viewer supports query "ip" (showing the IP addresses of the connected clients for all open TCP connections) in machine-readable version. - Status viewer used new delimiter within rule names on machine-readable version (query "auto"). Version 9.37 - Changed QS_ClientPrefer behavior: - never block VIP IP - step 1 denies slow marked clients only - Set the QS_ClientLowPrio variable for clients with low priority. - qssign: add option "-e" which ensures we don't lost any lines. - Update built-in header validation pattern. Version 9.36 - QS_SrvMinDataRateOffEvent processing at fixup (request). - Use apr_time_t instead of time_t. Version 9.34 - qslog counts response status codes per minute. - Use apr_time_t instead of time_t. Version 9.33 - User tracking cookie enforcement may be disabled by setting the DISABLE_UTC_ENFORCEMENT environment variable, e.g. for certain User-Agent headers. Version 9.32 - Status viewer returns "text/plain" for request query 'auto'. Version 9.31 - qsfilter2: encode double quotes and backslashes using their hex values (no escaping within Apache configuration necessary). - Featuring JSON parser which may be used in conjunction with QS_PermitUri. Version 9.30 - Fixed: qsfilter2 did not compile with OpenSSL 1.0.0. Version 9.29 - Add Strict-Transport-Security to the default response header rules. - Directive QS_UserTrackingCookieName features an optional "path" attribute. This path specifies a local error page which is shown to users not accepting the user tracking cookie (note: search engines do probably not support this cookie enforcement and won't be able to crawl the site). - Generates a simple request id (unique per pid/tid within a millisecond) if mod_unique_id has not been loaded. - Fix: syntax check for QS_ErrorPage. Version 9.28 - QS_ErrorPage supports external HTTP redirect (302). - qsfilter2 features a rule id prefix (-k ). - qsfilter2 may process audit log using the sample log format "%h %>s %{qos-loc}n %{qos-path}n%{qos-query}n" without pre-processing. Version 9.27 - Remove qscheck utility (don't compile it by default). - New variable %{qos-loc}n indicating the Location matching a request (may be used to filter the audit log for dedicated locations in order to generate QS_PermitUri rules). - qsfilter2 may process "standard" Apache access log (TransferLog) files too (automatically detecting the request line). - Several adaptions/fixes to the machine-readable version of the status viewer. Version 9.26 - Fix: no mutex destroy (called by register cleanup when destroying pools). Should fix the restart issues with MPM prefork binaries. - Renew user tracking cookie once every month. Version 9.25 - Compile utilities using GNU autotools (hope this works at least on some Linux platforms). Version 9.24 - QS_SrvMinConnPerIP: don't log every rule violation (consolidate log messages and log only every 20th event, see QS_LOG_REPEAT). - Fixed: Removes thread_join for MPM prefork binaries. Version 9.23 - New directives: QS_MileStone*. - Q3032708: see http://www.openssl.org/support/faq.html#LEGAL2. - Add Access-Control-Allow-Origin to the default response header rules. Version 9.22 - New variable: QS_SrvConn - qslog shows total number of requests within a minute. Version 9.21 - New directive QS_UserTrackingCookieName. Version 9.20 - Fixed: Racing condition when using QS_SrvMinDataRate and ThreadsPerChild > 64 may cause segfault. Version 9.19 - Fixed: Segfault at server start if no vhost has been defined. - QS_SrvMinDataRateOffEvent may be used at server and/or location level. Version 9.18 - QS_SrvMaxConnClose supports the definition of the number of keep-alive connections as a percentage of MaxClients. - Update built-in filter pattern of QS_HeaderFilter. Version 9.17 - Output filters are executed after mod_setenvifplus. Version 9.16 - New directive QS_SrvMinDataRateOffEvent. - Changes directive process order (QS_SetEnvIfStatus). - QS_SrvMinDataRate enforces keep-alive timeout (request line must be received within the keep-alive timeout). Version 9.15 - New directives QS_ResponseHeaderFilter and QS_ResponseHeaderFilterRule. Version 9.14 - New directive QS_Decoding. Version 9.12 - New directive QS_SemMemFile. - Uses a checksum to represent IPV6 addresses. Version 9.10 - Fixed: ap_remove_input_filter(). - MaxClients overrides ServerLimit/Treads settings when calculating the maximum number of possible client connections. - Log/debug message about used semaphore files. Version 9.9 - New implementation of the code for QS_SrvMaxConnPerIP to avoid malfunction reported by mod_qos user. - Module dependency (execution order) to mod_setenvifplus. Version 9.8 - Internal code changes/maintenance (join thread). Version 9.7 - mod_qos may be compiled defining QS_NO_STATUS_HOOK which prevents mod_qos from registering to mod_status. Version 9.6 - Environment variable QS_DeflateReqBody to deflate request body data (update to mod_parp 0.8 in order to get a correct content-length header after data deflating). Version 9.5 - New directives QS_SetReqHeader and QS_SetEnv. Version 9.4 - Fixed: Variable %{qos-query} is not set when using the QS_DenyQueryBody directive (and neither QS_DenyBody nor QS_PermitUriBody has been set). - Increased line buffer for qsfilter2 (2MB). Version 9.3 - New directive QS_SetEnvResBody. Version 9.2 - New syntax: QS_VipHeaderName
[=] [drop] QS_VipIPHeaderName
[=] [drop] Version 9.1 - QS_ClientEventRequestLimit limits the number of concurrent events on a per client IP address basis (again increasing the per client memory consumption). Version 9.0 - Client level control: request characteristics measuring adds content type ration and number of 304 responses (requires now 64bytes instead of 48bytes per client on a 32bit system). - Improved client level control (behavior detection, see above) is processed by the QS_ClientPrefer directive. Directive QS_ClientTolerance controls the allowed variation. - Directive QS_SrvPreferNet has been removed. It's recommended to use QS_ClientPrefer instead. Version 8.18 - Q2841328: remove nasty pointer address cast to int. Version 8.16 - Q2834297: use a single mutex for all per virtual host ACT tables (too many mutexes if a server uses many virtual hosts). Version 8.15 - New variable QS_Delay. Version 8.14 - New directive QS_SrvDataRateOff. Version 8.13 - New directives QS_DenyQueryBody and QS_PermitUriBody obsolte QS_DenyBody. - Fixed: QS_Deny*/QS_Permit* directives can handle strings containing 0 bytes (qsfilter2 still can't). Version 8.12 - New directive QS_InvalidUrlEncoding. Version 8.11 - Fixed: Change Apache 2.0 ifdef statements in order to compile with any compiler. Version 8.10 - Fixed: Did not compile with Apache 2.0. Version 8.9 - QS_LimitRequestBody may be defined using mod_setenvif. See new directive order in mod_qos_seq.gif - mod_qos uses anonymous shm by default. - Use constant semaphore/shared memory file names in order to reuse resources after unclear server shutdown. Version 8.5 - New directive QS_EventKBytesPerSecLimit. - New structure of the source archive tarball, see index.html#build for more information about building the binaries. Version 8.3 - QS_RequestHeaderFilterRule has new syntax. - QS_RequestHeaderFilter checks the header length too. It's possible to use "QS_RequestHeaderFilter size" for header length checking only (instead of using LimitRequestFieldsize). Version 8.2 - Fixed: Client prefer, don't mark connection timeout at keep alive end (used in conjunction with QS_ClientPrefer). - Access log events (mod_qos_ev, mod_qos_cr, mod_qos_con) are stored as variables (storing them in the out headers will be removed in one of the next release). Version 8.1 - Fixed: Checks for enabled cc in input filter. - Don't allow requests without an URL. Version 8.0 - New server configuration merger: settings within virtual hosts are merged with the settings from the base server (directives outside virtual hosts). Virtual host settings do not overwrite base settings any more. - New directive QS_LimitRequestBody. Version 7.20 - Fixed: Url decoding detecting %HH encoding (full range). Version 7.19 - QS_DenyEvent may be used to block requests which do NOT have the specified event set. - QS_DenyEvent is applied after the QS_SetEnvIf* directives. See mod_qos_seq.gif for more details. Version 7.18 - QS_Deny/Permit logs on severity warning if action is log only. Version 7.17 - QS_SetEnvIfBody recognizes the occurrence of $1 within the variable value and replaces it by the subexpressions of the defined regex pattern. Version 7.16 - Set audit log variables at header parser hook. Version 7.15 - Directive QS_EventRequestLimit may match variable values too. - New directive QS_SetEnvIfBody. - Audit log is enabled based on the defined log format variables. Version 7.14 - New directive QS_DenyBody implements generic request body filter which can be used in conjunction with QS_DenyQuery, QS_PermitUri, and body data audit log (to be processed my qsfilter2). Version 7.13 - Changed directive processing order, see mod_qos_seq.gif. - New directive QS_SetEnvIfParp (requires mod_parp, see http://parp.sourceforge.net). Important: mod_parp and the QS_SetEnvIfParp directive copies the whole HTTP request message body into the servers memory (requires at least twice the memory size of the posted data). It is very important that you limit the messagy body size for requests processed my mod_parp/QS_SetEnvIfParp using the Apache directive LimitRequestBody. - New directive QS_DenyEvent. - Chuck out mod_qos_control. Version 7.12 - Process event filter only if some rules have been defined. - Recovery rate (decreas limitation) for bandwidth and and request limit has been increased from 16% to 25%. Version 7.11 - New directive QS_EventRequestLimit. Version 7.9 - Fixed: QS_SrvMinDataRate/QS_SrvRequestRate counts all server connections (not only per child process). Version 7.8 - Directive QS_SrvMinDataRate/QS_SrvRequestRate supports min/max limitation in order to increase the minimum upload/download bandwith on multiple simultaneously connections. - Fixed: Activation of QS_SrvMinDataRate did not work (QS_SrvRequestRate only). Version 7.7 - New directive QS_SetEnvIfQuery. Version 7.6 - Use the HTTP response code defined by QS_ErrorResponseCode (default is 500) settings for all denied requests expect for those requests rejected to a QS_Deny*, QS_Permit*, or QS_RequestHeaderFilter rule. Version 7.5 - New diretive QS_ErrorResponseCode - Multiple directives (QS_LocRequestLimit, QS_LocRequestLimitMatch, QS_CondLocRequestLimitMatch, QS_ClientEventBlockCount, and QS_ClientEventPerSecLimit) allow now a limitation set to "0". - QS_SrvMinDataRate replaces QS_SrvRequestRate. Version 7.4 - QS_SrvRequestRate supports chunked POST. Version 7.3 - Partial (not for chunked post) fixed error message for slow server response when using QS_SrvRequestRate. Version 7.2 - New directive QS_SetEnvResHeaderMatch Version 7.1 - QS_SrvMaxConnExcludeIP works for QS_SrvRequestRate (may be used to allow selected IP sources, e.g. slow spider). Version 7.0 - New directive QS_SrvRequestRate enforces minimum upload bandwith (used for TCP DoS prevention). Requires thread support. - QS_ClientPrefer allows definition of free connections in percent in order to override the default of 80%. Available for Apache 2.2 only. - QS_SrvConnTimeout is no longer available. You may use QS_SrvRequestRate instead. Version 6.7 - Detects low priotity clients (clients sending slow or using small data packets get marked as low priority clients). - New directives QS_VipUser and QS_VipIpUser. - Status viewer shows information about client (IP) control status. Version 6.6 - mod_status handler hook supports short status flag. Version 6.5 - New directive QS_SetEnvResHeader. - mod_qos_control supports QS_SetEnvIf, QS_SetEnvStatus, and QS_SetEnvIf directive editing. Version 6.4 - New directive QS_SetEnvStatus. - QS_SetEnvIf for response processing (log transaction). - QS_ClientEventBlockCount on response events (log transaction). Version 6.3 - New directive QS_VipIPHeaderName to mark clients (IP) without providing them full VIP privileges. - Add details to log messages. Version 6.2 - New command: QS_ClientEventPerSecLimit. Version 6.1 - QS_SetEnvIf supports "NOT" operator. - Sets QS_VipRequest variable when receiving valid session cookie. Version 6.0 - mod_qos features per client (IP) control rules. - QS_ClientPrefer, prefers known VIP clients. - QS_ClientEventBlockCount, blocks clients on events. Version 5.17 - New directive QS_EventPerSecLimit allows req/sec limitation for requests causing an event. - New directive QS_SetEnvIf allows combination of multiple environment variables. - Fixed: sem/shm leak when using QS_SrvPreferNet. Version 5.16 - Mark QS_CondLocRequestLimitMatch in status viewer. Version 5.15 - New directive QS_CondLocRequestLimitMatch allows conditional request level rules. Version 5.14 - Remove "nicetitles" from status viewer. Version 5.13 - Again, minor status viewer changes. Version 5.12 - Status viewer uses "nicetitles" to show long rule strings. Version 5.11 - Minor internal code changes. Version 5.10 - Rules do not use individual mutex any longer. This allows an unlimted number of rules. Version 5.9 - mod_qos_control features additional qsfilter2 settings. Version 5.8 - Minor improvements in status viewer. - 5.7 did not compile with Apache 2.0 (ap_regex). Version 5.7 - Important: QS_PermitUri, QS_Deny*, qsfilter2 apply filter rules against unescaped URLs where %, \x and + (new!) is unescaped. You should regenerate your QS_PermitUri rules using the updated version of the qsfilter2 tool provided by this release. - Very first release of mod_qos_control. Version 5.6 - New status viewer implementation. Version 5.4 - Important: QS_PermitUri, QS_Deny*, qsfilter2 apply filter rules against unescaped URLs where % and \x (new!) is unescaped. You should regenerate your QS_PermitUri rules using the updated version of the qsfilter2 tool provided by this release. Version 5.2 - QS_VipHeaderName creates session cookie only once. - VIP has no QS_LocKBytesPerSecLimit/QS_LocKBytesPerSecLimitMatch restrictions. - QS_SrvPreferNet triggers for VIP user on response header only. Version 5.1 - New directive QS_SrvPreferNet. Version 4.30 - Fixed: Segfault at server startup when no virtual host has been configured. Version 4.29 - Debug log level lists available request header filter rules. Version 4.28 - Introduce request header filter. Version 4.18 - Introduce log message numbers and SSI support for error pages. - Add new directive QS_DenyInheritanceOff - Add qsfilter2, a tool to generate request URI white list rules. - Use mod_unique_id to tag error messages. Version 4.13 - QS_PermitUri uses case sensitive pcre. Version 4.11 - Add new directive QS_PermitUri. Version 4.8 - Introduce generic request filtering (QS_Deny* directive). Version 4.3 - New handling of graceful server restart. Version 4.2 - QS_LocKBytesPerSecLimitMatch, QS_LocRequestPerSecLimitMatch Version 4.1 - QS_LocKBytesPerSecLimit Version 4.0 - Introduce request/response throttling. Version 3.12 - Update to mod_qos viewer (status handler). Version 3.10 - Dynamic error page definition using setenvif. Version 3.12 - Introduce mod_qos viewer (status handler). Version 3.5 - QS_KeepAliveTimeout Version 3.4 - QS_SrvConnTimeout Version 3.2 - QS_SrvMaxConnTimeout Version 3.1 - QS_SrvMaxConnExcludeIP Version 3.0 - Introduce connection level control (QS_SrvMaxConnClose QS_SrvMaxConn). Version 2.3 - VIP detection. Version 2.2 - qslog utility. Version 2.0 - New implementation of location based request limitation. Version 1.3 - Initial version (scoreboard based request limitation). mod_qos-10.28/doc/qshead.1.html0000664000000000000020000000332512264072142014516 0ustar rootbin Man page of QSHEAD

QSHEAD

Section: qshead man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qshead - an utility reading from stdin and printing all lines to stdout until reaching the defined pattern.  

SYNOPSIS

qshead -p <pattern>  

DESCRIPTION

qshead reads lines from stdin and prints them to stdout unitl a line contains the specified pattern (literal string).  

OPTIONS

-p <pattern>
Search pattern (literal string).
 

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1) qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR

mod_qos-10.28/doc/favicon.ico0000664000000000000020000000257612264072142014354 0ustar rootbinh( )!)!œœŽeees¯ñóò  ;1&`MEEEœÈ¹8‰n5}g}}}o'€=(= _db PB…ʶa"˜v´¢ijjªÚÊ%\Jüüü‡®¢ªÌÀj ‘1u_D¥…æåì1zb ÂËÜ.lX"SD¥ÔÄ>BAh…{1ZQUNÕ‹‹ŠHb[ /=8ewïñõW%QÁ½Ã4i9]Rÿÿÿ/11y}ÕF9MFÝZ@q´´´qtsLYUìììorqggg>>>>>>>>>>>>>>>>>>>>>J&&>>>>(9>?>$$$$$$$ /%>>>$K!B:@>>>>. ED$ <>>><<< +$$><<0C$1H;<<>><>#6><>><">37=>A<>><<<>>G<'$)$< >>><4$!H <>>>>><>><5>>>>>,><<<-8<<<?>>>>>>><<<<>>>>>>>>>>>>>>>>>>>>>>mod_qos-10.28/doc/qsgrep.1.html0000664000000000000020000000436212264072142014554 0ustar rootbin Man page of QSGREP

QSGREP

Section: qsgrep man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qsgrep - prints matching patterns within a file.  

SYNOPSIS

qsgrep -e <pattern> -o <sub string> [<path>]  

DESCRIPTION

qsgrep is a simple tool to search patterns within files. It uses regular expressions to find patterns and prints the submatches within a pre-defined format string.  

OPTIONS

-e <pattern>
Specifes the search pattern.
-o <string>
Defines the output string where $0-$9 are substituted by the submatches of the regular expression.
<path>
Defines the input file to process. qsgrep reads from from standard input if this parameter is omitted.

 

EXAMPLE

Shows the IP addresses of clients causing mod_qos(031) messages):


  qsgrep -e 'mod_qos\(031\).*, c=([0-9.]*)' -o 'ip=$1' error_log

 

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/qsfilter2_process.gif0000664000000000000020000003507512264072142016373 0ustar rootbinGIF89aõp,õ‡  0Y  $$0$$$$$0 ((((,,00$8,,000040® 8]@00484488@44888¾8<4<<08<<<<4<<<@<<Î@@<@@@,DiDDDHLLÿ$L¾LLPPP@ÿPPLPPPÿÿYPPPUYÿ ÿ ÿUY]ÿ8aY]aY]eÿaaLÿaa]aaaÿ ÿ ieP0eÿÿ((ö,,iiiÿ, imqimueaDmÞÿ00ÆHHá‡/d÷¿ÿ]ÂF•§y`€ÀàM0[Úá‹Gd¡¼Y„(\QUy¨Ä½žï¹Y—¥ о¸îqšÁ ÖºÀ(þï¦pyèi,€¨‚g<”|,#màm8AazøÃ6Db Ø…´‰Ýrã'µf   ~+#]L¬Áº)β ¤L ci… \,¦y°@Ä4N3N¨A‰Ñ¢!ÿ¸Î`owl£a%íâÐp’G€Ü¢ïAè¢,e4gF¿üÕ‚–³„/`bÓP0 &i€@MjÎôNèA‹‡V´sZ€œÍ$²‹ÏAÆ ºP´?¨ Õ÷5ôdHlâE§ø …0E3îÑ^ ÜÁCJ( M[%l­Bá ̆\ïE¢í«ç%ÂZSè¬CœnLw G°5йìe0Ÿd`Ab€ä ©ÇŽwD8í麂á¾°ð¥ a$âÖÕ^õ’ër;än»>²N‹~1áE‹û¿~t¤yÒ ­À*ȸÆ7ÎñŽ{œãà€ÈEþ›üä(ÿ÷ø B>ò–Ÿ å* ÌòyÛ"ùXcûp g/†ÔýˆÀŸþ€SSÉÖ6øŸ‚Ø?kzáq!1#Zûpçzך§Ö·Îõ®{ëSØÅ>…¯›ýìh?{#Â>ö±O¡h/öÍçþ_ A±YE;*tR íKÂè ÁÒÔMð"5²}a1‚‹z-Þ¶r¸«Ž]r;³øï,Ó ) x Ü »è)² ¸ÖU¾ÈÇžømZðL" ¿ƒÃ)Cš<™Ïîæ Ï¡½ð"GÔ5 œXßz&\"üúl@ûëâZ×¼nOî±kŠÊèbòÿ½ƒÿ¹‡O~äüÁt¥„Qôæo'ÜÐ…ä«¿å._ž?Áø/&03 ðg×ãW~¢ç wGW} |®Ñ~îG_Ïg±7{”g{7 È@}ص™Á¦fŒHw´PWh° cÂ| Èm}¦0uH{ׇuRÙ…¨¡'–]˜}!hlþÐfs•®às°¡€; ìÀD ˜ðþWu–€Bƒ÷€ 9ˆ];€ <؃4Fä5W°~²a„ MàÄ „±Í€ wà{´'8B…×å¿q“ð‚Zø üà…3võW¸Pfh ɰØå žPÿЂÓG1Ø…8 |ˆ‡ÅŒÀ‡×¦ð‡€X[΀~qÔ(øXÞðÿÅ}‘ ±P [`ô…\ Yˆ‰Ç…€bA°{¡8X#8Wr°w¨˜‚ìÀ(¶waÄP o†ÕG‡x‚‹ÿ—ëà(vÀŒQµ t%ªw‡ÈñP 5b2à |°éX}“h)Öˆ]wÀåã ÞXTç@ŠU ÔQ޶ž ô—e¶˜3å…kŠÜÁ ø`R€ û8Qô0ˆ®@%©x„´xØÕ[P ± &ëà éÍà_öÍP‘{äaW”éÄÿ ô·|à É¡Q’\r’Ù•’ðÑ ˆ]_00‰>@W}@„Ðq“Q ŠHy:ð•@ æÐ¯7$D‰]F‰r˜]À×”çƒ sÕdIæÀŠÕ×ï²3ay]Zà Ox]p …h .Û„¢†é˜Š¹˜ŒÙ˜Žù˜À(pK ɘ5'.÷€e×%”( ý‡b˜âbzqå \" p↟ÀZ}™bÁ·G÷P–žÙ!ˆbHš•â sE `b_‚Ü€ Gu¦ Å4›ÙU›!¢ø_‚º‰'¦‰a"s®ÂÑ'pà_“ ›´ù™ÿÂX`[(žÓI$Ç0W¨™š‰ ošÅeyÒ)#W˜…×µ…z™žCâXÖù›‰œµÅk]G˜(¢‰œX{ŸÈŸD¢–rÕž\"s‰™™e ª 6¢‰¾È Š#þ)W}&Ò°˜ð‰VŠ] :%ٸݢ%â sU˜Rb‹I ‚µ¢È¡D²ù_G 2Z"‚ W &ª˜ŠVAê;›a‘ùX¤’¤xŠ•Ö˜)JTÚ¨…RŠ'ÓÀ’ÿ¥/i¥Žq•Ry£©£Qõ¥ù¦z²’(æ’h: œ W‡ ¤ŽÙ¤6%§PJ§•Ò{(v–yÊÿé &ÿú˜]jL‚jL™3ÁÀ™fY‰úá0WúÆ%8ê˜p:Q˜ ƒy>¡ `£™©Ø!VUU™Ð[~ú˜€ZL£Š]6Pªé3 Ïù_…PŸªjÔÀ[Ç%' ™*Cµz]·ªGÎÙ¹ù«Åá %ZY0ŽEò©ªz”¬.°¬ÅÄŸ€ŸÝÊ…ÐJ{*ZI%K*«e ÿ…œuŸæI®åÁ*Z&Ø$Åz™Ç p™°;°‘ù_ @°›° ‹°l®q›`ž¸ŸõšÒZl%Ø ™Úš  ²";²$[²&{²(;²©ð_©².û²0³2 ²& c±ÿÁ û ‹çºX5©®;«Øñ±3[´F+²+›]-{´LÛ´G[³Çñ¢Æ;;jºXùZ$û °ýzDë´`{²I‹]K¶f{¶# µÈ±w°ðZµ•áþ8W`ЦìÆu‹¹ ['wäñµhk¶¿ Ù¥[¸g«¶ÐA¥I¤p;OIWœ€'‹é°}k¸a¸ƒk¹šÛ´ˆKÜ@¦Ëy¦KWKWZ&“{~»¹3‹¹ØE¸¬»2Û¹Øa§-)º£ûrkov+%© «+».ëº×»Â{¼(K»ÙÑyŸG¨¹›‡PW‘+¹ŠI¹Ü¼È[²ÄëÆ›½Þ+²Êÿ«†ú{Îû¼C±ž¦›'¿ûØû½ û 9]uà¾ôK³6Ëß'š>j¾?¥s…z²¾îÑ¾ß ¿ò[¿õ¾¸÷š~à«ü+Ñ+W¡ÀÕ«º²Œ]ó{Áî«ÀäѬÐù¬èWÛ@Á‰i½ÛAÀÈ›Á×µÁü½Œ8è¬è9Â8‘rÀ( *¬,,¼ÝÐÙµ1L¿3Ìòú_ç‰Ã>q¤ÿH)ÜA»Ý0E¬GÜÁ÷{zØ ;à‡N¼4Z¨¾ ¼õ{ÅY¼Å\L!8 q:;Æ)AUЕ2ÅìQÅšËÆØµZìÆ2ÜÅ‚Š]¿HÇ*ÿ!«Çi̾îëÇ×È‚üÆ"µB£Š,¾pƺ¡ˆ¹°¢<ʤ\ÊŽyAÁÇ…Û KPÄÝPÉ–ìz@¦\Ë¢,P¥(2¶Üˤ<A1 ¾<Ì B‹¡LÌʼ̢#>¡Ê";¥,“‰](`™ÌœÍ» 3›Ä(qÚ΀Ëㆫ8aâœÎÌ•‚Ë )àxî| ðÃ(‘˜@üÜÏþüÏÐ=Ð]Ð}ÐýϘ„¬Ð²`Ž:éM”õ| %p ÝÜÐ)¡Ï ýÑ ÒÍ!p§¸‹D°½×Ðì¼Ò·ÏòLÏ0ÿí÷ ‰©°,È<ÀÐ8]´}ñ0Ñ]Óô‘ÑÓ Ó; ³ƒ™Sp§åûšœ)mÔ ÑÒ/Õž!Ó@1Ï\ý7ý9ÝÔ[ÜÓÀÑù Ô·Wy]EÖßÔ³«Ö'QÖfí²O f0¾ÿ…¨‘6¸W-סÕílØ{áÕ?ÖŠícýÌK×1ŒÖvm ²A øpÙe]ùØËA×1ëÍw=Ù”²{mÁ—(&~á{ƒmÕ*-Ú{ض½ØñüÕ4ÛuÙ=ש]¿–ýÓ3»ÙžÑÙŸÚ¾ ¤ ³¦Ù¨=Ü%»Úqªÿ•ªÛç³}…ÿÝÜvÛàmŒíŽ=޿ϧÍÔÔí¾ÅMÖlýÊ] ÞŸñÜ/Ý!Üí-²Ö]· `Œà»z]ݧß=ÞâÞåÝçÞÀÍüÝßÈûÞÏßzá Ì]ó}]õmßžß.«ß1áþßÂÙ%¸VÕ‘àà½àãÝà<ñàãá;aâ.»Üžoðáu¡ŒØ¥Þâ÷­Ñu­Ôì½ãò€â±Ä‹æâÿãÍ-ãàMã;aãàã:¡ãN¾¹=.á?~Õàá¡Mä×¥Õ€äIžÔd=ÝNåq… Úâaå¾åÍ­å:ÁåÍíå9æan¹cžãeÿnréFà jîlîæo¾äqÞä;NçÁ‹¶ö¶¡ç¹Íç¾íç9è¾-è8Aè…^¸‡þå‰Þg¾âÙé’âJ^Ú—½ßr~é‰ÉÚ á®‹æ­^Ûè ê¹-ê8Aê¹mêë©®¹«>è­¾è&ë³Þ"ž²$>¨žÚ˜~ð ®(ìáé¶Mì¶mì*ì¶­ìÍìÍn¸Ï~ê‰þê(&kXí´ç’mé'¾ë ÁU'îä.Úæ.Úèžê.ÚìžÏîþîïè÷ŽïœqíÉ{ë%ÞðÔÝíwžeÀ>ð]ð}ð(‘ð;"ŠälPxéÍäÿϺßÑeÎï˜b5Pñß²Ù.ÛNÙÝ +nQ:î®à.Ø}¾ÛÝÛ9e@ñOw ¿Þ3/æ> ßlj`k;ßó~ñó&ô1ôy]ôÁšSWà(–ô$¯Ø&¯Ø(6î' H‘ WðtÐpWP Èu\vñε:W æ:~¯?*%twaøå\l@ W@ Ê•Y/Ýü¾õg[ókýõvóâVÉ@ö|aö%‹öÞÂñÃÍö }³`ee9§soØuoØwo6Îp:ýp# ñ£?íóŒ@ÒÆ.¤@?Œ‡\büùùóUjJô3WðTÿoëŸúa+úwýãaok= ª¿úµÝ¯í°ÏíþÄÙ_6°P°ô1Þô Þûñû¡ßÀâFÑOÈ•°8pD±~#" '0††ïú±I8p D‘ûE¸ø1¤È ÀýƒSæLš5k @ÞNž=}þTèP¢Eõɧ-›MÚ€”'‘ìj¸ÀšU«‹žð±VìX²eÍžE;¶Ä)©òL0}÷)NmíÞm;§¹}kƒ²(í`Â…Í^k–aÆ ÃJáWòLHY‚ `ÄæG°ù0bEŠ8P Zç)1³$)±4ÿE•b]NÆMïnÞ½}+·ß¨m©L´u«¯Ž?‡vmÛ·Ã%ëö·^|­÷%"8úxLj“Gorßc¸ä ¯ ö5ÄbõëWM°_lÒ'#Ù§m?6"`è5‘ø3)Ú d鶸èåœá°Ó®B +N¸ïjJ‡ ¦Š“ê¸x®RÎ*‰'=Wk:©ª‹«C ‰ËéBâλ§\9&ŸáÂc1ȱÌ[LH#EZO.Wª¨÷$‹ï²•"(’ ŽØˆa RÊÈ£wì'†ü`IHˆ”®HˆÁ~ºìçËÙR³¥—â’‡É6"¼®Æ‘Ц–=/ÌpæÀÁéÿØ q OJ¬!‘„4:‘‚ñ)B8ÀÃ<ëú³Sžr”K&éQ2 #’HTÍÓ±$ãZ’I&|/®(E20…³¢ÐŒh3`)‚&‚…PêgË+®ˆ€”~` K–„íìÍÚÂrð©:e­âN ã¢ÐÓ 4yÀƒZçÜè0æ¨Ê5÷Ï@­éRœ(D‹¢ Ÿ¶j”´zÅUZ†ÎjµU±þ€¦0‚Ç›ô¨J²·PMÁÕÓFtÅÝ Ô¸Då–Tã:uÕýF‹NU“ÇúÌÕÈ”ä–[Zºu wIœH"1ÉH¾ô¹œb8ç{:À qðfÛæÔ6fYÿ½u*\Ž}r‰üTWžü,ê‡Öõ@Þ¥è­÷^µñÕ—(ªÕŠÓz¸Í†ù+«eh<«î³ü~.b£&tí{3q&«+ܘcŸYj‘*yU¼¡S™¥H®ˆáœ±ô¼¡+„pö …†þCÌžÅ=¬–Ÿ=%8c å¾YzuG©cž™¦š Cye°²ujÛÝíÄ“¦Å+¤ã:NA”ŽʈF:hrÊHÝë GžSœøA“¶×Ä cÔߺqçE[¦Š g{_Ÿð7+>Ì ëüüÇÕI`a¥”ÀÂsÌÓèJ7-Ðü¡H©cƒAþ@ Ûõ㤸‚íòcAÿô*§É¯P¤´®(„³Éü ‡¸›dì'eXߨB¾}!âNØ×úœÐµqý†tà‰ô¨ÄéUO(sJäŽ79šTŽ,"Ä™ÿpÿa°a°ˆÍØ`Å‚H#ÅéBw˜ÄN#€™8’6c ÙR$¶ä,4ÁBW‹ÙH1D6 AZ%®"A¦ƒ@ÅBj lÑ„$$3q<©õ&¿+Ì…–ä"’Ÿt$3(3ªÅdyÙù¹ÊðîµàµX¥õ°Gu©ë{ä "NáîÕ`OÊP¶=G¶@f2•¹Lf63™› ýòe?yÿno¨YÀ ,&Y2ÍY& %dÚ D@Ó²<îq‚Tœ®€ 7ÕñŽDã=Ó22@ÏŸÿ¨?+pLg*šÑ\ MéBŸ” «lÁC7–ÊS âæ3+wé>ŸXTˆð1=ðÊUVÏ•°ä¨O¸óP~£ Y©bâD±Ø“J€©™+@C„ÜO‡Cê± ý¤®VR–Ì ¤hÉJÈè0²Î^ä¨HMHB·˜bQäJÃ0"„„¬Ï‚LÕJÉ™ar“Ð1€Ö:WnQ픽‰ÆÂ'éy ˆâÛ /»7X¯ùɈØI^»gDž âPÿfChd%;Y„Ns'èÁ²Y!€&¿ “UÏÌ5%KËZ¦Õ†¬†ÉhTšž•u#Œ(»[Þ"”…w}b½&ܯåÕˆ •Ç wrŠ”òä¢;¦<,Êå>à¯ÔT)N6@WîNަa¹jY÷x²ž!kM¢AZl‘:š…œ¤te=KS*„Î$äuf…f8CÖ«HÌ"PzÃzÕ“èñ`ý ,ÒÊ]7‰ –y+yâÚ`î¶á®¼áa¸gÑÈ0°½DW׾浆µàáN,*ÜböÖÅ/V[¾ ´I€Y5H¯Ø@Ú„ÄÆ4œQ$ ê+ÿº6µù¡ÿg‹¡ßÍd5h at c*ïÖP íɈ »“¯ñP]‚å²P´\‹²•alÐ-‡=|DíR˜®ÀxȲäÓd>£!°‚.w²@3£q#Zä»X@ƒöÝ`Ã&úIW@étÆ«ô®vh ÂRIΪ`7¯ œp†[#ì˜ w¦àÅ…w“aî-× 0Ÿ`k¹±Å(&ìNœ eÈVÙ×%A¬qœÙ˜J!Ñ1ùìG30¬¢‹t¬^Ù(YÏö9Ѐ|–)ÿÚÛjS!€ 6-w¹q_nµ×Ä 62Ë£ -&1Å÷jó…;Û55%½õ]Ø\û>wÍ¥ÿë<>gúŒ'aÚRÉ"ß^ÑׂÒrH˜ò“é›ö¹"=ûÌjð+ä×EÜ!¡Ï"! ’—Üä&o]?팘ˆzÔŒ9N>s’÷¡»=ÂT½› J°0âÏALØ÷U|eãáõ Y ¨ÀéO‡zÔ¥>õ§ƒ ·Á¶ÆTvvÎÈQvlfcg«ã ©ÛëØä&iWÜJ 9“ÂË’ ÀîwÇ{Þí>€¦SêVçm¸Ó“qs™Ü~ê9táýîK(FwBÙ˜»×ìÉèf3V@ó™{®¥ü¿Yâö+…AcMXHòñx]aoÁÂu,uF"bBV±ŽÕÿ0]Lh²ÒQG &®O"ÇJ ¯š¼é—ÁJ­+÷„£C’=‹dÛä!^SŒ7ÊÉÃæUØ9^,ê„6òf~@õdâyÀº½apsýxyÞ-Nüf¢Búaý'Ä> n¢ˆ *¯Q¶“hÐ=f‘u +ࣴŠ`-!“ˆ7ªië=^¡ea–: " J›É<ÅÁ2ç:<Ó® ŸhËkÈk®€¿T"¦Tz7b:¿H¿ÌÓ‘$R+Л)9{¢]€‹-ä[¶~úª½(–Ó4ÙK°¢ J¯a á‘€‚6 ‹½ ¡.ÌŠ0‰k>ÿÝ9è³ —cŒØ8+jK쳉퓙ʇU;AíˆvÑ0|ž0†½b7ž¨…½:vQDE¼5\ÿÄAþ»ÿ <‹áD‘x/ÁFC’§b 2$C¡Ã© Slˆ‹`£1Ã59ÂÁ¡Aš°Dœ(Á┟›tyÄÄ*Äž¨(` ]j7,ƒ_”cF }Kžš½-œE»9°¸Æý‹1´™ý²#£óx9³p#ƒØ±È§ˆnqCš‘>è ‚3ˆrªC¨)žÝa"˜ 4à–P¿ÞÄ«,J¤þÃÄ¡ÐÄs„HµÀ®TÈÿý£Ÿ]lЂܓdÜŽ½ˆFR辞ÆMò:‰›BsŒÈ±Ó0#$YCwìCPó 84 ês²sj}D;¬‰íûG˜ ‡CšsÐÈÝ ƒ¿BÈýû‡ŠiH~Iɨl‘‰´ÅŠ”p#„Á“‹¢´‹ðʯt¥ž0†3ëÈîøÈn ɧIá†è¯ë[8*”ÊÂhǦp…xœÉy|›´ ð\ÂäGí«‚ŸŒ ZƒJú®LÊÆ,Š¥Ô?B 7AЇœËˆ¬E¡¸E‹ÄȾ`LÇ, $j ABð ÂË<É–DM³¨Ë;üš, ¾ “p¢CÁ” š‡—Ú\XÌÿ?ÍàD ÈŒŸ}ÐJÊ< Ë\ÍQËÌ ØL™0NëøLá´7¤“ïXËåùÒαhM¦üØ$ ÙDÅÍLìLÉÈQ ¤,ð‘é¤Îà$NðDN£PÎîžæŠçDøŒÏžMð ½ÓÄϰàÎÅ—ÐðÔKçàËR¯êƒž” gHJ¢ÂÎÿäО˜O¦¬O¨DPæ¤JÍ´ÊþÜÐ Më\P˜ÈNí<Ð}Pñ ¾ÌˆÎz#‚HÀ}Ä yJ˜Ú íE5RžøPý Q·‘ÑÓÏŸàOzñÏ Pð|ÑåŒÑýN¦´Ñ‰QQôQÉ …,Â…*Òÿ#5Ò$Ÿ%uÈ&}«'õ‰(”)åÐ*eÊ+]Í,EÐ-Õ¿.]N µ _˜+Z@S5ETy`Óþ´‹û„S#‘Óž Ó ±ÓÿÄSýÓSÔäÓõÓøÔÕT›X3…)z8ÔD=ÒE•ÒF}Ôü,Qç& aeAð‡ e¦mZ»xÚ ‰Z©]ªYi½Z5ÍZì$Ð&íÚËüZøøYÛ YY1Ù‡—¶mÛ¼}[ a؆uS¡pTº…˜˜…Ò»•×4\yØ[ëØZˆüÛ¹ \ÜÛ”Û¡•9(X˜ðNp©qÛÏ=Š¸Í¹Å\ô°Ûÿ†%RÛÍ.³ôÝÑ=ÇÒ•ÊÓŒÔȱU¢p˜ NØÚ^¢ÀÝɨÜLÜ]!é]ߕޤ Ýé[5Þ¨D^(Ü ZBEÜç=žîÞ ¨ÞëÐÝì•ÍSεZÏÜïÅ â}¹ñMÉòÍË—Yy Zו öl_È}_§Ü½^ ¸\úuŒí¥\VQþ ÿ5ŽHî å…H‘m^™xG©ñCým`¥|ààÿ£àºµ_IÅßÜÀ`*µÕåàó`ˆa¹ásüWõe’Ä…‰®$œ(€€bâ&vâ'†â(–â)¦b€bоŸV †`|©â0ã1†ž'ÈaÿÝá·2!ƒ6vã7†ã8–ã9¦ã:¶c9OH°€;öã?ä@~cHOšð‡aE`˜ âã9„osäG†äȪaëmTA¶äKÆäLä˜ahä<‰äPv±ÔáÐäSFå7F‚3påW†åX–åY¦åZ¶å[®åQð]˜\öå_æ`Žå8؇¸Ànq^˜8µ  åg†æ ­¤\» ƒ.ÀælÖæmæænöæoÆæ'‚Ø€r6çr~pVçufgoκùd¿pæh¦gúÑeßµaÖç}æg3€„]è€螌C–•Gˆ‰eV+Z†~v臆hÿˆŽgâhÚv¸Ç•QXá‰Ýepˆƒˆ¾å'X¾å&è“Fé”Vé•fi¹8fYù–À…”ƒ©eh雯i¨PØa, ¤1è„gØhŽÎé Q…$°‡¢Vê¥fê¦vj5èQ¡‰cØÝIæ§Æê]Öâàt†LJòI`†¡öä¬î‹4H‚^0ëµfë¶vë“~i&‰é™pÏÛZyë¼–[5͆PPJÂGð²¾_½ž mH‚$ØÃfìÆvìÇþ‡a탦ÈJ‚ìËV#WpƒQ:„[hÂÞÜÇ>êÄNjÌFíÔVm”vnךXYÁ‚I²“Õ¾ì­ît¸…ÿ²Ý<…qmX}l´Nlµ¶íãFîäÞŧ€^©–QÈAPnÆÆmi_˜]JrƒUø†à®JÇFìÄVìê6ïóFo˜hmYyíšHL&9†˜È‡!Mï¶¾î 9I°ëÝQƒNÈð>¡‰ÆéÒ&ïÓ®ïGðÇfn§nÁëgëûîg脯>/È„±ðÁð›&nò6nñÏjjpm˜œð«¡ð¿>žÀ† ‡çÆoò.oÇñ¿in’§([#Öñ¦–p©hqÏm§Žgi·qò'‡ò†XWpŠÊ–úŽr¥ò¢(r¶úm$¿‹ª]ê·ñÿÏò3GsëØ¾¹žê>|Ý4¿é- fðêQšWøn0Ç 1/ê·ñ‡ó@ô¦Pè*ƒ§…ƒô––óž s ?ž;Ïs=ß >Ïi&ÿs'_ôM‡sJNx ¶5TNOéFt;ÇsJÏKÇé0øó2'õXGó÷®‚øvвµuYè!?uJ’tU¯Voi?õÅÖõcÏñsàSu š®j@v¾î^ôTv v–.…WÏôh÷vÇæ~ ¢Åòo‡à£ öÝùõk·‘l_iWçv7÷yGïÈr€upz?÷¡8†:÷ukg÷q÷”&vn7v}GøÕÎrYÉÍÿ„oS ÐmGØouø€ß“Gém÷&‡ø¿ìm•,xó`åWÒžøWàm‹ŸtŒï?ixïøâFù›7l‘¯í§0ñÇùu}†PèlTy˜÷™h}P…¥_z* oC`zUІŸ§z¶Öùn‰‹B—ƒªp†€ôã郋7zŽAz•¦yaàúµ_ëBoƒ¬—qgû§ ‡cx„£•šÀ¾t({Ð<û”Nû¹ü¦.t¹oŠg’|šh\hy©QƒLˆñ¾οGéÀ_üÌ¿éB§î§ðnaó¹ßQpöH¡¦üø´ü™'oµ×ü×WiΗ‹pe_|XÿN õãñY(úÔ¯|%oi̇ýâh"îü§ðt& …µo|ŒFaNXhtàÇvágiâ7þí÷ÝwÌPcŽûŸÏ‡ÜÖ㹓r¯~ë׎Õ'híçþ÷Ïwõ¸èù*Pü‡U¨j±Ç…v¸ õy,hð „MØúçð!Ĉ'R¬hñ¢Ä0I6 Ãèñ#È"G’,iò$Ê”*W²l ‘V•˜x<æ‹3œËœ:wR”çëQ›B…fytŒžE —2mêô)Ô¨R§dÈójD±ríêõ+ذb¹žŠc›‡Æ²ýêÏY¨´CçÊEí£Rªz÷òíëשն+µÿ&é(ø0âÄŠ3þÆæ1¢„:klä9Z}æÎCé˜<‘yÿ’.mú4ÂÀ—A6¼ú5ìØ²s²ÉÉ£?46Ñø›½šÞ1J9 íã gÉѨ—3oUµï‰­£S¯nýzÉc6Á|\&Tö¶ò–…’C\h›PËò¥Tîü=üøÐ±Ooÿ>~ßô„žûxÈfýåwÕ9¾P"×yUdq.í´ä^|JXÚ|×Õ7 †j(6¹òQ;AÅÔ{¦-‡ —`xص„Ê8£TZw¡‰9긣I“Å$H«%‡ƒ<âF+‚°¸Ýggñ#QJ™ZC÷áh$–Yj¹ÿPÛ|ä‚U€Q™–ѳŒ(.Yà"`WPN9ç”6Vwe™yê9 ?+ÊÑ›Gá¬Ó‡Y†ã 'a&Ø'Ç–œtJ*£Ôá¹'¦™Vç‹P«€$š6=Râ†ÛàÊfk¶(Ê2N²餱ÂWit—jz+®«¥ª œùCÉPmÐâ*vþlC %¡®)È*Ôš¬²J»­¾Ùš+¶Ù ¢M}ˆä‹ˆBQruôlãÊ#вÆ!´xyY´ÓÊKZµ³]«-¾ùvåŠP¸ˆŽnsµá ©–mãŒ+‡¬jrPò¦lñÎ;ñ^õÊv¯¾kÌ’?¡fA,Fô(ÉYœ,Ó«ÿXòlã º‚„Ë0œà²Í³³IL1ÎÏUiÆûüóHá…GÁ…ÃÉËsõÊÌ5»´ ’¢bÃC Š/Èawó@Æœò5Øa‹=6Ùe›}6Úi«½6Ù¯Ô¸sx==7ÝùS¡”/T³ØÆ!®~Ì6…²±…#,¸Ô‚L]5ÉÌžŒ!×Pæ™k¾9ç{þ9è¡‹>:éà6TÇ&wÝ­·¦Ph 5ÀB~;îCá!ˆ+Îè½aåòÐñÅ<òÉ+¿<óÍ;ÿ<ôÉ—pŠÎø±î:ö@Ë&ä–D-‚,œ;ùD òˆ+„ƒœcðÃGÿ>üñË??ÿòÓWoåF…e¿?ÿÑ£l–¡’|‹»*ßß®æ j¼ Sí£#(AÚ/up£Oþ\Ó¿ Ö-#³‰¿\Ò„ÂqŽSgú`ÂUn…{¶8ÁÒ°†Ç«àST›ëq°‡¹òÇ#†² §y¥…#âÜdhÃ%2q~8Ì-”ARqnµA÷ªx%6±‹^dÞ›¢Ã×ðP‹fÌ¿†ržñARqßã(Gâ…‘)c\MÛ¨Gqj.«(ÚOÂÅ9’‰u\Ê/“Ç@2RCá8`LÐà‹F¢d…¼ä ©DZf‘”ü$~Ž1¾i ” ±$&SI?M&„“ÿñ¤)ci|¬"iU D)eYTª²—ïc%•¬7E]SGíø]V̉ðÒ—Îl0âJÆÀr™Ö| 5PX²\³™Ïüfý¨gAanåšæä-l9(s™Þ'<ûMƒLs1Õ<'>>*ˆÜå;ãùÍyV%Š7f>jj 8rXEúFRô†âÌ¡Aï„P…rô:|óÛ\ŠÒ O´¢½$èB2j©v´¥Õ9š:m¨õ²¤&M%JROÅÜÓ¥>eËG—„‡fµÑ¦7½dN²ÓÄôô§NË9VI’Ž¿ã QJȤÊc©ˆiêSà –|À…ŸCÉ‚ÿ Dወb/«Z•#W½z°Šµ®_ñ‰p`F Wlc}së[¿W•ÖŠ¥v=¬l2óAUY„»ª¾lʆ¯x_Š¡¼°¡œUÞ ¿ÌÚp°äÔbS I|¸CÃùwÄNôylAe/=Ò&o…Æ;”ÇÛÝj¶†¦Å_9U«ÜèœPîvŠômcvF’ìHƒ?ϲÄÇd¯‹âÁâ B ñH 6·x¾íÇÆ _Ί¾¸B{‰÷R\áïè¬~ƒËÛHá ¢%ÅûË‹Bñ´\.„£Žc¬Bƒ*ŸL8]Á-Ãp~½N¤ÆÿÁŒø¢€cóØ!C¸õn?"À†b°!õ%E"côfÖ²‘8Þ{ßר¾ø5Þî{÷cš%íF‹HD`¼2•åû<^þ2˜ÃìeBf>3šÓ¬æ5³¹Ín~³š©`ØÓY?ç¢ÄTèP ·°…k5 ·ñÏ:дè3º|ЇE÷A kB1óŠœÞbx÷Ü%ž“›üã~L9ÆÈ1ò‚ÜÙ\Z¾ÃÅ´º«Û&?ùÉõíG$p;dâÁ"¿ÎËÀ ò§ë]óº×¾þ5°ƒ-ìa÷úÁu>¶uÂa*Wpâqz~6´£]5H/ï¶î±naqÛÿ$·úxøö‘ÜÙ÷R9B0uq¯­j÷¶º¼“Üh$9›†®‰­ï}ó»ßúÖ²Ž!ž+a®•6Â^>j+ÏÚ˜þƒwaAjÍfz¸õ%µÃÅÝdsú àqº1 `&WœÒ=¦tºi|ßèåÛß.9̃M}¼æ9RYáZXaÇAWá>‡öÍðäÕ8¸â°±w~tÍ~¶“1Å9.ò7ùÕï=5Õûqôྃ´^—/R-„MG9z ƒÒ®öµ³=íQˆÂâ.÷¹Ó½îv¿;Þó®÷»à6ÿûžÌU¸c´&<¼ òüsÎìîðèÜ D!ŠaÿxÄÏHÈБWãDù ýˆ¸’“Ì]h˜û ­zO¯ñ÷F9ì6n2©5ŽiÎsê°¾¯H‹ã+˜½Ð;.àƒ/ü‰±ÐÆ/d+Y[ç½âmñŠûüñŠ#¿‘¸wºk<íkÞñ5^1lÝ}ZÿøÀéÇõ_­õô/ø~Ã?ü_µüÀ>øñ¿?þ·8úûÒþùÿ?¶ÇþñŸ*ù_ âÅ &`> B`1`i1˜Vf N Òj þvà}`ž ü F ¢  ž ®à*Y aà Þ ²Å  ÊO â Ò™î üôà¡jÿ¡F!Ö&áó,aNáO=!B "’ R!¶”^áòHaŽ!>}!JOnÒ’!^“ž¡E¹_ΡB½!Ò¡’ÔÞa&¥a+­á"#Ù¡æ!!&¢â"¢">b1":"$VâþHâR¢%nbÝ´|"(†¢(Ž")–¢)ž"*¦¢*®")& 'Æ¢Ï t-Þ".æ¢.î"/ö¢/þ"0£0îb¨ƒÊ"2öOðä 3b2>£26£4ò…\A£5æÉ2N£6Vã5vãui#8£7Žc¾dc82#7’£:RÎ9¶£®#¤N â?$~è£@ÆJ?$C2B–FPƒ^œB¼â„,dCnäa<$i<@A´€@ˆ¤Bx@-èÅ”A4LŠFr¤KŠ…GþÅC-ƒ<Ô‚NÚ$9è$AÔ¤IDMvM-¬¤ÀI²$A¾$TÂK¬<@ ”Áh<d%àä8Á¬¤8Á0e×x@|¥<üÀXå)x%XFƒUF¤SF¥]‚ØTR$"D$IŠ$N D”8@åH"`ƒÄ)˜äbÊC œ$H*äSÞ¥e FLúÅdþÿe_Þ$aÞ$ZÒe4¥<¦< æ@0åcަ)”F©”N)•V©•^©•‚;mod_qos-10.28/doc/qsexec.1.html0000664000000000000020000000563612264072142014550 0ustar rootbin Man page of QSEXEC

QSEXEC

Section: qsexec man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qsexec - parses the data received via stdin and executes the defined command on a pattern match.

 

SYNOPSIS

qsexec -e <pattern> [-t <number>:<sec>] [-c <pattern> [<command string>]] [-p] [-u <user>] <command string>  

DESCRIPTION

qsexec reads log lines from stdin and searches for the defined pattern. It executes the defined command string on pattern match.  

OPTIONS

-e <pattern>
Specifes the search pattern causing an event which shall trigger the command.
-t <number>:<sec>
Defines the number of pattern match within the the defined number of seconds in order to trigger the command execution. By default, every pattern match causes a command execution.
-c <pattern> [<command string>]
Pattern which clears the event counter. Executes optionally a command if an event command has been executed before.
-p
Writes data also to stdout (for piped logging).
-u <name>
Become another user, e.g. www-data.
<command string>
Defines the event command string where $0-$9 are substituted by the submatches of the regular expression.
 

EXAMPLE

Executes the deny.sh script providing the IP address of the client causing a mod_qos(031) messages whenever the log message appears 10 times within at most one minute:
  ErrorLog "|qsexec -e 'mod_qos\(031\).*, c=([0-9.]*)' -t 10:60 '/bin/deny.sh $1'"

 

SEE ALSO

qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/LICENSE.txt0000664000000000000020000004310312264072142014045 0ustar rootbin GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. mod_qos-10.28/doc/qslog.1.html0000664000000000000020000002057212264072142014401 0ustar rootbin Man page of QSLOG

QSLOG

Section: qslog man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qslog - collects request statistics from access log data.  

SYNOPSIS

qslog -f <format_string> -o <out_file> [-p[c|u[c]] [-v]] [-x [<num>]] [-u <name>] [-m] [-c <path>]  

DESCRIPTION

qslog is a real time access log analyzer. It collects the data from stdin. The output is written to the specified file every minute and includes the following entries:
  - requests per second (r/s)
  - number of requests within measured time (req)
  - bytes sent to the client per second (b/s)
  - bytes received from the client per second (ib/s)
  - repsonse status codes within the last minute (1xx,2xx,3xx,4xx,5xx)
  - average response duration (av)
  - average response duration in milliseconds (avms)
  - distribution of response durations within the last minute (<1s,1s,2s,3s,4s,5s,>5)
  - number of established (new) connections within the measured time (esco)
  - average system load (sl)
  - free memory (m) (not available for all platforms)
  - number of client ip addresses seen withn the last 600 seconds (ip)
  - number of different users seen withn the last 600 seconds (usr)
  - number of events identified by the 'E' format character
  - number of mod_qos events within the last minute (qV=create session, qS=session pass, qD=access denied, qK=connection closed, qT=dynamic keep-alive, qL=request/response slow down, qs=serialized request)  

OPTIONS

-f <format_string>
Defines the log data format and the positions of data elements processed by this utility. See to the 'LogFormat' directive of the httpd.conf file to see the format defintions of the servers access log data.
     qslog knows the following elements:
     I defines the client ip address (%h)
     R defines the request line (%r)
     S defines HTTP response status code (%s)
     B defines the transferred bytes (%b or %O)
     i defines the received bytes (%I)
     T defines the request duration (%T)
     t defines the request duration in milliseconds (may be used instead of T)
     D defines the request duration in microseconds (may be used instead of T) (%D)
     k defines the number of keepalive requests on the connection (%k)
     U defines the user tracking id (%{mod_qos_user_id}e)
     Q defines the mod_qos_ev event message (%{mod_qos_ev}e)
     C defines the element for the detailed log (-c option), e.g. "%U"
     s arbitrary counter to add up (sum within a minute)
     a arbitrary counter to build an average from (average per request)
     A arbitrary counter to build an average from (average per request)
     E comma separated list of event strings
     c content type (%{content-type}o), available in -pc mode only
     m request method (GET/POST) (%m), available in -pc mode only
     . defines an element to ignore (unknown string)

-o <out_file>
Specifies the file to store the output to.
-p
Used for post processing when reading the log data from a file (cat/pipe). qslog is started using it's offline mode (extracting the time stamps from the log lines) in order to process existing log files. The option "-pc" may be used alternatively if you want to gather request information per client (identified by IP address (I) or user tracking id (U) showing how many request each client has performed within the captured period of time). "-pc" supports the format characters IURSBTtDkEcm. The option "-pu" collects statistics on a per URL level (supports format characters RSTtD). "-puc" is very similar to "-pu" but cuts the end (handler) of each URL.
-v
Verbose mode.
-x [<num>]
Rotates the output file once a day (move). You may specify the number of rotated files to keep. Default are 14.
-u <name>
Becomes another user, e.g. www-data.
-m
Calculates free system memory every minute.
-c <path>
Enables the collection of log statitics for different request types. 'path' specifies the necessary rule file. Each rule consists of a rule identifier and a regular expression to identify a request seprarated by a colon, e.g., 01:^(/a)|(/c). The regular expressions are matched against the log data element which has been identified by the 'C' format character.
 

EXAMPLE

Configuration using pipped logging:


  LogFormat "%t %h \"%r\" %>s %b \"%{User-Agent}i\" %T"
  TransferLog "|/bin/qslog -f ..IRSB.T -x -o /var/logs/stat_log"

Configuration using the CustomLog directive:


  CustomLog "|/bin/qslog -f ISBTQ -x -o /var/logs/stat_log" "%h %>s %b %T %{mod_qos_ev}e"

Post processing:


  cat access_log | /bin/qslog -f ..IRSB.T -o /var/logs/stat_log -p

 

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/qslogger.1.html0000664000000000000020000000563712264072142015104 0ustar rootbin Man page of QSLOGGER

QSLOGGER

Section: qslogger man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qslogger - another shell command interface to the system log module (syslog).  

SYNOPSIS

qslogger [-r <expression>] [-t <tag>] [-f <facility>] [-l <level>] [-d <level>] [-p]  

DESCRIPTION

Use this utility to forward log messages to the systems syslog facility, e.g., to forward the messages to a remote host. It reads data from stdin.  

OPTIONS

-r <expression>
Specifies a regular expression which shall be used to determine the severity (syslog level) for each log line. The default pattern '^\[[0-9a-zA-Z :]+\] \[([a-z]+)\] ' can be used for Apache error log messages but you may configure your own pattern matching and other log format too. Use brackets to define the string enclosing the severity string. Default level (if severity can't be determined) is defined by the option '-d' (see below).
-t <tag>
Defines the tag name which shall be used to define the origin of the messages, e.g. 'httpd'.
-f <facility>
Defines the syslog facility. Default is 'daemon'.
-l <level>
Defines the minimal severity a message must have in order to be forwarded. Default is 'DEBUG'.
-d <level>
The default severity if the specified pattern (-r) does not match and the message's serverity can't be determined. Default is 'NOTICE'.
-p
Writes data also to stdout (for piped logging).
 

EXAMPLE


  ErrorLog "|./qslogger -t apache -f local7"

 

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qspng(1), qsrotate(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/nevis.gif0000664000000000000020000000023512264072142014034 0ustar rootbinGIF89a$¡‡™“³´ÿÿÿÿÿÿ!þnevis,$m”©Ë£œMÍ‹k mod_qos
mod_qos

mod_qos

 

In computer networking, the term quality of service (QoS) describes resource management rather than the quality of a service. Quality of service implements control mechanisms to provide different priority to different users, applications, and data connections. It is used to guarantee a certain level of performance to data resources. The term quality of service is often used in the field of wide area network protocols (e.g. ATM) and telephony (e.g. VoIP), but rarely in conjunction with web applications. mod_qos is a quality of service module for the Apache web server implementing control mechanisms that can provide different levels of priority to different HTTP requests.

But why do you need quality of service for a web application? Well, web servers require threads and processes to serve HTTP requests. Each TCP connection to the web server occupies one of these threads respectively processes. Sometimes a server gets too busy to serve every request due to the lack of free processes or threads. Another parameter requiring control by mod_qos is the available bandwidth: all clients communicate to the server over a network link with limited bandwidth. Overfilling the link results in network congestion and poor performance.

Example situations where web applications require QoS:

  • More resources are consumed if request processing by an application takes a long time, e.g. when request processing includes time consuming database queries.
  • Oversubscription of link capabilities due to many concurrent clients uploading or downloading data.
  • Penetration of the web server by attackers (DDoS).

mod_qos may be used to determine which requests should be served and which shouldn't in order to avoid resource oversubscription. The module collects different attributes such as the request URL, HTTP request and response headers, the IP source address, the HTTP response code, history data (based on user session and source IP address), the number of concurrent requests to the server (total or requests having similar attributes), the number of concurrent TCP connections (total or from a single source IP), and so forth.

Counteractive measures to enforce the defined rules are: request blocking, dynamic timeout adjustment, request delay, response throttling, and dropping of TCP connections.

The current release of the mod_qos module implements control mechanisms to manage:

  • The maximum number of concurrent requests to a location/resource (URL) or virtual host.
  • Limitation of the bandwidth such as the maximum allowed number of requests per second to an URL or the maximum/minimum of downloaded kbytes per second.
  • Limits the number of request events per second (special request conditions).
  • Limits the number of request events within a defined period of time.
  • It can also detect very important persons (VIP) which may access the web server without or with fewer restrictions.
  • Generic request line and header filter to deny unauthorized operations.
  • Request body data limitation and filtering (requires mod_parp).
  • Limits the number of request events for individual clients (IP).
  • Limitations on the TCP connection level, e.g., the maximum number of allowed connections from a single IP source address or dynamic keep-alive control.
  • Prefers known IP addresses when server runs out of free TCP connections.

mod_qos is an open source software licensed under the GNU General Public License. Downloads are handled by SourceForge.net.

mod_qos at SourceForge.net


More information about mod_qos:


Build

mod_qos requires OpenSSL, PCRE (don't use the version which comes with the Apache distribution), threading and shared memory support. mod_qos supports Apache version 2.2 MPM worker binaries and is optimized to be used in a reverse proxy server.

Just copy the module into the modules directory of the Apache server's source code and compile it using the following commands (all examples are using Apache 2.2.24 and mod_qos 10.28):
tar xfz httpd-2.2.24.tar.gz
tar xfz mod_qos-10.28-src.tar.gz
ln -s httpd-2.2.24 httpd
cd httpd
mkdir modules/qos
cp ../mod_qos-10.28/apache2/* modules/qos
./buildconf
./configure --with-mpm=worker --enable-so --enable-qos=shared --enable-ssl --enable-unique-id
make
cd ..
This creates a DSO module that can be loaded into the Apache server using the following directive:
LoadModule qos_module <path to module>/mod_qos.so

You can also compile the module using apxs alternatively. Your httpd binary must support dynamically loaded objects (DSO). Verify this by checking the availability of mod_so: The command httpd -l must list the mod_so.c module. The following command compiles the module and installs mod_qos into the server's modules directory.
cd mod_qos-10.28/apache2
apxs -i -c mod_qos.c -lcrypto -lpcre
cd ../..
If the necessary header files of OpenSSL, PCRE, etc. cannot be found, add the -I option to the apxs command to specify the directory where header files can be found and if any of the required libraries cannot be found (may happen if you use mod_qos without mod_ssl), add the -L option to specify the directory where libraries can be found.

The support tools may be built (at least on some Linux platforms) using the GNU autotools. Some of these utilities require third-party libraries such as apr, apr-util, PCRE, libpng, and OpenSSL.
cd mod_qos-10.28/tools
./configure
make
Note: If you have a different version of aclocal or automake on your system (you get a message like "aclocal-1.11 is missing on your system"), try to execute aclocal manually and execute make again.

Source

mod_qos is available for Apache version 2.2.

Configuration

Configuration is done on a per-server basis (except the generic request filter). Commands within a virtual host are merged with the settings in the global configuration.

The QS_SrvMinDataRate, QS_SrvRequestRate, QS_RequestHeaderFilterRule and all QS_Client* directives may be used outside of virtual host configurations only.

The QS_LogOnly on directive may be used to put mod_qos into a permissive mode where rule violations are logged only but no actions are applied to requests or connections to enforce a rule. This may be used for test purposes.

Request Level Control

The module features the following directives to control server access on a per-URL level. Only one QS_Loc* rule (URL string or regular expression) of each type is evaluated per request where regular expression rules (*Match) have higher priority than the rules using a literal URL-string. A QS_LocRequestLimit* rule may be used in parallel to a QS_LocRequestPerSecLimit* and/or QS_LocKBytesPerSecLimit* rule if they use the very same URL string or regular expression.
  • QS_LocRequestLimitMatch <regex> <number>
    Defines the number of concurrent requests for the specified request pattern (applied to the unparsed URL). The rule with the lowest number of allowed concurrent connections has the highest priority if multiple expressions match the request. By default, no limitations are active.
  • QS_LocRequestPerSecLimitMatch <regex> <number>
    Defines the allowed number of requests per second to the URL (path and query) pattern. Requests are limited by adding a delay to each request (linear). The delay calculation is based on an average request rate measurement using a sampling rate of 10 seconds. By default, no limitation is active. This directive should be used in conjunction with QS_LocRequestLimitMatch only (you must use the very same regex pattern with the QS_LocRequestPerSecLimitMatch and QS_LocRequestLimitMatch directive).
  • QS_LocKBytesPerSecLimitMatch <regex> <number>
    Defines the allowed download bandwidth to the location matching the defined URL (path and query) pattern. Responses are slowed down by adding a delay to each response (non-linear, bigger files get longer delay than smaller ones because bandwidth calculation is based on an average response body size using a sampling rate of 10 seconds). By default, no limitation is active. This directive should be used in conjunction with QS_LocRequestLimitMatch only (you must use the very same regex pattern with the QS_LocKBytesPerSecLimitMatch and QS_LocRequestLimitMatch directive).
  • QS_LocRequestLimit <location> <number>
    Defines the number of concurrent requests for the specified location (applied to the parsed path). By default, no limitations are active for locations. Has lower priority than QS_LocRequestLimitMatch directives.
  • QS_LocRequestLimitDefault <number>
    Defines the default limitation for the maximum of concurrent requests per location for those locations not defined by any QS_LocRequestLimit directive. It could also be used to limit the number of concurrent requests to a virtual host.
  • QS_LocRequestPerSecLimit <location> <number>
    Defines the allowed number of requests per second to a location, similar to the QS_LocRequestPerSecLimitMatch directive. The maximum number of requests is limited by adding a delay to each request (linear, each request gets the same delay). By default, no limitation is active. This directive should be used in conjunction with QS_LocRequestLimit only (you must use the same location for both directives). Has lower priority than QS_LocRequestPerSecLimitMatch.
  • QS_LocKBytesPerSecLimit <location> <number>
    Throttles the download bandwidth to the defined kbytes per second. Works simlar as the QS_LocKBytesPerSecLimitMatch directive slowing down HTTP responses by adding a delay to each response. By default, no limitation is active. This directive should be used in conjunction with QS_LocRequestLimit only (you must use the same location for both directives). Has lower priority than QS_LocKBytesPerSecLimitMatch.
  • QS_ErrorPage <URL>
    Defines an error page to be returned when a request is denied. The defined URL must be a (S)HTML document accessible by the client. You may enable server-side includes in order to present detailed error messages based on the error codes provided by mod_qos.
    Alternatively, a HTTP redirect (302) to a dedicated error page may be defined using an absolute URL defining schema, hostname, and path.
  • QS_ErrorResponseCode <code>
    Defines the HTTP response code which is used when a request is denied. Requests denied at connection level usually get a HTTP 500 response code (ignoring the settings of the QS_ErrorResponseCode and QS_ErrorPage directives).
    Default codes are:
     400: if a request has no valid URL.
     403: for requests denied by a QS_Deny*, QS_Permit* or QS_RequestHeaderFilter directive.
     413: when limiting the max. body data length by the QS_LimitRequestBody directive.
     500: for requests denied by any other directive.

Privileged Users

Additional directives are used to identify VIPs (very important persons) and to control the session life time and its cookie format. VIP users have privileged access and less QoS restrictions than ordinary users.
VIP information is stored and evaluated at different levels.
  • Session: VIP identification is stored using a HTTP session cookie. mod_qos starts a new session when detecting a HTTP response header (the header name is defined by the QS_VipHeaderName directive). Alternatively, a new session is started when detecting an authenticated user, see QS_VipUser. The QS_Session* directives are used to set session attributes.
  • Request: The QS_VipRequest process environment may be evaluated by mod_qos rules. This variable is set automatically when receiving a valid mod_qos session cookie. The QS_VipRequest variable may also be set by configuration using a QS_SetEnvIf* or SetEnvIf directive. VIP status lasts for the particular request only.
  • Client IP address: VIP identification may be stored at the server side on a per-client IP address basis. The QS_VipIPHeaderName, QS_VipHeaderName, QS_VipIPUser, and QS_VipUser directives are used to define when an IP address should be marked as a VIP user.
Directives:
  • QS_VipHeaderName <header name>[=<regex>] [drop]
    Defines an HTTP response header which marks a user as a VIP. mod_qos creates a session for this user by setting a cookie, e.g., after successful user authentication. Tests optionally its value against the provided regular expression. Specify the action 'drop' if you want mod_qos to remove this control header from the HTTP response.
  • QS_VipIPHeaderName <header name>[=<regex>] [drop]
    Defines an HTTP response header which marks a client source IP address as a VIP. Tests optionally its value against the provided regular expression. Specify the action 'drop' if you want mod_qos to remove this control header from the HTTP response.
  • QS_VipUser
    Creates a VIP session for users which have been authenticated by the Apache server, e.g., by the standard mod_auth* modules. It works similar to the QS_VipHeaderName directive.
  • QS_VipIPUser
    Marks a source IP address as a VIP if the user has been authenticated by the Apache server, e.g. by the standard mod_auth* modules. It works similar to the QS_VipIPHeaderName directive.
  • QS_SessionTimeout <seconds>
    Defines the session life time for a VIP. It is only used for session based (cookie) VIP identification (not for IP based). Default is 3600 seconds.
  • QS_SessionCookieName <name>
    A cookie is used to identify requests coming from a user which has been identified as a VIP. This directive defines a custom cookie name for the mod_qos session cookie. Default is MODQOS.
  • QS_SessionCookiePath <path>
    Defines the cookie path. Default is "/".
  • QS_SessionKey <string>
    Secret key used for cookie encryption. Used when using the same session cookie for multiple web servers (load balancing) or sessions should survive a server restart. By default, a random key is used which changes every server restart.
Sample configuration:
QS_ErrorPage                  /error-docs/qs_error.html

# restricts max concurrent requests for any location which has no
# individual rule:
QS_LocRequestLimitDefault                              200

# limits access to *.gif files to 100 concurrent requests:
QS_LocRequestLimitMatch       "^.*\.gif$"              100

# limits concurrent requests to the locations /images and /app/a:
QS_LocRequestLimit            /images                  100
QS_LocRequestLimit            /app/a                   300
# limits download bandwidth to 5Mbit/sec:
QS_LocKBytesPerSecLimit       /app/a                   640

# two locations (/app/b and /app/c) representing a single application:
QS_LocRequestLimitMatch       "^(/app/b/|/app/c/).*$"  300


# allows the application to nominate VIP users by sending a
# "mod-qos-vip" HTTP response header:
QS_VipHeaderName              mod-qos-vip
QS_SessionKey                 na&5san-sB.F4_0a=%D200ahLK1

The following table shows if a rules may be deactivated for VIPs:
QS_ClientEventBlockCountno
QS_ClientEventLimitCountno
QS_ClientEventPerSecLimitno
QS_ClientEventRequestLimitno
QS_ClientPreferyes
QS_ClientSerializeno
QS_ClientGeoCountryPrivno
QS_CondLocRequestLimitMatchyes
QS_CondClientEventLimitCountno
QS_DenyQueryBodyno
QS_PermitUriBodyno
QS_DenyEventno
QS_DenyPathno
QS_DenyQueryno
QS_DenyRequestLineno
QS_EventKBytesPerSecLimityes
QS_EventPerSecLimityes
QS_EventRequestLimitno
QS_EventLimitCountno
QS_InvalidUrlEncodingno
QS_LimitRequestBodyno
QS_LocKBytesPerSecLimit*yes
QS_LocRequestLimit*yes
QS_LocRequestPerSecLimit*yes
QS_MileStoneno
QS_RedirectIfno
QS_PermitUrino
QS_RequestHeaderFilterno
QS_ResponseHeaderFilterno
QS_SrvMaxConnyes
QS_SrvMaxConnCloseno
QS_SrvMaxConnPerIPyes
QS_SrvMinDataRateyes
  
Note: Event based rules (e.g., QS_ClientEventLimitCount) may evaluate the QS_VipRequest and QS_IsVipRequest variables to decide if the rule should be applied.

Variables

Environment variables are used on a per request level and implement additional control mechanisms. Variables may be set using the standard Apache module mod_setenvif or mod_setenvifplus. See also the QS_SetEnvIf* directives in order to combine multiple variables to form new variables interpreted by mod_qos rules.

These are the variables recognized by mod_qos:
  • QS_VipRequest=yes
    Disables the per location restrictions for this request. Requires the definition of a VIP header using the QS_VipHeaderName directive (this activates VIP verification). However, such an event does not create a VIP session. The user has the VIP status only for a single request.
    The variable is set by mod_qos when receiving a valid VIP session cookie.
  • QS_KeepAliveTimeout=<seconds>
    Applies dynamic connection keep-alive settings overriding the Apache KeepAliveTimeout directive settings.
  • QS_ErrorPage=<URL>
    Defines the error page overriding the setting made by the QS_ErrorPage directive.
  • QS_Delay=<milliseconds>
    Defines a number of milliseconds to delay the request processing.
  • QS_Event
    The variable processed by the QS_ClientEventPerSecLimit directive.
  • QS_Block
    Variable processed by the QS_ClientEventBlockCount directive.
  • QS_Limit
    (Default) variable processed by the QS_ClientEventLimitCount directive.
  • *_Clear
    The counter of the variable processed by the QS_ClientEventLimitCount directive are reset if you set the same variable suffixed by _Clear, e.g. QS_Limit_Clear.
  • QS_Serialize
    Variable processed by the QS_ClientSerialize directive.
  • QS_Cond
    Variable processed by the QS_CondLocRequestLimitMatch directive.
  • QS_EventRequest
    Variable processed by the QS_ClientEventRequestLimit directive.
Variables set by mod_qos which may be processed by conditional or event based rules, e.g., QS_CondLocRequestLimitMatch:
  • QS_SrvConn
    Number of concurrent connections for this server/virtual host. Value is set when using either the QS_SrvMaxConn, QS_SrvMinDataRate, QS_SrvMaxConnClose, or QS_ClientGeoCountryDB directive.
    Note: value is calulcated when the client establishes the connection and remains the same for all HTTP requests performed on this connection.
  • QS_AllConn
    Number of all concurrent connections for this Apache instance. Value is set when using either the QS_SrvMaxConn, QS_SrvMinDataRate, QS_SrvMaxConnClose, or QS_ClientGeoCountryDB directive.
    Note: value is calulcated when the client establishes the connection and remains the same for all HTTP requests performed on this connection.
  • QS_IPConn
    Number of IP connections open from the current IP address. Variable is available when using the QS_SrvMaxConnPerIP directive.
    Note: value is calulcated when the client establishes the connection and remains the same for all HTTP requests performed on this connection.
  • QS_ClientLowPrio
    The variable is set for requests by clients which have been marked to be processed with low priority, see QS_ClientPrefer.
  • QS_IsVipRequest
    Variable is set when detecting a VIP request (either by cookie, IP address status, valid user, etc.). May be used by various event based directives.
  • *_Counter
    The counter values of the variables used by the QS_ClientEventLimitCount and QS_EventLimitCount directive are stored within the variable whose name is suffixed by _Counter, e.g. QS_Limit_Counter when limiting QS_Limit events.
  • QS_ErrorNotes
    The error code (number only) of a mod_qos log message that has occured during a request.
  • QS_Country
    ISO 3166 country code of client IPv4 address. Only available if the geographical database file has been loaded.
    Note: You may use the QS_ClientIpFromHeader <header> directive to override the client's IP address based on the value within the defined HTTP request header (e.g., X-Forwarded-For) instead of taking the IP address of the client which has opened the TCP connection.
Sample of variable usage:
# privileged access for curl clients:
BrowserMatch             "curl"                   QS_VipRequest=yes

# allows privileged access to a single resource:
SetEnvIf     Request_URI /app/start.html          QS_VipRequest=yes

# allows privileged access from a specified source address
# or source address range:
SetEnvIf     Remote_Addr 172.18.3.32              QS_VipRequest=yes
SetEnvIf     Remote_Addr 192.168.10.              QS_VipRequest=yes

# set keep-alive timeout for MSIE version 5.x browser to 65 seconds:
BrowserMatch             "(MSIE 5\.)"             QS_KeepAliveTimeout=65

# dynamic error page URL (per host error page):
SetEnvIf     Host        (.*)                     QS_ErrorPage=/error-docs/$1.html
# external redirect to a sever hosting the error page:
SetEnvIf     Request_URI /app                     QS_ErrorPage=http://server/error.html

Conditional Rules

Conditional rules are only enforced if the QS_Cond variable matches the specified pattern.
Sample of conditional rules:
# set the conditional variable to spider if detecting a
# "slurp" or "googlebot" search engine:
BrowserMatch             "slurp"                  QS_Cond=spider
BrowserMatch             "googlebot"              QS_Cond=spider

# limits the number of concurrent requests to two applications
# (/app/b and /app/c) to 300 but does not allow access by a "spider"
# if the number of concurrent requests exceeds the limit of 10:
QS_LocRequestLimitMatch       "^(/app/b/|/app/c/).*$"  300
QS_CondLocRequestLimitMatch   "^(/app/b/|/app/c/).*$"  10   spider

Events

mod_qos may control the frequency of "events". An event may be any request attribute which can be represented by an environment variable. Such variables may be set by mod_setenvif, mod_setenvifplus, or by other Apache modules. Please adhere to the order of command execution to ensure that the necessary variables are set.
  • QS_EventRequestLimit <env-variable>[=<regex>] <number>
    Defines the number of concurrent events. Directive works similar to QS_LocRequestLimit, but counts the requests having the same environment variable (and optionally matching its value, too) rather than those that have the same URL pattern.
  • QS_EventPerSecLimit [!]<env-variable> <number>
    Defines how often requests may have the defined environment variable (literal string) set. It measures the occurrences of the defined environment variable on a request per seconds level and tries to limit this occurrence to the defined number. It works similar as QS_LocRequestPerSecLimit, but counts only the requests with the specified variable (or without it if the variable name is prefixed by a "!"). If a request matches multiple events, the rule with the lowest bandwidth is applied. Events are limited by adding a delay to each request causing an event.
  • QS_EventKBytesPerSecLimit [!]<env-variable> <number>
    Throttles the download bandwidth of all requests having the defined variable set to the defined kbytes per second. Responses are slowed by adding a delay to each response (non-linear, bigger files get longer delay than smaller ones). The delay calculation is based on an average request rate measurement using a sampling rate of 10 seconds. By default, no limitation is active. This directive should be used in conjunction with QS_EventRequestLimit only (you must use the same variable name for both directives).
  • QS_EventLimitCount <env-variable> <number> <seconds>
    Defines the maximum number of events allowed within the defined time. Requests are denied when reaching this limitation for the specified time (blocked at request level).
    Note: The current counter value is propagated to the process environment within the variable <env-variable>_Counter.
  • QS_SetEnvIf [!]<env-variable1> [!]<env-variable2> [!]<variable=value>
    Sets (or unsets) the "variable=value" (literal string) if variable1 (literal string) AND variable2 (literal string) are set in the request environment variable list (not case sensitive). This is used to combine multiple variables to a new event type.
  • QS_SetEnv <env-variable> <value>
    Sets the defined variable with the value where the value string may contain other environment variables surrounded by "${" and "}". The variable is only set if all defined variables within the value have been resolved.
  • QS_SetEnvIfQuery <regex> [!]<env-variable>[=<value>]
    Directive works quite similar to the SetEnvIf directive of the Apache module mod_setenvif, but the specified regex is applied against the query string portion of the request line. The directive recognizes the occurrences of $1..$9 within value and replaces them by the sub-expressions of the defined regex pattern.
  • QS_SetEnvIfParp <regex> [!]<env-variable>[=<value>]
    Directive parsing the request payload using the Apache module mod_parp. It matches the request URL query and the HTTP request message body data as well (application/x-www-form-urlencoded, multipart/form-data, and multipart/mixed) and sets the defined process variable (quite similar to the QS_SetEnvIfQuery directive). The directive recognizes the occurrences of $1..$9 within value and replaces them by the sub-expressions of the defined regex pattern. This directive activates mod_parp for every request to the virtual host. You may deactivate mod_parp for selected requests using the SetEnvIf directive: unset the variable "parp" to do so. Important: request message body processing requires that the server loads the whole request into its memory (at least twice the length of the message). You should limit the allowed size of the HTTP request message body using the QS_LimitRequestBody directive when using QS_SetEnvIfParp!
  • QS_SetEnvIfBody <regex> [!]<env-variable>[=<value>]
    Directive parsing the request body using the Apache module mod_parp. Specify the content types to process using the mod_parp directive PARP_BodyData and ensure that mod_parp is enabled using the SetEnvIf directive of the Apache module mod_setenvif. You should limit the allowed size of HTTP requests message body using the QS_LimitRequestBody directive when using mod_parp. The directive recognizes the occurrence of $1 within the variable value and replaces it by the sub-expressions of the defined regex pattern.
  • QS_SetEnvIfStatus <code> <env-variable>[=<value>]
    Sets the defined variable in the request environment if the HTTP response status code matches the defined code. This may be used in conjunction with the QS_ClientEventBlockCount directive. Directive may be used on a per server or per location basis.
    The special code QS_SrvMinDataRate may be used to set QS_Block events in order to limit the allowed number of QS_SrvMinDataRate rule violations and the special code NullConnection detects connections which are closed even no HTTP request has been received.
  • QS_SetEnvIfResBody <string> <env-variable>
    Adds the defined environment variable (e.g., QS_Block) if the response body contains the defined literal string. Used on a per- location level. Only one directive may be defined per location (one search string per response).
  • QS_SetEnvResHeader <header name> [drop]
    Sets the defined HTTP response header to the request environment variables. Deletes the specified header if the action 'drop' has been specified.
  • QS_SetEnvResHeaderMatch <header name> <regex>
    Sets the defined HTTP response header to the request environment variables if the specified regular expression (pcre not case sensitive) matches the header value.
  • QS_SetEnvRes <env-variable> <regex> <env-variable2>[=<value>]
    Sets the environmet variable (env-variable2) if the regular expression (regex) matches against the value of the environment variable (env-variable). Occurrences of $1..$9 within the value are replaced by parenthesized subexpressions of the regular expression.
  • QS_SetReqHeader <header name> <env-variable>
    Sets the defined HTTP request header to the request if the specified environment variable is set.
  • QS_UnsetResHeader <header name>
    Removes the specified response header.
  • QS_RedirectIf <variable> <regex> <url>
    Redirects the client to the configured url if the regular expression matches the value of the the environment variable. Occurrences of $1..$9 within the url are replaced by parenthesized subexpressions of the regular expression. Directive may be used on a per server or per location basis.
Sample of event rules:
# marks clients coming from the internal network:
SetEnvIf    Remote_Addr      ^192\.168\.            QS_Intra

# marks clients neither coming from the internal network
# nor are VIP clients as low priority clients:
QS_SetEnvIf !QS_VipRequest   !QS_Intra              QS_LowPrio=1

# limits the request rate for low priority (neither VIP nor internal)
# clients (and no more than 400 concurrent requests for them):
QS_EventPerSecLimit          QS_LowPrio             100
QS_EventRequestLimit         QS_LowPrio             400

# detects the variable "file" within the query portion of the URL:
QS_SetEnvIfQuery             file=([a-zA-Z]*)       QS_LowPrio=$1

# combine variables and propagate them to the application via HTTP header:
SetEnvIf    Content-Length   ([0-9]*)               QS_Length=$1
QS_SetEnv   QS_Type          "length=${QS_Length}; file=${QS_LowPrio}"
QS_SetReqHeader              X-File                 QS_Type

# limit the max. body size since mod_parp loads the whole message into
# the memory servers's:
QS_LimitRequestBody          131072

# body pattern detection, example limits the maximum number of concurrent
# requests posting "id=1234" to ten:
QS_SetEnvIfParp  id=([0-9]*) PARP_PATTERN=$1
QS_EventRequestLimit         PARP_PATTERN=1234      10
# but ignore requests to the location /main/ (any sub-locations):
SetEnvIf    Request_URI      /main/.*               !parp

Request Level, Generic Filter

These filters are defined on a per- location level and are used to restrict access to resources in general, independent of server resource availability. New rules are added by defining a rule id prefixed by a '+'. Rules are merged to sub-locations. If a rule should not be active for a sub-location, the very same rule must be defined, but instead, the rule id must be prefixed with a '-'. The filter rules are implemented as Perl-compatible regular expressions (pcre) and are applied to the decoded URL components (un-escaped characters, e.g., %20 is a space). The generic request filter ignores the VIP status of a client.
  • QS_DenyRequestLine '+'|'-'<id> 'log'|'deny' <pcre>
    Generic request line (method, path, query, and protocol) filter used to deny access for requests matching the defined expression (pcre). The action taken for matching rules is either 'log' (access is granted but the rule match is logged) or 'deny' (access is denied).
  • QS_DenyPath '+'|'-'<id> 'log'|'deny' <pcre>
    Generic abs_path (see RFC 2616 section 3.2.2) filter used to deny access for requests matching the defined expression (pcre). The action taken for matching rules is either 'log' (access is granted but the rule match is logged) or 'deny' (access is denied).
  • QS_DenyQuery '+'|'-'<id> 'log'|'deny' <pcre>
    Generic query (see RFC 2616 section 3.2.2) filter used to deny access for requests matching the defined expression (pcre). The action taken for matching rules is either 'log' (access is granted but the rule match is logged) or 'deny' (access is denied).
  • QS_InvalidUrlEncoding 'log'|'deny'|'off'
    Enforces correct URL decoding in conjunction with the QS_DenyRequestLine, QS_DenyPath, and QS_DenyQuery directives. Default is "off" which means that incorrect encodings are ignored.
  • QS_Decoding 'uni'
    Enables additional string decoding functions which are applied before matching QS_Deny* and QS_Permit* directives. Default is URL decoding (%xx, \\xHH, '+').
    Available additional decodings:
    • uni: unicode decoding for MS IIS (%uXXXX and \uXXXX) encoded characters.
  • QS_DenyEvent '+'|'-'<id> 'log'|'deny' [!]<env-variable>
    Rule matching requests having the defined process environment variable set (or NOT set if prefixed by a '!'). The action taken for matching rules is either 'log' (access is granted but the rule match is logged) or 'deny' (access is denied).
  • QS_PermitUri '+'|'-'<id> 'log'|'deny' <pcre>
    Generic URL (path and query) filter implementing a request pattern whitelist. Only requests matching at least one QS_PermitUri pattern are allowed. If a QS_PermitUri pattern has been defined and the request does not match any rule, the request is denied. All rules must define the same action. pcre is case sensitive. You may use the qsfilter2 utility to generate rules based on access log files.
  • QS_DenyInheritanceOff
    Disables inheritance of QS_Deny* and QS_Permit* directives (pattern definitions) to a location.
  • QS_RequestHeaderFilter 'on'|'off'|'size'
    Filters request headers using validation rules provided by mod_qos. Suspicious headers (not matching the pattern or those which are too long) are normally dropped (removed from the request). Abnormal content-* headers cause request blocking. Only the defined headers are allowed. Custom rules (additional headers or different pattern/size definitions) may be added using the QS_RequestHeaderFilterRule directive. Filter is activated ('on') or deactivated ('off'). The mode 'size' does not verify the pattern but limits the maximum length of request header values (similar to the Apache directive LimitRequestFieldsize but with an individual rule for each header field). Header validation is also useful to avoid bypassing of SetEnvIf directive settings.
  • QS_RequestHeaderFilterRule <header name> 'drop'|'deny' <pcre> <size>
    Used to add custom request header filter rules, e.g., to override the internal rules (different pcre or size) or to add additional headers which should be allowed. Definitions are made globally (outside VirtualHost). A list of all rules is shown at server startup when using LogLevel debug. pcre is case sensitive. The size parameter defines the maximum length of a header value. The action 'drop' removes a header not matching the pcre, the action 'deny' rejects a request including such a header not matching the pcre.
  • QS_ResponseHeaderFilter 'on'|'off'|'silent'
    Filters response headers using validation rules provided by mod_qos. Suspicious headers (not matching the pattern or those which are too long) are removed from the response. Only the defined headers are allowed. Filter is activated ('on') or deactivated ('off' or 'silent').
  • QS_ResponseHeaderFilterRule <header name> <pcre> <size>
    Used to add custom response header filter rules, e.g., to override the internal rules (different pcre or size) or to add additional headers which should be allowed. Definitions are made globally (outside VirtualHost). A list of all rules is shown at server startup when using LogLevel debug. pcre is case sensitive. The size parameter defines the maximum length of a header value.
Sample configuration:
QS_ErrorPage                     /error-docs/qs_error.html

# add a custom request header rule:
QS_RequestHeaderFilterRule       UA-CPU drop "^[a-zA-Z0-9]+$" 20

# enable header validation:
QS_RequestHeaderFilter           on

<Location />
   # don't allow access to the path /app/admin.jsp:
   QS_DenyPath        +admin     deny "^/app/admin.jsp$"

   # allow printable characters only within the request line:
   QS_DenyRequestLine +printable deny ".*[\x00-\x19].*"
</Location>
Body data filtering requires mod_parp which processes the request's message body of the following HTTP request content types: application/x-www-form-urlencoded, multipart/form-data, and multipart/mixed. The content type application/json may be processed by the built-in JSON parser of mod_qos. The body data is transformed into a request query and may be filtered using the QS_DenyQuery and QS_PermitUri directives.
  • QS_DenyQueryBody 'on|'off'
    Enables request body data filtering for the QS_DenyQuery directive.
  • QS_PermitUriBody 'on|'off'
    Enables request body data filtering for the QS_PermitUri directive.
  • QS_LimitRequestBody <bytes>
    Limits the allowed size of an HTTP request message body. This directive may be placed anywhere in the configuration. Alternatively, the limitation may be set as an environment variable using mod_setenvif (overriding the directive settings).
Set the QS_DeflateReqBody variable if the request body data has to be deflated (compressed data) using mod_deflate.
Sample configuration:
# configure the audit log writing the request body data to a file
# (use this log to generate whitelist rules using qsfilter2
# when QS_PermitUriBody has been enabled)
# format:
#   %h:
#   The remote host (used to filter by IP adress).
#   %>s:
#   The HTTP response status code.
#   %{qos-loc}n
#   The matching Location to generate the rules for.
#   %{qos-path}n%{qos-query}n
#   The request data required by qsfilter2 to generate rules.
CustomLog             logs/qsaudit_log  "%h %>s %{qos-loc}n %{qos-path}n%{qos-query}n"

# enable json parser
PARP_BodyData               application/json

QS_RequestHeaderFilter      on

# limit the max. body size since mod_parp loads the whole message into the
# servers's memory:
SetEnvIfNoCase Content-Type application/x-www-form-urlencoded QS_LimitRequestBody=131072
SetEnvIfNoCase Content-Type multipart/form-data               QS_LimitRequestBody=131072
SetEnvIfNoCase Content-Type multipart/mixed                   QS_LimitRequestBody=131072
SetEnvIfNoCase Content-Type application/json                  QS_LimitRequestBody=65536

# enable mod_deflate input filter for compressed request body data:
SetEnvIfNoCase Content-Encoding (gzip)|(compress)|(deflate)   QS_DeflateReqBody

<Location /app>
   # don't allow a certain string pattern within the request query or
   # the request message body data:
   QS_DenyQueryBody              on
   QS_DenyQuery       +s01       deny "(EXEC|SELECT|INSERT|UPDATE|DELETE)"
</Location>
You may enable request body filtering for arbitrary content types:
  • Register the mod_parp raw parser using the PARP_BodyData directive.
  • Enable mod_parp for the content type using the SetEnvIfNoCase directive.
  • Use QS_SetEnvIfBody to detect patterns within the HTTP request body.
  • The QS_DenyEvent directive denies access for the request.
Sample configuration:
# sample (using the raw body parser of mod_parp) which denies XML documents
# containing the pattern "<code>delete</code>":
PARP_BodyData               text/xml
SetEnvIfNoCase Content-Type text/xml.*                        parp
SetEnvIfNoCase Content-Type application/xml                   QS_LimitRequestBody=65536
QS_SetEnvIfBody             <code>delete</code>               DENYACTION
<Location /app/web>
   QS_DenyEvent             +BADCODE deny                     DENYACTION
</Location>

Milestones: you may define a number of resources (request line patterns) as milestones. A client must access these resources in the correct order as they are defined within the server configuration. A client is not allowed to skip these milestones (but may access any other resource not covered by a milestone in between requests to milestones).

  • QS_MileStone 'log'|'deny' <pattern>
    Defines request line patterns a client must access in the defined order as they are defined in the configuration file. Milestones are defined on a per server basis, outside Location. Access to milestones is tracked by a dedicated session cookie.
  • QS_MileStoneTimeout <seconds>
    Defines the time in seconds within which a client must reach the next milestone. Default are 3600 seconds.
Sample configuration:
# four milestones:
# 1) client must start with /app/index.html
# 2) and then read some images
# 3) before posting data to /app/register
# 4) afterwards, the user may download zip files
QS_MileStone          deny       "^GET /app/index.html"
QS_MileStone          deny       "^GET /app/images/.*"
QS_MileStone          deny       "^POST /app/register*"
QS_MileStone          deny       "^GET /app/.*\.zip HTTP/..."

Connection Level Control

The module features the following directives to control server access on a per-server (TCP connection) level. These directives must only be used in the global server context and for port based virtual hosts (don't use them for name based virtual hosts).
  • QS_SrvMaxConn <number>
    Defines the maximum number of concurrent TCP connections for this server (virtual host).
  • QS_SrvMaxConnClose <number>[%]
    Defines the maximum number of connections for this server (virtual host) supporting HTTP keep-alive. If the number of concurrent connections exceeds this threshold, the TCP connection gets closed after each request. You may specify the number of connections as a percentage of MaxClients if adding the suffix '%' to the specified value.
  • QS_SrvMaxConnPerIP <number> [<connections>]
    Defines the maximum number of connections per source IP address for this server (virtual host). The "connections" argument defines the number of busy connections of the server (all virtual hosts) to enable this limitation, default is 0 (which means that the limitation is always enabled, even the server is idle).
  • QS_SrvMaxConnExcludeIP <address>
    Defines an IP address or address range to be excluded from connection level control restrictions. An address range must end with a ".".
  • QS_SrvMinDataRate <bytes per second> [<max bytes per second> [<connections>]]
    Defines the minimum upload/download throughput a client must generate (the bytes sent/received by the client per seconds). This bandwidth is measured while receiving request data (request line, header fields, or body), sending response data (header fields, body) and during keep-alive. The client connection is closed if the client does not fulfill this required minimal data rate and the IP address of the causing client is marked in order to be handled with low priority (see the QS_ClientPrefer directive). The "max bytes per second" activates dynamic minimum throughput control: The required minimal throughput is increased in parallel to the number of concurrent clients sending/receiving data (starts increasing when reaching the "connections" threshold). The "max bytes per second" setting is reached when the number of sending/receiving clients is equal to the MaxClients setting. The "connections" argument is used to specify the number of busy TCP connections a server must have to enable this feature (0 by default). It is used to disable the QS_SrvMinDataRate rule enforcement on idle servers.
  • QS_SrvRequestRate <bytes per second> [<max bytes per second>]
    Same as QS_SrvMinDataRate but enforcing a minimal upload (reading request) throughput only.
  • QS_SrvDataRateOff
    Disables the QS_SrvMinDataRate and QS_SrvMinDataRate enforcement for a virtual host.
  • QS_SrvMinDataRateOffEvent '+'|'-'<env-variable>
    Disables the QS_SrvMinDataRate and QS_SrvMinDataRate enforcement for a connection when the defined process environment variable is set. The '+' prefix is used to add a variable to the configuration while the '-' prefix is used to remove a variable. Directive may be used on a per-Location basis.
Sample configuration:
# minimum request rate (bytes/sec at request reading):
QS_SrvRequestRate                                 120

# limits the connections for this virtual host:
QS_SrvMaxConn                                     800

# allows keep-alive support till the server reaches 600 connections:
QS_SrvMaxConnClose                                600

# allows max 50 connections from a single ip address:
QS_SrvMaxConnPerIP                                 50

# disables connection restrictions for certain clients:
QS_SrvMaxConnExcludeIP                    172.18.3.32
QS_SrvMaxConnExcludeIP                    192.168.10.

Client Level Control

Client level control rules are applied per client (IP source address). These directives must only be used in the global server context.
  • QS_ClientEntries <number>
    Defines the number of individual clients managed by mod_qos. Default is 50'000 concurrent IP addresses. Each client requires about 150 bytes memory on a 64bit system (depending on how many QS_ClientEventLimitCount events you have configured). Client IP source address store survives graceful server restart.
  • QS_ClientEventRequestLimit <number>
    Defines the allowed number of concurrent requests coming from the same client source IP address having the QS_EventRequest variable set.
  • QS_ClientEventPerSecLimit <number>
    Defines how often a client may cause a QS_Event per second. Such events are requests having the QS_Event variable set, e.g., defined by mod_setenvif or using the QS_SetEnvIf directive. The rule is enforced by adding a delay to requests causing the event (similar to the QS_LocRequestPerSecLimit directive.
  • QS_ClientEventBlockCount <number> [<seconds>]
    Defines the maximum number of QS_Block events allowed within the defined time (default is 600 seconds). Client IP is blocked when reaching this counter for the specified time (blocked at connection level: user might not always get a user friendly error response).
  • QS_ClientEventLimitCount <number> [<seconds> [<variable>]]
    Defines the maximum number of the defined environment variables (QS_Limit by default) allowed within the defined time (default is 600 seconds). Requests from client IP's reaching this limitation are denied for the specified time (blocked at request level).
    Notes:
    • You may use the QS_ClientIpFromHeader <header> directive to determine the client's IP address based on the defined HTTP request header (e.g., X-Forwarded-For) instead of taking the IP address of the client which has opened the TCP connection. The header must only contain a single IP address.
    • The current value of this counter is stored within the variable suffixed by _Counter, e.g. QS_Limit_Counter for further processing by other rules.
    • The counter can be reset by setting the environment variable which name is suffixed by _Clear, e.g. QS_Limit_Clear.
    • Adding/removing events require a server restart (graceful restart is not supported).
    • Only the default rule (QS_Limit) is accessibly by the status viewer and the console.
    • See also QS_CondClientEventLimitCount if you want to enforce a rule under certain conditions only.
  • QS_ClientSerialize
    Serializes requests having the QS_Serialize variable set if they are comming from the same IP address.
    Notes:
    • You may use the QS_ClientIpFromHeader <header> directive to override the client's IP address based on the value within the defined HTTP request header (e.g., X-Forwarded-For) instead of taking the IP address of the client which has opened the TCP connection.
    • Maximum wait time for a request is 5 minutes.
  • QS_ClientPrefer [<percent>]
    Accepts only VIP and high priority clients when the server has less than 80% (or the defined percentage) of free TCP connections. Use the QS_VipHeaderName or QS_VipIPHeaderName directive in order to identify VIP clients. The distinction between high and low priority clients is made based on the client data transfer behavior (clients sending slow, using small data packets, or accessing "unusual" content types (see QS_ClientTolerance), get marked as low priority clients, look for "r;" events within the access log or use the status viewer to determine which client addresses are identified as low priority clients). A low priority flag is cleared after 24h hours. Clients identified by QS_SrvMaxConnExcludeIP are excluded from connection restrictions. Filter is applied on connection level.
  • QS_ClientTolerance <percent>
    Defines the allowed variation from a "normal" client (average) behavior. Default is 20%.
  • QS_ClientContentTypes <html> <css/js> <images> <other> <304>
    Defines the distribution of HTTP response content types a client normaly receives when accessing the server. QS_ClientTolerance defines the allowed deviation from these values. mod_qos normally learns the average behavior automatically by default (you can see the learned values within the status viewer) but you may specify a static configuration using this directive in order to avoid influences by a high number of abnormal clients.
  • QS_ClientGeoCountryDB <path>
    Defines the path to the geographical database file. The file is a Comma Separated Value (CSV) format file (example). Each line contains the following fields:
    • Double quoted beginning IPv4 number of the address range, e.g. "1052272128" for 62.184.102.0
    • Double quoted ending IPv4 number of the address range, e.g. "1052272543" for 62.184.103.159.
    • Double quoted ISO 3166 country code, e.g. "FR" for France.
  • QS_ClientGeoCountryPriv <list> <connections>
    Defines a comma separated list of country codes for origin client IPv4 address which are allowed to access the server even if the number of busy TCP connections reaches the defined number of connections.
Sample configuration:
# don't allow a client to access /app/start.html more than
# 20 times within 10 minutes:
SetEnvIf     Request_URI /app/start.html          QS_Block=yes
QS_ClientEventBlockCount                          20

# don't allow more than 20 "403" status code responses
# (forbidden) for a client within 10 minutes:
QS_SetEnvIfStatus        403                      QS_Block

Log Messages

Error Log

mod_qos writes messages to Apache's error log when enforcing a rule. Each error messages is prefixed by an id: mod_qos(<number>). These error codes (number only) are also written to the error notes in order to be processed within error pages using server-side includes (SSI).
mod_qos(00x):  initialisation event
mod_qos(01x):  request level control event
mod_qos(08x):  request level control event
mod_qos(02x):  vip session event
mod_qos(03x):  connection level event
mod_qos(04x):  generic filter event
mod_qos(05x):  bandwidth limitation event
mod_qos(06x):  client control event
mod_qos(07x):  console errors
mod_qos(10x):  geo errors

Access Log

mod_qos adds event variables to the request record which may be added to access log messages.

  • mod_qos_ev
    Status event message of mod_qos. It's a single letter which is used to signalize an event: "D"=denied, "S"=pass due to an available VIP session, "V"=create VIP session, "K"=connection closed (no keep-alive), "T"=dynamic keep-alive, "r"=IP is marked as a slow/bad client, "L"=means a request slowdown, and "s" is used for serialized requests.
  • mod_qos_cr
    The number of concurrent requests to a location matching the QS_LocRequestLimit, QS_LocRequestLimitMatch, QS_LocRequestPerSecLimit, QS_LocRequestPerSecLimitMatch, QS_LocKBytesPerSecLimit, QS_LocKBytesPerSecLimitMatch, QS_CondLocRequestLimitMatch, or QS_EventRequestLimit directive.
  • mod_qos_con
    This event shows the number of concurrent connections to this server. Only available if the directive QS_SrvMaxConn is used.
  • mod_qos_user_id
    The user id which is available when enabling the user tracking. User tracking is based on a unique identifier generated by mod_unique_id which is stored as a cookie. The user tracking feature is enabled by setting the QS_UserTrackingCookieName <cookie name> [<path>] directive. The cookie name argument defines the name of the user tracking cookie. The optional path is a local error document which is shown if a user does not accept the cookie (enforcement). You may disable this enforcement for certain clients by setting the DISABLE_UTC_ENFORCEMENT environment variable at server level (outside Location), e.g., to support crawlers or the do-not-track HTTP request header.
    QS_UserTrackingCookieName ignores the QS_LogOnly directive.
  • UNIQUE_ID
    This is a unique request id generated by mod_unique_id. mod_qos uses this id to mark messages written to the error log. So it might be useful to log the UNIQUE_ID environment variable as well, in order to correlate errors to access log messages.
  • QS_ConnectionId
    Connecton correlation id used to mark all messages belonging to the same TCP connection.
Sample configuration:
LogFormat "%h %u %t \"%r\" %>s %b %T \"%{content-length}i\" %k \"%{User-Agent}i\" \
           %{mod_qos_cr}e %{mod_qos_ev}e %{mod_qos_con}e %{QS_SrvConn}e %{QS_AllConn}e \
           id=%{UNIQUE_ID}e %{QS_ConnectionId}e %{mod_qos_user_id}e %{QS_Country}e #%P"

Request Statistics

The qslog tool, which is part of the support utilities of mod_qos, may be used to gather request statistics from Apache's access log data. This includes data such as the number of denied requests or new VIP session creations per minute but also total requests per second and other data. Refer to the usage text of the qslog utility for further details.
CustomLog "|/usr/bin/qslog -o logs/qs_log -x -f ISBTQkU" "%h %>s %b %T %{mod_qos_ev}e %k %{mod_qos_user_id}e"

Status Viewer

mod_qos features a handler showing the current connection and request status.
<Location /qos>
   SetHandler qos-viewer
</Location>
A machine-readable version of the status information is available when using the request query string auto, e.g., http://your.server.name/qos?auto. The page updates itself automatically every 10 seconds if you add the request query string refresh, e.g., http://your.server.name/qos?refresh.

The status information is also provided on the server status page of mod_status.

Use the directive QS_DisableHandler on to disable the qos-viewer and qos-console for a virtual host in order to prevent accidental activation of these functions, includng by configuration settings of per-directory files (e.g., .htaccess).

Web Console

mod_qos implements an Apache handler which acts as a web console for setting attributes via HTTP requests.
<Location /qos/console>
   SetHandler qos-console
</Location>
Access a location where you have enabled the qos-console handler with a web client and use the following request query parameter to modify the status of a client (may only be used if client level control has been enabled).

  • address=<IP address>
    Specifies the IP address of the client to modify.
  • action='block'|'unblock'|'limit'|'unlimit'|'setvip'|'unsetvip'|'setlowprio'|'unsetlowprio'|'search'
    Defines the command to be executed, or the attribute to be changed.
    • block: blocks the client for the configured period of time, see also QS_ClientEventBlockCount.
    • unblock: clears the block attribute of the client.
    • limit: blocks (friendly) the client for the configured period of time, see also QS_ClientEventLimitCount.
    • unlimit: clears the limit attribute of the client.
    • setvip: sets the client status to VIP.
    • unsetvip: clears the VIP status for a client.
    • setlowprio: sets the client's priority to 'low'.
    • unsetlowprio: clears the 'low' priority attribute of the client.
    • search: verifies the availability of a client IP address. Set '*' for the address parameter in order to get a list of all available clients.
Example: http://your.server.name/qos/console?action=setvip&address=194.31.217.21

You may use the status viewer to verify the status of the client.
Example: http://your.server.name/qos?action=search&address=194.31.217.21

Utilities

mod_qos provides optional tools for log data processing and analysis:

  • qsexec
    Command execution triggered by patterns within log files.
  • qsfilter2
    Rule generator. Creates QS_Permit* directives and rule patterns from audit log files.
  • qsgeo
    Adds the country code for the client IP address within a log file.
  • qsgrep
    Searches a file for a pattern and prints the data in a new format.
  • qslog
    A real time TransferLog/CustomLog data analyzer. It reads the per request log data from stdin and generates statistic records every minute.
  • qslogger
    Shell command interface to the syslog(3) system log module.
  • qspng
    Creates graphics (png images) from the output of qslog.
  • qsrotate
    Log rotation tool similar to Apache's rotatelogs.
  • qssign
    A log data integrity check tool. It reads log data from stdin (pipe) and writes the signed data to stdout.
  • qstail
    Shows the end of a log file beginning at a defined pattern.

Use Cases

The following use cases may give you an idea about how to use mod_qos.

Slow Application

In case of a very slow application (e.g., at location /ccc), requests wait until a timeout occurs. Due to many waiting requests, there are no free TCP connections left and the web sever is not able to process other requests to applications still working fine, e.g., to /aaa, /bbb /dd1, and /dd2. mod_qos limits the number of concurrent requests to an application in order to assure the availability of other resources.

Example:
# maximum number of active TCP connections is limited to 256:
# (limited by the available memory, adjust the settings according to the
# used hardware):
MaxClients              256

# limits the maximum of concurrent requests per application to 100:
QS_LocRequestLimit      /aaa                100
QS_LocRequestLimit      /bbb                100
QS_LocRequestLimit      /ccc                100
QS_LocRequestLimitMatch "^(/dd1/|/dd2/).*$" 100
The qslog tool may be used to analyze your log files in order to idenitify "slow" resources by using the -pu or -puc option.

HTTP Keep-Alive

The keep-alive extension of HTTP 1.1 allows persistent TCP connections for multiple requests/responses. This accelerates access to the web server due to less and optimized network traffic. The disadvantage of these persistent connections is that server resources are blocked even when no data is exchanged between client and server. mod_qos allows a server to support keep-alive as long as sufficient connections are available, but stops the keep-alive support when it reaches a defined connection threshold.

Example:
# maximum number of active TCP connections is limited to 256:
# (limited by the available memory, adjust the settings according to the
# used hardware):
MaxClients              256

# disables keep-alive when 70% of the TCP connections are occupied:
QS_SrvMaxConnClose      70%

Client Opens Many Concurrent Connections

A single client may open many TCP connections simultaneously in order to download different content from the web server. So the client gets many connections while other users may not be able to access the server because no free connections remain for them. mod_qos can limit the number of concurrent connections for a singe IP source address.

Example:
# maximum number of active TCP connections is limited to 896
# (limited by the available memory, adjust the settings according to the
# used hardware):
MaxClients              896

# don't allow a single client to open more than 50 TCP connections if
# the server has not more than 196 free connections:
QS_SrvMaxConnPerIP      50 700

Many Requests to a Single URL

If you have to limit the number of requests to an URL, mod_qos can help with that, too. You may limit the number of requests per second to an URL by adding a delay to requests accessing this resource.

Example:
# does not allow more than 150 requests/sec:
QS_LocRequestPerSecLimit /download/mod_qos.so.gz 150

# but do not allow more than 600 concurrent requests:
QS_LocRequestLimit       /download/mod_qos.so.gz 600

Too Many Client Connections

mod_qos may prefer "known" client IP addresses in the case that too many clients access the server. "Known" clients are those which has once been identified by the application by setting the corresponding HTTP response header. Such identification may happen at successful user login. Connections from clients which are not known to mod_qos (never marked by the corresponding response header) are denied if the server runs on low TCP connection resources (20% or fewer free connections in this example). mod_qos prefers also those clients which communicate with the server instantaneously and fast, and denies access to slow clients sending data irregularly, in case the server has not enough resources. A minimal request bandwidth should be enforced, in order to close the connections coming from idle clients. The QS_SrvMinDataRate does this. You may want to combine this with the QS_SrvMaxConnPerIP directive as shown above in the "Client Opens Many Concurrent Connections" example. This could even be extened by the Apache module mod_reqtimeout which may be used to set various timeouts for receiving the request headers and the request body from the client. The QS_ClientEventBlockCount directive is used in this example to block clients for a certain amount of time if they cause errrors because they send invalid HTTP requests.

Example:
# maximum number of active TCP connections is limited to 896 (limited
# by the available memory, adjust the settings according to the used
# hardware):
MaxClients               896

# idle timeout:
Timeout                  20

# keep alive (for up to 85% of all connections):
KeepAlive                on
MaxKeepAliveRequests     60
KeepAliveTimeout         3
QS_SrvMaxConnClose       85%

# name of the HTTP response header which marks preferred clients (this
# may be used to let the application decide which clients are "good" and
# have higher privileges, e.g. authenticated users. you may also use
# the QS_VipUser directive when using an Apache authentication module such
# as mod_auth_basic or mod_auth_oid):
QS_VipIPHeaderName       mod-qos-login

# enables the known client prefer mode (server allows new TCP connections
# from known/good clients only when is has more than 716 open TCP connections):
QS_ClientPrefer          80

# minimum request/response speed (deny slow clients blocking the server, 
# e.g. defending slowloris) if the server has 500 or more open connections:
QS_SrvMinDataRate        120 1500 500

# and limit request line, header and body:
LimitRequestLine         7168
LimitRequestFields       30
QS_LimitRequestBody      102400

# don't allow more than 30 TCP connections per client source address if
# 500 connections are open to the server:
QS_SrvMaxConnPerIP       30 500

# block clients violating some basic rules frequently (don't allows more than 20
# violations within 5 minutes):
QS_ClientEventBlockCount 20 300
QS_SetEnvIfStatus        400               QS_Block
QS_SetEnvIfStatus        401               QS_Block
QS_SetEnvIfStatus        403               QS_Block
QS_SetEnvIfStatus        404               QS_Block
QS_SetEnvIfStatus        405               QS_Block
QS_SetEnvIfStatus        406               QS_Block
QS_SetEnvIfStatus        408               QS_Block
QS_SetEnvIfStatus        411               QS_Block
QS_SetEnvIfStatus        413               QS_Block
QS_SetEnvIfStatus        414               QS_Block
QS_SetEnvIfStatus        417               QS_Block
QS_SetEnvIfStatus        500               QS_Block
QS_SetEnvIfStatus        503               QS_Block
QS_SetEnvIfStatus        505               QS_Block
QS_SetEnvIfStatus        QS_SrvMinDataRate QS_Block
QS_SetEnvIfStatus        NullConnection    QS_Block



Nevis © 2007-2014, Pascal Buchbinder mod_qos-10.28/doc/mod_qos_seq.gif0000664000000000000020000053070212264072142015230 0ustar rootbinGIF89a£ýðÿÿÿ!ùÿ,£ýÇ  $$,, ## ,,33:: 55 <<++3399==###+++444:::CCJJ @@ KKSS[[ RRDDIICCJJUUZZRR\\cckkuuzz qqzzccllaattzzqqzz!UU#\\$cc!kk(ff*jj$ss"}},ss-yy2mm6pp0||;ttBBBKKKTTTZZZE{{bbblllmsssssszzzzz„„‹‹““››€€„„ŠŠ££¬¬³³»»§§¶¶$€€ ŽŽ*ƒƒ+‹‹%,””1„„4‰‰<††:1––1˜˜<’’;››-§§&µµ3££;¤¤>¨¨1¸¸ÃÃËË ÎÎÏÏÈÈÐÐÑÑ+ËË%ÓÓ,ÔÔ7ÎÎ5××9ÕÕ<ØØM€€A‘‘AžžJ––M˜˜V‡‡T››XžžB¤¤BªªL¤¤J­­E´´G¸¸J¹¹R¦¦U¨¨[  \¬¬R±±R¼¼[µµX¾¾`ŽŽg““††ud¥¥a¯¯h§§j©©d²²d¹¹j³³k¼¼t®®|¢¢r´´s»»{²²yºº@ÙÙLÒÒMØØ\ÀÀWÙÙbÂÂkÅÅoÈÈuÁÁsÉÉzÃÃ|ÌÌ„„„‹‹‹‹”””””›››†©©‚¶¶„¸¸½½¦¦™··¢¢¢£¬¬«««¤¹¹²²²»»»‚ÃÄÊÊŒÄĉÊÊ…ÐЊÒÒ“ÃÃ’ÍÍ›ÅÅÍÍ“ÓÓœÒÒœÙÙ‹áá§ÁÁ¢ÊʬÄÄ«ÎΤÑÑ¢ÝݪÒÒ¬ÚÚ·Ì̳ÓÓ²ÛÛ¹ÕÕ¼ÜÜ¥íí®ààªííµââ»ããÃÃÃËËËÃÔÔÃÜÜÌÛÛÒÒÒÐÞÞÛÛÛÄããÄèèËããÎèèÑããÓêêØääÚììÜññÞùùåååäèèéééãòòäùùíóóíûûóôôñúúþþþüûÿÿ H° Áƒ*\Ȱ¡Ã‡#JœH±¢Å‹3jÜȱ£Ç CŠI²¤É“(Sª\ɲ¥Ë—0cÊœI³¦Í›8sêÜɳ§ÏŸ@ƒ J´¨Ñ£H“*]Ê´©Ó§P£JJµªÕ«X³jÝʵ«×¯`ÊK¶¬Ù³hÓª]˶­Û·pãÊK·®Ý»xóêÝË·¯ß¿€ L¸°áÈ+^̸±ãÇ#KžL¹²å˘3kÞ̹³çÏ C‹Mº´éÓ¨S«Û„ ‚$«cËžM»¶í۸à ÈÍ»wÑ&‚°à»¸ñãÈ“+_Î\!pášKŸN½ºõëØ³kßν»÷ïàÃ÷ÿPï^½òçÍ£_¯¾}ú÷ìá»O¾}ùøëã'_¿ÿþæàHà&h ‚.è`ƒÖÃ߃ VHá…Z˜!†óI¸á‡†Èሠ’(b‰(ž¨¢‰,¦ØâŠ.ÆãŒ/Ö(£4Þ¨cŽ<âèãŽ?öäBä‘(’wÞ’L6éä“PF)å”TV %2)iå–\vée—Z~)æ˜d–iæ™h¦©æ{a®éæ›Qª# œUš×&xæ©çž|öé矀*è „j衈&ªè¢Œ6ŠçŽî‰eLÂù 䘇Á0Žy½€ž:ÁüYi¤¨¦ªê©{Þsi¦õlÿ*L-,Ùi¬ŸÖÓ ¶ÔSA-Kš§Ž§÷ôRëy¤Öó‹Â˜‡„õ,Á’²¨zªªí¶Üvëí·à†+î¸ä–kNH$’Bž7)Lê)e‡OÊ;_¼ìŽx)“ØâiyML{9˜&1“÷Ì"À0<:Â!ÀKœñÄ3i0¶÷¼$ÁäH8Îy¶XàîÈõÔb ;ŒÎÆðYì¦èx<0¦"“lòº:2‰/ÏBÙ_™Ø6Io»Ní¡½ùÝ4ÓNG õÔOW-µÕAŸ|žÊ ;<Ä!/!€F`­О·l=,{=οÁ*f¿K@¶Ùõ ‹r= ÿPqµ ŽNÎq_m8Õ‡c­xâŒ#îøâL³zæ³ä ÀàlózÍæÉ2í¾KÐ œê½û’äMÊrÁ’è 3ËÎ|“7l©)ïÌéÖØr@0¿ã¯:ª³>¸Ì–»»0²ß^»•v2ªôzTÒKÂùùü¼ðm9tá^: üBò½û€:K ¡^-ŒŽy³L«{ù¿¿mÄ/ê¨G<ž×gï3º  H@.õ/iþ; ¡7¥íq¯p , 'HÁ ¦ [ß+TÏd§,ðAB«óü¥ :)ƒ€’^–=ŠI…Œá ©ÇÂé9¯z(lU §¤ìíP{D›á ÿ-HÄ"ñˆ‹‚¡ §gBF‰PŒ¢§¸¦Ÿ!Mˆ4¬!Œjh:—XQ„_jb¡¾Ø¸ŠPi.¬ÍhC5þð‰†scóç'šI‰ZÌc߸Dô‘Ž€„œ ËHÈ@r†¼"}ØF 2БlL$"'yÈJJÒ’”¼¤!Ÿ”Ã;’†bdã»ØÀq@¥*SÉÊUžò•°Œ¥,_™ÊYvÒMñ0å)[ÉKWöò—¾ f/uÙËYÒR˜Èf-O©ËY*3˜Æ|f+áÐÌh&S•ÆÜå5SiŠfJs›Ø´&0õàMp~󜾬ìñ§¢Y£œèœ¦9¯iÊxÎӞи¥›ìQÿM{úóšÔdçùÏ‚³ž÷L(:ùO…:tšwh¨A'J͇Z˜¥¨=™QpfS–Ïœe7 êJ^šä$©F‡Ž®Ô .=)L“éÀÚ|iIcªS{2T¥2õè)Õ Ôž‚“§Aµ'R*Of ý ',—ùQq"¤,eN-ZÕ®êSM¹,jRáð è€€ T¡¢ßü¨N«ÙÕ„Zµ–t­ë<åêÊ‘nÕ¨V…CJÿ:ÖsªS iR ÒÞ)V¦"s©…Ef>!¸8~N5²è (ãš$QWBp@`…Æ&²ŽæO ›ZhFÔ´­m%j}YÓ›ÿÂö¨˜µ+\¹Z×ÂÁ¯º½¬AÛÙØú²¥¹ýçl›Êj:Á¯LAhM Øå&W•«½n\‰ÊZíºÒºÆod¿j=ü¸£¸RÕkUÑ™3·êÕR ÃÚÝ•ÂR(¨‚ö[Zfî5›+Í«z…+ÔX xÀö­,ËÜ’Âr°Þ•æa{VÂ'1¶¾Þmƒ9Y FuÃ;E¬žúƒÞS¢@ HŠ`‡j8êEoƒáðZ 7õ•o8åžpÛa4 *¸‚,ß…#óÅ ö±cõÚJŸ”º…p’+ÞÖV9·ÎM@ŽOù†¼Õ»W.&€Á™Ý)O“»0~lšŸæ Ê×ÿjO:¯Œà1cÕ½s¬,É‹&úz×ÄH@@ËcÿR”¯è?liÍ”°Už œV¸ NØr¢?ÝË2šÆ2>ògC;ÚþÉt†Ã°pW‡¶Ù¨Ç®Hs}èX³Ò“Žr£ý]ZWû•*€.ŽðemžÒ @Æí„B+WÙ[N7IáêV»û”¶ž4Ð L²j`̶¶l­Íç4µƒÔq}ô,<_—š…òó’a …d3ÙõÆ÷µ^çb:šâëí+³íNcº¼š~d“8½Ñ* Qÿ€® °e»Bü¤“eg"žfÍ*²J¸X\ìæê»o-®¼ÌÑ6àèHo1›¯‰…*ä¸ Ð@¡ þÍ—ç›ÚË”t†cÙqŠZÁ ®\“YåÚâ”êjƺ*›y§³[˜z0­°‚¨`( ÀÙ}åSVAîpX¯olx ȯŒw©é Í( À×P±Çjõ“V^¹×ŠÛ¿•L($`H±è3ÐòœRÝõ<èEŸbÒá“TøÁ¹|Ê(8aòÀ©É£›±òµ¢þѝW­O™¸DÇì„´À K‰äÿÍ@êN}´ãõç&Ô=hbSsD97ñÿ½£€S*ð°TÁøµM€"6÷–Vüñk¬Û7( N€Â  ”»ÎÀ¦^:Svye|5×uÊæ(ð€°w¬…Tp€9fX€-7W. 'qq5|´NWPWr<çr®„  0ƒÇKO0Eöx]ö½”ÐõW ep GfÃv˜cGg8KŒwc>¨VjurÖ—v?g€JEY–EKU8¦VQ`Wp¾&K¬æn"8pYÅï%fgøn¯×of"{B'KX@“'^l¶D|çhF˜„‚臯„€Ý§€IöqÎ×|X”4Ðÿ—Y©ÖÐ@?X…}÷š¸‰œWoÙ7(–•|Õ%b‚Rb)°~§Ô~%ˆXÀj_†Q?—JDØ}ô÷OV*ð\o ЉMf_¨e zW†”‹¿tð…ˆºõ†®V_<ˆh\¥‡¯ô½‚ôŒ°÷J÷×mp“hLWà€ä¶ÀwJwˆ‡dÚ–^¯„+àÓµUù¸lÕ+Ðr³è©6/ƒ ðQÚhLO¨J©ÖViå@‘ ŠV¨vX8Or؈²yØ"9&%O°OPzvzðÒ]\ÆŠ,)Œ ÇŒ¿4lïÿ— ÐrX y†ö_°ÔŠ+¸‡a{FˆwqêˆcGU„hˆÁ´{§”ÛX…©äŒ¦ˆ!·@ý“5xMoPb9–UаÖèi™•)¹’PRŸH¡ˆv¯t) g©*@UÙh2‡!Uä{³¤&Iƒ+K%élØ´‘ÿTp ~åÈ~:øHW™0Y‹ó4{0ne¨TÅ5Ð('šjÇM6YÈ÷~ˆ„I¸„N)K·ØX1UUWКK÷Oˆ² œÉ|ÄhoÆØmN k±$xÙ´‹ùÅ_ýUMM¨›êÈŽãæŽðxcלBF„fçmÿXˆÆô›²‰„CÕY&"éžî)’ ‹UšÈŠ8œŒyTo"j^ˆcPPZW0C6uW°eXp‰uæ’§“¯Dw)p{Šyho–8~†’*É’Ú”Žë˜N ŒöQ}×U÷Jiˆ”G‰¢‹•7N@iyMXéQXàka äè~½´|É…_ò•7dEYqè`z„À™¤Ãj„2—VKZ눋úIŠ>$$2—°„ÆT–$éoÕ›?ç˜+°“ðƒ=ùŠRx@›Á„™%ŠcU PHõS7ž¨ ½TP˜UŒ©æŠjŠÿªŽvšÁ!V#ú`(†dèb,šP(  ¾¨€¯t y@µ©±”P M¹yJŠú޾'d³¶QV0@´j«µ £tiJ©vYÂÖ¥ÆÄ€8K+7’‰8V{±6ƒÑ¥µém±¤ÒW­ÛÈP8yŸå©¡Á³Z«·š«ºúµ4žÛê§ÉøO¯$}ÔWw˜ÈoZÈ||D%çe—)p¯øÚž©¢jˆgÀÈ€`šhf vÈV“Ï „<×ÿ·UZZd °TN ²”½ø“ö4†ch©ë‹>öh&‡r ¹rÜZUÃg{L&lø¥_üUU™ZL™r©¨£{ÿåŒ8î&’"™cË`G¢ª¤NhÔG2¤Â0có|ÌX¦„ƒøhÖÅn ¨À¨X[…1—&H«´L ;Pâ¤õ‰6h0uµN†Rb#K³&›M§˜šk§ŒŽySg;¨AëZ¢¥ƒ7§­›Iªžo M©Ú[V©d襈 P·˜‹°‹p²§t¬@’…IXmö˜<«¹ P1»JÚØ§ŠAI¥×Kžj®çJ`‰Šp Š¬5mGö ûzŠÉeȸ¡{}õyJ‘«‹¼²·‡d…†Žª1ˆ–åt*€—q'kt¦nUõ xÒ oÍT=ÿÇeŽkM…çb÷JäŠMà¾kkW©¶jÌ‹¼ûFmäõµ°´M¯Õ’˜*@lXwÙTÇ ^ÄZíð ÜKoЛ9d;¨ßU“R po'ÉnåwJ¢Wà"<ÂìhY¤!ågéx ¼»|8™”]Åš½-Û½5º©tÁT)¿Á„³˜Viª{±=øƒA¸ét'E»•ïQ hX4¤@ŠL ¼Àð­u…86¤v—²ˆPìnR¬…õ@¶£™jÔ7PwÒU¥$)ëÆÁ¯ôÁuÕÃ4 Eü‹%§j ˆ†>,‹ åwàÅ»Ù_ò$¬ÿˆ(VtZ`X0½†xƶM)ðƒyL»†¹ ;fKÅj ‰»¥áÈ·§DÃÈhqQšk¥lpËT°tb*–Ër«Á¯dª-橊ë¢'<.<»&©L³µŸ›¬°ô¾ZbUÖe.Ì€¥…œÖ›YÔ9Ëá „–J·˜OД›cÔYÊ»›v›C¨hXàp¿ÔtªJ‘è7KBé–ë9ÇÙÔÎóÉÇ@¹²!¯b2Æ­VÆ$g„¬¨¯Z±3ˆ±Å™ÆdÀZ5šåKÉÆÄjâFnóìmú8aåyƒÊz àzÐT>¨°3©J»&Z¤e¢%†Íù®f—ìÿVÌw¢f¶‚z{kL:ŒMPЗùšÐd– zÈhL= K6XTêÄ=Eó M2"7M@MB> Tž¥Óh»Ñ[|OVÀ³dͳ ŸHBRMÕdW7Z%h\¢ ]f;ÊpLI%6­ œ6}JÐÓ§´Ž’ê¾Ì;pÍót·¸ÌzsüÇpXoì[7VKàHËHeޝ¤÷ØÔ¾ ÙÂÁËçUuÙ×ˬJ¬–@™,†")„h•§ì·½f†º*KÌüÃáwSã×Áç§RÏü–¶[o ¢Ns„§Ä°…­®.z˜C-`ØkLÜUûK]öVtÅ®íšMŽÿy>Ù»s K¾üS«Jn­zÌù–[œ pœÉyϦ|Þíèª%UVg%ÄlåVÝ5¢]œ§‡J¿úBoý >#TP•­Ã¶­Ù4³’9Àæ ͆J¼+¡^¬Mx¬m{lK^‚<Ì^r¡o€§‘¬¡?«ÍO0¾¯Áx«™.-«&\™–ùÂ"{rpËruv¢oàâµÔe‚í¹–[Ët Ç}ÖD-O‘»VíZwѪÅåèÎKÌGì³µåYþBFÃÕG†á~Ó.Ru{œYÙÇ1M’Ðæn%RýæJÜwd»)¹»¨º»ú—]‚¿ðç€þç¼&¾‡äÁìÝ¥ÿ»_6%ʤ e(̇Ôj­BYŽY‚'˜‚`ƛ±ï7Ù×Ôø gŒú‰Lš}JœýJž-UMò¤M¼;Vì­‰vˆ¯›ÈßÜ{ÕÎø:ÊËO—Zçw  ´ê쬧(åÏÿ–k¬èŠÞÂ#<þ&Œ›£éòª»™O»ûî¾Õ¿ÔV©¬KHô¡;å4oL*¡Ü®üŸ«‘^¹ €+pà`€ÅàB8N,°b!(pø`¸"ÀÆ*2„c£A@ž| âNÖ 'ŽLš3gjäèäLƒOüŠÑfMšp„šôäB,QÞ,T•èQ©UOFqòÔ Užê}[ï^X²`ÇÖC7k MΞ-ûîWx1—Œ’‚a”Tyâ€ÀÏ»¸‹À?Æ?†YòdÈ#•2„‚¢pa­Z75+Wt\²s¿þj2úmÙx1ß`û®ÿ•µmß^zÓÃ7ª¤ŠTøP'AB.ÜègæÍ™Û='J‚  ¢|~2àz+o\/l*&WšOÜÕ‰œ<=ã•ûDáD¾|õ4Sh™àãV¢0C“íŰ À‰P'®{l1î§Ò̲Æ=òxÊ® ƒ àŠ'sn¡à¬‚£ŠƒbhBš ñÊ±Ê p@ *0Áÿ¾ªeÄòÇ.)T€!,2Œ.¹®T k5¿j‚²øåF#W“¦+ðl¡(øÌŠ'ž°ð§¤ZnG¢Þp`+Î<³¾õ.RS¦+ÀÒ  h@!þ† ŠÁÚœéŽ(AìPÌ1 +ÿ ²B¿´âé.=¡[jP @A+,PPi3 -„Ã'NïNÈä.²'‚vu&ñê© È`¿Üê,H<ÛãóÂ5õSþàxŠC±X¡Êá5HÄ4è :X¶ƒ_zÈ ˆ&ÚO*IG 4Ušbš®:ð«"N8p )Q¥¿H:¬ŠÞ H‰×Fi}í /±Ñ 6 kÐÝ< ƒ ÎÀXÞØ Óvƒ¦\ ¸Ä¢àÀ4 Ý\·%O$œpà °ØD•[Hü¢€˜ðÖóŠ´#W¬±A›w®§.¾ž¨ËS;\ªÜŽFÚ Å(cºi§³ŒÛƒÿ|- ‹'V€ÂÎÏj.Ë´°„ l›lЇç°ZCÉ×Ë:í÷®LbH»Pż7¤RpBkPɃ´C¤%ú®À—²bテ<‰Ø€8¼?¥ît€²sÀmoÙ‹2YsÑU·s93X¡ôÒÿ® &¯Ë’Elè寝ZûõØ»þ*Â\Á|£¢@“×ÂïÞ¼9¼á@QízhÀöÁbÞùçÇÊ1åÍç†fƒ¾ûL[M[}Eñ‹ü*˜Ô”kr‹¯Ò«(ø,ÅTÖËV“7¿Qñ_– j*Šûkш3*?íN8oÐ ðd=šIí Q(¼lµ    Á{Nñ¶ò„ÿ t@V QÁÑ:ò„ †É[J)W´BψiUø3È}˜C,¬ †7Ä ‚+†è;+ €Â|tµ¬±«&qXI€%.±0Ph߬æwB¢,dC‹‚„'¦å¼Á Uã™Âø›*&‹„üYÕì#-íÁAf&„ƒ ÛøÆ“8Áwj,Ì À±Ž|DpP”: JXÂ:H±6#2’™ e›\£©Çi$ÞñCXø1*Ú$%+iÉ]ÕÉÐ)ìJ0T ×F#;²Dv7[ÝXêbô|ð’xÉ ª03d‘WK{Z0… 5Tf/x´˜ÎS8UþçI£ Æ€Br ÿom®9É/¹@n÷kT£—½8)àŒ‘d™=Ð/v™äâᚃ½6r™Î±Öþ‡§*PÇÚüÌ IGÄá ÒÂBªd"αJ]vlÀ|œ°Š8t3RQ+¿¢Ž^¤-- 2_Y’T` á+†jÀ¢»b.XèeÉá™PL(xY9ÏÈÅä©£ã¸ÇG7Z–q  ¶À€:Š€€.÷Б·¦¤• DnxCzÞ;²#¥M²fúÚ2rvC¨œÐ#K ‡~Âq§8†G1é¯~e–4`OZ9Ä/(x‚¹rUÀ–^,†Óa¹x—r-tÿpX×ÖXv˜VÖ²V]Hc âÄ‚è­ü4gÈP‚‰žãëIPÐD&žÇ*<,£fáàÂ-„H€Dð—Ä)¬d'¢¨¦ÏÆÖŸ5`*Ob…û¨™B,Ñòµ¥(À–…m= €gi×_ÐÉç–·|ÑQ;ž"±òïjâ-á]¢ ‚6·QPiÁÒ›°äN…”.eŸ·¸¾ñ…¥¨GMêR›j$ñ1¸.³úL vsPÈ*t}|ñ `3@`ÓÃO‹hë1‘ÌJ† ÑÏÖ4Ê3YÁÅ/ÎjøZc…Ë^¶¦wqYöbžSQ S—`ú‹'yræ GFÿr’k¸™ôF/xBÁ#AeÞixW°ÂsáPZQÄqh€" «ØV%…@dÔÅÞ0œiËLŽVYà9£­,\­Ç/ÎV ÜîA,h jkýäÍ9öÍìw³É1Ÿ¨™a i‘fa¨C¿@Òf3¨&V9W€¨D)zÝçÉ©1FRWÍòUgª”,¢H¡x•¨E*€Ô¡M5¸™¼ Ù"“»‚2 lag`Øt[Ê …`Aع&ìãÝ7z&IìŸ Umsæ…¡mþ*¼ýQyŸn•ö…ôò𠮇Ëx €nÒj9Š—¾ÌU™ËØ!Ù&Àc‘e ÿ»Œ¨¼ÊdôòSbs,0ÜÓˆöáˆCçim©+ÉHÎraμè 2cKLo¨‚ST´>ã<å¹Û¨5ÿäLû®²˜å,f-«~…›/ÕÞÑɼYÏŠÖ´y›œ¸é†[ƒÒè8xG·Å9T¨TXЯÎä›t¥/éM[ý©dy°©”~ ƒ„ÞÈéóa¶3­Çy HÒxcÃeugcQÇd!Œqô½ë«”qL ppƒ+Ì¡±sÑη/çÁTÐB*Y¾Ræ Þ!Ë3§QUІ–’ç¾›rÆ|.CõýùÐÇÚBù¶AB˜ù!EÎè«&i\ÿ¾ó Ð\”á–©€qÝs±‰Õ4omƒ$o.Î=úæé²TÏ× 91Ý=dê¯ã,½PRXm¦>*Cp-A;%-áSžÈÒŽȈڞы¤´+QD«'@Áÿÿ×8EƒFChc(ZaŒÙ£È‰§.“0ƒb? C;ùS—úkŽ$ò ¥“ „, Ì5¦ë1½)[Š^CH€X§\[½}-»’Ј:1d‰8ƒPÝ8þP€(>²b@å€8È 5‰JF[Ž~#±¨/qÂ'ü (ˆ½âž¨Ù¸ì¸)“£³¨ƒx/Ïø#  $y#Á¥ÿè6\Ã54ö*71d˜2TŠ ÀZ¾6Ñ5.Ò#>:B_Áè ¡µÉë¯G£³«{ê³»°;Ù¡@.x €øx'ÈÄö*ÁX»¶ÅÊ(¦'ˆ.츷 ·ºÓ½U\D«›‘¹hyº6Ëž©3¼²Ò€³*>”è €¼¹‚‚‹“ãé¼á1ÁCkŽ+ê%-’"–9F0½õ8Œv£¢™˜¯“Àžº™áÈ(ñc%< VsÅßóÙšºÂM±¢¡!¥äùN“ǰG° GÝ‹ª*Ó>05WHpd%tz› I R6— Æk¨¥h ÷£¢ü‹ q#ÿHÅ“¸B¼ $%Š’¨_cH©­’(¼Æq Z7–É.ð€p—T”ÅsÈ”lBÔBqK€ß:8”}q¡Hò‰‡X³˜“(J4‰ t²Æ¢È dâ üz•ôJþ* ©Ô¯ƒ±Ê1Á): ² Ëb< ub'+p'š"Œ-ÚJ?CÃÁl1,M ÜR=°‹Œi€ÁÐ&¥Pšâ b1EAÓ‰Ct" Üê˲cÚ¨D*SzS®ã™‰ÁÛÅ¥kÈò‹ ñ•fÚ=²¨Ç¯¸ÇG,’H<¤a³„C¾×Àv[<äÉ SšO ÅÛü‡Æ AÓ1ƒ £ÿ…€Ì»xƒÉ·cÅgšGña›Ï8F3¼öÁeÄ7âÑGàDƒÛ"3˽ÀE]y((ޱû•¡³‰˜ “»‹hLó„ƒkñÍࢦtÏkIOR ¾á—¨¸=ÓTž{hU“‹{4 s¼FÃ(+¹lËt›½è#ŠŽžº™Z@ã‹-’Ò¼|8TÙÁ¶üÇV$°u5ÓPL÷ZøâµÁЀ:ºÅ úú•À¼ºJ:6¹ ¤ PÑ_‘d;•ÃÍPl¼ :Cç,NV «ÐŒ ¶Ê5J@JZ‰7€‰:[•(¸ ÛðS}Óã¶í¬›oˆ²ZPÆJˆ“˜{)Š€W¿( ¥ÖØRiÊ÷ÜWyÍ“RlF9ÃVãü “…Y˜…‡ÝÿÝœ›£ÌDF†zËè K µ;»‡…X‰]EëCBQ©‚o-µVdDðq5ô9Q*®*ʾ…ìÃâqΰ”Hã1&'E•^ÛHuÊn|ÕÓ³‚ë›Ù¬Å¿È ©ð…:rú6§íI„«¸ÅÂZÚd¾-SŸ÷áŸøYŠm-ÊåÃeN•EÑc½Ê$ÂBÚkއ4 !|»…HÅ‹cÒ>‹Rhx‘›‰š…ƒjC»;¥<¼€ö¹pÌ?’¯(º+PP<ë9ÆôËÄœ˜ Á©¸HËDU¤+AèÜX%ÝYeØÙˆFÜw¼¾ ¤I³“€‚¾àÙÿ{aÖfm»gÅ$´ ¡ëS1ïcYXâX´ -‚. .üf¡I–ˆ((P°2ÒÍQ!€ P¦e"8k@éŠÕ~¼ÊµíÂaO© + òNæSÛá±X.,Œþ¼VìŠ]P“A¨Ø¼%Ý CÊõðX]Õ_kŵŠúDO7"µ­ QÙm]k Ŭ¶4“6R8H-´SÝSUŠ ¤¿Ëáá`l0Ž\æøÊÔí²qJChUV-ÛFÊdE wKóáKb.Òõ9¯é42C'öÀû£2mÒþñSQ²Á…à(`†ˆQ‹¡Ñ‡kÈâX'/QËwŠKÿ!¼Ásù·ÎÛÓ4| êA'€‚HK‚N+Þé  °Ž0ýhªá”QKÎ,äš;]DJ,Q…뀎£.šœáÃ:ÔÂP«ê߸ˆ!Î<- °þŠ‚ˆYE^w¶ ˆ£¥Å DNödÒM­²`'‘]ÚåáÇ|œ|Z‰nŽVvåazV®¨”îŠäœg¯YX°XN›…°.«²+Ë8êÜœŸq=*šòýfulŽ/…ÞuŽ•Þ·êL›•ŠnFæ}‰G»e¸–ëU4ç›+È+Ug1€¶º}(xdY]EÎÿÕÆÇJ¶é¾õG:‹%rŽë² ¿82‰zÚÏó}Î(lOfèíjìü™þ Š^éåé( ^æÛa­¤Ê®ôf„.7DÙN .“F·çîdÏ.`jnÁ…èbøbœc[™x«É A4æ"ÉÊæ”Qâ‰Þù *Áþ‰žîãÆADŒháûdÞD± ^®‘ø£¼'Va`IELßC–ä}CK2^Kßî²!TooëvõÏ\½»ã º†fnE[¢íÏà뾦gÅC†ˆh³ÂÖuYÀûçluׂ4 b.È^9ŸØ¼£½lÌfø°“KéeNìl¡­NÕãò_ ˜ˆGf`ÿkjmáx_ƒÈÅ¢½±â2_ñXÕN^ä%0“]ñßFhîK΀È ¶(}É—†tëén½ïteïS5á3®ÎÂÀn©ié`†i1M¸õÂ5–ã;‰Ûƒ ÛޥƄ^q÷¾ó»˜ßòλžMŸlSïßL~)8+œõ1'' (7q8R\û.£¤•+¿p€Pˆ‘˜í|6Õø³¡dÇ!&+·(˜gíº-[Y¯›ŠÕÓ³’o-`QOingq>nåw² k`³Ÿ ¾îF±Wÿpjï×q§vÏsE|ñ2oñĦ;$§2¼uBD÷±g>†œò6ïJothüòDç Òføÿáó{gß_¡MjYCmNoödŠ8§øZ¾÷±ó‡7ííKÞáVä4Q‹Falæ8oŸ~“Ç¿…ó‰Æù™`.ÏHYw¾YžøÞBŽuÑîÐü¦É¾ÕRoï/õ†ø*âjZqÇܰA®ö$Z¼±“>çœ%¥‘ð÷¿¤p¥˜qÝøJgîYÇÆéNs³bó §œù.ŠúN_T¹vÖ=¡±çööNîû¯oñ”eµ!eÃæ—ŽÌ´>‰@|wÛŒwa‚edúOžç•ßs#/x'k¿ù{·Îü%›ò°\R·y¨Ÿ|¼‰x¯yqVž3/HÐ>¿³ÚÓ§"¿` ®|ÿ°(yÚ¿Æà|pßíZ†µ›»ÒNÇr zÞOŽE·ù ½¾ìê€íê®èúN? íxoGßæ7b nÓOéº[Î>yÌæþ"¥˜1n'3¶B4D¿(þÖ ÿ½ª§ lÎøZc~TÇ󸇤6+à,ˆâ €*áÄaè°!ć#Œhq"Æ‹3J¬Èq#ÈÔ+YòžÉ”(Sª4¹’¥K˜'뵸0äB‚sòì €B‡-jô(Ò¤Fm†l*ÒiC8$[ΤÊò%Ö«2KƳéó+دoŽ…S– G¨O×nôö-ܯnãÒÕ¹Ö”WµzÙÔ“—ï^¨uÿØ«÷r«ÕĈeZûcÝ…iS äᕇoÝܹž=·GC&¬¦ç˜œW;vø&€ ‚NXÀYŸÃN&íÛ!ŸÖ¿ù#œ#,h°‹n¾½ V0 €+d@·û[jeÊq§·`yÒpü¢ïnòâ#ó”Ÿ^:Ü(±s¾‰²bE¹…µ›} ÄÓA Ý´Pÿ¸Ppí©GßBƒI(Ñ€îaXà}Nq¨¡‡ª6bU‹eU•;L‰ôÕNu¥Œ1ÊX”ŠŠ7g©¡–cU(uEadQtÅ 0@AÚØMö4—“u]tžw †·ÞqK~4Xÿaˆi楉œ5v¡–o)i¥e$¦£b%®¶ch jùžil¦ÆæŽœG s T¡ARb˜Ó™s—%škÇènðQ&ß ,HÐPye¢ )™§VR*qìU©hD9ÅGê¡ã±JÚ@QXvÚ™•]O‘JzQ§ª:äë{Exj£tYH,ª#½^§6â˜'«áY<5ò]ªp½8#·ÝÒˆì²;áx§ˆ›H¢a&ý%»à›,EíF ¥¼‘ /r¦†Ë—§áiç›'ù⛦´è&¼Xœ›ŒV— ‹HÕ—÷XOk 91À‘ðD”Ù‚÷pHÃîûžÿq_«²‡È](g£Í.+³–÷žœ/¤7DZ*Éré¼Ö@ ˆÂl ûk\âþì”É÷tìÒÑÌêÔå=›n›X—pU5±ìh®ñ´­·eÏø'Úi«½6Ûm»ý6ÜqË=7ÝuÛ}7Þyë½7ß}ûý7à >8á…~8â‰+¾8ã;þ8ä‘K>9å•[~9æ™k¾9çkn6è¡Ã˜ö¢›~:ê©«¾ºèj³Î­ë¯Ÿ¶ì3 vµÇhAÚèžTì¿ ºÚ¹¼ÙÁ#¿<ó¨«ÝDó4¦@ôC)ýiÑ|×7ïýòjWP=Qj[Ð<ï´“ÿÚH0þò·£½DÿõFÀ¼Ú¬Ï¾úÃËÿ§ñ¢Wûí/|n+ ˆÀÿ­í|Çc ù–—>¶ `yö; Ûv¼·]@|›7À¶U0„&Ô]@È< ¼~ÈË^Û¨·¼$¨Pxo+ k8¼ ²M€:ÔÝÛÆ—A þ‚is òðÃß½­„È#ÂÛÜ7ĵ•NvJÄ þ܆Ć‹^ü"”ޱ€eÜߣ—F0n]t#U·ÆõÍQ¬#þîHÆâ± ì#õhFAбz€Ìc™ÈE2ò(‡Þ#ý8ÈBÒ±‘´äë"‰IKj’{ü# JQÚ”†$å)MIÉï}r“™ÿt%,ÝØÉÚÍ2Œ«%ùjK¥èr—Kñ%0{);a®Ž˜¬3¦é)ÇV2³”Í|ã3yK\¾/šÀLÞ5³9ÍTn“›Ô”¦6˦Ì]Ž3œ¹D¥7'yNU~Sél§"»ÉJvÂÓ“ò´¤"ò©Ï}ò³Ÿü€?*д =(BªÐ…2´¡¨C#ºOˆJ´¢Š ¨EŠÑŒ2t£=¨G?*Ò‘ú3¤$=éGMŠÒ•²´¥úT©KÿS‚Ât¦ù¬)Kq:S¶”§1õ)IšS›N”¨jP*P¤ž”©uªH¡ZÒý94ÌY[±¥rµ«^5¨ Ø„D(Uª)ýêÿMÑzQ¯šU­guëWÛ ×¹FT®µ«DñúT¶ÂU¯ý*Ø&­ºTlcƒVgšˆ°ÍDõk]Ñ Ù¿ªu²U*Y#pXÂj”ªe,(@×Ñ’Ö¥À`ùZÙÕJVµ¥5ªe_»TÙÒ¶©}e-nËzÛÖª5¬`gcšˆBüÉdõªa Õãît·®å-tmÛƒ²¡¸-§Ù\º¤"þˆDp ‹T ôýèxšÞÚ²—£7ø˜kP¨Z"oGsÛÕé^Ö¡ ÀäëUߢ¡¡ümïZ¬`Êê7¡‰Ÿ²Y‡ŽÝ«C5k#ôÀnðsaÿëÜÇŽ˜«©[O,Óè>Õ³û|…?±Õpàc‘ØG3òÉŽy(b»«àg*ü ED¢Íðnw¿[ä+bÇùôÇ*¶z +bÈØg"V!d"ã£ÈèG$‘ |ˆ#ŸVVÄ1À,f|°cŸÍPó‡|fï"C«îh³ó¹ä|‚C ®mu×¶€/TlÄã âæ*49`[ðÓ@«¦éŸm›éMÏ·Ä­¯ÚØ…2uš]bœPЪí—>ª§ukF/º§³–î­I,bçÕÅœþ5°÷Kê„â×®*†5¯qWºBõزuv°mb 'ZÕÕ6°µClâÿ¹B»¨Ó–u­ilp+[Ñ×5'ºÓ ÇZsœØ Ý»Aïn!sÞ­ƒ·ºa—oFÚ›É$Àp[sžô4ø=mˆN„»³ž Oø¾#.q~‹ó߇x<ÁIðƒë{âÀó¸,Nïãûâ÷–·È«™r{üá-ϸÃów‚¼æ6?!»-NòJbü’'_9/oN#¡s±ß×yÉŽt”3ýå3çù:NK ³¼ç’TyÃ]¹†­s½ë^ÿ:ØÃ.ö±“½ìf?;ÚÓ®öµ³½ín»×°v¹¿îp_ƒÝï^w½ß=ï|O»ßÙø¿·}ðg7<á¯x®#~ñŽ<äÇÞøÈÿ}òf·|Ù1OvÍg¾ïnç<åAÿxÑGžô„7½ãQïyÊžõ›wýåaÿzÙo]õ§?ýþh¯ûÝó¾÷»'½íñÞöÿºÍ ¼>ß‘¿w¸+ÿö…÷=ôãýéS¿öÕG>öW¯ýÏsŸúÍg~õ…ßûïo_öä?ôÏ¿üè«?öìÇýú¾Þ bëlð‡$F¡Nt‚®ð¬?t‚×a÷‰áº!®ÊaÒaÞa¢!N¡ê¡ùñáZáþá ö]î}8ðÃ6ÀÃ<ôÃÖmƒ>lÃ:øÃ'¬2ôC;Œ $J"%vàƒ<`>¸Ã¼Y&®3ôƒ$ö'T (Â1¨â:ôƒ+Ä¡-‚!ð•á-JŸÚá@Ú€€Þa¡ä­a.á.:ß1ò@Ú0À12 â¡1BcJc b Zã>#!bãïic1nã5bü5#9–£æ!5î"ç™ÁU±MØ!8Nÿ#7’¡9#rLÛœ¡:zcêb4Â#:öãÊ#F²ÞäBV¤@’£B–žGÒãF"äI~d@¦!KB$G–äúa7ʤCÆcMŠ#Ñå¤NžÍÑ%9ùäÒÉ\OrOêäB,eÇ)]Ó¥S¥·(eQf]ÌUU^ÝUbÕYåÓ åN~%XTŽ¥+ S9I%RÔ› ™åN¢¥Ë%%ÕÎÎmSÒåÈ¥WFÍé¥Vf%Rúe_ve`†%aæSÊe]–åaÚå`FåZ.¦Ç¹¥ÏÁ%^.%dNeP’%fÿ¦`j\cî%WBhrfgNÝVº¤¦j®&k¶¦k¾&lƦlÎ&mÖ¦mÞ&næ¦nî&oö&k@ngo §o§q¦&qçqRAr.§m6§nB§sF'oJçt^'v2gvn'lZ'wf§w~§k†gm’'mšçl¢çy§zާx>ç{¦g|–ç|ºg}Æf{Ng~~ç~bgnçúç}"ç€ÚçqJfQÄç#¸æ;xn~? kFènƒƒ(†f¨sª'>ªMP§†êgu.g€({†hk–h‰¢¨ˆ²è‰º¨o®h‹ç‹Ò¨qʨvî&Ž’(†r@ÛЊî舺¨Öÿf‡¦Üçl@ÛÈ@})Ú<€’–@Û¼€†émbéèþ´&#ôC7àƒ>èÃ!¤æ#ðƒ<è>üp?˜kæ…¶©?”›Âijn>”\ƒ?´ƒ=C;´©=èC;ÈC5°âN¨„R'Àƒ£öCšÂCPÀC?¼ƒ?lCjj>ŒŒ†ª¨®f~¾ÚLÁ–Ž*ˆ®j(Žji«â&¬ªêzÒª¬Úê­i¬²ªŽšhŒ¦jˆÎêmÀŸpŒ +}êê}šêŸ ª†âcd¨ œjˆ*ÀŸ@‹"+~fë†vilr›âª¸Ž+¹¦è€j빫b諊ªŠ–ÿ«xè´&©²Âkwë®*ç¯Þh¾&koú(¶îk°†*ºÊfÁ§½&,Âr+ÃÞçÁÊ'‰zëjà¦æ(ô|i¸2C5¤fƒfl?llǪ&4j#ø'PÁ;ˆ‚£Úƒj2‚?Щ„>>¨æ”©Â欭>,©êìk¾«¯²k¿f(Ðú,Þæ´#Ú¸@mÏÖ«ºêëº lÔúknÊÛÄ@Õ:,Á^)¾:-ØæhÃlº6mÄ®Oئ­ÚÆkÙ¦mÑí{¶k×öêÚnm­Ž­Ñò,ÄN-Ýò­ÝZm®Â-à í×.ÞÖ-¼ê­ÁBí|*îÏv«aF®Ð!(‚N¦c¦NåZÿÏ\’fZ¶ebòå&e®#mîå~®fÞ%c¦.êVe^b%ëJî2UægZ.è®íÞ®æ¶n#±%æ¾.bÆåè¥éz&'ïÇefé"ïê&ïðnf펦îÎ.îšÜiÒ®ë‚æôfoXRî5ñ.õïòVoùxîeJo"‰î/)¯e6eóʈ÷ª¯ób/ø^ïój/éÊï_–&ýr’çô¯ÿþ/°0°0'°/07°?0G°O0‘O \0g°o0w°0‡°0 —° Ÿ0 §° ¯° £° ¿° §0Ü4@ Ç0 «Û$À {pÀ œ0÷ÿ0 ñ£€Ò® 1±À˜°7ñ S±g0 À\1C©Ú( ŸpÀMq 'ñ‡ñ;ܨðƒp¿Mpq£1’Ò±#ñÛ,ñ7ÀÛcð¿M²!2 ÿðÛ±!ëpÛð°!+²Û02×°![«Ûò £ïû?€Âo‚>°€ øƒ4\pø\p2˜C ¤ò\°ßó KòŸh²³ð § %²#ÿ ›1?{ð>w°‘¤ @/´DûqÚ@²BKt74F°?‰D±Út@§°ŸÜ1 ¯ðC§Í&Ÿ0”ÎñJ£0§ Ü3 ¤ô?c´MŠ='q!ß3E£Eo´PßóA7ÇB4Úˆô!õÓqNG4"ó´ s²“? 5VgµV µFSqWoõ'@O_4 7@Só3¿ðW#òZo0”1XÛ3+ucu[Ç5¿5V[«Z³pZ± ‹u_£pÌôT³ðx€P 6V36?k@PKô\ã5eS± ÿV›õP_ö=;¶DC6SuûA`p 3 (#×3!øÁ 0§öj±èC `Bm³@6§@€(ð³&à‚9W6r'÷IÛó]+÷ ÇñŸŒµsqI@dotsËðOcvgõD£ wK4RÃõB;2O7C6vguv7q{÷pLëôBƒôŸÐ5zß7~ç·~ï7Óðþ°A/û x𠜼@ 8‹ÁsÇ@€Cx  ”vg8X¿÷Kkø Ww¨y8 çtÚH÷Bsø #µÚœ5“8Ú7«xÚ°x#·MxG²Û(ö~£øóø ûxÿ9`Ó´Û$4Û±u‹¸’/9“7¹“Wò?¹”O9 y]Sy[y†kùaŸ8Fs¹³·]‹¸ƒ¹µ™ôzs5–·¹›¿9œO7úÚ/‹eôFÜœóÑcÖïþÞ¹þö9ÅÁïŸ:¡zhÖ9¢'º¢/:£ï÷ /ù¯ó¹ùæ/¥/’ZН-ùî[Bo£:¨‡º¨ºìS¤çdžÝ¥[/þZz«ÇQ¦s®¡³ºŸw:©ß:®çºèh¯÷º¯ÿ:°»°;±»±;²'»²/;³7»³?;´ÿ:D{³O;µ_;¶C»µg;·wû±o»·;;¸‡;±;¹»¹Ÿ{±§ÿ»º—{»';»¿{¸Ç;¼Ë»±Ó»½÷:¾Ëû¾ó{¾»û¿¼À<Á¼Á<Â'¼Âó:ú» ø ø:/œ¯óB6h@6ø?ðƒ?ø/¨{ øÃ ,<É—¼½÷{·£¼É{»Ê¯|Ê—|Ë¿|ÁÇü¹Ó|Í+¼Í/¼ÿ‰XW{Âçü¼#<ÐsûÐg{Ñ»<Ò'½Ò/=Ó7}Ó7¼°_‚>ôÃHüÅg/d±W‚>D< ܃ |€>T¯C9p½×ƒ=ÚkÀׇ½?”@ ð%hdÃ4ðº?ä¯ B:8½ß“üÑ3{àÿ½°>á»ác{â/ûâ3>Î/|ã‹ûáÿº$ÿ@´G¾àC¾Ðÿ<çO¾ç>臾è>Ô¾éŸ~Ð<æþê³>ÌϼÁ·¾²Ëþì?>êk;ÂûIÂ+òæ÷þÁÓþí¿ð?ñ?ýþ;/|<¯>ðú-èC:X¼ò§%hýóG?Öÿ:?è€dÀ-ܽ¯_B9ôú ˆ¼øk½”ø0ðÂ;pÛ‹|%ðC6Ôý¼ðÂ-?ÿK»À?@h8`Aƒ&ThÀB‡!F”8QCCŠ#ZĸQ FŽ=~üR$G’%/žD¹’¥C•-:0“¦˜МàfÆž_þ<ThQ£G‘&Uº”iS§O!ø7•ÿjU«W±fÕújW¯_ÁR$zslØ¢eÍ E›t-̶nÁ¾U7mW¹%$ЫÀ^½: €@a pÐô.\¯ëF–<™reË—ÅnÕ¼™³NÏŸA‡=štiÓ§Q§V½šukׯaÇ–=›vmÛ·qçÖ½›woß¿>œxqãÇ‘'W¾œysçÏ¡G—þ™suë×±g×¾{wïßÁ‡_UêøÎæÑ§ÏZ^}{õìÝ_‡ÿê|úVíßÇš_ýþšùûO@ܯÀõ$/Aœ*À!ŒP )¬Ð 1ÌPà 9LðÁ÷:¼ïÃÃQ@AôPBE\‘Ä!dÿ‘>SlÆ_ÌQÇyìÑÇ RȼqHüŽôÎH÷–¯I']Œ2Æ$•ŒðIó®„rÊ-©ìÒË/Á SÌ1É$1ËìÎ 2M5+\ÍÝì.N9¥,s«9µÃs;=å³ÒO; TÐA -ÔP“ nFÏ0´‰Ï.´õ¬¿!íïÏ(pSKDâ³!ü¬‚B3=ѳS œT@< À"RíïQPÍU×]yíÕ×_§: ˆ"s…5×G› P#JµÑJR#@Ö?sµ Ò+à;p6Æ% D€`É-×ÜsÑM÷;àh78ÞÞyå­wÞvñÍWß}Ûåÿƒ]wé Ø^|åå×`~ý¥ð߃óµ·`†!†ÃŠ…#Æ×”XãŒ9¾àŽAÖ˜Ýþ8àŠù¥å•YVùàŽY6¸—c®Ù`š#θfyq†f–õÀxã¡I&:à™M.š`£‹™é¡mN9ê©ož:d–ýµúéŸá@€zÀ[ì±É.Ûì³ÅÖVݵÙnÛí·Û[¸è¹=Ž8ë¤·ÖØæ„'ìeYž¸æ‹† + ŽoºÏÛ鯕FÙoªcžÜ`ÀmFšòÍá°|eÌ!öüo¨ zñ¼!?ZèÔY¿÷qÔI¯YtΞ}t®õ½›öØáxã }½F[øá‰¯çžzÔ†ÿ[ùå™o^y¹ao}_Ý[¿ša¾Wܽa½ jÛ}æbÍÕ—=~}Ao—ý¡6ýüýíÕ||é_÷?÷ì~VhÀ€ÚÝÏf!ÓÝüòõ†}=¡]Á3ØŽwA fƒôà?ØA±/yÎ3á Q˜BI-M€£ÿȇ/ìY ‚üÒYÁ!  I~·´|A!/ƒaÓŽ˜DóÕpe dYýàÇĈ9‘rö¢"ÕÞýµ|þKbêÌÇEºå‹ïzƒPP+¬q6»bçõÀù]Áu´ã+øµâí‘a+¡ HARGÐcÞÿ^xÈ«Í0FQ«óµ‚ ÆÌ{,Óa»p(†O‚½Ûž"À/Ân‰Rœ¢)mx¯(¢²j5»‚:Ð'Ìr–€‚YYºÕ’n^åÕDùË¡Q1 ¨¾œ€NV.—×{ãÊ àcî+xìã5ÍFBBn“›Ýô&• ÉKD†S˜c¤¢ö Ю’+»$ª|)À íªdɰÏ|.ót\ £8WÊfîë™›[e¾žÜR_ |úPˆ®ojgL#Û(¿æk‹_ŒB=ó_´|Á$iǨ¸Xá ˆÑ–ma¼‚/zÓIÆ,xöáOEÿÔ~müæQ‘šT¥Z‡œ'Z"ª³sÂÉ‘.‚à ‚ðseíDÙ%³x9±pø²Â RànR˜&-çÉ º¹¸Rmf8„B2?ð`•sTŒg®šÕ­â’¦íê(úRbõ P[EºË·Ì­Q åÔPÐÊ €$3 ›/9²Ìh€|¸~YÁ pmk]{Ú¤ÛkÞ­ŠÙŽ®/ìeÓusà¼4°Î둚Þ)Ä 7ŒK“ã8:+Û1£2†W9ËZŠ‚«¸]*ÍÅ pTAþm™mý :ÌY†xƒ-žÒï0€|ö^ hÀ£ ˆõ<`ö}B§ÀÕ,ŽXÁɘүFæ¼>Ö°vzÍ¢ïlhK;Ä+s>ô¥u|I4ŸWÐ>½Fr  z_-U±cЇ”iÚ°©ìîá~¨FÈläÎîð!ÐLü®`Þ  ,ð«À¼Žá ðNævÆIa(ÿÿLmÿøM_b ‡2ê]&ÏÙ.Ц ^Nvê]ø,Ó¢Ú|® VÀëð%ô¸'Ö)_ÀÀèæ~® ˜ÐÝš OÏfd ` e÷zg÷z/Ð fôŒhê>ç^f̸âí¿øeÜÀÜ ŒÍ¢†úä¥ ùê õŠ_ŽjÀoÝ+’Ï–bLâÀè ±IOâj&»: ¬ " ÈÎdhaˆ®ÀãÀûª Ûeèð&út"ªà×pÇ„jl„dAîŒàÔál°Í"°mñï4æ£hÇuFÛ%ÞÆ¨ðŠ$ #ü"2»‡fÿ¬vOšôå;ÑÒÈ,Óôå :¢£†5-º2)4¤fŒð¥ @™oájj¢ à,njH0å>™/ï…ûŽ }ÎwÊ/÷ œ@‚öé ñ¦]Ï/¦Ãö…ž* ¤-XŠý2fFëç ~).†í Và Mi¨(Ïž, ˜±vH!ó‚!åÏp¦é < .|¬O³.±“|Î rBùªð³,HË&ƒ–*à.`)™2lfñl¥r*©=tñaR@³> QÆÃç炎ЮŽüÞ…O„j:é£VrµTk ਱êˆm,ÓЪ° Éÿf2`/ù2! N¬ÞE3&' 'ûqÖ6g-Y²fxOÑ <`–l/bàGK,‹T­]fÌ#ñE/ùr/ƒ°%ÿ’‡Ô* ñå  0?ö~èòö…úôe «05ë°îr°#5¿R 7}³ ó0Q*† ÑS ÑÒæL3fXs&€(jN n`€±±§dö¥ØP`(‰ç)ë¡`EÇÆ&*«²<Íó<;ƒ}Îõ%…í*É«®Ï “,áÀ,ÿÃÊTì׃ Iq¿hf‡ò¥º8«¬Êì`œ‹ +Æ"ÈV£;%­Js“Sc2‹9Lº`ë´nÑeÿ® ˆÀÑ»b¦® t3÷åa2´˜Úųô BC“9÷³úó×`¬ýø D ”“`° ¦÷À5õOóäJðº mÕTÓÕBmh2Tt.4‹¬ õÂþÏ>S4=“/¯øXfH ÔH‘´b† e ò8ñÅ-mŒ;’(?¨Š`žR›Ð³OýôOÏÒ>5s.±]ž/&£'+iì2C°oÒi"+’++æžÎ1±RàwÈËbviþdB‚4_Í´LÒ©IÏJË 5qÎ"GN§Óq¦ÆäH­I—se¢nM±paØÓE;ë& ¦·r“àÉ.«“¨è Õ:‹/_ÿ Šþ,a¤ó¥PFI­Ð1!S2ÒU;F7tþ a'K=F"=ÃýP‚L²¢fÔ—5f¤H)§Mñ_d“÷žôö²àwªÉNѦ Ò.†l «m=ˆ<uaá3µ’Ä$Õnt‘_àåÔ3¸Dð‰ðåúÞMè°«æ H¶dMVò6•Â`’ €. íñ"¯d*L5Ùí÷žàw F\ÃJ/õeZ0¤î§¥¢,™' GW†æP`À0¶b꫸$6!« ¾æ pJë´R+‹Ø'¬ôŽÅ\lGCTÔ ± ððpU‹ÒaI– ÙlW9 FssJu¦Yÿ±à î6oá´ÎÌ1ì\¬!2Vk§Y‡"•õ+Ž~îlÆ_Þà³Ö ÀV_dUÿœos'§Í§Ðæ)Á† .@d±¨ötQ7u«>÷åb7Ç+ μùˆ.†ð³?hr¢& ì"fºê•¯²(.ƒ hîS—tVOŸÀŽä$NÅ•`*ï^$ LJ|"&êB´bªôM§ËiÆ7`ðʱÀzïK?ã4®ó81wì¯Í \Åðr|1¸550>ó2½Œì6“ì^,ªeð0¹q¯@|(TÀæÆ(z',ìÈ*])Ü6¤þ1fÿü€?“6M g|·]¬ Tà1#Ó d +#¶û0ÛÊNlÔ6 àîê·T7ˆ…XuYWÆH8ÚM+Ö降¯PÉ?$1ÌôÅ    ¸«\ÌRoõ< õš­GÑLÍÔìT£î‘F’+ °‘göGöVkF u÷|¯Væ]Œmg©À꼪°˜ }ïÕù‰ŽØ,`÷>ô}§øz÷%W°ööeb ž 8¹“˜tto&Ö(8ÑçäÒx]v_x‡tF{Ù‘U™Fh°h–ü$yeÄÏ3¬·€ôW“;Ù“X£–_¢Ž‚¨]\xÿÈÎ_û(šàÚpˆ¥yšÿ”uiÏwvO $X–Cêvõã~ì6oëï˜Æ„1àÀLm¬m‘ðçÆx_Ü6^—Ð: ÂØ`ÎùÖеʑ”†Õ6‹U8‡‰j¬à nvþÚ{­€XñòDG6ÉYcúxÀy`rY'jÔ] ±þô‰q#ñr&&ž Iw.A4b”ô]ðJ—ô ºÙ; LU™n5¦ÖnMµÞ…øHIgÙ-i"¢à?Õj´Ê•oéx¿dBA'³+ öÔïÖ&Vi™ö­ø˜\ ¦‡NKlÔ!‚á,jád¡’€¶¢˜šá:®›‡uÿ¯€$F1ûe‰ñ% < '2  9³cÄYDÆp ‘í|ÑyPÛ ä…-JX_¦VÏ([ϲËVókà æà@Ô‚‹ó³8 m†ÌP Ÿ©0‰+æ~¬ »ºËpyßgat/~±r£ijŽïçkk [&lú~Ã.-Q iß ¦IŸm’¥ÓÖ ¶C9¦úoZPà÷²kžºoó( €©›:j ÀS Ó*x´Mk ñ8 ¥zá)¿º7Ê(õWS•±¤ ¬„d¡‡ÅHׇÓF® ¼Àða7^¢@}ß[Pc.ƒËg°g¤°1)@¼z$2£²k­ÿº8!“š·!¦÷ –ˆÝ&S#çΤ¾‘hsº•×v'ˆ` ¶–vÀf‹së\Àk¸ÝÝ]ÞÁ>ì· ÁÓë=3¶êK»O{EŸFÂã÷‡çÿ'5ܦðš–0¼Ä‹Ëë¼x‡‹€Œ×Îà^{f†ªÛåÙ¬ý 9w¬Âöö¬~­°`í÷%â…ˆè?ùÊ#êY»àÏÖçA èaŠÈU'Ìu°¦e0¿p4Qq'{¼{AÊäf뇻>ÛØ}÷ÁàÅþ÷H\ð F›%Ôçþ}c“6Õ‹µ!¦¾×mòÞe÷Oé!_Ô¶éÈÝôX¾™FÑ‘WÎãdôó²?f†=Úš¿ûOxŽWÆÉ9ŸŠëÓFôIŠôe˜: 'àËœ8 a„NHa…^¸`bßm¨X{~ˆ—^Š·žsˆ÷^c#ÁñÄ| 7‘Oÿ tÐBMôSòrœZËwŠï¥ ÃÆ/zþ’7XVd…„ÝXå’Kä1Ò ?í0Ù¶­¼žth7¹özMÚÆpS+6h“×eÛ@*0|e 4Ø|wÚ¬ó€8ã<®¹E/ÎxãŽ?yä_=wB|W^i…z¯µjžÿ®h£n¼Ý¸ªq‰]låÔší׿êEÌ:D®«7{mo×­šÜ¸Ÿ©:i³cY»s—ûÍßâ™øÍÖóäÎ?}ôÒO¯¨·ˆý·„o<ŸÜ{ß}Îßß=ù…Ãd~úå¯~ûêï®ûì¿OÿüöËýù߯ÿ÷èÿ¿ö`hÀì)pâ; u†À>P‚ ¤ 'ˆAfPìàù¨ÂŠp„$,¡£ˆÂª°Oß[¡Éå-Ê0…„›¡ oˆÃÚ(:ì¡Ä qˆD,¢x¼ëýP‰@ÄYóLÅ(JqŠTôY 1ø‹&ÌB8É¢,Èq“ÿZÔ£K°…Ll¡2šQ&ÂhBÆ!“_,a‹cD‚QZp±^$‡LÄHF1ÖD޵@Ç=Ô?ò± _”‰:f1Ç=Ö£o\ ‘DD*2ŒTä—Ð tô‚&¿@€„‘Ç<þâ“MÀcL¹AÖã‘‘” [ÇZöÂŽxÔcLúøÇOÊ“9äÉ™HÌd"ñ‚ ,¢k±JJÂ1&´Üâ=DùÈ& 2Ž|¥0 IkÆDšƒ¬À)Õ¡GMîò”“tã4S MeÊsžô¼áõžXÅ|êsŸüìg†â‡½œˆr›Ôü…0¸ˆL?©ãÁP‡@{AÐ…¾ó&è`höª“Šÿt&ÁèÅ;gù‹U6Ëc^=ÈLdj”‹ê9z¡Ž& O%ÐB]ù Oꤣµ(ýˆÑ‚N´u¥òNŠÔ””‡zRjRQ Õ§"UˆLdæ€*R™ðô—˜ä/Ð1öi«Ž ©C—w½šÞT’#uª[£úV’¢®á“j ÅÕ øs¯|í«_ÿÊ—bÔp#ÍY‡x×£6Õ¤õDab(Wö~%láëB=]³œí, Ù—YÐÖ±ñkah=‹Zš–ˆ ÍkÍ^«8ÀÊv¶´­- 7ËAK.u®—Ubk];Õìµp³©ÕmòH ÛVv²Åýì1› ÝÓZµÿ¿Uau{Ùèjw»+¼žwi‚OÛŠw¼ä-¯yÏ‹Þôªw½ìm¯{ß ßøÊw¾ô­¯}ï‹ßüêw¿üí¯ÿ à xÀ.°Œ`ª$Íjp³ áKx®°…/Œá kxz†ða"  8@„"¢@( J‚,u¡ØÄ(1ˆ7Œãÿ‹ñQx,bªCCÖ±‘Œä$+yÉL^JÆòäÇ-B-n²•¯Œå,kyË\î²—¿ æ0‹yÌd.³™ÏŒæ4«yÍln³›ß ç8ËyÎt®³ïŒç<ëyÏ|ÿ è@ zЄ.´¡èD+zÑŒnÿ´£ éHKzÒ”®´¥/éLkzӜ? êP‹zÔ¤.µ©OêT«zÕ¬nµ«_ ëXËzÖ´®µ­oë\ëz׼ËÛa‹ HP±P,5„ÄÌq‰Oü üzÚÔž¯Œílk{ÛÜî¶·¿ îp‹{Üä.·¹Ïît«{Ýìn·»ß ïxË{Þô®·½ïï|ë{ßüî·¿ÿ ð€ |àõ®¶ÁŽð„+|á o¸ÃñˆK|âÏ0q¹{Ëc|ãÿ¡Æ;rð†|ä$/¹ÉOŽò”«|å,o¹Ëéù?»ÒUæÍd^¾h®¾RZ€D€`„ ˆq(BÏÿG‰óûÅ<®LŸyÓ“õ§›Ï¤RŸÎyîó˜$AF‚ð¨XÀ¸@=–p ò&ˆ z-dÁõ£Ç¤(€t"À°ÀxW‘W=êN/<á?øÄ^ñˆ_¼ãyÆKþñ“<å/oùÌW~ó˜güÇ_¾¼ð*èó8üÅßQKúdbsÚôf<ÙÈ\2'Òd{8Á9ÇžÒ¿ìfLШÆ`œîäÉîï±Îƒ¢±÷±¯ðËÈ]bò&¦/éuKŠ×ÆÞôÜï¾÷¿?OŒÃÐ'þyrË`ð„ü¶ø…h_|xf•¨0e=AÓŸ“g®²š3©½ëçÿ~(€H€ ”z*ô æÔKê H7Fã htã°J¢„µÐJ×·@¢·¸C–Õ HˆChDÔ×UÂðU8ST4Tõ ’DV7ÑQå‚VÅVØSQ1È/˜FET:8r9a‚TÅ\ÉsWE"˜\öôZGX€SH…UèrRYuH ÅE9äà…3UÀå~^Å{|ÔP?µS•ƒ>h…o‡qzK7sØGÁƒq”‚_ÕV$xtHRDg€¯$p Hâ÷J(Ód Ø ‰x°M„hˆ1A š”G–Ȉ‘øˆ€W‚Èy°Åÿ„P@ØÕ>–u hŠš—„3Šg‹ã•X€‰1± ˆEÐUE€Ipˆcd‰¿¨…Xˆ3U8 ¼å‡ËeX·H‹Û˜ŠÝˆ‹ÜøÞŽãx…uT£uŽvèŠÚŽíHŽî(ŽñóøŽõhZRÈ@‹Õ[O(C0ts‚•]Jh´Zû>ø¸LMTWÆPƒ%‹êxD­…'¸[Ô¯xZÙ·\)‡é‘™IÈ…Ž‰‘’)©’+I‘€‚„ù¨Z§˜/±39Cñ<³B“‘“´Ñ“´á/;é¾"”Áb“&Ù'Ö𓱱”† Öóõ`Méÿ0óH•†q•~á!E)w•5É•ñ•1–”aI”ae);a¹+nÉlù[É•°Ã•r)–ay”0Y.ð€— €ˆÓòl3‹M‡“fÒ;`Ó*§3/hÂÁ;Pb:’YAÉ1– D¹;¥qöu¢å'J©˜™a³˜pð”"IU}aš­ 9}€RšnñÐPÐ7¨ùš1»0Zã0³ËA¿! 8¹¸½Ú*UÛÁ­ ¡Ð›ÃÀ¹ÃR$Ó àÇ1-¨é) ÉiÂK:¥”©#Zæ(à, °,œÝùá9ž`žq©Ú§ÚÉW€­qÿ¦ŒÊ§Œ³Ñi#±Ä7’£¿€µìh\+¤úP0`oÀ¿O Á^<¢/™W~Ɉ¡Nà¸ú&‘8+£p̵ñÁò)j €·ÒÙ·¸¨ÂhнÄû–sÊÑ Ó\Íú*3ü%jû4w, 00Ê “ǦY± ‘%¹'Bl¡(ÀÍ)sŠÎ2ú¼ÜÆÒa¢ÉÅàQN`¾cÛ¢ÊEsULÞÛ` -I èk,±|Å(â£@Z¹!ÆÄÂ]2L+¢Lš,Ë2»tÓ*Ì­^ù˜ŸÓ±Ý.Tû·ŸûÉÈûRÙÝuÌ(0·Ò-,òªÀõt/:ø„aøˆÿïòÐ[/6Òúœ¯˜A+£D«˜Á{«¦ Pô> ã!Œÿá’ñµt ÿð¦àÄX A8pT`8`”„%Ây¢@"–W",G G;¾‰RRA'PV$@‘0äK‘¦º犓(ìtòpbÄ7X°\©råÍÏzfŠÜÈΕ¥"±TIxÅC‡'_ÆùX³#TN¼Ñ0@"GŠ¢%*Ì®0å&\ØÐ§V¯!ãþlŠ–£BƒÆÂ7â‰ÏŒjØñO,)øVÅÉbÅ ù4> §sß‚):À‰¢(ŽSd m:@ê:KaMøôܹóî~lEöîºq'>@=ä÷’/¯§¼9rèãfÉ’5+ ‚ÿ$Ρoç¾ý<WŒ߀¼é‰$Oô@àñc<þͧ_ßþ}üùõߟ<¢“>{#ª&‚"H`Á3°-¸ãº“pB +ì.¬8oCô:â !ÿÞKh¯áü¢h¬p@#šJQDÇTРµ„Pƒq¢ÆøzbÆŸ  ƒ¢JKà=™nóªÇ‹ƒC)#‚b€Ô°â (ë, '>ƒ)6 ëù¥ è´ëN2Ë4³Bk~.¢+~ Ò!‘”ˆDâÆÓRKr8h޳»/ŸôO3 UÇB{ÞRò)œtÚi Ú“8ìéòRL)TSNǰxb(l;’ÎÜ€ê@ƒÿ(¬¸BÕ&yÛÌH8VÀƒ)ß°¢œÀ+!ÊPàדZ½cÓRß‹b½I!\ô=¿¬XaV@a€–Þ£“׎r‹E,(lÒÔzb4,„•T%)뀀Úí¬E‹L6" P¨Â |­øð©ˆ (^´˜LÒ@d‘Ä" -óâªNg¡•–Z¾Þxâ‰W`q7tgƒ# Œó 8[-ªxäôFYtHÒÆTÈàe˜Ãb…Â>µÇWw…Ц„œh ¢Vˆ(ÒŸ¢p/! Ы26X‘zJQGV­‚Px7¢ ˆº£Œ§öZ/LÅ4ôLæœ3[Bðú3†º¹¶‹O†#¾ÿýê¶ûnûúÛm…©üw"Ä0Ëñ§35S ÿ#€ª×º½˜êÚÂòm^_‹âç…:ë:¸*ˆH]ŸXÉÁ{|‚¸\_NKOI'J ¿þù1y¿†që%‰…£óˆVkÊéƒK* Š’Pè#./Eg °L1ÉY¢ž^Šøe{î¹—0M‘T¡ïþFrszbÖ)òvÞÙú¬ÇÒ?¹{>úéÝîûÿ%Ìí$jtkzê2d R–:rš@îà ô‰`DdPƒWÑ›²¶9‰TIwpÈoÈb¯|µÏ/€ù a£@8 +|/™JB°p•¬üåÿq¤;RB¬Ð$€*Qô%±¸¥¬³‚Šø-Ç Ï?ǘðJ“לKw±¢kô¤»ÜÉ¥s%QKæ…,&_œTïZ¥>Ô©NíKR±ÈÆ—t"‰FâfÃÀ\a(BÙ¡G˜(Äqu œ‹ëþBQ9‰5=²LTà\,* [A é8¼D¦. s| BÞðǾÁ4Œv’›zŒÂAE ±…`+ì€aÓ+¾+2e2ñ2‘Â(AÞÚ—â1ž(@ž’ ƹÀªŸ€ :Š=˜¢v”©Ê[1߀}J6{ ß8B†ù£u¡ãã‡óˆ“8ßá$O"ŽæAÅ{0(„2µ…’Æçè @°‹´H"¸¿î ¿t©ŒäK Û[?Dê94„ùy(1aÈzpH†êŽ^¨Šÿ¼HŒÔÈV¤µ"´!¨×‚7ô¦Ãé¼èÛ«zà©Ë“œ~!cBˆÖËÆÑÞñ@§ð°Eèqâ¹y‰!¢t ’à³ÒÁÑk .›-(Œ"}è¸6'x–›s(PØ òŠM{{{0 ’ÔG z¿¸ /ä H¡° ª Ü˾I3#É‘ÓÁz‰,|QÉ3¦c¢¹ó´Î€ÁˆX "v4-x©,.+€¬xð€Ÿ(¡xŠò¢Ç¨ r€šÄ#‰M$11 \ Â:­Ã:¬s;x¡‚À”ÀÜ(œQƒ(åxɘ”ÉŒ$6pê WZÿ07©½]yC2R‚FaFs” ¾ÁJY6¾pÎÃù†‚€j<4ûÄ»Ì}iº%Ü'„ C¦g» ,X³’”=™ÉÉ|3 *Y¸Ôœ;‹º+œÀì)ÏœÕ+I)ôÓ%"œ”^r¥å© è3 lEmêYè…úœŽ[©Å—Õ½»•£O²&ùéɩʦ4AB[@û¼ÿ‹Á©Ô€ ´4£JáÉsF !‡Gëåh@y£Åz[XÑ8ÕkËÓÃÀt;M/£9‚€J´x°R1Ç 2˜Åñ2’I¸‰¤tÓ£0|ät"‹3ÿù4r€ÿúN@m‘A¶ ¬'š»Ð>RÐǘÌÊÊ”ˆsšˆFÕ¬{ú5ãÎÝíu”EY‡pf‰7 !.ˆÚ¸ pCˆ…àÄ \‹ó»´KÓVf3·NȬzš ýªç «Ô˜‰Å\¾ôK¸Ý‰ØU¾¸/79;ýõ ¦d¦‹b²õ¸æˆ_´(»73¯è ,h%|¬ßcö¡˜KZIã·!Œ;4E¶Mè†b)æ`í 1ET±néÑÞœ1e¤A幑à 6O r^¯D ð4#f ±pm[ Iè˜ÿÉß œÀy"{ûÎP² ÑÌLàœE†˜Ó9effã>jX ÙNÏ û‹™Ö‚+ìáœ[êúh‚`]ij[ŠãGq쀸 ‰$Ö«ì©c ÁR ®*fRÓûB7<dJàùEC/VÑ^€ þµ;³>k4>™Ìܵ»>k…¶ÁŠGª άÛ:¾]d‚˜o.¢’\¿¨%Ua•$ €øJHS¦HÜt{(З™áWí!ñ0_>ëý²³-³ Ât”¶e‹“ˆŸC¬GÝ—¾Í2#äÒfÓi ¹? ‡‹8˜¸ya]—â(´ 2l==Æâž©2žÿàN"N©éç Q”$o>Efߨ,ŽÐâ-> Ž˜ | Õ¥k£O®œˆ8nö¨é¥ˆòUÖ;n¹òf~>S8\˪Xeܦ6óÅ,þ­RpÍk¾Spè ±Ÿð¬zƒ € ™‹ %b"'J0yíèy:ÏÅ%¤Äk^M{´?9ؽ3i"s$‚ØáîÖ¾ØL¤FašÃ­Ë@´…i/%"0U?§ a#F"<¶¡ÒZÙe1²#×ckÊT%¨ßÍR (YX,·kK뉻hV¿­Q‘¸h»,É“l·´"Èr-¯Ú½Æ¬iekéI¯s”ÞÒ7º`EE %d‹)Ëíÿ2p^u¨Äàfá–ß Ïþ?œô/Ò6ŽÝ¸4«tK¿„Àh8H ¡Ü(+Û4UŸ{)N°âÓ2ÞÑôRä/Ú},˵@ Ýër˜LÍÝ7Þœîâx_¾Œk‰å ƒ!Ü­Œ[ƒ2ÇíˆYÞܼÕA®ŠFA©ÃL^©Ã¨$ˆå QÖ~M™ºmqK?,(Ÿn–gr–Ä!V>²¡Œ@Ãí^Ú]Yt¼êDê,pUbè…5ÏòºëwX ÊPÀ'öE’ÀŒ‚gùÔˆøp§ó< 62š-–’Nó <Ø Ý ÁC¶¯®–þ˜r†ƽŒ!ð|½ }ÿ!"P“tN ᵓÌQ–Z‘˜[ÉÀùŸh7$ÏmŸ;J%qržŸŸkŒŸµÆ |NuY†µ’Æ©âr í ôýO§Mò ¯u8ÿѪåxú¨Ÿz€µIݹjjõ ¢NÛ“NñÌÊí(ìX¤üÏ@ïÜ.§9Éî©V{ìft“ïRzóñuôšØõ€‰ ÷¡ÿO.\iüõŒr6©äð"bßÿ¶¦g»|ÇÏü"”ÔùíÎGô÷i#å–³Ý~ŒPÚeÞèÆÁˆ}¾PË©v·&tL2‘ã]$dn¿¾a¯¤š ¶€s¤È`eí<§ÆÜ”™¹6'Bl#!ÿ@ùÞ]ùêÜ« qïf‘˜Cxî« ~y×é±~8PùzkyJ)½¿¦çTh²—úµZñ„î÷ ð Þb!Ã@:6Vx€ø'p Á‚"4œ8 :d(q"Ã()&:Ìq#E‰ê¼²žÈ‘#KšDireH–%㨲" '1;>IБá(ÂÑÀA‡Pxd¨qéÆˆ;•±•)S83ŸbúÓiÖ‰W³r•E…D]ŸšºJ•#C+FT‰ €@\­kÍêQËÖîS·Ož¾QÑài$W–Té’åÉ–ŒCZÓ{÷¡L–/Ððæ,Ö…“©b©‹ÅC‡¿pÞXÿiªZ#4Ã'nü8¶ìà í}ýœK”Íœw°g›1JÅ)a¿f,(œÐ ¯6­z"–'+žøÎêy5wÝÞ7òYîÐÉ`ž+ðÙ÷É“*½O?uxG|wæ;¥ò]»}­ÄìþÅ +TáŸvÜuÄ~8` r´_} ¸Â{ÿMøPZeeXC9ýÄ“zÓåÅ¡FäI4Ày ¥GQH¤€m}µSjôOõô„Lá˜aWø}g/Ƹâ5N”B%0bUF‘eäY ‚eEЀ °bxp@@W´%¾y8Ñ’þE ôE´‚½1ÿ@]ùuøPº¡™Àe$…Oª_ ßAjUrÃÍæXmÇaÚÎBX¬`Ô(¤öT;2¤Ážæi @åENǤªn˶ U1Àfi²yåÖçã†Ø:%ÓNoœkb†%²›î±¿&¯“Gé¯ E&ïdœÈÙ ÓíÄ[v¹ÂÑÚ¯ÅýÛ¯lÅåf/dÙäÝz«/b/öor"-‡•Âò €+{€ÂÊ|›Ã3×w¦±\+Qš¤R- X0„ ŒøÔ|#ÿG8‘€N§9ðô£Þ"l… `}5Öb"]¬Á‡;n¼æ¢k£—L3ÍëN§VÇ2Eït8S´3±ÿßÁ[æŸisí`oPk-®éÖˆ‚N/.µD:òX´YP p(Ê€oµŽVC¨íuZÙ]Y±B NÍͧUxaˆ(‹uQFo°¢M©E¡9…!-SêY1vÛÙN-‘•3;—tps¸Úî ²¿û+r=îÄûYqÉ«±‚¾¬ÆÏž{›ø¼¤ûöZ©õà {·Y‡ów–ó¡Ãa{訖8X ^Gjr‹q†m‘ºó&#·ç*+ùâÿû*2ã¬^ìÞ׊t±ŒE$ëw²Žì}õÀMF>Žç5›ž¯€µ/<¥:+€Âï(¯*ôÍ+àjVç¶.Õ3GÓà‡ç”‘PWIƒC 2•S ìÊÁH“hý +óCš‘ˆHDQH‡ƒÃñ·%ž™*E©ãÁh—¥ÛÉ¥`>’â%¢¿'ð‰ÙC @€¡DA¡šHe,çȽ`!’‘Ìηxü̩[oÈCż™G"-Ú  u™D-jw8ÌÊ‚Ôw¿ r#¯Lãd¢§˜¶… ÓTØÐ46xŽv¶ît×­ï‰/™É|Öüÿ|¶¹¡-–º’Þ-eø>•į[GœN²–Å2úÎ 4TŸìp[Ù#ý¦˜4š±xmŒ§Ué1äX³†3TIÕ˜¿·Ä%wt à,ÂÎá5ì#Õ‹>kè/F1>Š¡.-hC¾¦d) @:@v€QP‰Š¸|Y.`ˆži4"-ýÙ‘%†vuÔZìÈ›°)w +^G—NùQM¥káP÷2Ϙ>$M•ܤDzìM©Lu*iÎq6§œít”L `“GŠÑK4ÕlJv«•éŠÂ˜éFž e"v{Êñ¼fI„wùÜ´ª€ ± -­å`Óÿ=ê9”¡‰¦@´“Q2§”‡B¥HU…LebVnu[±âyØáTÓ¢ V6 (†¨àTŸóÕ¤YX Ó´_K'ÃÐBÔ×"è¨EýÌq)½\¦p$ýŒ »:‚Râ–f»çBKM BÔµ4Î=i¸O~Œ>/º\溫,:åI(cJ“;<–î6]0…¼þòx`¦hs§¨d×RpNW¶‚M/<ÍK(Ýòôs­{êö&`˜cƒôïð⻎,i‘YZÓžö†¨!Q5>Ý _ ç× ú r(ÐK_ÓjD¯nüc q»_¿Ø³ÎíÝ—KM‘õm7E^å°¼mÿ]6³B>ÈfÏõ©°ÆŠIie‹T–"16ol| +Ë—)ýM/Ìå¦L0Ÿ×3Ȇ‹Ôƒª“Á‘2¡E[ÑÚ(&ºjþ›pÆìÜà6÷¶ë[øåï˜øÏY¯®à€C#:ÑYJÚ:\¸¿š³¶SXš­›-Ϲ*^–(·ôÆi'OÚÅœYPq$<¿)ÀmÙ_èTj>Å+Ð.ý©Š«‚U¡-ÒÅ µg3}ÎÄÞYŸpf ötíµÓ¹UC^vAŠliF?W—kóJšŒe/YA@öä^¶Ê×îé¸ÃºL?›zÎt˜'\aÏØÌ*U¸ŸÇæw_Šÿ‚‹‰œŸ­«êŠÞ£E}à@¦9ísÞãÙ„èoîÈ:Ý„†eÐT`(¨ \ ’\Miʶ0Rõžµ”}ýt›œ!›ž·§YÞ­‘?o&O€új8s‚—3©Þâ­µêÃ1F¡Ýªµ;ÃÒë‡[éHxC{Â’©—L6³«.g§|À¦6b“cíq»…xB¬  d ëþ²¸Ë·ÿÆ!(´º½ÛÞZOÉO畼}ý˜ïÞî¾æÓï¬G¨ºz³ éãØŽ@v[ì<Í‚N÷‰Û+NÓå¸ñx¬@~.}}ÿ6[Ò[žµš0¸O/éCo{Øæ»ëÁvŸJàÑIUOý)A¶º±žn[F£Ã¯vÛáŽßß Êú¿©>ÜMÿåºK÷µí†÷ÖϘ¾+½÷ßqXsõ©i»ùðJ·Jó9}ìÖ£à¯Ãò‚•ÎËûæ¥eͨ_ àÉížyöe„êù_ÉE l}ÈQã4òb¶ã;Â#³µ¢;Þá<Òcr¡=Æc êã>V]?úc@º @!Aæ AÎb>f"BÞ ÿC¤BR¢CZDÚ E EÒ F^¤1Ö£@&¤G‚$Hjä?FdG."D†dF¦$?®dK"ÄH2LÊãB¢äIÚdIê!Mr$NÖ$>šd!þ¤KN¤P¥,Êäå²%eóå3%I>%SFeK.%R6eO%ObåV®¢N:¥V£WúdVŽåTfVUšeZjÖM–eN²åWªå2Å¥ø å\>$X†%^Þã[æ¥^v¥_~äUÂ%_öå^º¥P*Bb*æb2fc2&8fdJædRfeZæebffjæfrfgV&dzfh.&hŠfi*iš¦g¢fjræj²æeºækÊæl:flÒæÿm¾¦mâænòfo*¦núæc'eçp&fqò&r§rö&s§sÒ&t&§qŽ&uN¦tF§uJ&vÞ&w–¦wÊ&xÖ&vf°¢eˆÀ"hçz²g{V¦œ'$‚z§xæ¦{'~žf{Ú§~Þ§ºg耆¦€¦¦Š&‚~'¨‚ªf{ÞÀy€!ð¦!Hhg"(‚œçÔgƒâ§ƒ¨Ѝe–heZèyê@‚’ggj(J$‚†hÚ(mžåÌèzžèföhfþ(f)qÞ()ué‘Úh’¦~2©‰2(‰:©~Âçe¬èp&‚ÊШu¦èeœÿu>ég†(ˆN©˜Bè–Ò'‹n¡iBt©’Êéœj&…²&´¦hÚé‚–iŸihBœj昩¡Òi”ž©g*¡úhiªiÚçžæ©”ú©{&‚…®ç|"jdjªvvjd†juZê¥.ç¢Jj‹.æ+øÃ3$¦3ìÃ"D‚?¼Bb>>(Â"øƒ8¬©"¬‚?¬Â",>4ì¦Â¬FÂ$Ъ­âª®ZƒzZÃ<$æ< cÆ‚?¤BbºC? k­*B8„C®Rk®âƒ·‚ëb^«z®‚;ë¸þª¹ÂC®îªzFB?xë­&j¾2À¡Ørf"˜çeÈh¯>ª©þéÁj&XÿàçÊ Ìg¡æënŽêÄžj©n&‡^†Œè¿æ€š&hg~©e £’)ƲgÅ6fŪ,©¢)Ê‚ª™¬o¶ì~²f]‚Oc¾·:ªÉZ,fúìÏ ­bjéyâéÉmå°¢ -‘ÎìË"¬e&Bœg¬o-+m“íví×®¬ÌbfÀ²"4­¨nf!H(DlÁf&Œ²¢‡ú+ÌÆ¬ØBíÓ6§ÝÖ-ª*ê‡âmkª*Ø îàæ­Äv,Ÿ(ß")âÒ-×îƒ>.ØÖl~†lå®åBn¥*îÞnîÅvná~®çþ­ß.îèª]¢nê ¦*åPæ`Â.fáìYJ¥ÿêÊŠíÆãìÊeëò®UB¥ïÊ®Xæê¤ðþ%ñïëÆnê.ø4/îBoôƤ2i¤L>ïZ*/óΤ&Zäõ£÷J/õ¯øöní–/í¢/ò&oö&û6äø’¥ûïòÒoøÚïýî$]ž¯ùoÿÆoú&öâ/øâo¬ð@n/ðòï“oððú¶åÿreûFpýZ°aÎo‡äpp{ðƒp‹ð“p ›ð £p «ð ³p »ð Ãð Ï0 ×p ¯Á ã° ï0ëp«ð·°± 1 q+ñwp3ñCq“°K1Sñ _± gq o±ûðÿ wq‡1±—qŸñ§ñW1·1¿1Ç1Ï1¯1£1Ö±Ë,¬|ìñ r!Û1 Çð›À%J€!ß1?r"³±!Ë0Sò%71&k²&G2$O²%KòGòwr—r(s²#oò)¯0+£r!»2cr,Ëñ%³òw‚?¬>èƒ>tB?àÃ>è$¬AøC#€ð0ø<ôC;2,ôƒ<ìƒ< û2¯,̃6s³+|ó0ãC?3C5G3‹>ƒ!øƒ!ts?ÌÃ5gól3‹ó&ós?Wr+¿² +mØò,«r@´ÿû3!ÓòB;t7ô²B#4E˲D§rBg4C¯2Go4,w´AïqDqoa ³$<ôJ³tKÓqI_´K{1 ›eð€)tL‹4FËt“tg ôô‡´Nó4(OôQôGƒtQòOÃôH;µGï4%C5DWµëñ+ƒ;tð0ôÃpB?p³5l÷ñtYs°5`ƒ3¯Á0»ẪÃ>tð.ÿq>‚>tpóP¶K—ñ#_u±8Ò$õr?“ra«1ewp\¢Xö!3µR{6"‹òc»qg?5?'¶ŸöLK5i×qj¿´U—¶F‹òÿVovmÛvN§0bß¶O6N7µQöEï6pS¶k“ñTöR7h/·jËöoguk#÷÷W÷?G7UCvvƒq{÷w#ðî2pJvïôúo?px0Qâr/¯þî/z+0‹·üR°g°}«dzß÷yç/ÿ7x ø€».|wH–w¸¿·ßo{ï·KB¸B$ð‡õVx}ã7€ûw~o8Nx³éw/¸öŽ8£xŠ‹¸†Ë7UZ8‹s¸ó÷Kzwˆ›·„7¸óf8ƒÇ7ŒëøŒß%»·o$‘¹úB°‰x@Jh“;ù“Cy”Kù”Sy•[ù•cy–kù–syÿ—{ù—ƒy˜‹ù˜“y™›ù™£yš«ùš³y›»ù›ÃyœËùœÓyÛùãyžëùž¿9RÁŸz  ú z¡ú¡#z¢+ú¢3z£;ú£Cz¤Kú¤ :$z HhL£[:¥{ú§z§Cº¨{:©ƒz£›ú¨Ÿ:¨§:£·úªÃz¬ú«Ëz­‡º­ã:¡Óz®ëz©û:¥ï:ªÿºªóú¢{­{Ü%’@±ú±ãº³3;´{:¦Kè¦3û!ç;µ³¢¦3;<€„nÀ·º´¯º¹Û:º#ú„:#øÃü9øÃ!d‚>0Â!'¼»¼7 ËÃ(PA1tÈ{ð;ÿ Ãƒ'Pøüù(¬C —'ÈC5PÁøƒº?Ÿ{Â;Œ<ú!ø ?\C#pÂ+<¹»üË»´o€å”@¤«;Ì»º¤ß|¡ï<«;Η»ÎýÐ÷:Ñû¼ÑzÏǺÒÿ9ÓSÓ;}Óÿ<§#½Ôã¼ XT}Ô ýÖ»<X޶Ã<·̃ý¡Ô<ÌOå€Ñs=Õ»ý¹ûù Ã{ÕÛýÝã=Ì›û¦?°çý¤÷üÛ¿=±>Þþßë=â?úà=ã¾ßCþãO=á/¾Ý;þ£ÏüÝ_~Î{=Ì÷=ÒC€ ýÚW= l~å¿üé û©³û kƒ>TÃÿ;@óŸ_ìwƒ? s=ÀC5àCÄÃî+|2ôÃï÷Ã!ü¹?Tƒÿ#=ü 4xaB… 6tHÀC‰F¤x‘¡EŒ5nôXñcAÿH–4yeJ•+ÿ…ô8E L*2]Ö´ygN;î4ØÓgPˆm*2¤Ñ£ •6lºªÃ§]°zõꃨ§nýØ5*Ø…b™&­I6!Z¤?`u»£ÚrƒÒ-êµ,ÿ^½{ÚÕé'`¢|Aeyqb‹7vLQðÅÈ©ø,ðr\³”-S& 8ófÏ’G6-ú+ꉗO3­Úëk²G×þYÚ1íŒCLüxpáÉ7~yråË™—ôÝñsèÓKný8vê+µ_ßn¼{âðßÉg7_øxôÍÕ¯wž¼}tøË㮟ò¾ýùîYæGï:¿¿ D‰@ê ðÀdîÁ%œÂ -\/Âá2¼¤7tÂ?¤<-\pDäRœpÅUÜï<]$nC/lqÆq¤ÑÄÜQCäîF<É$•?%ƒ,îC&ûÿ“±H(äE¥ÄPK*y|Q9­ ÓK{ÜR%4å»’M0«<ÑL8ÛD,…:í¼Ï<õÜ“Ï>ýüÐ@”ÐB =ÑDñ@QCmÒHu4Ò&­tÐKÕÓMå´ÓPE­TAKÕÏSQUÕUõlPXÿ”5UI¥õU[ÅuU^]µô×>}í5ØbuXT“EöX;—íôÙW)l¶Yü¡Ú<á!ÛnÖSo!MÀ­«: 4Zʵ*ƒ`QX€ÂwÑA€÷\z›^Jõ%õßCÉ]×j€Wƒy `Ý&ôÞuö7PàM Ñd €…c#ÿ.7ßf?v+äU;¸˜Z†× ˜å_ß]WÞfÕ]·Ýc_.—€UGƪä_O^W[§ÅÓ–©syRPÁŸ-ꔡLê䆚xðXÐ'“ôÙ¤NiÌÉDŸRˆŸA0)ûl}²¶sk°S»Nº¨“wìlÇ]êdÁ^h:¨¥NêºïN!ïºNÁMêÄ…¯å¦;»ñÖ;…voôL©7à›ƒ¦8Q~șڙè]Ї5=ôc fÔé%Þ›ÐWeŒ3N4ƒ«&~ØP•OÿÔЃ­êxWD-¶ÊoQP^_Ú©ýúnoϽöð1u½`qUfÝ[ò‹ÿÕ¾Û+U%ñ域þ[G¯ÿ×ñwµxÞ1õŸPû]·Š¾lM/`üú—ºŽ·¿=‘€Ã X‘×,‹-¯[×CŸ9ØA~„!”ÔÐð„ n¤@ƒ˜œ>Þ‘ n-s¶rÁBÍü¸“>á`‚ÚàÆµ­.,CúÀ…™: ƪ‰ˆêV0E@]¯\,{¢ŸT‡•ò¹KeXÉV¯òE™•k€ÍºÙU&Bþk‹lVµ1’¬\´âùØG?þRð; YÈYÝÏzBÁ" F.2‘uzd#'©/:æi’ïz¤»éÈJº,“ž„¤Í&)ÊÿQr²“Ÿüà-©ÅVR+”ªtU,7I[Þ—¹l™ çÔK_þÒ$‚ä呆IL³˜ z“œ˜ Ì“ˆ©BÉ|f3Y´Lg^›ÙÔæ6¹ÙMo~“›Âç˜Æù¤.I(™Ò|ØÎ2ýèœ!²&:ËYO{ÞŸùÔç>ùMxö3M%Ò™ªYPjÊsž×„&Bj u*ÓŸ•èD)ZQ‹^£ ÅFÚÎxþ“ž ÓAúN‡~4¤UiFYÚR—¾t=éLiZS›Þ§9ÕéNyÚSŸþ¨AêP‰ZT£ÖGjR•ÚT§•©O•êT{UªÕªWÕiVµšS®vÿu§_ëVÇúS±–µ© ÀZ׺:¶*`©håéYåJSºÊõ®x­+Y÷ÚW¿þ°ì` [XÃÊ4™8µÇ%djJÌ”ÙÐ@6ÊŠKÜâú¸AMûàh@Ùø@ øq™^"ýlh? ZЊöþ8Á ü!™ò¢2õÇ-dŠÙÃþ¸GÍ+U‡Ü«׸Ä.r•Xæ‚õ¹Ð5lt»38 ¨Ômnaµ+Õîz—»ÉïxÉ[^óž½P¥PzÙÛ^ô~«î=®|çû[øBU°÷uª~÷;]úÖt P*…{Xg7¼„=ðÜ`?ÂcMìMq Aÿ3íƒe Ó#؃:é†/Ñášê 4=B((A‚™ !•8Ma,c ü 2å€ 6K‰™þà—ج‡sa#ǵ¯ ¦¯’—¼\çæ×¿QVð‘ñ+Ø0b7°0”§Üe*Ìaó˜o:a›ž 'ÈÀL?p!p@G˜q›7Ë7kÀÎ3žé îñY™¢ÙÄÈ@ ŽhA“à@˜éšsŠh!t`¦”˜™)X¿2Ù½˜Î´“«éªJÙ˃õt{GSëZ%}b;`QWÖ±–õ¬—»^ZߺÁ¥¶©®ÍËë^sú¯¾.3¨_íj\ÏTØ^5p¨ŸÌìc?ÚÑ–ÿ6N; Skt£­6I5zRlwÜ)Õ¶HAúmq›ûÚéV÷ºÙÝnw“Gœãæè1Ñmnt¥}hµÕ¹or¿àøÀ ÎÒxë;£Û†h¹^o|‡{¢þö¨Ã $ñ‚_ã×øÆµyðŠ*â/O:'žo‘÷Óâ÷¶wÈ+Îq—¿æ1—ùw¯$À^ý¬¼@þŸœK¨æëºùÈŽ¡¢»‡çE8Ðà%€}ŸC€× dž?}]MÀÔÑ#®—ÇêëRúÌÉ^v³Ÿ}æWqº{.p•»¢;·J„d•`ý 2ÂU0¡"¨ýDpŸ®²} ^GˆoPØÿ€ %á*cGçÜC¤x´_ó™×ü7Ïô¡ýèI_zÐó¡ó¦WýêYÔŸ©õ±—ýç­zÙ›Âö³×ýîuŸ{Þÿ>ô¾>ð…?üÝסøÆï½òŸ|æ¯^Îþê‘?ýßKßú¦Ç~öI¿}î‹õß—=*PóŸýéWÿúÙß~ô÷|óñ—ÿü5nû8ÀáþùÇÿþõßþï_÷ÂÏóüÿOÿ†ïõ´d÷ ð÷jO÷po K¯+P-%:/;ðÿvÏûÄïóBð™¯úD°õHôpöTpô,õ¢/=KÐÿN°sÐw0›ÿSPù~Põpø~: `Ï”0ô¤0"¿ƒ‘"+Ò"e. éQ‘Q#•‘O« óp£ ªàóV þp°_ð=°;òrøpòÝñC2ø|RôîO'ugÒçÑ(o2)CÑ«àc2à (—q(eÒó¬`<À <Ï!»,Á0,½,Õ {ñ"ÓR-×I2r)=#ß?2š¦2ô 1öLòóœÀ*% xTà%§1ô°€Þ`0åÒkR1Q±*AÐ.A¯'[ÿ Ô*313sùòóúñCS*#³(mR‘Ò41Ss‘$¡€/Ëe4#óI±7qÓô ÀEï+#8ÏÏ ß-‹Ó8“£“5-0.—Sé2D~ï 6Æ¢ ºr÷ð²õô’õ¢ fÐóV ?ï @%Á“5íÑ9=ÐiÓósöªï œ À îó> ñóbRùL ¨3 ;;Ó.K3÷ð tAEò¥±1U3Bqñ   +¯`8Ó@iÓ Wô “þð `ë?óSN™’PóKÁT÷œ²IUQÕ}ÏLý”LCï *Ñ5ÿrW[t6EòÀ]ßÕIýt=X5ôît™T6'®`A±à V`OõþUGpPvÿ* Îó ÒHÑtöö‘3ë•÷>Tö4 àà].óXÉTOù”CÒSaT…“ýBµTW–eiÔUKÐóø2&ÉAÕ°9Qñ `¬€gy¶oUGf¯öT `VÀ ŽvxÏW+6b?OX™8 ÞeZGoL)ß@P  z¶+ñ4a«[#Ó‹Çê“QŽ/÷°\M/  @¡ %%6ö†¶h6iv\…nŸQGÏ:¯*íBP@q@?©<rMÿr!·V=Ï`Évl–± 8Ô^µo=O[Ù%peÏW€¬à  ° T$¯@î%útô¬à`@%£`u°óEMÖýJvýT¶e‹×x-òeY06Ý¢r™3y5ð ü@u€ñhdb—p`†®VhmïYí?W@z÷OI ’LÕ?õ Þ÷}ùò<›f37PËÖ.Mñ]  x5>m çêTôXrqàiG‘÷*ÕV|xk/žÀ¸¶ Q”ç°_§ÑRvõp ¸/Wa¹Ta PÝÑ;[0[7øbÏ0?W_™·}Eøþ¢` lÿe9u {8xO¶ˆ÷x‹ØˆÉðyÝÑó2`c¯'S\aöfapH·fÙ3{j÷œ€_wuXö´k¿¶gÿOX? 1Sdïm“€7&b  œ  Æv¶ÉU&ÙsS ´R7Ýu][$•v4àh-…m?!£á qµ 1¡²Ôu  º² xg_±¹8^ø…À8ö¤Igö‘^òIÿ–×péw^_Ñ 8T‰M'w‡Ö .X2í·£€W·qqŽwwuæ×…gouØiy÷Œ ¦ôóŠw'k“`avy±‚~ 0‹+î÷Và›7‚Õ÷"Ù:)9Î4}s^ßUõ@SÕô¦Y$S“ùóó® î¥T@ÈôŒùÿþNá7`­T]p\±2€+Yö Ô*xö2Ù6n3y“=Ïu—0Ÿ”„Áó z“·wCÖvíVôj¡ ð©g¯ƒ sO«š]áà Ò4Àz+ׄ :uW·u_· UxS ^1Ëózš_xôÞà¨Û´õ–ªÏC9ôVQûöƒS „ñ @:ôÿ÷wƒøüz!èÔNàÔ!­Ÿ÷Ù³?ÛåúÙÿÕ_zõ¦f‘ú«?VK¶—cq¬û5L»ô´ <à®G/}?o@ ·t¯Z@ tô°à_á~aù3²QXiï`[IÑ?ð÷7ÅYõ&sQoøþè‚Û[‘®eñz+4¶ÅÚà jÛªE—¾ë[K=oŒÁ¶–5 îdÀÇ*Sµ:‰­}ù•»W ¯õ8“ðÑU¦µÕû†ã;c½V¿¯œ ^á`–Våt©9™u™_Oüó2•7õüÔêA\\ÆÑA³ëù‡·°³Aÿ[Çw\àD[„•µwYR±Á{]éf¯\93h•i‹ª5}¯ ÐЧš’Õ”?/V•öhOUúñÿ€ ¤ ÓóºsÑI(QPA·Šè;eqXYÇÂ;g 0x‚ U´.)npZžZ ·š¼í-‚`|ƒ¶Âä(¬ ¨2¤ª 0 Eæ‡ëƒC :PILc=‚6Lë51„ƒF⑬À0 |ßü¶´¬XÁ ØUÉ“šÜä‡T§}í‹I(0'¸ø'€O §A¤6F‰XŠ (‚ÃÑàÐ"‰Ü0—üTdAR Aî—SÃØ¦uD]®è ¼| ^$F4Gyl`$óSFi®·$’{yg¼ú¤¼<Á^•óÜu3ŽZ4¡èðÜë˜ÇAÚô¦8ÿÍ©NwÊÓžj§{Ñ'¢B `{‘©Ý/ ¥ÏÆ5ª’Í:"»†IjÊ“Zi‰Vûy/Z3@$%‚3ñ k‰ÂPRÔ†¹h©‡Yª-ƒ †³S@›\Êv6«~ : SXË4F+”E¬a™¤àÄb< ªP\—ÌšzÈŽzäž¡çô ²™m%ik§ P%±î̯ù'9I• T®­½JCó¹O®RÔ®jfS*·Á *4£¬¶’2HR%ŠÑj~´ÊK8¤TX+ÕM‚£Ò:êæ85õ©v·ËÝîz÷»à5Pq„Ñ$Å L"y;ÞÕTᢠYÿF) UfÉoýûŽé¬"†”qÙ–—‘Q½ÁaA¶VÖF굓ô¦îZLÜbk½È\×Ò¾öâ(øµ~ù{™½÷cÅœ(T¢©Ѭ0—¸ÃÊþd·Q-lwרò.¸}™Áp(?'°îH<­¨™L`* ±ÿË|$‹•dJ/g«aÍT¥_FNvÃKæ2›ùÌhNsê<,LUî«Æ‡cóU\?ÍGõ]–…é„ãš`uÆÏóÐÀòó$@£bœ7ñ Œ©º‹0„Œ? 3èX*@OõùS”µ]E)üéˆ4ˆÎöKp•µÿÒµZ–Eš^JA ò„(QÄ$qj½êã^Kª×”öa0±ød.•ô»°jŒ6˜£…šëu³÷97Õå2«‹G5{ûÛà·¸Çí:û2JµD–šge峞…P+‘?Ÿ ÀbqßbÒ´7`ÁßåówkbvnÃLºàä-Èž+l页eª Øb×îÇš¼“!ᢽžø.xóU.F ‘Ýp{‰ä ±Âž 2 ³…×ÁõÁcnðŽûß8_oü†-m(¦;—ÿ¬ŸBû¡#y XDhõemËt¥^†:MÉMõª[ýêX臭ižŸ#œ¾cvw1uèòÿŸØ;RøKÒH$ÏWsÌ©_ÿpÜy<ê†WÚîšjY÷ òdva¯!ÚÓ@s{W²má ý‰É):±œ© :iû®-ËõW>¶ï^Á#Ç:äºâÉæîù…‹8”yŸh¼£ÓŸn]Ü„Ùõõ{ÖgOûÚÛþöÆÚúÜ×âõËïNöÈ’_¦ÕÂéwý[†’©(žVøftd,öýXf¾û žœ×¿L2ýã„­¦k†»3ß5ü|_Sˆ_÷Xb ósûGÇÕ?õ¥/ìbJèž Í¾zŸðòèük!eúKLÇmÖÕtÑ¥9º|¸×€ø€Ρ{ÒÇôí–, eKÿ(ÇTɧ[&.²4(ÁCuv?(l+HdúWb/˜aö—p.ƒ?‘~š²xñ'zðׂv³ƒ„×#ƒbò¥(·eƒ?a4TB8ØÖe h9Ðe€ (Vx…X˜…fFñ§„-ˆ.U¸ 8h|ºi+bAKæR>ØcmTcX2HèOq¨lshjw8Oí׆=„ö†7r_ÕCD„yh^ˆpA'o‹FÚözS(…T¨…”X‰–x‰;Å…——ˆ†ÑR‡ýU†!qGèSO燿ˆÖwˆ 犓7‡p‹¯H‹:ˆ}؆«¨Š5—8L[ ¸š¸Zugÿ×f€ª·m`¶€˜ØŒÎøŒÐH:ÃÈuœ„ž¨.´x¢è!ŠBP„qyógÁƒÙ8åxKç8A°x‹¼x¹øŽ»ÈвuW”–Žìz±5þ'$öÀz˜9É…a™ ¹®ƒùõ‘‘9‘Y‘9‘ȸ‘Èù‘Èø„ 9’$,i+'Y’*¹’,Ù’.Y]O˜’/9“4Y“%y‘8™‘:™“y2i“ž‘@9”DY”FI’?i”Iy”0ÉNù”P•Ó!’XU©FV™•L¹•y"É•G9`9–dY’O(–e™–`y•l©•m™9ÿh–j9—tY—vi—^)•z¹—|錎X—o˜n™mƒ‰•†ù–×E³!˜‡Y˜Œù˜QX9™I™Žy™–™™•¹™˜™‹9…œ©™˜š¤9š¦9™c¹F¥)š¬yš«ù𮛬 ›³)›«G›Œi›™˜ŠÙ—¾ù›Àé€_É‘I@¹ÑPäË9´Q À{ÎY¶,³ C€Ù9E`œudµPè耜ÊÉœÒIÕiGÅ™êÀœMpçIõ F °ÂÚ©1…Œ_6œwÉmÚöžä`ž´±œDàõ0  àYï9Ip``ÿŠ9ëYŸ÷™Ÿ´Q¡ŠEÔeG:žå™œ ŠžÀ¡Ñ9 ,) 2Z£6:’«÷’·1¡ ÊŸCð£1eŸ¢¿ð—Ð ZËÙœêö‰Ÿú9Û ¤¹q³ ¡äÉ£àyý ¤û³@´B;´D[´F{´H›´Jë”E"±´PµR;µT[µV{µX›µÈÒèÁµZûµ`¶b;¶d[¶Ïqf›¶jÛ]ÐÿðàDðhÛ0àm·Í1·ÈYëCnûyÛm»Îq·ƒ[¸ÿàµ|{·Î„ûoû|ûsûFp¶‹ûŠÛ^Û¸–ûmû•ºHðCà¶•{¹}ë• ¹rû’+¸¯û²» »¡ ºÍ·§k¸k[¼Æ{¼È›¼Ê»¼ÌÛ¼Îû¼Ð½Ò;½Ô[½Ö{½Ø›½Ú»½ÜÛ½Þû½à¾â;¾ä[¾æ{¾è›¾ê»¾ìÛ¾îû¾ð¿ò;¿ô[¿ö{¿ø›¿ú»¿üÛ¿þû¿À<À\À|ÀœÀ ¼À ÜÀüÀÁ<Á\Á|ÁÿœÁ¼ÁÜÁüÁ Â"<Â$\Â&|Â(œÂ*¼Â,ÜÂ.üÂ0Ã2<Ã4\Ã6|Ã8œÃ:¼Ã<ÜÃ>üÃ@ÄB<ÄD\ÄF|ÄHœÄJ¼ÄLÜÄNüÄPÅR<Å} ûð’:P·yÔºYü¹ÿ:›;¼T|ÆhœÆ`:u˹—:àÅ‹û¶mŒ¡ÍÆÄkºj¼Ç|ÜÇdÛÆ~ܽMà´ ‘¹|ȈœÈW»„ ¼«ÈÉ’<É”\É–|ɘœÉš¼ÉœÜÉžüɠʢ<ʤlu|ʨœÊª¼Ê¬ÜÊ®üʰ˲<Ë´\˶|˸œËº¼Ë¼Ü˾üËÀÌÿÂ<ÌÄ\ÌÆ|ÌÈœÌʼÌÌÜÌÎüÌÐÍÒ<ÍÐlԜ̽S©@™§ÚÜÍÞÜ’^ùÍâ¼mÜ<Îæ|ÎèœÎê¼ÎìÜÎîüÎðÏ-YÎòÜ›–ô¬øì¬m™«ú,­ùìÏýüÏš±7Ð}ÐݫРРÐÑ=ÑMÑ]Ñ}ÑmÑѽÑÒ =Ò]Ò¬IÏðŒ]Ù\Ï©ÊÒ.]©(}£:“Á jÓ/Ó:½Ó<ÝÓ>ýÓ@ÔB­˜"mÒ¹{+m”EZX ð êy¿ ¶L}”8=ÔZ­’᜖K+¼2 1êÔõ0Vü êp3]ÿï Õ¶pÁðUÖ j Põ`¢ÇQ 6½•hºÕ€Ø‚=Ø„]؆}Ø@ÕïL³ìÁÏM¿€€pm µÑ P€Âp€íØEÚ$=›½@Ÿ*jԽШm‘=“ ×Ï™ÙJŸê`¿‚´Ap¥lžõ€Ùpœ-¡Á}*¶PƒÜIÐ׫¢½Ú£=ÝÒ]ÝÑ}ÝÔݧù¢žÝš5mÝÙÞà=ÞÚ]ÞâmÞä-ÑŠÍ‘ƒÜãIŸ2ªÒ÷Ì”W«c¹ÞGY¤t4ï‰×e ÁpH ŸÂÀÝõ°Ûèà´ÑÐ V]ŸC ^ÂáÿÃRàÓ¹Ûfàõ0àŠ™!ây} ÕÊ÷€á´±Ûõ¢Ì¹á.Ÿ±GâI`ŽzÓsYߥj€˜ªŒÚzC ˆ]äF~äC9â nâ žâ÷ ð ßjHðÛŽ6}â Ž±ç߸¡ß´ÁßQnF`^éßáê åNÞåHþæpç Ú¸i¥XJŸ³€äp¤÷ ¢·±»õæûI×mÏQe”?N«_ xj£÷P¤ZFP_šà¼=ƹœ½ðä ê ²@E`¥€}~¤×iêèp¤Ÿ£éœ. –N˜¾¡Ï ,_ êÐé¢.Ÿ®žë¡nÿWª¢±^³žžõƒ :Þ<«Éª«ˆÎ¨ø-çÒ>íý¢·ë ~£NÄ¡¤ ¡Þ âÜšíõ0ê_ú9N“Î×ÅAw¥Óyűê¶àë»NëÔ¾ïünäÑn€vþž1…UÎXšÜè€É¹î’þ DÉØëAçVY¡“^1ÕÜE0Àè±gEpŸ$Eðñ¥`n$îy}KpP Ÿ×ñ¯˜òÝítݬÝ×ÓJ“G䤊ª9ŽÞ=î™Hóž×Ù òEp£~¥Nž´1 ,úô)/¡p¡ Ÿ/óF/›öM,HÞÿjŸÞlŸöm¿önöDùè@¿ŒÂ ÷xÿöz÷yÏ÷{«D=÷ ÉF‘m­.9,¯8- 8®ž¶P \ÙidàÈnìÐÙ ‘/¡ŒÎøµa É¡ ùµQ¤ú^ùTx£cŠ€’xôƒ/÷’*ä Zô‹*f2jí¿}»¡Œ¾4Þ£ËùŸKœ˜ÏÖŒŽãpžÜMOôˆJôÿÞïÐý: äQw+¡Z§BÎüÒ¿ýÜ/ØáüÜʈý«oöž™Ô}zøúú±¿Ï_“®­Èª«¬Ÿýy÷ÚŸ–Ùþeyßýúd¹¬QOàÀ÷ê ˜PáB† >„QâDŠ-^ĘQÿãFŽ=~R¤FƒõJ>,yr¢Ê•S¢tsäLš5mÞÄ™SçNž=}Dˆ“¥Ä¡!Uø—TéR¦M>…ÊáK“2‹R¼Ê0+I™ §Z[U,U²aËŠux¦Å³Tµ*t»Ðm\¬f펽ۖèA¼}õúͶkF–tߢ Üîá„_?þ9±dÈ“-WÆLYóåÍ™9öºóhФE—F}Zu焆ª4|’®ë´MßN{unÞ»}ëÞ;øoáʼn®{`М³·þxiTêÕ­+en;ñkÁ‡Ò^ŒböŸrŸs÷Ž|]ñ·î}\ºâåòüŸ¿vsÆÿóùÚ0@$°@¤i½÷.ºÊµ„0B '¤°B cr,¹óüKï0Óò›î:GÄOD1EWd±EÉë)\¤±FOœñFwÄ‘GmÌñG!Y4%È!4Q#‘²y²fI&…”rÊ¡y’'{ª´rÇ,yâ²ËóF>È,³Å;ÐL“E6ÛTñM8_œsÇ"ë¼QI~úVˆ_fÑኑæ×Iw£ƒïÚ£e~Vi²÷%×] C;we®ym9Ð òí}ͶûÙ|Ï×ß±ó†o¾íðYsÝ·a”Q¼úVZ›Þzð`û”üÿîÊËvüq»é5ÜÞ½;_:åº/œtb 'ýEžâ’Tß2m­ôgÙŸ šà)‰¾ÉhÓKw¸jýZóy…:ëWçÚøP#V¯ùSHìÝmE½yOɵ¯í¿§økùFçVyÛ«ç~ÓÏËÇÕoôU%ßú_ןY`„äw;aæ×§Ü}êág°`E!òâ?u>ÿáJe Œß×@Oá'­Ûž°ºT«žÍ΃%j•¦µ6½èp, ø2'>y1*x)2˜¨¨&¾ûm.jIR!Ÿ7œ™G Ò£àªÚ·;ì•+fc—÷tB•â*€C`¢DkCtÿÑõ±‚Ùª‚ÞÀ´€aqwf _lUÃÐqû£`ÿ$ˆFÒ-é €° ¼äѱsZl èÜØ9?V®WaÍÚ3v4Q[U?èÁÚaÍKö1áÙR” ´ˆŽÊšß¤2¸Â8M©x+b#àVÇò=Ï&Y¢y6r‘Ð2ÚS`円8EXx ž0ƃ!p–v$÷¸èKWA!@¤)Í Œ1i‹»B €¨@€â ou̳‘³~d,3Û8Êe©trôâç˜",¬`Á$&;/–@AÁ€‚>U•L÷ R u”`ãiA”¥‘ÅŒ$ÿ7»IRò &Ý9¿½á ù”ß ùh9+‰T”7Lã‰R™:Š3o®ìÈ‚¨Ë…J°ˆåÁeUa›@æ?¸¦ ¨›å¬`…   ò•¯ëžÐɉäÕ'¬ ÀN¨®«°+TYRÖ–óQ¬íºäØÇú,²ƒU|2¹¹=¾ þðîêY ³Ðºu’Úž|µ]É¢Öz0ÝHƒ8äÚ .X]7}°^hD]>X"*¤ÑØ ``êÿÆk¾ïnn¸Ïzb§ØT^TžµºB:p_)& Á¯²±o·ˆÊ&—[pp±éÂûÚë¢( U<‘ì:6º†s¤¾*ä/ @€{`ʇ =á€OÿùW²^UлhF—YÉ…}íêaî2‰Â¾Ô…•ÉPšl8„p¸‚¢ëR˜]0:¨(¸)je,VešAãŠÈØ64^W”¥HÅ*'.ÌϺéOv¼Å¸ñT_õTÁ ’½l) *Xzæ_ïËЪ|r)Lå&kˆ&j6V €'|9€K&qAUêhަHÖ—[sÛ¬èF3úÌjüØü<ÀMls½âH×9_{p„´Ï7€©2«v^#½Ù „Òû²‚5¸‚hëèÒ˜‘¦ ÊœÛÅÓÉ;:Ð °Îé>™ªßêêºú`°>ø» §Úа–ÿCÁuv·=L”Â̦Žö%[ì†^È& õ¨K½‚S·È õ^Ò¹%hp'—™EX @>%®ª†£ žÐ,Õ»+ftGÜ^8G9šÙ­*gBsšÔ´&¬â ª*”E+¸•=Þ•ýì0‘Úu¦"tv´êr&¢y÷j¾*êYzÕ¹+'(À§HEô#á`xÚw¶\Û¬HÚœäâ)¥”¥@r}f|U|à4jn†=a €^åC¾}ƒ¿=tÎÜæ=z>™yQKŽÖ-ñ¡­èuNʾGw0ëe2ì@Ƈi¢´0ÅfÀÎ+²Âtà€7h`ÿ…y7Ÿ¼l§Ä F=mAQ´0ÀÐL¹³6C7¸Ó¤ê[šÃ«À tò 7ð0±õ+‚¹¼R#µè,Ë)Àìl6×Ñ­Z»ïc¬zI)z º‚…C«¹A–s928¸JÉ»;¨¤6·Úÿ¿¦é?”A.4ÎÊ=˜‹?è0@,°râ—Îû¼ÜS0·òCÈaÀQy‚÷»³5SÈ€b4Æé»2†Q4(x¬“*ç[‘(p/ ‚ƒîÛ¬Ì7aù© Ò­+#׉+¸áƒƒ ÄÀ ¼@±û”elÆz3‘ЋŸD¼APÓAddDp¹G{%© Ò­ä@y‚qs€(P€Àã‘C %ºBÅô­ð«,°8Ã䉂ÀÈŒl€—+p€ÉtAOоR¢ú@„ì’]Ä@|žS‹Ÿ#Äèñºn„ƒ1rÌFâz–‹+¸‚üÚ˜`ó‰{€Äƒ“DŒÐÿž2˜¿úåj°#¦\D·QÄšRL#ƒÂˆ@P ɱü³˜3#‚q[¬ž/—Œ9˜¼Q¥TÑÀ)ÆX4@\\Äĉ³ôB¿ü˵Ô:jLi¬—õ‚‚‡Ãr)Ù­|ƒh€hAƒ(E € Ã6œÃrܨùŹº Lð*&=bÂBuü)¬1‰üš´¸ é¾]ƒèµ©‚*Ú5N¤ÊQÈ…Œ M£«ŒT¾ÚHdd—ÝÓKuù?`€‡Ë3´$Hƒ¸„¾’ÌÎ9GtôJ1qK‘;dAô¡ð°µ¸8D^é¾+ÐDÈͱ›¡´|.ó ÿÄ@Ò,Å3] ÑMiÛÆ%PÇå‘Y²ËçŠ.]K“TTh$@hÃ7ŒÃ¶˜)ÁZP[¹váÒݰ •'PÊ\9 ˜Ì x¸V1O‘Í>›©³]G@T9,eĺE£ÛM‘­’ƒ ¥K‘SL‘·ÿÌ_‘è)þ¥_\ßÄÊ­ó[¾€‚§ªV zÎ —É $K|Æo“X%¾¢ˆ à†:2IC+#',|ßM ÏøAæ5d/³•ýM`ÜA;>4?Ë@²2Ý=%)` =à-hÿFÅìÒœôÎÑ µÍ 5¸ú½¦¾UÖBb4Æb<–.=ßù¥RPåç±.µÝÚUÜ]Ëò…GaqX ±Þ•0N"Ì%ο:j:¶ðG´råaCðÊ´f p”Fà¤Ð´+˜Ì n€«Ý[]½·"ågb´· )L¶ÛÍU7:ÒÖ•ò7 X+Yá¢uG©’µ7¨㺷N.ÒÊŽ)íÛ•âùY©ôaù$>ßQ~ƸÕVí¨]¦[ÛšDD½ÂS´¯ÞÁlÚ¦nú¦÷;âñ*ªâº¯+øâF^)Ó­å~a7E;h,耄ÎÜGÊã,,ß&LNÿ€ Ü=$ùND%§œHTM–Aö”ú³/% Dö[.:8Ø·õó7e.'Ä·8ˆhc]™é$@ÏM¼žÕØAØ­}3P Í;¼ ȾæëXže¹K¼4iQæþ2’ˆeYlÚ³>³é¯4B£Øa\l;S¡IDQ c2% ~¬ +Ô‘V|EYŒEþÂn†Yæ{³1>P&Cüµ%ÝQ´ €ð€8„(y<Ùzü”'ð²y[ †ƒ¿e4T ­ѵ)«¢e®CÜÄA­âFœ~ܸòß]ÖhaºŠÛ…H#¸‡_°€^hÿ­›´àO’Ojf¾=…ˆõnï÷®‡øvþt˜$=UDª¥üá‰<D]n^s‘B×å]kQì)k<ð».Þ °]v7nBñf´?-olÂj¾æºÜ&‚·®˜K9÷zêMì¤S®²Î&.Sž² M«>‘‹ÔHŒ\™×Õà…ØÇÕî¯Ú»H­ñ0ð»Y©o Þ¶F‘_Å¡/ð€'J,üé´Ma+½‘¼á_ªéçÒÕj–ܤÈF‘½ƒÁ>í{ ë~€k‘¸ ¼xÝ£aN:Ï˦‰êœÄIf¶ß_‘m™X#¨÷†où¶ˆ32™æéž®ÒÆK=÷ÿnîf1ü%«òhˆƒà9÷2èDß>ÕtrF'0²”ÅéüÔ[§j|D’m;c*©‘ŸÔ€ Ä/ùMé[E8˜r ç–îdÊùʯól=Bt !&f©Æh_¿ä¢¶ Y­ ¡¿,¨‚1ª ÐP¬âøÀ‰Ü `zSÑ€¬vÑ ÏÊôÊ}ßw¡ÔÞ§2ˆq5¾hÙ%eq KPûWDg:Óö Háiæ8Ðq Õ×Ñ#â?ÖvûJ^Án¦yÎ;…(Ev‘ò}¤)‡VVÙ;Âô¨¯¦á ?ùÁw‚©øÛÌÛårîÚÀ=r!sĉ¿Ì|( ú¢ÿ›sýgí5ô¥¿eÝr€½wWIrãÑÙ‹8@6×ê@Æ+Çd¯KôX‰±ŽðG,°ª³(8û¼WôrçNOmÕNà†tú<òðWÁ'HH(¥žÝs¿'ø¦ðaBHa2bÊ8oìœT9@Ÿøˆ2ðT„°’:F¯!“s~ûêæœ“ÚœT¾¼•î–ê[w•óÁê½ùT™vq¯I踀_˜ozî(<óû&®4EW´áï^$ôÚ¨ý´HÊN¢æhï‰&J|Y|©úƒœy—æRpvrÁ£àIÂ:6•gWÍÌ9^í¦_d¯ñ¿xøíÿPãáA¢õ}WW×Þ÷©‡Dpqa£ב,U®DqÂ8p2„£Â…bY¡Â"F( &\ø&À „NXÀ›ˆ Ƹr"ÂL:@H ŠJ‰p°T‰§Š‡œ/Ḅùò(O„W!&_jSA–Bq©à„oh0{ú4XN€[Nlø†Y%ÎeŠd¬!”×€(@@9¶šBa8_ 5=A  ÈèÓà4€á”ZdõÅ&ŒMqÁ,]zie=ãCŽ˜e’9[lÖÔ¸ÚWf™!jlÂá!ˆ"’˜™„Aãš=hb©%—^v‰æ˜cš)&š±Ý#—œ& }Þ¦_”ZÊßkkFt`‚ vÿ€ ‰-EŽ•xZž"´×[ÎwWiE1XoàõczwhúY\t0åS®ê§TŽvXo’…¬BQ‘5!äd±:Aª,–!´6’õÄY©êD#†Éä,%ÐÀ¸˜¡€…eVZqåÕ|% ,÷†AC.n¿&šuà 7œ-hs‡¥^’Mˆ«aD((ÀÇUÑE%[DÚ[)Ø7ME™e—õר\38ƒE²hq+YuAõÆ#•E>eY©oØœ) YºA“gîfSm6£÷DÖbÝÙØÆ®æÚ¥¼ÅÿV(™†’©v¢‰Â3Ö ºúDrO91†@€S^áá…7PøuÙ‰·8ãswuyP P.P$Í.‡Çƽ9çËöߦG´å ¯ú)¨ßf¢Ä¼ÊJ€+ Ð{fsŒ9Bƒ-{!»(~Å—Ìs­ëS¼….®®S¼b‹óZo†±…KêÍwUdp« ¿Ô"s_›Ïr€@0ú½¦¦óÉÂ1|DÅãN¶íÊ`ïÆî©hlÀ'>ò¡ 8°9_úÖ×>Lñ‡QyФÖ*sEj?ž» 3UµŸ 0Xdwûá)bc{ ŒR£ø hãc”ÿ+Š…*s/ñ WgºŽTA‚Òši˜FœœAM‚ö‹@¡òÌ©H@ONB€’¬°#iN%fá ˆ[[×–Ób™ È‹žôÒˆÄäÍ$°3ô˜ø†Ãµ«ovˉH–³+£´D\_Ib{Ð4À<*!¤N¸³(œjlÃÑ ª`…IÆÇŠjÉWVö5—ó¤g=dS—vˆ§<–è#m|J×ðµ°Ù/7{¥Í¦…GLdÄ)ØWªp'( \¶: Õpeœå –9|Të2äNÀØ1ñW¶i¾¤€žƒ[=¨>ö]›sÛ Œ° N Qè-t шÈrIÿ¶h;Ž{'<Ç“ª€ûiÔ'W(™F€‚¹P §$Ë7³àå/Ž0QLÇî¸É¤ %Wè€Ø¸çOlÂfK¨€ ÂFh‚:êA# !n÷€F_XO¿àó~ÒlTzP", \ûŸçŒŠT¥ÆÍ©P•*U9g6 3AEEWÆ Õsµ@Ÿú*°@€þj"[m€ ('´M4'—"­¦4c¹W(¨a³(Îqb¡œéÂaVÁú>ÿY7Úe/‚L60Vx¹¤g½%ÊO”éá¡@fFA•ÄUDå§[8€Tñ±]L'ÆPš ä¡:ùȼt’‚;uѦCqZ_&=ªj¸Åm@%5#±ô¦¼æ}Ìê2pl·v îKfŠ™iÊ…T½¯ÅV·<±e³ª$/Ñ#—"a® *ð@b7´Ìf>³•4b³|0vQ/[p¦üVµÒ=îä·`™ªò7'|´Š&D©ù“ê…ö½œëëkÜÕ©VÕJ÷AÓÜê™`v­ oûãâ(‡¨JòZËñ<ò;!—,¤åME2\Ún‹ëÛ °R ´2–-%P8¬@Iÿ ÚIòÖuê«9dÁ‚z  Cø26"UJa³VÒ¹(d¹‚mß2g‘ŸKÓãS€ –äþÐ2,zBV ZFë†Å‡stá»(q%Ý3 p~„ÁÆ­ ¨À. êQøX=!Òˆµ‚Ë‘tšÖ@ ~{Vר ›÷Ð4§ý$YlIP]ê+oæŠH°º)³yª S³\õÆW¶Tœ¯þjå~”Ž›ã€…p»Û* @P¦YÙGxÄ)'Z¬ÏGC ÄXcZ]!‹í˜e^JÛ­EA¥Q cj2˜FšPÄoÌÀQlÆh›$ÆYÁf»©è">ódÿ4hìl-ÕIåàGoòúøÉUÒ2ùT-qÞ€•³Ü`^›Æ› â½¢RœâIû%ß¿ÌAQ°Â€.͈°GâDjèÆJ×iD)qáeM2Q8EU•‹²q!¤Â*^¸°»ëÔõÚ»>…„¼Ê¶Nt÷c"SÅJá(3U Z[sî›T=þÔk_w8ß„K ²(,h»X$Ž;À™32’#/%Ï'/œY{FõqÅw ²‰j=la Ïo9=XŸr"HB³O‰:^á@õ¯>0õnßó†Ð¼5{÷WÖ@ ÂÝÌD!#Túñ¢Í«cÞvŒ~J½ÿ½z#Ò6¤JœëE:'Œð|xŸò‚'Fj 8yï¦Ià#íDI G+˜x³#Ø8ì¾Ì¾ÿa+|~wµ–Ëœ²T-T˜xÃ1ßœ1ѵ…XÁ™e’[ØÎ¸ EÔAˆb´H}Vø=È¿ÌÀà’ºZÃ1É´Ý2)ѾÁÄGøÅ„IÀÛSXÞåÕÝ˱ PÝm¡™FE8(„qM8QˆÍUÈó„ßN¨GÄYXa¼x˜jˆ\ôxWÖɺڙZÏÉÅïu@ð‰ A Ó™çmÕ=•Ëœm„è^BˆÚñƒ¡ú…Ç™JÊ q` †ÿ)qÜ¡Õ푺J»½à»¹×ºÝ¶4ˆ·ÌœœmN_mßyŸ]ÐÜ\A~ØΑH)Þ9ÙIJ@žäbwPžô¬HE@¸qÅ\ÔMÌâ,RÙ?©Í,X€:ý©ƒäšU½Æ–åa½…zÕQçé î!Rôe!îà^½ËnéÕ(5I4‰Ü¡Oô ›„áš±<î¼cV@WlذY_ü}:ÌÆ…ÉQ%•0oœšœÄÞWÜJ«‰Øô°X‹ÆÿH ç€Þ‹ÙãZ-¦áÿ¤~M2õI©é_/ðb€n–Ë¢Ó¥ÛK¼AIâÿÁŒJä«0œl]Á2 mƺm áß—±ä N„9Í\@‡tTÇV@3ò - ô!Y¼™ Kd¹Åí`j€#qˆÎÊ©V¸‘… Ð"-Ú ÆM¤j)cN ÛüÜŒ1‚œQˆä‰AÖÆ, èTÿ ‡»4À5ÖݪíÎ\0Ùè\Ž×=–OH µˆ ¶ H¸[ ¢‡ ­ Ë N<¡Ä‹7êM @taDü¡rýŸM@"ùY¼U“"} -Ìð-¢ˆa@‰”´}0=&ŠZᣭ¹oüÝ\àV­È A¾År‘)¢"qª¢êUÇìPÊÅ,^„uÀIý1Ðlÿ¨TÕÀ8Û³]â–Ù~å×{¬LÇêÛªˆæ þ£@#æØŠS¼AleïÍÅ»´‘´ˆ XO¸à[XeÖT#^€¢ýPXZÝpÅ@\EÔì <ohI=C!ÀGήa?ÖžjÅôEÚÅp\Á_=ÖCÁ„bÀkübýe¨$ÆFDF¥OR4B^Êlô´Œƒ:€n(Û}¸dp*a"DµDÄa¾WTÒÏS®FJ” ­Nt0WËlTÔä)G šj&‹.¥/ùRjéÄàD›RY†ðRćhÀßÄd”BåÖlriJ›ÿQÆÜÛWÌbuPÇ<9éÜ>Yo¦‡Ø™ÂÌÊ߇ìŸVœÑ¡ ²›Z‹ípD}æuÑœ @€›Î t\Å êíTÁTî]8ÅàYXRž&.¹Ð›˜år•¡Oø*]vËé©~UL˜±éå ùŒ¦Tø“l Œz^lèæ[˜dXÈ`àç\Hãpç)'âK‹ZYÄ%M’-bÐo¨ô…0ƒX@•^¢æ[.5–IÍ©på B<zêä|Pã ºbìHŽtÀ ÎEIAM—âI°_’pžNL¨FÄ}ö_®ç˜Aÿˆ Pi_-ÈÆ,ŒÃmb_0džþˆרÒ¼¥³h*×h&UFüÅ0Ô:ô‚,ô‚:È9$ ÌfÐŒÊÔyWJ|aŽ.dlüU ¶zݪ¡ÀxVAy ­FQ¤Ìz"„üДFl³þ„ñ96v‘—6ÊÞô ßÎFżÑlQŽ{ëÛn"œh]ÙJª^ÑHq «YÏ"®y,îÏJD~(ÁÀG»êȆÕXA®O¬€X}Y!‡xiUc Èh¢ÑÄ Á%ÒÖ^â­îÙ‡¼à‰ÅÆ DÚF„ŠP¢}Ò@1ª…IÏ]Ðͳâ¯þ‘ Âê{Tæ\ÿp&=…F•^©Þ’ Læmj4)æµbPÓ¢ÉEz“^È,éµ(§(€Ê™ÇʉSËÁÁ¸’kä©bÂx Èüï\X!x½kÌfP04AŒÂÆ–½AH9;&€¤#°¾É|ø%Ÿ±ÁÊŠ=@Wéäí8K¶… J,½mpÏÅ@*êStìƒP¬Ý®Nf®3Þ)BÜe^ÎÓ¥ <š/š¨Ã<ÆìÌrh!îàªgNåûÑšdžpŒ-­þÁÆÓb ÉE„É=ãiXd¢”³ÑXoN¥šåÒ‘œÊ)Ye°-ÉÆ¬­ê)ªX”ÎDX ÈšºÿuàD⧦ ¶ ¿Ž’ÿM¿I¸]PGØ©Ix€D’´*«™„]Ir侄UÖʪ=ªÞ^¬du¹¤%C’ybñé…—£’EF®†`jNkT‚ µeÂÞLš¸þDc)Ææ(Ï|Ʌ犒„Ù»eLªÜS,o{TæÔðÊ„±ª±Î‡Ò¸”´&¬Š©Œ–B¦±œ-—]ªºFb{±ó°tÚÆ7r­JÑ)WΧ$È#¾Å$®j•þ*Žþ¢"ÿ)_næ1F©£žEgÁÍG'6•:€tL[º@Á°"oöddž­¿ ìÊæôïÇ„4 íì†ÿlôª)ê¬@Àt¨0Lñ±s<Ù…lLX¾V²ÔÐKT)UÂ#ŒIh0°h=pšuUÀ…ÎF³É~(ˆ–ѶuÛOz[ÿí%¾†Q¿R'JV×ÃV_«§IKÕÂX©)4§mx„DŸêÕJš:éjŠòØÀñ8{@”˜äºÈƒd¥ý¶ÁÌ­ö¶íÙeˆ¡áôFO¿ð´›þç§gniºd°ˆ’èul ‡ ¿‰Ð$¡Ë]6òñrÀéá$òªt"X„°&ÍÓÙfaþ Áì|X£}ÔmßW«ÄE <jˆBˆøŽ$W–¦råd» Ô¡ç•ZQ1ÿƒ.2kÝ“I¯Tñ˜‚…˜ÊrþX…×–µœMSÅŒ€-@––:sNWõ?}“J=/©ïW°¦½A“N0ØU¬EDþös<ý³½aøÖŠ×«s=Ú¾Â:Àwol™H’%`¬¢v†¿E’¨zü”ؠݬtù1Sk-"î(„ˆD’@÷ÓîZ!ê½ÅI9Sî ññƒÜ§ìx@Gg9š¥S æƒ÷ÆÁƒZ èÕÒÆãÐʆ,¸,¦]•¯NÑ9up)º–ÙL›ËA¦÷²½†- ­÷ÐÆ’ÇF“—ZX§¤æ™öî6ÄÎ&@-t‘2'ª :2²sFÿ»eÿÁñ|Hb`·à Û ag׌7þ1dk1 ¥_žúÒdjaÃá?Šf¯¯ŠSR†­9Ld®jùìW°vsŒnÖ8ö[ø¯HÛˆeóáˆâÙšÇ |Q6„ëÞá%^,’3b GÅËq€‡Èç[x÷òª‹ë±Î¥ò\décâu?H²“EñÑ­ñ «Â\‘qD|ö±…q­ÉƘÃF™?$CÏ}rLè콬– zL°ú·ô·'YVéϯã9^žu^µzN/$4C<š”Þ‘®ö,j@Ã?|„ÁmÄ|x&ƒ¬ÎöËy‡ó‡>³Oㆬ¥#ÿ¿ ¿Ð¶Ìs=Ÿ9’¬”›/Ëê"/.›‹`/ÌëÃŒC›LÓÅS ŽôñìÕÅ£e‰Âü~äâ.öbÍŸè§wmœùg@*Þø6¥ž8Ž^µ›/[0Ã/XÔÂ/ÈB$ÁÖIOQƒ"¨N²ñÂ_|KºœåXÔ¤†º3á±$ù+Þ¨O zg Xelt¿ô©ìý2îííª°{æ mÓu‰{|ëOÌ¥O;~«öÅå#„å‡ün}P&לÅ2´¦{´ˆ}:Äyai &”@kYXï²EÜo„|;u\ ¼÷ÂæÈŽôH€…¶7óXˆü)?‡ÿ¸Gç–D´ÓSšôEâyT:ï~ÒqÛµ>µSŸ‹ü¸÷ðƒ÷üæh+æœ<=«Î R:óó½#Ù?÷‹¤@éu±Ûõ³`k=È‚v)@«7ðÞ@‚ Ö‹΀ OTàÁ‰+p0fŒ“1#–8à¸1ãX± AF†p6Æ„9S&ÉŽQ `ሱ&MŸ$_î*tãÊ(QDªðfhS—N1FñÇI€V0åés'”“PᘠړìL8ODÀÊ›jÆ• GÏX®¡¤€ZvhÙ8u 4X0aáÁš&àW°!õd PgØ 5»~Ír|ã@XÿÏpbî‰Ñ$J•ìmZàÁ† SFl¸‰‘zÁ0 D,aì‚ö‚ʽ[%@F>÷ À^=ß” &`ˆ‘ ¿vŽpìË«d…ÀÒå·bnÚ3´ðÑV‚¢È@Ô}\>ßç¦ù9–Z²…“RKϧ;ð«/# P¨B%•êã«=Ìœ€ .ެp =üðCÏ&¼+9Œ®p@ÅY‰«Wƒ£ :Рƒ¨±ä"ŒK,ä"–j*…ÎÖ‹«. mšQGw´Ñ©* ÌÃ>c‚‘«#á@ # ›ºœpà ÄcÒ,/W³)#¯ÿTo¬+è Š+j©)'P ¥¡Þ8*ŠpŠ˜ 4³$wºÂ‰­È‰€âDŽîÏBªx“‚›ë VPA@ª*V#ÀÜŒ)ŠQK=uPå* ½€}4ÎÌ>;¨ùâRFbí„NÚƒj»-·zv£,6Øê'8¡BK-¶ÞHË@3µÊ@¤ðàŸwáWÞyé­×Þy_ ªHO=ùtÀO¨\‹Ž»ƒ§–&jAG°i·[ˆ8ãx ð‡ ÈXc‹ÑT“ͧ˜5OÍUÁo?›1ŠH%ý䡜ø Oa"€f £rÂå‹-kÆÿ2Øñ¸ãxTv¦%{Æ(…ùÄ\ ®¹à@9(ŠƒC›ÉÌ`í¶5h¶ÞÔÁà±$8à1„ë±Ìäfá0‰ž`]—1‚³¾¥Ã\÷­µ…km;èºNèë¿ š¬žZz1\Ûz€s–mºIl£#G$„!ç—!,€XÚâ‰'²l»Ø³(MR&»ùJ‘EPÑñúBMº¤œu2r>ŽÌ=A¾1ûwÏ>gÇŒuŒüSA§+:˜›#(pd)éÈÀÖ¡ŽŠN7Ç‹žúé­ŸýøÑà°SM+êx넃SA¯Æ™PåzB:®î%ú¾úëÝBÁ#1R!úÁ${Ã*gV€«ÿ @}³3VÈ‚¥º} @”Dt¦»¼adoôCB‚©3Õm+oP@¢• J(oˆ]Ôè<¨I-LUSÀàpŸ‰aä8ª‰ Ë•º2¥ JWŠÈ@'£ªÁ¡‡ŽsË ˜’0@eßýÆ#ÄõY‚4ÁB¿à€…ãà°x>)Øä´CÃ!NqÛZa¼•‘˜%ç}JÀͶ"#ÙJ:ÂH»îHAR^ùâÊ­–Á-9¥‚ @ –FÏ d ¶¡å·Œ +w)K@HÈ¥+73¤ÑšBº¤Iropå+a 9”íä ¨BÉ}8X¾,<ë‘üP”‰¬Rÿ8öSž°‚'\Y¤9`Ò´u#¿°jñ YT ܪ‡: c蜴ÔF̲xÀJ¨!÷Àcq™Ê¼žÑü¶µiVóšÙÜfWYX@E°:Ài5n‹ÈÊK<…Â7¢1põ [0ÎZLòa Z$GPð€q(U€$FVp‘Ó]j`–:ÍR»¸¼a @VÐI¨`ÁP=e!¸~Ó–6²' e³ç$«|gJÓš@"9¥uNõXTM&ÏiɪP-cY|ÙDr¨=BÁ[Ó:X,cÞ/n(@ßQ12£Ìu˜kU‡ì!ï#ÿ$ÖNtâJ,¼a°ƒ-#KÍ‚HdÐL ËKv¹K°Ôs™`öò¨h €WJ“’• \g9‰¢ •ÊT~˜1! µÂ£ì$Ri¹)U€\•v/w!@bæ§Í Œ•F‹àžÙE­ÆÈ ÈÈà ›MpqÞ4È@ zЄ^R0±‰ãN;¥%r¤±&‚Jbà.B®—½…<]‡D¢Ø9׬ ÀDÔ€’è€3ÈαŠF“ôìkþ:+t–(P©SD*© œr«`º‚Ÿ°¡­Î,3Ò)Фè2ãÅ{ß ŸO¢°TŒh`n½kJX{Dœ aˆÆ¤t¬ÿYÖ*“/¨ÅOÛ‰ :Ó42õ,šn4ÌtªsìX×0¿XòßÒÙÅ88‰ ð@Ž ŠØv„U ™ßšS]$[;Ö׺ÆP˜ Epó›ã)QŠV× Bðœ„% ¬;”KÐY€­`¡‚xl&t¤´ŽFËXÌãK·*Sò¡HUz33rV½i˜+AÝjÛFØÂ†÷ÆÙ+v¤£¶t”X+fÕ-Ún¤t5}–e\Ž$pxõ±`¼e§0sX¥ZîÉ•s%Â-«”gw’ìŽ~vS,cG\:(Ôv†|A”_ú*—!%€"Q†Ü+¬›Ýë~0T´ÿ CjšƒRUW?Æ=% JaŠL/›\ÞO³œéìgÁ³Äq‘»utÀ12p™§*µ‚f»Üm)Ï$Ȳ½'¨\® Q`J²­(-3Ù0ƒ›Vw¾Ûï ¯kÈtkiSЫÞö ôòG=œX(Uq«žPþú—åj´. R`ª–·%©Q¬àn–ÕVæv£'ËÓ-hˬМôD#&I[Ñ—Á`-Ø‚ýŠB†¸=”` GÁœȃQ¹ìŒÐ=vÏл3ÒnÅ¿;käå0§9Îõf’ƒ‹M”QùÁ– €”—¥ÈÈÑ‹× Ê'w!Ÿ¹ÿÍ“kÝ=Ì“¢f‘»y®µ³ä$™ûz£lð½ï9ªö¥,P0×ڲ글ý‰Q¼Èݽ|,I›—nõ̉ØIâéyf„†ÆÇÈ 7ž=q­¥-½‹Ió©"EèƒÅno¥aÃX1™¸%·é7ÏúWºq‘:×$ €¬°O8ö.ì8Ò„Â#@Bl4–m.à£c¼Ê)v…íöÂKâj‰ Ä„¢–š¢ŠëÓð"ÁÐN¾mî‹Pð¾òEl*#@¢’‹#ôã,úã?°’©²f§ÖH‰ m&Ì'S*b¦‹µœ©ôŠß°j'ª@ãÊOîqËYôˆPÐ#iÀn& ¨ÿ·bÄÛ>ŠûDФVÃñš® »†0\ê"æH#F'Iž`ÖâbÿÚæ¾@ˆX‰çô0|Î'Œî­œˆeéʰ¿‚oÎâ%¾yÆh=è°ÿîÐM€Nz¨çļ­#jê¦j¥Ô–r„-*œ`<£Ù¥™LÑ, p'PAö%ï6Ž.’è7)•âBêŽoŠŒ».*£`£ cŸ¬ ›´‰›Tó¶Š1ÎDî yàÃ~éô(/!vQ£ºûi»©Ï CöPi3RêA¯ípÉ´£$Œ ƒ¯}‚%ž h<¥'.bÐd.±z‚‹4†sèÏ†ÂøFŒÞœfv´ÿM‡*àÊhìÔN®bóè·ò±mö‘ý°èÚ4\$rzô‘ê^D¹v…)È#K° 1FV‘Ãä¯Ü¯#­dÊ¢3£Õ|pJØnê‘'2®Bi#pr(EP€Óî' •FÉÄ‚®¯gW¬ÐÁ+g´¢Ü¨#Ô µd®XV°´ªà$4kú1Ó„hàÀ…&h£C¢+#¢ð~ ̼¢`®ª€™¸H× $ì«–omÐ +WG変š‚ÑŸ¸iåš® bŽQÖ¤?ÒÊ%E ®`ô\$LÄc$ÏÃ<òpA_ˆIe(r2±Ç“Ï ³0¢ÿ¹ž Š6bºv"$Çã ßà qF©îò-J2K² *mÚœÀVôrÄ’#‚RQª,‹i6m‘e93"%ùE×d²Y6B:ß T€)° y0%© j!=ÓS̨ƒÌž¬kŒQ=”ˆ ³ ôÂÄ A3üfÀ¢Îˆ` òlϦq ¦ƒŠ@É Æc  À:‘“`ÂL÷ ±5¹q[ƒÇã´¢ o&v(ð:—ë— G(£@J„j&¦o4 €'+]É Òh SJ° À•¬m‰Fôt\*IH%©J…E/Í>%ICfwlÅzŒ 1Ýø&;9àÿïªÎæv¢Ž4ÿôR3öódÌî4åÕèé( ±·v‚!œ„T(ÕL†4Sj¨ÄJ°dðJóÿJ&À  "&¢">ôåä-‰ DÐ&¬À2C >Œ=”K±à©¼’2ó<ãXΨº$iÌ´@Eu ¼eF$¬®˜é 2@ÜŒUWuUõMKF§t˜â3CóVÿ¡e⟊M0­#dô3ÔÑBƒéBêÒTLOÒt .Â#äÍ>9‰ É”nÑ¡n"Xí)—èÏù¦èW1‚:{ýåùªrE7B&¿5ýÐõW©Ìʰlmc5ÑQÂZ¯ROòX2â“ïæÓKa­ÿ‹:nƒ¤ äŽåôÌŒ÷à÷€¯@÷uõ ‘Ac¤)¾ðS$ÊGµXßhø„DLüÍ‹R¹ž€´l"-#møB-–p.R Ö`:kt«èµTË/)•|®@/he€ˆo%¢KŠÔÄÎv^*IuM=˜õ—önð:«ð¦ˆT’sÅJǃ_u\F¯$öYÀtãN3 ޳LÓ1tzÍ*Ô¶×LÓ9ëí7ÂmàFnôé)’«þ‡Gh,ïSI‘<@ˆnâ—UAwãrv«,5#3õiÍÈð ¥%b'ÏX'‡ ]ÄÅnÎ#lj]eBj¤àÀVq4uÕ,ÐÿäD@•@RÙ/VÓsJ’ÕYŽ–ú °þÌbl‡Ô>Я 3I]Æ69³mLR[‡MñÚñ¸8’"=R5t.6R¸*R¹dRº¨—{¯7#2`ó.Ä…#šn7øª±­ë_Ð$¬>u™N ŸcBæ^%eZÚׇbëà LîË€ øö*Ô?§‘9jøþ0é”nëÀ«Ö,(ºwû¨ÂB(CÐTúäIá€Åž‹ÓØQø±J+zbfåc‰$úz¤K©Ðø[…”#Ƨ`?ÎM®Õ!²Uì²ð‡#ñx}¢iñ‚F,ã0-ìzw./` rG£–B¢ÿC!r$öê›Â\Õ/]íQr‘'™®ÏˆË,xõªZÈPNHQ¥+…Íú:é[Ø)vÞ‰£4 v”  öêê®^Â2=nÚ²ê¦ðV’ˆ8lí‘m ggXIqnÉ4i©ož†Õ ãEU ëÁ¾å ª`Ûr >&å 4fcîB¤ yótu.uUHKÔp™>eÉS-—p¸kcu[ 0&1Œ±mT jäX‡wê̘ﶵ)èÄŽR´bÚ*® 1âKjN4P2lG ‚\}÷K·ê{»%0d(Ut é4e< —1”£*‰X~öÛ”~Ipg ÿ•¤Qcõž_ƒ18~—TÄô× 9–5Y‚Ï6«P@„Žê2ø—tY]Y4 Ï𤖂+¹X\¸>ˆ8Ð$yuöy •C3E7u³)ާ˜¯à˜…"<^:Kr³›?•”¦³•xF¬° íî'ŠÁm¾âKß`¸ßŠ„ª²È ¶æHb{;’oJT=Ô z¯@z9u&m­&„VõàD ºÒ ÍÄ'`ˆ H„7š°¤ü„£“IIbWŒj: j×SWNâFÛš7¥¡YŒ›¢®7¬™ÃŽSm×)É’‚ž§¥‚b¨ #*eä“M?ui™çú¼æÄ+¶ÿvZÀ.)“@„I˜³‰69;ºh³œ±À󌲘Ũrì>¥d;ð™(—P3L73ˆ{(r[ï²×H·b˜{D&›[(P–# ´HÉScë9!Œ£ BŸå³uý9F\çuV„¥q}ø¿ì½Ý(¡%W:Ù¯¡y¢ZÛ`Øñ­‰'VÄA$³ð±7®E3sëz·Hã`9³/º÷z3¯°$ÿ:äâ·xûÒ¼DG•ÚP˶·{ðfõv„ãIœÃR¨ý±mêrîçTl„£´˜TVÁ° @[´‰b!kô.“ôþñ“¨¹óòÓ²y‰¸™ËJK°TKS)Ð’nÊcÕÿÂ0L-(È‚Šê‘b´[é3 ØR(jÇ·mÚYî%2€§ yˆe°3£¢¿§19£•…Ì›4.B!{Ï7ÙS))¾'©—1;Œë2 }Mµ„Álk9‚´K»½N›‡Â5:’4×µ];4飣ֳÐäbµ2EÏVV—|@º2‚6y4ž*D8˜Ç-Ò3x* >Ì~9øÕ=ƒœkâ¤ðX¢8€n݃¡"¡J\á@}Õϧ ƒ¼ùN©’/'BÌyÃ\–6FúsT/4ø˜:è»,Úõ\ÃU–ÊÑÏñÙ½Be‰Ê¨¨fS+‹;qÎ÷\&¼b ЋߵhKZ¡ ùÆö ÿÎ-Ú¢¹âb£& -’H‘GÃl…àK—Ûè\AÞào,,n¼œ¿íiAZµqLCGz'è®Áà]‹/2“Q»Çe‘v«Àü)9ú®ÖÓii¢§ªM=ˆŸ…]¬ÒybU¤ïãÔE¼´Àœ¤ª"wÐû%Üœ$Ö¤AÄqÞÍH¹|>ÕifÕå]Þ+—B/‰ÙØ0D™JòôDÞàê²î«ãÉÑ}½N;*ˆü–6„…+=5 ”WÓ¡C“(n‰3dM@ÉcÆ{BwbàJÝâÃÔ¶¡nÑožXºÇ9ºãJÂuú ¯ÅÕR”Æ:»…¢^%[î%{k¸ÑÙ›å œµ|6Q§ÿû´GºBùårïÛï«­W¹—1}ÛâÏ&QÂÇgÞd£Z¦™>õë½m þÄÿ8«w¸hßg^5¢xÚ«|é™-0aÙA¥êqÊbÁí•Ã(–©ð]Y0½ÿ™7B×m&b¥+2ÄØ5ùÁ•ù/0#2Ðæ+ïNHÃ" p ,èd€ <9h0‰L¼H£FˆX¢DÁñMÁŒ$7Z¬À '¯X„xñJ€U®Dqà Äƒ(4@LÎI5J”@Ä‚UtÐÐ!O;Œ„ '…σ@áðyYÐÊ“'U¢ˆ¹«°;±ÂÿŒÒ‚­Æ¶U¸›áÊÒ’|çj´Ø·¯ÛŽhý¾ذâÃŒÿÖ{üøäÉ’'[¾l¹reÌõÜ=h%E€Ï#ŸhçMÑ R¸}m€´kÛ¾;·îݸ_ †ÅõbÅ0dƼydÎ5OŽ )Ö7¬`  BgÖÚÛ|¢ïáÝf Þ8iØæ÷²ÇºvyôWË¿?hJîa˜bŸèý^yé¡_ZÂÔ–(( Ð@)„çVÆ1GarÍQÈ™5þ¦AkAxßA‰5Ǭ€PupD@aqöÔc!ÌmfaÇ-gÏg$Ew–@P…(ÞÿŒ—娆NJ¶aj'¦h]€T+(t]±7¢€?ŽyÑWîíD@N$Sj8a…SÿY¡¸ÓQ2†EaáA¥f˜…™J*¡ÇZK!ù¢ºGßUì &é~éAD¦Dùih[Ø=šwœ^ Â‘æšm¾ñ¦¥My@k ÐZ祒~K–ªÒkÞ½èW¦¾†™Yá@Î6ël½†‚— À ~ôFPTQØxÈ wj€ôDÓ¾VW—yô•t¡`šŸ !UTRDz\{d¥½p8q%±"êE QœJ¬^Â6áÿŽ֨㒗yvÅxTiˆçÔý)²ñÆrË.ß6ž¦U!ÜĨ Õ¤“OÞøtÜF±Â à¶7,Ñ©àÓMšˌ…þ(TÊF[]µ[¤Áº4ÍoÊŸ>­‘£óÖ›Þ~ª’ uÑ!J8#“6òÌ™sjvIX¤Àwß)t€X;M5 ¨Éæw±& GŒÒ3eËñÜcÚŠ=Ñ&Le5qëœñÜvë\O”¬"þê≻”K`J {cf[PCzÅ‘É(c¥gÞ9ZA0Ê*ç ï ‡¢)À¨ë´?zŸ±[ÔµA__zsØÆÚlóÿرwÿ^_ko ‡íUWƒL.§Æ¾W©°~ûŠäþøRÀ¦fàc h€ÀV4U9!!€Ÿb¦µšÄ§q€]Và6€lk‘W,b  ÕRž¥€³¿‰ôéOÔ´°',4€u¬iÊÀ÷ÆÁaT–*•å(6>Väq ]äœÔŽø@„f÷‘Hýî³²—IqŠ03˜‰å±-BD %79"ŽŽtõð™ÑÜfŸáDÁWða›F®‡ìƒ†ÊÚàî(ØX¡^ò‹(ê*F®H¥qB“#Õ,HK§÷ÿ§(@D•Â!Mý9©ü!×´%Ñ)-} IÍ>Æ3PxX5{uwPRKY— cÞ4õ"nÓpCka‹Ø”"–ÌV¹‡I²…d®¥=Vúœ"\;q±Žj]+¤ÔÊ»rù.lb“&n/YÇçr8ÃûS‡x°c2 jT3Ö6D>HtYkàÆŒÒ§`¶ef93Y¶k—•›ÅH9F'E©)]*ô]ŒÛ½ù¬¹Í[. j3\´™¾ÖÊöá!ª|X^üuÖ#í9§ SôE™[S.î9ÍÜ’,·ÑÍgI ‘‘¬ÔXˆd,âiy+ÅZ_P];$‡åƱ¥iV¨´ÿF!Ÿ§JVXÐÚï¨,êcŸû„,=¾"k¯þ ꢪ̣֖¥VŽàTQݶå¥zy³ÜÙÅ7FÏ€³¬,çÀNšÒ¥13D/ޱ¿«¸­Q§Ôçn·Á­êîç4™«îÔÈßV4-¦y¦O ÁoêdËÓ™CC4¨ß³êu«Ò놈—é–±:ëˆÌülÞÈŽl2‚§¬Íˆö¸€'Ë0_•Î}Lž·<óÏÝùÏ(ñd d,€Õ½àQz‡à(G”Ò±8"‡Ý£?naØÀ¶¦!ºéa¶ ( hÃmäÐ8¾`s® ÝU9«ƒ¬eò™?cAYÚãÀ<ÐŒ¥,g±ýYñ“eºÿ{Xx <†WòÙóuòÔœò˜]®†+ 3˜qQ9‰;ÝAÄÒÁôƒ[“7ôv|®:ÿL¿wµç"–÷Âf§ûæŽýþ·í-ÿ³ uüÓLlW?¹û˹‚ñ|ƒ;÷+h0ï;œq¿Ïæ’~ÛQ_ž¸¿}[^Þùê½ÿ8–C-,u?/ŸÙYތ̙ŒàÏìf~^õêå\Ì:jÿO‘~ôΰ+À±‡ÄkVö–GÛG&W‡}n±udSz¡kÆÃk—?b•n—2·E€†r}¸Úgd²ôSÂb,fÃñ…GÐGv©áLÎ7xo€|1ø;ù§b-d×ÿ„ !]VCafÖ•fØõABvw3‹•2ŸçP&uÛ[àÅ÷s€Cta†UUø8žñ`Q—f*–2â{XS{¶ço3–A‘ÆN:öWUUV¨U gS\¶"v(ÃvO8r}°Á‡\U}X±˜*$G€'o€h‚eˆ "(€‡5…б~SK£óH8R`)ó|ôgt¤C*`jâ"i\æd~8‰²Óˆ@W XGNÐ(0ƒæZ †=HLlgsè‹ë6ˆœè…SHrHò1?ÇÈ]ɘ‚¨’‡ëöW0Cá§q‹ˆR(RÇ•h¢Õ%ÿår³sza€tõfmÒ!JØ=d%Nõ–~ŠŒ[V½ˆYXXtó‡¢Ò…iVS†fchH‡ÌEU‡…~öS—q}a%M#…·Õ‡ƒó‡7è[1Œ¨WˆóÈaˆØ$§´—!~üÄŒ$û†$÷ØEŽ…Y;ç†7²‰“˜$bö}ìgt›ô?'sTw‘ÃqŽ­‹ØYÉ@zˆ®…IFz0™qT©N¯XrÅøƒƒw —‘e‡”¿¶"¬#e‘Ø({WMiG[ùO؃b¯Ñv7„”åR\Inuydo¥ŠÄÅ\VÙ‹aé‡íVg±˜ô‹ƒ3ÿ©T9)@çaà'™@åé(Q   P]˜ñ•çg™:ô‘Û’N™\ÝÇ“C§ˆ)ˆÑç—6³~¡xD&ÉsðW”åqYoø‰ö‡XiTäsvAã‚¿•›Šq”E ²øš¹‡^ -ö|‹štœ}Qšñ§•+¸g¸¶•‰9sŸ‰ƒIç·V&h˜x*XSð8^gµèYꙜ¸•qîHñ!x¨©›âÉž×™ƒ¹S’Äz†É{멘IŘgÈŸÇš¬W“¤S™_iW°G(PVP¡ÊçŸ9šáù¡ “¬vš$igšˆãšß©qª~2¢z¤c›“ÿ›€)ž¨“ ˜¢:W:av6H(áy±yZX tÌ û4SÖÄoÙ  iš/i¢1¢Y‰¤l©ŒèçdFj3|èl¹"„Œ-Ùu9„a©Ø(Ķ+™ŒõÙœXƒŸÝ3œÏ$y¸£h*ž‘é{Êc·$Tn„ ©  ZQº†g›5)7Î1¡¡I'Ø¢)p@^ ;¢v”©r¥@·Ø‡¢W¨¢+Š’Y:~’˜§•x‰«™3÷p“Ç™£;Z«:Q¢)%½vƒ¯“§§„¨¤§Ú<€-[Á8yçžx§þd©j½j¥¦:UŸšu$ˆwÔ¬êgÁÉŽvù”Tÿ#”Ü4wñ« )sŠ˜#µHÙêu{úa‚Ù§¨D¸¬dX¨†Ú˜ˆšc¾·¨"ö¨_ 0°ÜÄ®†‚©!š°N†ÒºHÔjzªI£}9-jZlV¥³I››p®:¦¹›ú®;ö“01{×Aû#å ’Áºk1S7y÷z´5†ˆÚ€„–ÐÚ© ±{%?ñžÐ šP¥67‡ý¹‚uZœèƒI,Ëï®.ŠC*+…yZ1³Ê›² ‡ððªö¹*H²˜øê2Ž…ª;¶£ÿš‘O+pkž   št}ѳû³"‡¢–¶˜X7[rÆÙ¡29²~Ú£”ÿñµÊ²[»“‰›U6b:a{&)sgµ®(’Så²’O ˜w–¶P_¸¹ßŠ£J´p·Óê°¤7‹±©ûÉ*wš´&1;— )µ­ÛE™ûœX›¶Ž;£ãµ¨Épì1¶dË2fKˆ|ê~S£ed·_黹©Þ”½÷±º{½àª_v¸Ä+¸SJ…›µ §ˆ>z£°Úg#ë›ò“œWy¼‡µñ×¹\§‡9 ž¦•¿k™ºÝËN{Ûh]©œ„ ­€¡¦qu.Ûz¦PX¥û[­01µÇ9Àb)¼Vدjk  :¨X±¼Ì»Îˉl¯Ê£ÊÁ¶Û+·€Y½}ÿ8Ã}hÀ†À©&±ùø†–ÈS嫳¬8'ª«6º¸8Ù¸-Œ¸Þ×m¡©´ü½ùÓ¿+x0óSY{µU*Ī6Å ˜Ã¦À§{¾ Ü<ú9”xéœÑÅaÁSÕe_|©U*¥îú‰ÄËÂâ òÇÛšA%l¹ ™¾\¼:óÂ0ÜÆl ïÓȰq䯩¹Ä~K¼šu@…‹Ü8*<¼~›Ç•ѾH«M\’>jK¯æ¬UIÇ»›§Ë)ÇW¬¥€ˆ°­ÌÉžËY–Ëc2Ư À2ÜLº§–¹H¤¿|œo tŒ”·l̽" X;ÇÇ}l»È̘€ÍÛÌÍÝÿìÍSt¯ß\á,δAÎå HPθQ°ÎãüÎñÌ ÎòlÏð|Ïù¬ÏÿJ Ïpù|Îå,EÏK0ÐâœÐÞ °Ï`ñ\ ÍÐFðÎÝÍPÏñLÍÍ ù, ½ ô|ϽÏ÷Œ]’Ò-íÒÞ<]²ïÓw1ÓïŒÐw1òÜ%Ï…¶Î5 7ýÒ }PÔÝœ]BIíÔdÛ%mÏ@ÏEÐ%}ÑwÒå<ÑwqÏ]¢Í8MÕò¼Ô,Î]’ò|=-ÎmÓS}Ôñ|` ×^­ÖfÝÍlýÓ2ýÔmh} Øí2`hRýÍ„ÿ]h†ýÍ]=ÖßlսΆFÒ)ÙŠ-ØùØ}Ù¶‡†¶Õ› Ú¼áÖšýÍkmhiMІæÓ匒­Ð†ÖÔëlÚ¤ÍÍŒ×ëÜÙmÔ…†Ô‘íÚÝŒØQýÎFðÛ¯]hŸ-ÎBÝ%íÛ…֜ٷý͕ڌ)ÙwÛÕ­Ý.}Ýv×ÝmÜÅ ÜÝMÔÜ<Û†¶Ó~}ÝÛcÁmhåÍÞ/ÓÝ“ß-=ßÍ-Ù½½ÛâÝÍs}ÝXÈ÷ÞºýÝ×Ñg}Ýî¼ÍçMà.Ù¨àà-Îþ-ÙMàÍ­-á‡ÝÝ«½ß n¨î]hðÍ àõMEE€â(^Ð)ÎÜ&îâ?ýÕÿÿ,Ð3ã/þoômã¶ã9nßMã?Ù>ãB~ÑD®ÐF^ä2ä ½äÝRÞ˜\ÎT^¾ÙX^åZžäe>äSÒb~†HÎäJÎÓlnæmŽæ`þåtnçY>çgþæzŽÎwÞ2j^߀îçç}îæA~è5žèG¾èy]è[ÞèˆÎèy>èº!è•Îå—^‘>é{瘎Ϡꢞæédîèœ~ê¨þѦN語ꬾêrîé¤>ê¶Žë:ÎçŠ^ë¼nè¹®éÚì¹>å®ë»>ë½þéÊžì¾N딾ìÑþëÍ>í¸>ìÄÎÞ×ΰÿ~ìÎN혮íaŽí²þíåÞéÕÎìèžîݾîØîOŽìÒ~îì.éÀ>îØþîeËí­ïôêùØï2fìüNî¯~ðÛ,ðòÝîóîïõ.ïñoðÿÔoéû®ð ϼŸñöŽñ_ñßï&í$_ò& ò'¬òó+ßñêNóÿ>ò¶Þò0ÃñîîñPï"ó?ñCÿò_ð3¿ó>Ÿôc¾ôJßó/óPÏÞŠ@õUoõWõWYÏõ]ïõ_öa/öcOöeoögö`¿õiÏöV¿öm÷ŠðöqŸösO÷go÷w/öy¯÷}ï÷YÏ÷/øzøƒÿoø‡øU_ø‰¯õŒÿõ‹ïøTù‡?ùŽ_ùˆùŒŸù¿ù”ùnÿù^ßùœú]?ú‚úpŸú}¿ú€/Ïtßú¥/û³ÿùb0·û€û·¡ûwÿûqüªOûÃOû„üɯøÊÏüÌoüÄŸüÏßöÒ_öÔ_÷ÊoýbŸ»Ÿû»ß‡ßܯû»Ÿ‰øhÀý#0þ·/–ßüÙOöðoöòÿ¥Oÿ\þ»¿þ·oþuÿúg‹D X`€D‹)bØÐáCˆ%N¤XÑâEŒ5näÈAƒ u$é@I”O¦d©heK”/an”9ÓæM‹5qîä©“çÿO A'ú*‘hQ“H/-ÊT)C§H£þL¸dÁE{\%¸`‘ÒD†p€æéT©Oª¥ˆV¨[›pmê AaÌyõîåÛ×ï_ÀÿJ. rUDB¶‰/îh$……‰åþœ¼³2ÎË033¦ÌÙsÃÍŸEÇZsiƦgªfɺd"WG"5tõÆ]°Š(€4Y©ëÖž§^²øÒÅl®æ@Œ7ðsèÐSÖ.dôuìjM`M-ú8Çï4»g_ž|ÛóéߢÎ^±yñí=Ÿ)(Á·ÒÑÜW»•` ÉÜ+OÀñÔ‚¯¢Eò#¯Z‹îA÷jIáO= 3Ì(1˜ÿmÀÏDN¾÷4üÍÄõPTÑ8Kô®@ad,ÇK$-¢ÎÅcä,ÇœäìàˆðÈèVTrIõYÀ† +Ê,‘ Š2¾{‘¤öíI™¼ H1 lQ£D(  ¸×l0à´’”;#L-³<óÄ…¬sKùÄÓNÍ0ˆ"‰%džaÅ!Vžyf†9FÒWzÅd"QdV‘t‘¯}´¡Ic±††bÁ'œE2•˜WúIÕÑVUeuVE!Z¤L¿²µÕWži&R)eHTHËLO9‚ÞÔ(³ 7’ÈjO¶2#’ ®|꣮ªUvµqËM*ÏŽÿ +éäÈIýØì‡‚ ìÈZôú”ÑLtùÅVO}þs_ç5X/ˆ^ñÇ·~byfw"fÇT8M–¡D¬a§A†"éÔãIšé'b’'±˜¡cæahžc 'œ†bégkú™'w`V„e†j¾ÙqZEœ~ú±æ«yQäxJÅŸŠ;e™‘I¦Ø\Ñ¡ $³0šÌÂu ã{ÿØß¬2h·5ˆ o×Â:¦¹ËÅ÷ÚwøjÚ¸ñæˆYƒn Ž$ ×î[¥;Ñ8­~ÏJ|`@#‡œÇ–Œ<øò„g^åMŠä•W@­h’XZmè¾ÏCG0–‹Ž…ØHc }‘Wˆ¥ÿRÚg¯½!P_a÷W’ýœ²J]ôº9c€,æFÔHo®8Üo‚³­ž"À¯*D1mÃ2ùïÁWòn¹7ŠöªÄåh뫘¾üŒ¨ãªëŒÈG|ñ³o|r?ó§üz Øï\ºÜÁ ò>ñ%PL°1A XØàY ÒóFpÁ ƒÜ^ÙðÇ?J$g8ÁÁz ,4! HA¯)ðY2ßã$’B…5Ð5„>Ð…DàC䂆 fpƒd˜áþü÷?Å0€6l Å'Þ«€¤a½ð ®rf³^ÿÂxÌ_4‘è.õÑmŒbôá¯ÿHÆ;J.„e”¢þìh»ÙÏ-ôž%hA zÐh"iŸh9 ÚPAõ¢U'Bï9Q‹fôœ•¨=JÑF”£E(F‡9Ò¢ô¢*¨IÉÙRÿÆT¦3¥)Aß¹Pc’Ô¦+ ©AëéÒšâ3¨CÍ©O=z°Ž‚©5êNYÊM *Ô›QM(L›êÔlRõAZ%jW½úÕiÞ´§KÅ*O§zÔ«J¬»äêZÏšÖbŽU¤Jeê\ujU¸fõ©aÝ+TûšR¿–Õ­ƒ%lañ !œÒœm}cÃ)×ÃVÕ°ìZÛX´Æ•¬™µ«ZïjÖÏ6´|Í«h»XÀF¶²«emk7‹XÊz´¨¥íkG [×Ê6·^½l:c‹[ÛÖU¸’=mjoKÚã²ó¯Øì­6K«Üâ®u Ó¥nu­{]ìfW»Ûånw½û]ð†W¼ã%oyÍ{^ëÿ`¼ê=/{Ñ»÷¾·½ò}o|é^û’7¿÷-ï~¿ë_þXÀÔð€ |`o·À ¾î‚½ëàîB˜»Žp}ÍKacøÀN0‡ùëaƒØÂ þ/‰'lâ£øÄ*ž®ˆ?üá{²XÆ3¦qgÌa÷¼`0C{ ÷˜Æ9¦/‘ç‹^#¿¸¿6frz›üd(·8ÊD¦òˆ­|a,C9ÉH޲Žk¼å+«Ì\fò˜Üd3§Í0g—ù+ 6¸YÎs.±xs b/_~ršÁ[å.‹ØÏtV0¡ àA¯7Ìú]ô’ÉÌh-÷9Ð6N´‡<å5GZÒ2®t‹cëvBÿò‡8ü‹é£Û0õ'ÖÀ`c¨¦n5ö!k|b ÎXõ:úщéúcÃî‡3‚=ìm{ ªfµ?\½[ãÚ"s, á]óz¾ö„ŽdûÐãf1ŽM^\Å ”Þô¥ÏÝnE“;Ãò¦w£Ý}æ,ã[ßæw¦ËkšÓ˜þ·À ^nx×ÔÕí„?1ÝkKbú nºíHX—ò î(\ |P·áÁÎø\Áqo—ü䟠øt-¾c | _ñPßAÒ/ùƒÞÓ§§ýêgoùÆ£žÄ°/tîqÿx݇ýë¿ï¯æ±Ë ·kW´ïòUÿ|9¾öo÷ð²nÄï>û¾?<ô-wûpç½v-ûÔ£òßþåÅ>ü¼kòÀ?üÍÞ~ü×ë .,’?]Dp|؆ér>ê @|À†ê‚aë„8+@T†y .ÿIà9X¶‰ë tx@ïû@ù’¾«{=ñ2ƒ«‚4?Å›·w«¿õÁÞ{» ˆ»òË®ó›¾îÛ¾ôÛA¼¿÷£?âë° ´?Ó;B÷ÂõÒ¿5P‡bs»BÀ}p‡yÀ†~p…5| C B+ÄB-t9(„à¿-ÄcXÿÇ}‡‡ƒµF˜®Oè|è}(9Üü=Û›: £®5PAöã¾?¬¼CäC|; ‹ ¿"\ÄìÁ>¬Dó›D!TB"œ?Ä¿NÅO>NÌ¿6cDTü@ÄDz“°4(²õÛ0ÜD¿KEìºÁ÷ C2ÄÿVÔÄ[ÔÁ`œÅLD[4B$$ŤEOBQ Ee¤¼â;E\¬ÆÍ[Ec :A+=iÆeÌDkt2ÇglÄÌF?DGs,Ç¡ÆQ,ÅÓÅûÆ$„ǨcG»([ÚG~ìGüG€ HH‚,Hƒ=Ó-ÍÔJÕOOýÑPíÑQýO2=Õ€‹½Ó›ÅÔB¥OFð‡2ˆOwýƒGÀùü‚CÕV4¨O4ð‡Fà‡ø,W­•OxˆVÿw…Wˆ}XFè‡?øÖj ‚/ð‡­O¹OO([«Ï§¥‚2˜ÛFðN ‚²-YÂ%ÕÿüYP˜-Ü%YL5Ö—]Ú˜e\MÙÊ¥\ ÍÙÅeUÇÜ–å\ÈR0˜S)µÜÌýQÄU)õU(ÝÕØ°Q\)-ƒxž=Ýc•U¦UV§ÛÍ]Ì^âM]ÿ„ÚÍ-^.ý\Ï5Üç ]ÐeÞè^ÔEQÍí\íuÞå5ÕîUÚ)ÅXF½^0ÍÞE^åÒ%*µ¾\Ò) ÓUÉEÓ¦¥^üÍßÝ…^ýmÞéÝ^þýÞýýßþõÞ}áMÚü%_'`AuYÿæÞZ-Px\øõ_Þßú-`Êeàúôàù¼^fÒ½ßû<„~ÈÏwðÖ]a~áŠEÝÖRž` ®áž\&àüV‚x_Æß&áæaµà">b•‚xêÍá ¾á(ÞaÂb Ö])ÆÙöÝùL†mOOHaù,N‡·\æÛ2¾†ùìÚjh. ÛhxÏ?ð}m*x}8„C`NÀc*d!ÍbêõØG…b#6d%&äöO‰Ø`âµbT}âFNb–`ÿüØMVd,ÖbJvdGµäùeúÝbo²ÏaxB}P°UØu•iè‡ÀÕÿ|(Zn†í‡LˆÏ)øxè‡bî†øÜ†]¦‚0–}€‡¨Û=îyà|h[SÎf¦áFd$`–^ÖæÆõO£%Ú).^TÆäGçEÖQwÞOµ öçµâ+VeF&çTNgp6ÙRÎPæg‚~aæ`ofY}Îä Þä‚>PÿôáBÖQbó}gPUhNvèqöO&6¤Øè…^eRnè‡6é’g€Fé1è“~iuÞçJÞfxNi‘þg~é/]ç¾è޾év¦éûLèPfhœ®h™&i˜f餾ç£Vju饞ê*nêjã}êœöç >éöiëë­þiÿŒ®i¬.ßo¶ç•îg¨Viª¶êµæêËeêuN»^ÍÞÒNÊôÍïä%ïTÏ£´Í¾vOÞBNfÚëÍ„M×äëñ¼Ë÷l¿6ì»Fìë$ÌâdÏÉÎlÍv®ÇÆÍÅvlå ÏÓí̧î¼ÍåÏÁlÑæìÆþì¢lOËLÈÞìÕv§Ñä§Ú¶mÞNͼ^­é¤ìô¼íá&m4mÉŽ©ÓÞN×&î˜lmè¤NØíÝ–§äîmìÄìÙ.níÆnïfÎß>Kç~îíNlâdì°Dîܦ©å†nÖ~mãFoùþÍé¾ìó¶ïîþn÷ÆíênüÖo/ÌðFíø6oÚïÈVl±TïþΨÿöFðøkîýŽnã¬ì¿ðÏîòí Ïï ñœpâð OK×mOï'É¿î·dîÖîïçp ïpî–mÇñÎæq¿Lí J"/r#?r$Or%_r&or'r(r)Ÿr*¯r+¿r,?rÈò*ßr.ÿr0÷ò.ós2—r3·ò4?s5¿ò5gs8s"ó(§s9or;¿s9Ïs=Or>ò?wò@Çó0çòA÷óBÏòC×óEïó2wt&otF‡tJ¯ô8—ô;ÇôK·ô"×t6÷t?¿'NuR/uS'uPoóSÿt7'óTWtC_u$÷ôW—õDWuÿ[¯õ\·õ9uXÿu_ÇrZ¿õV—u]'öQ?ö`çufçteöUv(—ö1wuQovlÏvmGõdßv(×€B €)÷t0$pô($¨vf?tpEoó($ rjÇõxOò (¤àô0$|r(¤`÷)ÿw²€s·w)GܫȀb—r($¨t„ç qçôwHVÐKŸw²H€|/ù)Ow²X÷J÷s·tšå ˆó¿ŠŒ§t7ök7r„ÀQƒ"'„p? ò3 …M #÷RÀ„(ò0PØ"gLÀL(r¬×z%ŸúªúÿR"÷ƒ.(r1ðƒ`"'z£O¤_z±'{³{pRƒ±Ç…»O°·ú·û²?{{H¾7ù’¿÷HWü%/÷«(øqÏò—/ˆŠ§ô}¿ xc—rÈ Éwü/¿xœ7øhý#ÿ|ƒ}N¿y’çüo犀ý(¿ùz§ý%yXxÜgr–øQ·ýRWý‚`ý>ø« uÒ/ˆ˜G}ç?ò‰×|Rwx‚¸|NþÝ×sâ'ˆÛ·tä‰/‡I$'0r}ð rP0‡"§ ] †#Ç„~àüÇè‚eØ}À€H‘¢Ë2}ûp Lˆ‰Ÿ6n¹ÿÑHᯋ@Bíââ–BÞ 1üEôÇ#©n i€”¸¥âE‰S˜Ó„‘Ú‡C¾´(ð£„> *t(Ñ¢F"M €Ò¦C™:*5iVtˆ ujŠW8àÅ×\·ŠM›-ÒªW³ª+i€¯SÙÎuŠ7/_ ¾zè›TÁ× g§’½à0WÂW50VÚá+´{‘øŠB°Q·V!s>êkè ¾&(]´îÕͪ_Þ›ØªÙØ@½^5lÛ§‡²°GÃÝâôUqüK®|9óæÎŸCÿÔ¿~X áGÌÏ€ÂøÔN»@2€^–?/”…Ÿñqµs+ÿžüPöA„ã}9ôþüS3°˜Tý%Õá÷Wb(\ƒA( &DXjwQèÓƒåµQHœkrU•q‘MEœeRÕ¥ƒ\yUÙ„*rሻµ˜¡…ò蟂NÀùeVlRˆBŽÇEפ“Oö¥”Sf¸á\VR)YY  ”XÎåb~búç%‡½ñH&—GT›}½)XœWf¨&~ ¹¦ž{òÙ§ŸšrOZ¨r凜úüÄB¢B©Ps’(©Zp¢¥bÍö%~™‘&\§‚Šà„°à„‰I¸)¥½z\±®8á_¡æç˜›òÚ«¯¿ÿËá †Û$PdøÃ@)Ås†@Ë$“‚ þH#ÐG½CƳÑúá(mÒJ<ÈÐ"O €øóÂ@Ú¸¬¼¶ÑÚT½’ŽÖê¼D÷ج»x•ª±õû~[5p‚¾ù®’Æz/ŠJ< ³%œkVɸ¯ÇƒrÈÃ[rsBµc.ñƒ òD“‚£+yÒ -§ðrÌÈF›Â2ï8J úl"4椀‰>ÊÆ O "C­VÅlF Æ_µckJ±m¨: ¢j£·Ø ïvõU¦Æv«Ã C±°ÿz¦aï¤ÃBVÝ·ßžÉ&.]à‡[:µQŠÿóYðÞp¬äÞŠåé`Û“¯]šä˜Py_nOζjwOnäkj£w­uÏͺmd;,:g¸a¾+â·ãž»îƒ^²î¿ëÉ8QÂJ|ñž >¡ñI-Ï<ÍÃ&w•t+ߺëÀcŸ½ö#÷Þûöß_¯_îÐóI>Ræÿ„~úÏS>Ä«WϾû–O¾ý÷ãï'ïÝóß¿ÿÿ0€ Ÿ´¿þã€\`ÉÈÀÊ\Ž XA N0:|àØÁ 6°{$à1Bæ”P€) à OèÂÂ0†2œ! khÃâ0‡:Ü! AØB†ˆü¡ _HÄÞ±IT" —8Ã#ÿ:±pQD¢ §h2+QˆZÜ"»èÅ/‚1Œb##èÃ22üâC6 Žql¢(Â'ÖPŽ„ÒãñXÇ?2‚$! iÈC:‡ÍQ¤ÙÈ:r‘o¤#%«XG(ú1“n´$'éÉO‚2”¢%)KÉäœr‡©T%$7éÂU&2•,#&;iËWjÒ•¥Ü%/{éË_3˜ÿK%,qXLc¶—ºœä,™‰ÆZÆð˜(¼¥2£)Ìkb3›Ú  ºéÍo‚3œâ'9ËiÎs¢3ê\';ÛéÎwÂ3žà€<ÝIÏzâ3Ÿñ¼§>ûéOtòóŸï ¨@ËIЂ’óÿ 5§BjP‡ª³¡¨D#:ÑsVô¢ÞÌèD9ÚQ>¤")IKjÒ“¢4¥*]i7ÉÒ—Â4¦)õ¨?i*ÓšÞ”¤6½èNqjÒž"¨A]©PoZÔoµŸIõéI—šO§âª9*U«jÕ«b¦.Í*W»zU©®¬^EêX)ªÕŸ6•¨,ë>ËJ»ÒÙS¥lm+Jç×™–5¯zÝ+_ûZÖ­‚“åð¦üq‚nò"È/2ÐÍ ”ƒáü@%nA xó—¸Ä ºIYËbVŸ½¬8@‰tS¡¨Äa»I ô!‚ð+m™ªQ»z·¹=kIu Pµ¯eÿ%bàé[‹­Â­km›ëÜçB7ºÆ…á8uàÜB±ÞLìb%kNð‚ú¸…*Ál ½'¯xÉ«öŽW$0ì%ÛͶ×uí9¤ë_ŒŽô¸Xð€y«Ó´Êu­É+¨¬’º2wÁ^.‚ÿká c8ÃV,8«?Ö› 6§úƒo’@B@mjûÐYºXœ$84lãqxž7gŽ7làW8 ²^ãyö8¤DV®ƒ¼ã'C9ÊR¶'u§låª&¹¥SÎòT¹ÌP&O˜ÂMvòp£ºä“H̽=ó•Ûìæ7_˜Ãâ?ÊÙ¤SÚ…§ÿuÁ9ßÖ†3ä€s^¹ìe™Ñ?i¢O#a0“ùÉÖªŒRP©9Ì‘&4§;íi®Ê¶ûÕ@9ôQÚw±ÞM%2ðtAÕ †ìlßëk@•¸?R­Áj€×¾lŸ¹1 Ìþ¹üˆµ.of㵟þ*¥<é—^[Çk†4·»­é(7zk2)qìmF³yÚê^7»›ZåoZ·ò‡©ÁÔž«nµ½ñïB»Ýäu¬? J€ç@6¦¡e |±Ó°®c)Á|À°80ÌáÍrÈ»Ý95ô–­œm²n;åcÞtµK^ÒfÄ÷U,ÿým•Ÿ[ä:ß9Ï‘ünˆ–À¾À{Ží–Cùäéf9D}r¥?ýÊ^&.×d¾Ðï-8ßúÍîõ¯ƒÇ?;Ùµ R¥¯|Çhw4×oûè¶#ÜKï:º3÷²ã=ïëµÞÁNrk›|Ñggúàß~wIÏýðuO»âûîøÇ[{›’%1)M^~šÕõª_=ë[Å3úrôÔ´ææa?ûÚŸÞ”¹4=çwß{×?øÂ>ñcoûÐSö¤?>ósÿûÛ“Rô²¤=õy_üëc?ûÚß¾+o|Ë'óùâ·>î˯{è7?ýêÏ ò¹ïþÿ÷Ã?þÚô~/Ûï|ó3ð˜ýþƒ)ýϯßýŸü`àÆý!øaÞýyâûùŸïE Q "`jàr ä)à.Ù_ 鎟†Ò¢Ÿ® và Â` Ê !}àù}ßô šàѶ`V æß aáÚÐ`ŽUÐ(-!`Fá )á"Tá!À"ÀBPDaL,ሒæßZ€²aUÀA’ "áòaú¡íMLå¢(YÀ伡"íÍ>îMdL޼Ò!fÿÐîMDŸ&(BÐLÎBÐ:ŒøÐÞ,": &þa,Êâ,Òâ?„áU¨b^E)uáW€ /ÊÐ-Z¸"®â.fâU #Àb2c)‘âU@"%"0B#,ça#¡áUxâ ÍáU˜a-šã9¢# "A4:¢î’$¶¢)±c Yâ*Mã ¡¡ âã<º'>a4@XÞåY…@ä1…á3ºÐðc]a:BdDJäDR$1AEòÏEbä Y )ÁF‚dHŠäHr˜dÀJªdJ²äJº$KšdLÊäLÒ¤IòÄäKê$LÖdOú¤LÞ$æýäPÿeQš¤à¤QƤ)$åN:eKBåS®¤OJeTZeSZåS*¥R&åVz¥QvåWŠeOÖAXŽåYʤY¢%ZªåZz¥`eUÊeVÒ%J–åIÖ¥UÖä\îd\æåNº%´e`zå`¦RÞäaþ¥^Â*@=ÔÃ=@¦dFædZfeb&ejæenffZf’dhŠ&v%_æåX&&^šæT¢ePæ‘W&Z"åW2¥jÒ%8€@m®æbö&J ¦oB%oçW¦båqæ$]æ]"§X*çOÆæV¢dtR%s%\ço çK:'w‚çpâdx¦u>'MšçujeQ¦æYšÿf8(ÉÄgc>&dâg~êç~ògúg~‚æh è€v`ivçbne{†'p¢¦ì¥'MNçVΦWÖæp>@h€h†f@,ç‚hUŽçˆ"èV>èyšdŠF¨X:§Šre`¶èP¦hO®§Oj§‰ŠèJ~§ŽúèT–¨ˆ²%Œ¢èaVåO¶§[jåÜŠXA$€I:f=ØÃZé•þ'eÖC€h—z©üèŽ2&’†éò$b:¨ŒŽ)QNèVV(ƒš¤Ô'Êœš©˜¾dpâ)vÒ(‘ÆèXÎhQ¾¨Ÿö©bêLÖèPÞ¨Læèžöf:ªpêég‘jržÿç‘Îd’ép"e <¼ €”Þgg¢*gªªg²ª–è—Âj¬Šf™F*kÒ¤‚Rjž¥k6rjL¶©R¾iJVA]«Uëv檙Nj­®)¢^*¦*é³þä FkM&ªQj¶å6ê²>ª_:«V)¸ži¡zåx¼Ayú©¦rês2¨ @½Àì¦}bé¾ò+~j)—ÊjÀ ,ëѪ¹F(®Ž+™ ¥Šj°å°Ê$“ÀÁ@}&,y–kÆVêŠ^ëOr«RëLZëǦå¥FhÈ*%`~+Çî$¤,‚nlÌÂ)¶ŠåDbª,uÒe¼>çdÀ¨ÿ€8X©öëÒö+ÀìÓB-6¬Ë²$ÂÒlǯ>ÊŽ©Ãå°ÂioÀ'a¬ÀLªä8A4ÀѲ-¾Ê$ÇÎ,Õ©ÉöäΪ'ÖšdÉÒmp~l_šìT¶ìÕ>%ÌÊ-LÆ­àÚìX¢@¸+ݾ¤Ï*f±Æ¤0îLNi«®jªbîæúë–Fíç‚.N-⮤ÕnÖ¦ißzj‚mL®€¾Á€èÛÊ$ (@Üîí’.TîéÚ­[þ®¢Ž©ÞÒmð~åJïWnáÚ¥¸îîÜ2oqªl»ïÞÒ.ä>g¤Å.§¾2í÷Z©Ó†îø’ï!.ÕšîóÚdêîÿ-pz-Q¶®LZÁ ¤€p/qš$žT“:©úV§ÿ2gòŽ¥ ïT¯É°qZ¯I./.7+#ïY¾nÄÊ.t.0P&pˆš$¼.¤†ÒV)ø~ogznù¢p àùînúR-ê.ìVBAmذ gõzåû%ÄjëpFAñ7€²FjG/pn°¥¶oÞrk<ÁL®À`ðXBA 4®õ6pá>°ïJðU®åüÖïý*p¯/a:ÈgO>°íÑ*mçn®æÒñeú§øªpë±±0ǺðîÂðkò,8Aç¼±Œ%ÿ$Ķ) 2´©®bÁ$O²ÿÀìrïª/ßšñåÿ$¼Á`ÁPò$°X¢äâfñÞn±úvñ&k2ÕN¯I>A§²£®âV®Q¶ñÞÄ1 “ðfâñó1çP#îsl ÷ªXZ20‹¥"û$#Ü+6có½š$õ²flMP1;+1'g°' jÈ®@¸ó;ç2lƤé¿ro²kh@XÁ\AÒ®ózqó®<›ä $À¨j`A`2g0ö%õRtOJ®I*@ÙBrRN©« s–þg1#óH“´‘333â:óÖŠe dDA}@Î~%5÷düRe¨GÁLÇd!sÿ/-qžªsQõP¾è{¥;¯@S7u<¥KôLGAÍußóš$ü…T$­²Æò Ïòî†,|Êç‡Ø)D/°Dÿ$+Ëdä«L^4(À#OèåÎqæò5fúç¿–t` ¶ÿtá¦t®t¡%<Á <=ï0ëú¥ÈÆN/ç4@Ä$€4À8«oY7óQ£ëª ¼3<ûä8À ðoÿVñY2¶cC6[›lV›&kÄ4Ð+={§@ËòPôX2©U8)”Bu[gk<²ë†5O¢­Ú¾ñ ÀnNé4Hûµ~Šô`{÷w+Qa«ïaG%Rª€œŽj©Šÿ÷Nj­bïLru¶ÚtMBl@LRZLMËd¨7zbrh ÷Üê²hûä 2µSkôLVDA4;Lrÿ0|g†„Ÿ¥y£7©¥mûft¯-ÛRw¾¾,p“õ€³$·b¸¨jøk×4œ·Šÿ·WºõV>Á8[5Ä·€sXëuv/­«v7x ùŠ2',y³&½Ú«Ûšíb¶w4¥+.ÃÁP/¬ë4K6^¥W$ˆFÀCÓd¨€ns/k±¹‚¶J¸OÚí¬@]$À‚rWª6k·v“ûädk¾”‹r÷raþ¤R+¥’À½ÎuOfµDéu6øŠ÷Xgÿ²‰ÿïY"º¢[ø¡×k¢3ùWÎxOÇ”?zð7íæön÷¶÷öuïµógù¬Óú"­7]JõnÃO§ùã9L¢ÀBßmU>ùye]ßõQÊw–ó$`EX[ÁiÀl3ô(S²)£²mn5S¶V¯9b·yÝêrY68ür„w¯\3h3»³û¦ÿ$²ãuŸo%L{O:A˜¿ÁLc¼õrk°Ï¤\åOè;ºﻘƒ%aÞøÅ÷ä)úO¾$­S;£·Î3®®£¤¼Ó.`Rº€ôed€£?ºj?z·Ú3ô ´ý®š%õÞrQz°‡ðÁÈw;±çü<—þi»I‹¥ö¦ÃR·ì;ô{X£¤ws4u$>ƒ&¸São7 ÿÝ{»ÃOýÞî,)'>Q’»»¯»»ß÷PZÁp¨€gþ„Ã4·W¯OVð<_pMv7?£ ô“vúù×ÿ«<ã=‰WúÞŸ¸Aÿ¤ëÓ¶R†?»Ž‚v%B*ã6ô©otD†'P„saB… £ŒP"Ä{)Ö›hQ¢: Cê-p€cÅŠ#FðeJ•+Y¶tùfL™3iÖ´ygN;yöôùhP¡C‰5ziR¥K™¶€0œ¨S¥V¥zÐI‡„T¹ZõJ•ÏÓƒ]ÉV…“œ'Z¯$x³õk\8a›Î»¯Â()òöíkånT8o XƒeÅÛ±pL‰½ ÇŠh‹Bªo¬°òùóâÇ ±P,:nY8O˶NýÚõÕ»~i×¶=ÛvÂ&€’;a»ÿ+Ü"| JßÝp¢¤…C ð„¸k fÎWz_ê ­¨èà$3m++R€¯­Ç±×„O>ø@x¨ïÔ·?»+á¨cÃöïzµÿ쯿írSm¯ì n¼òäËn®»¢h€Â Ь*'°Mµ±z¨¤E Qêg,‘$[<©®eœ‘Æm¼ÇuÜ‘Ç}”1°ÍZȉ+æ#0Â#4î (ÌãÏ¿y\°¯°KÈ <0… ¸2¯ÆPËË:¯ª øî«.ÁÞÀ‹+ª¸â4%‘ É<…”mË>ý¢²¯8°¨â­*4Ðà‰>÷K¨;T0ÒO·´r¡ÿ,û¤2­š;º¼ …ŠäÎKO5(:ÐàT ˆŽ?ÀTpÂ74 Î®ÕS0 íÜó ÖxÅU@@ó‚ïÂ7 À”Nؾ> 5Ò°‚“ZøD2¡7ɬjЃ°ð ƒD[ÄGqœYdYw ’8#xaü‘Þzí½ß|õÝ—ß~ýÕ)È;Ïâ­­ƒ`JÕ¤MX.…¬h €ví®›U(Ja€>»Ô·…¨Ó+( €TV9ƒ:Å#Õ¬åò­M!ñ䕾5a¾ó℮ૠ'"Â*@(¡á¸¢çàîJ!æœ[u¡(´pmUîAëo~“vÑ´¹M¥iغ٩7À54oGÝÈ܆'À%t ï»BAÈ&¡8À¸2KoºŽu©ÑB prîÛ®²o\Ò5 Ú¤Y_²¾ÖÅå‡Ì€åEqF˜(@áô§?!Lö2‚[³³Ê·vü„kãèZ»pÕhWÐ{ß«êýÛ)bò÷ÂKÿC@–0ŸNÚ§ú½ùô©_}ë_F>WÏ”hÄ&‡â¢Ö~M%^U½NHF§Úæ^÷¡Á6·”cM´k/dˆ}<‹œšùk¥3<¨¢ì²§ÆÇ>nÎØ!º "Èm®à"Pù/7„ƒÜãÜFL¢Ül® ÎjfÿhOîÚnl$ˆJ”ëB„oË ÃêBi!,ßÒ'70ŸÔ#ô\cîP€õZO¨/B(3ÖnÇôˆçæÍcZã*g'p>æÏ¶ð[f«Ô+w ¿ê¡ j ¹PÒ&­¤ûÆ ËÐ Ï%Æo“%4 *÷N=Z íúÆÐÿîDý²¯‚Þ7vIeàÆ šäoŸøŽoÞÀ :¼L¢º‰N¼ÝŒ-— ¼Ò­q„$ŒªmÙP rüD¬æc" Û $ži  B¶D8ΤïàïòN÷J-˜þæâˆÆO~BN‡@ïªâLB 0HQßî –Ã•î R9&¢ñJÆLàô ÝÌ´ñb‡/1¢²¥  E»âÎohܦ¹s>ç.ª ·®6hÐë8ˆ ì-íùàåwtæøI ÑP ’ ÀÔ°+樎þ®çÊÑ,>m³<±,òHú$·Öâ0z+Ãpƒ=ž%>6ç ÿ¨N-be0<‰å¨íh0–HÎg.ä:ê¸Gè&¥I‚ŠÍš ä :€'Å«'ïèÇŒƒáL΃iÂ-"•ä,¢fB‚¼î,-0²-f//¨¤ƒF!VÀ©'Q¶”q0ˆDÿ2*†oWªõè'Û(‹Íœ`·†x&ÛBÐζ„+‘É+‘Ì1®2+jô¦¢ÔLM¨°Økx`nxÆšÀ†@ŠÔÁ§ð‹$Ò ;Ó3?4›!±%ZJp4ŽFS݈ðÈx…"c±ÀÌ ¨2/Vriˆ5ÝÊh |Ó>~³O¨1T`Œ9›I)ÿQRž¢ÐÀQH‚OêpæiÉÇ*ÎÉ ÉïÂ.ãbXó´Ê¤óä‘… /—ÂŒñ"؈M> Æè T%,!¯ýÐQ?ïÑ9£è!ÎDÞ ŒI1²ˆqT+N”µj@ Ž6íé.ÙÃ>ñ3écþ©úó4/€ž,肦2ÃøŒ ædAV ¾P$834g”FkÔFÁÊ!©"e/C…„0 ‚<  B4ýd6ûäKöPÚ‰‰NÈË+4ò8(!’4‡–FtØÉ´PC´H‹t¶Ô+PŸÔ@4G×BºeiÀeãnK ÀÞB¼í(ÿc/®FÃJ!T–øsó((Oß)47 Cñ @i sðh %ß`(=pAï³ñîcÞÂ.è@³Ã ÄO.r·PÓ±üäP%fi˜®!s&»üBëQ0LÅÂ:€jLn‡§,TĂՈ ‘þñ\ŒôF“UY—•YwB5ÍbçZ35å/€U‡¬”^³."ÈT3rB<­G\ÂÖ8H%P—‘?Að jìÆÞµa²ìèmÄÔ*Jí„~8+ƒV? BœÀg!lç+t]¿3!ÊÓȆ‰ßà€+=è¼¼ÂIj°: f›ätðâL†KÚ®ÿå•^ý¢Qs*üêq0šî3 -õÃ@ +ØúõáØliT€¡@äCAٓĘc6—SPßéLXj^2÷æN%„{ìÍ‚ -W«ú© ‚*BB‚AxžY›Õk¿l™u4cHƒtH_uàì g´µ)b³I®n#­Š1Êö$ ÷°.²FƒÚ¬ òVª¥|³·P&«#%èNã[Ñ8ÞÀ¥ (»í)L,…V¨CÔV¢¼²zšlK¬€ Òµåªj·LJ³S&ß•*üÍ)ÑO0èjT«"@}‘!²OA}6„Z)È0!æZ]¬ðü„¥æJpâJü`Ñÿ<  y5`A¶]wtrNtD®"Сd¡ŠukÁ0 Ã|ÃW|“õYÂZ%hÔp°ítðL#¬k™Âm"f!Fk}âC &QC$¹ ýbi¯òf­&“H‰TÑ œ((NpEr½+A w›¤±‚8öíÎçîäȘÀê’Kî‚.x9»®OuÚ'óÞ/f)!ÈI¢+†VÀên"=)±L¨’*b7.C0–:§a¯C"ÍÂmºP` –˜ ¨•¥ã VbBu†§µKÙÉ ¤u?õt5V1 F—Àêá",àE‰G3Kâ}Ç×ߎinlÿ"€¯z4¢²1¹Ñ9R©•‚ýø.y=š×é¶C1œ@ï TN E‚óÞ‚µZëA®B:ë‰ Ý°¡ÌqpMŠ'*Ë:¦BwS5‚EBö }ºf~Ž…~^™pŽägäèw¤,—½±†òâºO‰PO‰Dæ lö“Ô“†ýã~·)uʤnãn劇‡/t·SEM¿%\$ª«¢„‚ˆ[×ÌO†™¡"q"ޤw! ðQÿGI~” ÌÖ nDPîäv5"~¡ `´x☟ûÙŸgîY£‚·rö0mñ0—„má÷Ô"‰¹tê7aÝU£¸ªBþæ.iPcÿŸ ËÄ ¶³;¯-È”‹8k»„ìCB¬&œ´Æ…MùM'xNuï„9E„W°ÍdÈ„¼Œ%ƒ÷ ‹C;´`•ƒ)ÿ-‚Q7Rnó"š·Ì5JIìvÆéZ ‚ý'‹˜“OmñŽÝ M9ŽÅ;ÿfkYž¿Ð\Š*"‚!ŸïKDþøŸï¯ózÆöLœä³Zô–q.Ì«ì)Xí¯77Hàæ,xn%ñ@¶©ˆ‚´¦+à”J •24U8:‘Dukéq·²@(ñT¸ß’zuƒª  \– ‡m¼¢¯¬ ÚnÛ¶ÝäVq³#ÈìµýÈ ”ø[óOdÿ/õ ~¢‚…Ç ˆÕ’Wö +tϲ­ªwZ©}ÉhKx €¿ñ|ÞʸÝÑ¡‹åX’ŦA¥ƒM–¯Þ£›xÊzݺ$Ðaóä*°õZ¿÷›¿ïeŽ›Ä(CËٜ˷—}˜ @z)ŽØ@‡mØ$z@ýS—  dóâ8¢I0§ -˜£s£4ÚǪq醿9Bß:À=¬Ày;ûäÄv}z8üÂÓ›§gõ‰¥#3Þf ¼·yMS˜6/&V:˜z,¯gȼŗŸc£ú*4Žã$J7Q\.J<*nÊKøµeA 1óLýô/sOrÞ‚¦  è.’›‹'z¸ÿ,:9¨Œ½WŒC¤~AŸ)­¿ûÜÏÿ<_æ1Þð¦î0˜£T™6Š.¿¡*;¢xŠe²c }ê'3ž`yç£\/‚y•—ydžJB,fá¢ÄŒR]Õ·Ù.å‘Ûq—¦±F¦Ÿ»µk» p;ב( ç’a2Å:YÅm¢x±:£Ši:!ª`‚_»‹É»o«ý˜)›ð×/¤|HL¦>~Ó‡*¼GmH(½ÆÜOdJè`.¹z\ÃúÈuüÍI†@ä¾8Ñ|*. >€ÈÁ1½—Ïà^à×Ï!m£”}-¹#„“qÙ˜ÉYˆÈj#*ÿÊÕ†=—0ûuš±Ã:Bz2*Ã0c!N݆-]-2}™(ˆûzO»s–Þ°²Bˆ ½/¼„Cvy¼ ¦M߀˜#Eœ‹Yȹ{š“­¡â8XÕ³ ãÏ ].¬ —TÆ"vXhRç±=*€)/›ôp7¡IUUÍWœ›_:nÄIvl=/Ò×,JiYõcÊâ’ÛºÎ%­ŒµÖw¦¶zÿ}à ßð?(Êw[Þ6ä¾,®À˜ÛÛf>) N‚l“8N .:$af‹ü»ñ‚Óg†nL‡D¾YRËÍ¢âÝ ã·;¼Ù;Ö÷ñi#ƒQ݇uŒœ§E¬Znë„ÊUÆÊÿÇó*-OÿHò~ç/µÎ²Ø“NïªÙùmŒÞÍÕä-ˆkÞƒL[é^õšÙ/¬`)¤üÝ̹ñ”NÉOïé®#Bˆ€þëß ñó_ÿ÷Ÿ&ž•XN dŽÁƒ&äà`8#Bœ(ÑáăQTX”Èq"à CŠI²¤É“%*\iQ!*YÊ„c%æCƒVTxPq…¢AS*;FIÑs¦Q„Ÿhç vœš°!Õ«Ä*1¦V£7¿V+v(Ù:1ShH˜ Ò‹C‹®äêÓ+XŸ _Ú»7aÅ­[Î…cv¥ž >é.¸Õà…OŒ¢mÿL7¬à‰3ß´ª¹3Õ·•'ö«×A”Vüz¾8šìÛ*ŒÅ2tÂÔà€ ¸Íj Š™7«8èamBTê)_Μù½æÊ‡‘5‹º¬çͱgg¥÷ïàËO¾¼ùóèÓ«_Ͼ½û÷ðãËŸO¿¾ýûøóëosõÍ(<E½A k1„YhTXhp|´Ÿw­…²T“E)8ÇÀqEe>a±‚$ÛJP7SÂ1`úל1ˆYXU˜áB®ôF¸Áá©E@‰gµ¶!ŠaÅ¡"‹.‚¦c‘ƒAác‰Q`TfV˜B‡•ÿÇ‘I.Ùä“ GœŒGM¦cGZúXQwöé#—, Åip¨@‰>òæ[iD–‚YñÄUDñ¢>¥aÂ@Iõ#ÈÕcO=ØiªË©3Ä,ÂŒ#ë8Ê©êܪõt7ᮼöêë¯À+ì°Äkì±Èº×ŸbIú„\P>ºìjQpÂ1¨jv&á°€ùƸã‚9%o:åC'^$§A |y.K§`orå•€½ö&…!ú‰Ÿz¢{Ôgá.zTÂ% $à˜#ˆ–Š*¬ñÆ(Lû.ñtÅ´Š1œ¹ä‚ÙWµ×f»íFJ1åT/†ÿØ_C\ñ·t…@-´c,ÙYðÑ;,0Ò™\¿Pó»àjŠºÆ¦An'‚ =­ JUÁèAX<±Âц ã*•Š+«pÇýöv«ªªk²xç­÷Þ|÷í÷߀.¸I$ï8¯A` 6×…ã‰S-Ší$‹ áÝÂ2̲AØô2‚çZÆ»ˆÁñ±IžPT¾dÚOT¬Ð»--šíXɚ¼ÄðMPì˯¿[\䙦o’#O»É›Ãѹmܺ6š' 9¤g7:–#Kiî<ÔĬ¥Td*d4îðïÿü])²¨š GÎO,»k R ÿ J„…ŽÕ#ÖâœË¸%:£¸mntÕ­"Ì î‚Ì 7ÈÁzðƒæi\f "@pHÒÑAÔïYAÜľ•9Ðeo{”Rè ¦v‰® ‘AÈ òE¶(iXâ¶ €mbžT¨4¦ê+úë]˜È»±ÑÎxÀ1]Í,ô¢’e{‘ÓZ34º†ÀÔ …ׯ©ÏfeúÐÿÂòE™ü%ÈCÈû¬hEE’~UÓª…Ê9¯3¿ë [dÇ ¥P,hÔž½Ç’±¤T©ªÕ­((Á¹…2W L¥*WÉÊVºò•°D‰‡…¥Y^Sˆäÿâ#Ëd „˲CZ"ć<´Ðb G6¨[3$"s·0-*,‹MÀ¹'E×Læ P@Sž2a6И5'‚N²ô%—' ÷è¹¢éf¼Éæ6£¸’èMO[Õ[É §i¹*44YTÒ¦2gRA]L8K× ï RÄö@蜲”rƒàª,Ë’šô¤(M©JWÂGR6mТ°‚T!mó%°ô÷™Å¸¦˜;ú >ò:i ƒZ¢jŒyȇ´©#dIB×ÉÓu¢@ÊÑ.Y‚…ÅaÁâRó§ÞY¦}XœÉLkzÓ™èŠÝ$ßPñGÌÿªÑ‘+TówPøéO£oÀÂKØÁd¬oôÐçlZ„$–Ÿãn™ç@5fjÜØo30wHÎö¶»ýí 6¹“Qnp•«ª ¼/1½]º#}é"†šËyiG.zêRߺLŠ®°wÛ7ªY¯*U*§'z&­¦ú‹~o‹’{º®ÿ:åBwñê½Yvœ÷Ê.R“²nk‡»ìgOûÚ³Rî}-}ÏïŒmåž^C|Grã›,9ñš?ìè·¸|88L…dü5›ÿï¨;™è¿<â ®?ß5ô¾£þAtÅž®!Q €3~æ³£ýØ·½üçOÿúïüsÇ=Tí.ñÓ$øAµ:) S©ÆcKEpÛ·hZGyÒ&ÏÇ;ÑÔ€K×|–Çy‘y˜€ç¦? iÜs€Ê'~äp¡~äz×q(öׂ.ø‚0ˆúGP#Ø^üWCâsŸ1b13N4“pF§yˆ€þ·€[÷€DV_â'®QÉç|Ö§€C˜ÿhúo Ao†Öy"8ƒtq$ŽÂ]pÂzf¦q¶B†±ƒh˜†j¸†$Á…ˆTƒ×Ç{»Â„}¦kV:Xe#Z•#È•…ÚÇy!H}tèMƒè‡»ã…¨NÈy¨y>÷„õ£;¿×iþ‡–³a:ã?Jeæ~¯÷~Ä‚l8ФXŠ#熇d‰'‡’ˆ_¡ƒ#ômÍ]axþ†~ˆî…ˆþ‡„öj¼HQxnˆ|ºØ4ÐÇ1æŠ_¡ŠŒf#ÂceÚSiì÷“|¹—~ ”Ę‚9˜„YA…y˜ˆY˜ž˜˜ŒÙ˜Žù˜™—‹ ™”Y™–˜Ù—¸™š©€y™A š¢9š¤Yš¦yÿš¨I”w¹š¬Ùšy“—©›c(›Æ›´™˜(x›º¹›‘É›¾ù›¾9™À9œÄYœ•)œ”‰œ¤y`®ÙœÎùœ­ø™©™™ÔÉ™{™ÕÙ™Ùi˜ÙÙÖùÚ žÇ¦*ÞžæYžè žéyžêÙž™+žÉžò¹žôéžõ9Ÿîù›÷¹Ÿ£ÄŸøùŸþ ö9 J ×Y j  úž ú Ê°) ÿiœ¥i7 ™Ê™¡j™’Ù¡ ꘺º¡!z¢(š¢¸ÙE¡.ú¢j›'Ú äPèè ˜{©P£Ëù62ª¢§Ä£>z¸B£²‰¤7š£*º¢ÜѤPŠÿ¢&¥sÓ°KJ¤õ€¤TÚ¥i'›Sª˜_Ú¢0Z¦fz—ëW˜Â´R0 ãÁðHp¹’Ê‘àqxZzj£ð ÊѰ¦mú¦õ`µ`£=§Á uʧyj§Ëa¨Êñ¦Dê¨tj§½êPÂ0ê€:¨Pž|™#º ëÙ™*§z†úPƦ¨Wõ ð ÏaF ©~Ê©ž ª¢Zà«õ¬–꦳¨‹z£ä਱*¬I@©ºª*JªJ7Úú­¬®ÙÊ™¨i†ã7<ª«¤*¨õ@¨[Z¬¡ª¿M0¨ šZ‘ ÿ}z­ïú©ñº®¦zJð¬<ŠZª¨Û®«Þ*®àz®›™» Ë ŸH¦gº± ‘J ä½°« ¤ú¬õ€D+mj {ʲÊQ {Jª² Epã #«%›¨Ïº¤'ûÒáqm*³Ì²½p<+ Dz²Ñ±²³ ŸŠÐ T[³õp³¤]Ú´€²Ò§‚Š`«Ía˦÷` Rk£ «0[Fµ9Jµ¶À¶Sû¶H«´=‹¶ŒŠA[C·Fë¥ØŸ‡k¸T:±´É£ã ´€µZ+ ÷j£U;¯Áº¬¶ê´‚K޳{µS[µWkÿ³/Ë»«8ª¥0 Kk³”ʦŠ;»Š{vÌÙ±¸›»IɵÓiYaZ¢ÛÁ»'š›Ð1 °´»¼ǼÎ;šÚ˜Ñ{‚¿pÏ{½´I¼Ðû˜¶ ¤ºû½àûi:˜ÓK® ù¥ý)ô»Ø)ž@*±Ûª4”íË—èÛ~h·¾Ò¿ü› ÜŸŒ ¿À囜øë¿ç›Y‰«À Œ¾ÛÀýKÀ<ÁæY¿+®¡ÉÀ¾ÜÁ³÷±òI˜Ú›¾"Œ™‹˜¶"¼]úQìë~ìkÂØK” ê­Æ‰YæŠÂä›À4Üúٽ¥´Á<ÄD\rÜk¾'Á ¼˜#¼ÃFªÿ½Ï¡Â ÚÄk¤õ[Å(X†z‰½×)Å>üÅ$ZÂÌÀS*`/Œl_Ü¡alšÈ ÄŒJEÇr,{ã«£ÌÄ|Ç­·¿vlÇÝ:À\ÀCÙÆî›‚—)Á€lÅ, ÀÜȉŒÈ*¦!Ll“ézTLžÚˆ¼ÉŽ,¿0À…<ÃJ|»s\ʦ|ʨœÊª¼Ê¬ÜÊ®üʰ˲<Ë´\˶|˸œËº¼Ë¼Ü˾üËÀÌÂ<ÌÄ\ÌÆ|ÌÈœÌʼÌÌÜ‚C5ÍÍÒ<ÍÔ\ÍÐir™ÍÚ¼ÍÜÜÍÞüÍàÎâ<Îä\Îæ|ÎèœÎê¼ÎælÍî¬AHpPóÎô\Ïö|ÏøœÿÏúÜ‚` !"Q q7D0Ð"q I€Ý ÑðýϽÏ}ÑÑa!Ð a ýý0ÐHH ÐÿÐ 1EÐ Ñ#]Ò" ½Ñ8Ó:½Ó<ý,ÝÓ@ÝšH §IðÑ-]Ó}Ò&qHÔK½Ò%AÕVýC Ô!Õ!áÔ"±ÕK=ÔðÒ!*­Õ\MbýÏYý^}ÒNIàÔm hýK C€Ò&q×!±H`þütm×kmÔi­ÖS]ÕíØÿàÔdmÖpýÖA}Ù˜Ùš½J4½g½Ò!QÐ,Ýÿ}]Ý ýÓíÙÿ@Ù#ÁÚ Ú áÙ§Ú(íÏwãÙ4ý±íÑžÛ#¡Ú¼ÜÍнÛÀíÛpÝÑ QÀ Ý!ñÜ»-ÜÊ-Ñ­× aÖ¬ýÒÇÚ5­×±½Ùä]Þæ}ÞèÞê½ÞìÝÞîýÞðßò=ßô]ßö}ßøßú½ßüÝßþýßà>à^à~àžà ¾à Þàþàá>á^á~ážá¾áÞáþá â">â$^â&~â(žâ*¾â,Þâ.þâ0ã2>ã4^ã6~ã8žã:¾ã<Þã>þã@äB>äD^äF~äHžäJ¾äLÞÿäNþäPåR>åT^åV~åXžåZ¾å\Þå^þå`æb>æd^æf~æhžæj¾ælÞænþæpçr>çt^çv~çxžçz¾ç|Þç~þç€è‚>è„^è†~舞芾èŒÞèŽþèé’>é”^é–~阞难éœÞéžþé ê¢>ê¤^ê¦~ꨞꪾêëÕ¬þê°¾0ØÿŒDp7FpuŠ,9!-¶~7ÎÒ!}–ëÈžì/z7#ÝM0Þ²íëáг>®®ìØžíÐy7»¨-½îí}Ýí)ÓÚ~îèÞš˜#p»Ý`ë  ÿÔÅÞî»-ïf]äžî¯ïÏ-ðK?}ðj¶Kyí ÿð¡ð•ÇññG9ñOYñßñoŠ5ÿñ$_ò¥Èðoò*¿ò,ßò.ÿò0ó2?ó4_ó6ó8Ÿó:¿ó<ßó>ÿó@ôB?ôD_ôFôH¯îiœlKßô*êÅNÏ›PõT_õVõXŸõZ¿õ\½SOÃB_Ãcßõf˜eö•™öjßönÿöp÷r?÷tß¡ãËÉœÉaŒ÷~ÿ¿Ÿ÷‚ø„ß¿ðYøƒßɆß÷ŠŸøŽøßø‘ÿø’_ù”ù“Ÿù–¯ù˜¿ùžßù Ïÿù¢ïžl¿¼Q .[_úuÿöª¿úÄÖú®û²?û´_û¶ûÏ û³»÷ï¡ûŠëû¸OõÀüÃüÆüÈŸüÊ¿üÌß¼£ïø‡úÏϸŒúŸ?ý×où‡ŸýÙÊ¥þYÁ Ÿ/ÃØoýæ_þèÏýéþêßþìÿþëÿî/ÿð?ÿöožÅ¥§Ÿ9§‰½ 1«‰°zõjüUPX“&ãî„QâDŠ'°˜QãFŽ=~RäH’%MÄx²$º^ê„ø«‰,r].™U°#0!¬•paÇ:—4 V´ž­%¶~ Pª²£Ò”R­^ÅšUëV®]½~VìXÿ²eÍžE›VíZ¶mÝ®­úö,€uíÞÅ›Wï^¾xãzý IAYÔ(R€„õš ˆúõ¯\Ê•-‹œ<ö^àÁõ « XA$êõ ®ž°!êîY8(q½ÅßSWá×½{Fœ0® hf¾œ\ùræÍ?‡]útêÕ­_߈±èö‚Üëyß]ü÷ñáÉŸ7Ÿ¾üzôéö…_¾]íìÕ·ÇÏ=pĶ‚ŸE€!0ptìC0¿S°Áû\0B%„pB +ÄB /ܰÂzêã0ÄûêÙ¢ziˆÈ &aŒà€% ‚í"á$°Àš–À#0ÿ0¢#‚,è);"3<²I&ŸDÒÉ(¡”²J*¯œ2K+µÄrK/»“K1¿3L2Ï43Í2×D“M5Û„óM9ݤ³Iä°ûè¸ùöäÓ¯°6€H#*8L¸zÔ9@–‚Š0m¬;ñ„´žÑ"•M­À­ r˜·!ˆ¨'@tîAçÄz,ÈI6áÔ@Ñz]Ê0M+Rz¡­‚ÄŠ %J6Xa‡¥H×NRÇ'b—e¶YgŸ-éQ©ÆnÒËÞë3[ù¤•ê!#…ùeTŠÔù¥1²¸…–²OÝ®¾ 7"t~QVÒ^ =ô|Ç-÷Ø|ƒQí—š48I°"s7]…ÿf¸áŒ‚ë5¤`Šs¸b‹/Æø­%Ù¬Wq­³K”´%¾áüÎHˆ¼³hNüNv9Ã_°€"¨å°AJB€"†`´{’8`Ð  °ˆ›[¢ÙLS§é§W.ˆh£ìùç Q2¢“@©±;饫.º‚£—8ƒœÀÚg ' Ôk²©ŽsLˆ`9I•ÉŠï¾+¢*oÃcñÃg|qLJ¼q&÷ÆÀî²0âìWøùÖ‚ˆ(Ú v Õç¥u® 6oi¶çz@7bÏQÏYêFÍž=ÐÔ%çýñÞ#÷=xà‡ÿ½xá?쪉.˜å0tÈ9 ![P‡ÅCÿUqæšoŽm+=K?¯„Iê5pöÄŸ¬ÀT;T4›Åˆlõ¬QÚЙþ—`‚ñÏV#~9Vhþç¯îÈÂ~è@Gü懑ÃLªòûФlQ^MþQ‡!‚ÀSÄy TES6§pm1EX&¸ˆ¬p…jò26CÖ;TÉóŒ_`°(ä˜`b’0„¢Ô¢8Üÿàö¾‰¬¯ ‡ iվƄ¦æBâþ0xsÙЋ_crÒæµïzC8Ào4·‚Ì"{©y"ê•l…ÏŽc$ßFR(™Ë†A‡ûbÄ#²€àRl±›ƒC-©ÿØ""ˆ„ˆ-lQ‹B)%ÿ1Ai Ø¢“‡ & ¢É¶œ4$J UBç0è-/Ôˆ ’=šÄ|x c0…9L«€òŒ|âhž"Œ‡ !HKPaŽxJu¬E~k P˜8S–€d`IÍѪ—ÄDg:Õù¾}©Œ‡ù#ô@=Ú°±K0µé“7ÌŽÿl§™·Kö¢&¼žšj¼" 8€5fèÊ Í ê ÆÒ¨F‡@›Ñ‰t"Ý( +z€‹Ê’„¢œ¥ü:z€¶±G)}šwM#Zt`ÆL$ñBt‘ã5h"#*‰RîeŽUÿIEjT'U¨NÕªUÅ*ðöÓÓTT5E‡®.à#X² ÐUÏtâÕšBL"OÂC#Öå‘Õð|bHª®z” xÍêU©:XÁ6°‡%,b“L¼³E² Ô=6…«"àHBö Qkiå{ÿ ß±„Zˆ‹D3™è]{Ñ”Ÿœ†µ aˆ¡¼EÚQí¤'ê¸k‘P›Iu¬Ö’ìì#é2rÎZ…¸1<Ï@‹»Ç㞥WŒå P3”Aå®×  ¹¨[”›¤j'H˜cV̇°u–×¼ç./õ˜Ë· ·[è…o|åKè¾K¸Í%IAK²ñÙÊP: MRêQ”€­Iÿ¥—`Úä1«¥N[Hr¸™€|Üúz…}ëU!rO‚KT¹%± ÅÓa¬&1´aŒƒ!C¡„QQƒSHÔ¨†5®YWŠ+bÏ×ÈG&VùL–‘8¹‡B±‘_Š£‚_‰è9Ë{Sl…sˆ@äDzq€{FE&ô¢ͨ•îrqzeC'ºÔ§6,ªMjV?9Ð"9î 9±ñ¶ZÕ·¶u®W½k\cÑ_QŠÿ“k}„}| “ì쵘T}Ê¥¡l_LKå*X±¨¸9@NPUOrª ÎþWA\d¬Èz*ö«A‚ß>Z݇6ŽEÈíçB=1Q‹2M0<VÃT’6Èñ½_eQ‘ÊTÛæJà~Ye†7ÜYí~÷¬×ýî`GÜáÇ8¥æÍ^õv…*Æ.ÙY¢¬yK$ä ¼zá“ÞNT1ôúp´’sÎa‹šÐ\–r”=ì›n=× Ê%BƒN¬ <Œy¾R‘`ÜË&úqRýëŒWÝêÀj·’]­uQsÜÕW{اà Åy]çgr·~A¾'RK}âÄ~wÛƒ‡ó¯ÙBéå3Þ¹ÿþöÄf'ÑgòÄöowo}C9/±Ü{½x]3ž×‡üãµ\xšÛį»S yÇwžóŸ—¼çC¿XŸ¾î=úÞÖ®- Ožîy4¨éÞzÏJ¼ãÇ»GpßõÔ§¥—´/w’h'‹¤æ…—¡Ø•¿|¶ìÞõnWn“cŸyæWßúK¾Çóè=Ù¬>[ãóPô7{Û{øn5ùazËkñçþ³[˜šýµ˜Ûý¼×ysÙüâžÿúÿ@Žë¥áÛ¾÷c¿DÀ4?Çé½C 5ÁQ;ï3™¡2¾æÓÅkºc2Í»¹ðs¿ù»¿óÑ?†·¿?¯s>é£À³  ½ÿ½=„A½¡¼ò#¿Á{>ÔÀôÁBœ÷Ð tsÀ÷ ±”@¾h½ÝÓ%ñÛÁäb*ÿSBí›Bø£¾ö{¾t.àZ­ãºAÀ›º$¬TÃ5„¿ôÛBÁQA2Ì2t>6´Cë#/`ƒ5îS’&d;Ä@ÄA$ÄB4ÄCDÄDTÄEdÄFtÄG„ÄH”ÄI¤ÄJ´ÄK¤DÀÄMäÄGÔÄNÅP,ÄÊÅR4ÅSDÅTTÅUdÅVtÅW„ÅX”ÅF €Y´Å[ÄÅ\DÐÅ^ôÅ_…Ó÷Í&…ÒIÅ'@H'xƒ”Tj|Ô²¬RÁLU;eÒU MP5SÖÌI3ý½´UÅ´M¥|UfTÈ8ÅÌ9mPL­Se¼Ó[%ÑdEFMíSg5Æ%­KA½Â¨ÿ+TW­Î¸*EuUí4÷ðF'P8@¼äÏ`UÆHÕÖOÍž´ÉKÝО„ÖMURu-J| L }ƒpýLÆP€ÉtÍVL}EF…ýU^IZmÏ^ÕSÍU3­L‰­Í 57ÕÈPÕR=ÕÏDV?•S"NiíF[ÝFb­×hÓc¤V¸TxL7µTØÁL¹dÓ²ðÖ„ýBúÒÆ7À‰¼Yc\U¦dׄõÆûÌOtLxEGyEÒ–µWvŒYó,Z‘•T8¸‚-Æ+pT5XÏDؾÌÚò¬Ë-Í@Š€ØMÅØ$=Æ2ÕÕÈ·•Õ³àØ…ì×MÆ7Xèÿ$Öù4V”W¸•J‰]Ù‰¥Z—MÒ«eJkM8ÂÉV¥=Ô7ôŠž5[F¥F+px ¯¥Ì±Ì¤5ÛFÝÚq”Ú=WÄÝFÈ Ò³µÝcÜÛ(H€p–<Û£eɲM[օˆE xÜÂ}Ýb”Û¹½ ïT\ã-‹¼]ÝÅ%YêTÜ“}ÙÄU^íÕ:mܺ QÚMIÉõ³3´Yâ­Ë­*ÍM[pí§‹ÀÔ Ø([8 €( ÈßÍZÕ^j¬^Ô€]ÈÛuÜÁ]L¼ÜÞÙÍZOT¥Ë~%X¦ä߃5à¦àÕCô@^íí^ãl^ç­ ùTYµ-*êVct‚ÿ@'pa6FÃÓ‚ü`ïXâ\ÖìÍÓß ßäŒJòíÈ™Õþ«ÜêÍYDµ÷-ÞÒ㎈T€âŽIÔ O—¼'è€xažbê Ú¨ÅX§Å`4ÅÓg̶F ÖHn]¥}+¨:¶ã*¨c±Ò¬ÞâUß žÉ‰èàf}Û— aP"•^²@áä| HÐäEàkÌá†ÍÚ¬áIFF®ìa¨ìJ7¾Hóõ%ìŽ"þß#žKÛå\$íÈ öLÿµF(H*`€P+0FÏ¥å3ŽZf=ÆNVOÙeFP®H8nW Å €¡}‚¸ßýÌGr5WoÿÞò½à8dµdëÍä:=dçÕÑô\ä±häv‚BÔRfãúüæëæÞ|ç‰=\zUX¢4f‰åó}CSöãËÕØ¢Râ²¬Š²“·j|@'èâµbÀ„e…ƒ½5W€hvçe´(æèއvWONca.RîÔlÖV¢LH>Æ€‚cíåȼæ FiË5[ ö –éfvžgæ­XÔÕ4a¡:烌[Ä Ðe­%dbÑynç åÞB¶áMJ’~È|~H!®’´&èmÅ\SeìS‡„–¶ê˜Ì™ÖȈ¦F X(øh8P€'ãf|‚r5F,€¥ÿfk›–ÈKÅê’nã®éÕ½J¸e°å2^Æ*Àëc\ÀÐq|æp‚ØìÞmFP€ÐíbtëPNìSNÛ€6èâÚéK†j8ç¹}U_Åi±(j€\Œ~ƒ¨¦öæ¨nÊ׆gá¤jM>F{M­^È}î8¯~2°¦`±V‹¦àUfÆ„&ĪÎ=M¸nÆ7àE°+€ÇzË'+0Æ„Z3Öæ…”ÍÂÞájTn¨>FÐíÐi_nåÚæ•¶ým¨nH¦Û,ÍØÛÔ(ý-ÆtYÿ¦çà.îVážák¤o‚¼o‚dî=D¼¢€nß•î¬*ëpHfÄ‚7Z,¸,@rÀîívÔþÕKþ.ÖXF HÞ®ðø~ÈÜñú.fÄþãáýÉ+€¨‚+°_ófFÐpðóöÆ*@Äe¼‚ñn¨ã9_j×g‡”ki¶ðÄp>ŒˆÖnjªŽm]Õ×ÇÐWµ‚Ðì÷öm:nˆ„qãNÙJwq5Nn>.è( ÁáÚq=Fåéþq>Tƒr8@ò"¿Sª ``J~èµIÏ]Ñ%ݧõj¬¤¥¾òdÒáÜòfUƯÛük•ž`ctéeìóÓÿG,Xg^^ÇÝb Y¯Õó­6H+˜ó:/sqïo9 i‚VíÁCBßð·=t‹}Z q„s(HçìŽt Ít‹lñ4~ñffÁ˜‚ŦŒ»Æhç½)x‰¸]kÛ 2Õá@ò gæ¬Tž‰ggÞM, nnœ:²&_Á|þZT/Ü.$eÎÜl«å9§€UÁ·=_n»Kd¥±í #Bf–k|ßþú.·¯-wϽä} .ê‚IÎǬQ—if®cTuÆ¥¼Ïø·õ«`a¯{ÁWõñ†ØÝZ%‘Û×(ÒÃÿV}X çqDéýưÛø] £ÔF^¥@W`š¦Ok Ú ‚Ý“PÍÇ|Ôÿú|x¼pÍ(€\EjFb ©›ÏhàFdM"eŽ^m†JXZ¸ Ä*Ž„ˆÖeÌâ„p“‰añEøDdEV¯AA•h–âAìÙy9ÀØÚDzbb¸¢ҊرOäØá¢Qø$¸ÙD0šÜuÛ¶‰•” #¡YJ4£)ŠD_6ÝpG¤à(â ª™íd`S7F‰5ÆÒÄ3N “K¯–Z„å$æØßDìcO À:2Ž„Í…Ò^¨Ùý¡\e®°]xp– qDï\tÉ æXä/j!$ÕŠx¤ÅQNí1Í` @[öK½ÊÁãüˆJ0ÔŒÈÙQaf"R!ÊfPeQ‚çE\ç» ÿg´&.ÔvÊÄZ޾A\£ŽjÿE(¨Xª£¦”t–HVš‰#–Jy‰§N0U#ÁÝ„¤òQ'n(ÄÄ_t@\Á¥çýii\j `cEZEÁ}¸G„8`¼‹:/ESŽN)®Íè+Öèlkø,àŽRçuiX cýlÛ¯^L=X¦ÁßÓቔ"ΪԎ|Ú¡BüÝ[.¬§àé‹‚Qè«Õˆ¨±{j  @Ö`Á@qc¹:ËËõ£TbD(ê£÷ø¤›yËDèW6)D±*€’ˆ‹ÀªBšª RX ÝÐOž¨ÐÏþ¬v¶LkHª ª„ÑŠ ªNDA¬)‚"¦”µÙWdÑF•În¥Ó嬓ÿDDí~°j>"¤l^b_Ô*ª «=®ŽÇº“ )m%h”]e eŽX¢îù$Ì"«IQ’û1kÄ|›Š¶­9¹%ƒbÝõ@£*Ž›šÝd)^ 8ãJp`b@÷É«»&,òF±6¦æÖ NéQ)•é©îð–o—F&1Nfe‚' ¥í ŽÌ4 vÒïö. Šé(–æê^¥«9 \Ž ¨…àeÄ1 j|–YnVŸ$zƒèmI®åŽDèÄš«Ä|í¹ID¨=gäËÆ¬F\R•¦!¿Ð«pÀ¤4œEܕȩ€ŽB˜ÐÏúlÐ@FŠDÒ&äÿHä׬£šÍjÚÕ\ r«’LHhX:nÉqguU—:ð£.—FD-maTÒšïÇ -â(ðoœÑo§õÞ*âŠ×ë’WYèˆ{¼,²”0îà>Li ”›¨LüJMˆžÚ!u¦ÓIãô£ ê‹Ù‚^…ÜÇoòØ•íæ²kÌd1²:ÀS˜.R…®ÌЯ1pt‹$ŽY™ä Y c˜(õ+Þlqÿœ­&5¯ ïŸI榋µvFfx%A¬¨0i£á~,³Ø˜W’¡±‚¦A´ÂÂpv ÓúbÄ5U²€¹,ߺ/ U|Ð⇲0µ®KDKÞãD|Ò}\ÿÍD!ŸòMä½Té—íÝÕ€ürŒ%§Ö¤2Œ- ]÷æ0⡬¤ÄqiO°£B´ði­DULá»07ðûòü©ý¡°Ëz°®òòDL™ÊþÜsǾZ „*‹è–xqPØ39Úâ–ÀÔƒÉÔ± ÜfN r=\O¢„ Ðc|"Ì|âlÍzĉˆã8‚¤ºF•CD'ëè+²¤²|äчF„½>òä4FDîk)É’ûbÄczés”ZÇ~f³H¤`â2,]ð±íXU‡ÄãZZ‹t@T|­jª¦î ¨I¨ ¥òÄ=k´Në÷²FÿJïäJ‹àãÖ(+QLÇ‘QîBà³Z[tSß±ž­ª2Þ¸§'}Ÿ*Ñ«anM*MݬªD<Σü‚TÍÖA`v½'bÞ‡Èfx †:÷1Pó åJè¯Ö¤Ü_„­*è¯Ü*%œÛ&b;+é™ì…‘«8€a»ÆXÓJ2 ?÷³—”PðZŒ…̰Os[𸵬d²”¥ÆLŸãT©£aD lÆhÓLß¡SIaYa>ýšOÜÊ_DW¯#÷†ªBà«ÜŽ•:°…-ôBqø+MYž¸©ÝM3’O:Á_D–þÏy×CzoÔÔÄØ¸E¬;'¯á%cÿææp—îò· ,¯ìÙ8çá/"›ìL€nH~w st(—-è}L $¸ ÷~2¤â$hzœÙvÕž¯JÐô‰ÊµiÄõ¢j¤Àq¤Á!…‚[!ÀI™$ƒw<ñ&†“8v®íC’¤¦ôt¬c„,c“lXYÏåÍšµœUyË€ö*Y4nD6Aì eÍæèêÙV3ƈŒx=¢¤P6Òp‚°ñ®jÈ‚b]~ï·™”ŸêUA@CªcAV–„ù0m×vD¨˜BüeµZë!AÁ²ÅZo‚Ön‘AÈ,AèbÙLqÉ™©mÆ úd« fMÌÄ"ó¸ˆÃÜ€K†|.Ø M¯øÿHp–…scAƒÉJ¼ÝuAàk¾¾q- €0¨Ãü:€0ÐÏ=°·Ü,³än1Nox¥‡Ü’ǯû°û±‡P7â“ 4[€£§#66ÈêR·€@ƒƒ=Ö.nuÙº @D®g*NB;¥„l™Ñ¬;#ª_l2œ?zTǨ{w«J¬²f0ÙþÙ«_±ÿÒ)PaX:(Sœ¾õLüfj9é’¿ h¹éºÔâo›\ º›–'Ü®pù×@ïµ×௹٪Iм›ºN'$;KÉ=̰׃»±·æéž„pgYƒ:²ZTg¨Ÿú [†ÿV$_l3ó’”v]ÏÝ=AW€Ìê!4q¤ªïå HP—Ez2M *Fc¦9. æ¾Oò¸QñˆãÉ*'üo÷DÈ;½w€®{Ôe]BA]Ž·;(’΂¨CA=¨ƒCQ+»åœ_RŠÛßšqh¾RòÖå[>æk>çÇ]¯„ƒŒneîfõ´ÿOf0®=­tkàVªZ_¯Ýò à¼öÙ~A\ò¸0>19~ô ý¤¯õ=“Šª«m½uF„Â’öÜZ}mRÖ˜|RB½0ÔC+tÇ&(Zi¼˜»óŠ'œH ½½s3´‰)®˜³ ƒÊX{=r àAžk7”“R“žoª7¢Ø¨Šgq…V„žP!eµìkOg9ãÓù¨œ)›ÏćËÕ꾘AÂBÒ“U U«÷΢ÈÏ•´ŠÊcÚÞ7®_0èƒ ¾¾D.3Vè c!Ni8xæ¸ÆAæÚk°/Àñžµçô-20³N¸‡;ÿÈ”ó$Wê¡å¸ÝlE4Q¥©TȲP8 î'7 —(ÅUœ ŠHJ@ôÈàæ„ºý6ŠÆM´:ýøCaaYF0œ€b4M\5+¾¤-½®ð„öVÛú²ÌÊi8©L­”fôôM£|Â[pŠ͆p5ȵ2uu)¯÷}¦è©’q¢áh衈Æýh?’Ãÿäfú*º¯ÄaQ$ZÔšMxó¾\± +¼²Ü°Ê”‚'¤iMÌQ—V®E5ÎuŽcW ù8ÆÀFn]£…ô…µv èÀ¸¬ |*m“‘˜Åp˜Ã‹uå -*ÍŽ§8Žˆ~ÿÁR(8À[Ö€  ’x€Qã"™4`+ÚŠK+pB„ã0-ùLg 逢`…+¨ÑpdTQŠð„ž‡ 0!Îq‚梽¤xªé{=o*|œòèøtÍÄjsÑšÖ"$H¢£>ºM=Ʀ–;õÐ?ÔãÉH‘7é gL㩚·¹%_­t’\(iI¬ÕHš^BðÉ[ (IO*b ôÄ(NñŽV S9nqSAĹ)±M Œ‚Ò¬ôi%{Þj@º÷“A±mW½Ô±ÔR½FiÍSH>5>AŽÂB’y–>Îäs¡]LÿJpª$ù\!»BÎ%XyCcúF*U JW 1'ƒ ³¼ñµ«z“ºœòd‘äeT c°<Ṟh?Yè°¢?y…^^*à´ÊRªØ¡”)Éä*‡ þä¦d9àcƾ„¼”—ÔÒÕ~ù–XQ`WèÀU±zU ÈDzHÙ°E…’ª ŸÏ u˜V‹ˆ” àj!€hÀˆk¢y,V:É•)ôëmvS¦e`c"êÚ3“\³!Á¬ØB¦±%”eËeŸUÔ~ýTÎ?ª(¸“Ž”ÙçYv‰‚Œþ ¡F«ˆ"Ûˆ“Äè@ú ÉÿGæ(.èð­om€¾øåCËìá[Û˜6j’!˜ÝfVÞÉÕ¢nKøËo+Ü!m? Q€.?ÈÛ¾Ž—¯³ÉOw‘BÚä¡Lg¢ ›Ô·ÿ‰…¾báR3Ñ|s!Q @aϹ‚Œ xµ—[¦B¬‚|¢ä4Ôá´ÓT‘‹‹SÁ‚îàQy}s@‰*R½±"J&Û•Ó ˆ2+ØØã¼üXa°qcãÅÂ'!0Ö¡¦‡ ™Ov)»)}ÍÂÍ54~6Î@z×Ô΂+£”š[³³Û WýPGå^y½cbjKgòÒš, õµN+]ÿd9!y R ùðÍHµ%Žslc×Ë©8Ûë_ýâ[uø¶Ú Ü`ô4£Æ$8™ X©Å4f¿1jàeÔjŠåç U°‚©«€jSCk‹30w Õ"E®a¢á¬X5«½~ݯ‚2>e™ÄšMTê¸'ÖʾQ= A¬L:“2% ¤ÈНsØq¶«µ•v!mm =Mgé _üf–ér4¡Á¨E$o´hìúhB™\ËNoU+[³Ëå–—Ã) ·ý…ÖÆ,fùyÿ–ÞªåvhܘO¼<“õÅëqÞÃ&ÖÚ-ñ©ƒ)÷ê «^3õߌð{›Ïÿ3Iz»‚9Q­ Äð@«¥œ"óÔÂK[_ÑH€§ÀE‰‚WUユ”Å ‚†S€óµ`ûœN€ò±ÞF¶@ŒVOqBº ’²®´ÕQsZÈ'°.½"[êhŠáÅçx¹k;þUˆä1®…Øg–Ï8'×+dµ¹¾Iv V ‚Ä/^(8šA¢æüœY!L~èúer]x©u-ÜP×By{-ñ4³Y ½šX+).ò&‡¢áÝW¸LÓ†ƒÞ+H:3DdW@-já{Æ:c‚i¶·ü¾*&¸Ãúîâ)ÏÕcéSÔ‚ä"ÎZ)sZ‡ˆLA;Kóå. ð`ÌL¾§‚˜NN çädÔB— xT @ §pI/‚CËå ÁФ´ŒHöÿáÀSYÒè S”Ô JÞ@ô ã0àT¨.Ö/„¡`l!_ãbˆ@.@—ŽÈ,Uƒ”ÎÅd¸¤Dã ‚&HMhT!Ì-šVE[²ž¶*:B Ãâ .ËhÇtçñP 8.êR¿´U¯`Dó'Ú¢Ž‚߉:X‚"pB'z¢ ƒÿæ> ?ÅÍéà™”ÔKž€(ötzµb‰* å\Ë%aE'´À¨EŠð ¼E#”%‘ œú¶qí-ð)ábnãbk³f.ÊóýQ¥“fÎaV­‚ä  ªà ú£.)CM ’~_”ÒYø-4–“Ž#' $(Õ"1²2>¨ˆƒ»ëeµŒÁ.4PI%b5´²hV©ØÒp° S)”Ó´Œ‹c°Ö¶ g‘È`òçf¢â’…‡½kèv)ýž²h<(—Iv¨ÛŽþ‡¾h•\p‚i<ÿ†ÅgÏ{GG"K…V:ÀÀ¶4Låq±$5Ï:B„a –`Z  Œàfa®é:GÔXPn-¥CIgÄÃ@LÄÖváí¬Óz­ κܭm‰Ë¸Z%:6úWñøc. 8p¢ä!IGÚJ³[1FPJ OÙ%Žn;§Â“ëH š ׯò °º+ Uˆb8¶…V®¥g•Ç:r@n˜¡—/%G˜95+|¶Î€§}õ@¢€´Âw‹Zš!g¸q©¸+“Pú<."`Q[ž %šß+0mÿ%Ë<ågƒV"øù•GŽÚ¾·¥À[—MŠ=ÉqÞCo¡ÓԱ͌WV‚†½óŒþ`"|69 Šžì ŸvY5h’ç5OW`Òô³¡yK.Ö­ÝÞ­‹+úF&¸|j šg2 Äú´;NIIº¤qè²àv¼¥päã½Zë\`Æpœn<Çç…›"@½~÷÷†å ãô,p˜|o˜\†T¶ßˆ…ºC¿ãˆ DQ‚qQ†Q9šªM¹mòÈ*ÂqvËÇÚi?& , ÍÝœ$¡ cΉ .îº+ÏÅ™ÐÊËH“ëˆ*g'kšàX°ë†ii™´ÿGuNK~)¢U•'$HÄü-µâ–“\HQt@ Å´×â’UÔ7}åªñöŠ›Ä&s,I…"Þ÷'ZN·¹ øt§‰0ÁY¹É#V{*<µ šÂ<QBÜùVÀ H|*|wþtXš†š&ª+dèÖe6Ab~WR|;Ú3Q£V‚4I©bB`Ybð¤Å¨ ¯¥¾¸{ŠP¨WÇ‹Ôä‡×{wùÍZ7]‚¤ï]xõÒÄœ]½I}®^3§p)9¨•i1¼Vp‹#{ö¤bœ—E‹â˶”žÑ%ÅU¼b dzU~å¥zLrÞûüоSJi^JWÿk4™Ô"3åМZ UÍ¿8½›ËåÁ§=žú ËuY>РêìæÀâ˜@RÌI† R"†6+6M|cÄ'Í"·x òâ•\$u»|KlÈçH6’ÏE°¿AÃmF tBjA– ðsr'ëõÞ~» Å Ÿw52Ü¡áÂYÑGëQØ=§‚ÓK6s‚H];Ù/ë “*šX»‹3í.ÐݰÓ1D$R`ši|À'./¢,ÿ¤è”×D¼gë;k ~·c™‘þÎÄ4&ZôußäßWFz_uWÕB×9tÇd ž~·Ç€Ï|©@;:˜ÿÃÍú ©Ÿ[¢‚{S*XÅU`åz æ½CÆ‹Q¦±o›žŽE¸Ó»ÂµYÊŽÀ `0¡Â„O®,4À^½{õ&V¼x‘âEtêÔ¡ûÆ‘5j¬ç€:DQøF`œUt ÐÀgÎ…€UXˆÀ¿¥L›:} 5ªÔ§¾¹Š5ë@Ÿp~ªvÀ(¹þŒH2mZu†ÔKàµj)Æ« g¥ 'Þhðg pžðÄ’ æÖ®pV$Öp8@xöd … 8+°¼¡YÆ£GGqò°4iÌ¢WsmLxà›“Äÿ% ƒªMUmP±bà õü–I\µê()ÖA[ñdôŠE’‡}ÜôŠëuä^ÝöŒõ¬€(Á(b»~?ú<èà\I PÁKâ¡°HW/EÐ…‘Hõ„žIiÙ#pUa_ ÇÿGàtê QÄ/Ù‘“!] Dáe¯GÍ%4"ŠP$@@ Ì8c%ÇG‹p@QŸB?=X!Awè˜ ÀdQ@@mAZø$cÌäĈÅäe½× {iàÞûaöfåÁ™d=D$‰jæ™QÂáhF2‰ÂQ[ÖÅü h‹ÆÍd½¡€üÅÿÑbzñå`[ ”V µi à¡µA³9¹X ÀEl*wEKU\‘*~P.tEU£aQÛt ¥‰añÄ O —#AOå@Qz*´Xˆµæb^Õ—ª@¼ôpÇà@F=¤Yg3~f¦y)˜‰¥¹ÕtSN;U]Iuyg ‚I§ €ö¦Ú”˜ÁAŸ}²60&r3™ŠªªQÄ1äTOL±S#:ñ§˜Üf€ [þd™jõ†8ÒFÜó‹YÐ ÉÝ5P p”Ï_?¡i*ÿœp?d…¬@+@ÁP` „aÉÑ‘ ¨›)DwÉúV¹žôCý,ŠJ¨¢ ÿ™­`s)‚Pµ&T5Á M ˈju™7`Á˜C–4®ø©?#À8¶"åìT4ÓZ¦6µ,Þ ¬1Wzä²e†1aAO‚T´(¨oGí£TŸt?‚Õç>AFf/ £†CÜçn×MéD¸K#½E(LJÅþHª,d%!@ùy¶Â (h¤(½™ ¥_”$‰:ð'ìÀi¬äE`6¯„r‰¤”@N£ß…‹FŽ £_PP+È2‰ô²šä~V©›Ý²5ªHSàäh ­²‰ù³¿ ­À=?£M”þ·(¤ÀmË#רºö¿ÿ…¨˜Ä@0. —qóBjY\…dX?Ál1…X»ßLÞ€¼(u®“–4Ðýu‘qN:ª‹R¢Ð€€ ”‡°£'€W`ÀÀ*`ÏyRA:’¢ÃTÃ=8`Á{—ÞφW(†4Ç£¢ª9?€  ‚yÀ NГïœ5©É)Já®É%Ö + À‡bi¹Ù™¢+µ¨Go†4R Cø…: Û2/$ ÇêÕ¤”¥®mg¹,à®’F¿õïkÞo«_M55ÉðJÜï‚`oi¬Nô €©n iÙËDÒŠú ¶£¥ wΙ$]„Ñs×COŽ“`À žtÙq—*9Ê=°aÖ¢"q:Wpµ4!¢ÁpK=ð º$á‚üÍÝ©Ñã1Ìî½*ðõkf3qXGmÉRÖ²…¤t¶yLâ¬ûYŽ!Üi‰~ÿì7ßÑü©IBÌ­=%ÖŒÛÞþ¸ "·§Í 2t«ùCXö‘Ú«©¹àáÃNœ²§µÙ¯H¬GS“Ì|¨–±uä÷†æ°‡ëõ/žñl¼ã(Ûuñ}iß§=]g_ºó5ÓVê'Pì7+W ) Àq·“&XQ0R»¥$LRBPeTïkÕVÈÖA³WY7oñ [ €R¹% 5×RS5ƒ•¢gt\Gxwf wOá\µQ¼’Zå¹¶4¸d)Š¡]'G…‚dUàkÑ)£¡) ÑKvçpDX³`PQèðbÛáIŸ4"õåUÿZE„ÔK¸t%FÓeý%dëÖ TXídiY£b«Q€:‘lï!~a`x‘`ÐîGPðaÊ—@0ø'mÓ7õ²OÑ ²Ð ‚£&cåt?¦Àd@€tB&Is"WЂdÿ¡e#Áwª‡Ð2ÉeŠaxpÁet<ÅC(䤆> ê ½N?¸ŒaØ"òõc”2ÛÖm²òÏWj¸—~ë×tògƒtvõ;)€…‚oÄÇ~‚Їe{8ȸqSÌ!‰–Ö £È}ïPNŽ5¹1ˆïÇñ'™éx–шVàU‘%=ÿ]X!”(éyG#ˆP•…eá]Ñ„Ë3=´m°"ßÈÈtèò‘BƒØh¾t$°èqÔUEœÁJH6/Ù}N°}ýü6å8Xðe ùWàU)U‰•òV4PIBË$*ΓA¢ƒÉè)ÛÒ-4U‘w9æ/Á˜eb˜!)!g;eg>…L¸B>Ã'Ì#:$W…Ùò1/#¬”6’€Ó<ìÄ6W„#¡½ è0 ‚CŠb6tŠ(y™V#èŸÉgMˆ'Ò*ð*±ò)ž¢°uU'‹˜A•XY‘²ù‡_ˆLä;óV Zùs"sä¢ÿöÕˆ A€a€oC$«ä ᕲ–u÷‰Aµ€P ÙY ³€yÃeÖ‘A‡Šs"3ÑB³òš³H(ÂA(I&Qã`ةܙy÷Tב—®4Ti¹q“¡1ŒyÂÀdFp‚Öj1"J7Lw öC(yUNÙn7X€¦:îxNQ @è)ç2/òc›–lýc(!j} sF) )ì$’óS©ù$3Ñ£qžORvòSCã+'—Ò~:2¤,„VM#*7á'))ù;Û×Y• D SH—¢±#¨›¼ LùÿtU‡Ýc9ê„bów%ÌäUM (Œù3OSƒT%uŒSˆö4)_™u|q=±‚JtŒ£—&BÂæ)¤,U‡{ DDÃþ²–ÌxŸá) qižEC3S)›¯ÊLp§S˜U\¾C)&&2‘wsÓHÁÐ$ó^$æ,Åê,XJbdžk\¹Š¬ ™žïÂo+𓯩‡ý†PP¿”u”`Gdç.9É"; )VÄ”ZCØ´Ï!f½°!¢^¥Š†$ªÕƒ*°¾é_æR&g'jr‹bö óÊ\—IQŒA¥pP¤O% .8ÿ³0¡s­§¥ÑU¥Á¢,$Q07aùŽÍs?šêq.8‘Bãn7=T~eº`”\””&³2˧˜Ur%V2Yè35åLdšos‚´JË´á7"  ¹y6ÃOXpÅÓµO O{$dÚWo°=Ñ ± «U™@ãöEÈg²Ý7áâXêh·ö¶„ä^qJ«y[#‡ž™A-ߥ¾&?+ÕNåt¹$B´µÆsSPµ@YCM"CºÁSǘvqxŽŸKwةͦy¥6Á‡Biyp jI‰Ó«0ÚØ|Ýè8²ªCao é០Iÿ´Z«'§#O(@“t5E)©Ä=˜‹±{À:5tO`M®ÅSÇ ˜®ˆ¥7õF¥yšÞFZ·¢0"#¬„˜ê %·d¾°‚¾¸*`ÔUœÌ‚¦W¡¦L©v¼¸­ @¡ ðÊŒõ0NCðMÂРãäMàD ø*€|„B?Wåž‚I |A—c ¼Àö:Àõ´08VöË"÷Ä–'1N¢zªÇ Õ;Yå™ ù™ªÅN8›}Lâ}Q²o‡§²Ç¢¤”}—8¡ A¢ÀÑWk a·ž¥¨@aÄK:džÒK+…– ¤¢"ºÀшò#>0Ø*qí¶ÄRº¶ÿÄOµi)ˆxS»v…½ò+àZÈTæz{Q¢®yˆ²@ÜòkQ~y1šàÇžtZ¥²$#(BhFä;˜jABd¼ÆZ¬1Ñ4ò7\õç·ñ‘1œ+v˜œÉOy`•3] ´Z<´º~µÅþÇŽXÔƒp‰O Á­ç\a=OP(ê¼\/‰8/ŸŒ‡DJÂ;¼Ü¥#<â…«Qž4#A0瘸LÔë2Cç`nSb ñǺ40oPÚÚÇO’ÌRª=ÑZiÖŠ5é,±Ss&87ÔKù{Äc“¬¼Æ¼Fz&Vèºõ b÷Py.cZ¦b Õbõ†÷$ÁÄa¼ÿÈûNpÑnl›ÉQV•4—b+Öbêpj†O ­w$mÒõ°3˜v(<º*†®«Í±FÀSO\Y?*¦•Fƒ"w¶ ¡²èd±Ü™§²3Ûe3áŸQ¹q{W8Ê:Š"\ƒ¼4Y£Ñ¼ÄKÉaFÌ{dQ¢ÏQ ®EΠk ®ŽÇ}‘;J]CÍaJÇľ†ù¾KD>Ç=Œ{O‡[ë¼G¢i§VŸ9!šöµ#ÈÂR=m–¼ã+%´G«ë3vÅ3ŠØ;Xà®!’äz¸É 4ö¡¤¯U¼ÙëÙñtœQ+gÛ¬éF–Qb€R¤ŸêƒZF(=Ò%]ªÿqS3USQ×c$+ÃÉ}Æ-J»"ÌÜÌT¼IˆµHÄ»»k85ݰ1t§dE°to›5¸ÅuN³NR‡XBQ’8ÈÎÄzÕHÁüˆ5Õ12]¿² Øèø„ú<)a³&dÓlµÖ±­hAkbÀ…w¿Ð|ǰšw-Fá:Ѩ{ˆgßüái¡–j¢v°À®wžF(Žá}—^îÖp=‡A¯Ýý«Áz; Âħ”³7úSp_ë9–Q¢²]™ö'@v|Çäg›Äl¡!´XR´ñsºKJ,ίáfFÝ´O²xs-Ö:bÕ4é¿q#(ÿA'=Í2J<-·Š„Ù¾4’×Zì)\ëA%Ä(~~àí<0]€„ˆ°w#\®º´%Da³,ä|¥TÜØ»cA¤¼ÝLb_t.]„è×ü¡Z¬"z·A¢X!¡Ÿšc&^,¾w.žÛ’ÆWÈ êGì­˜Q)?ð—RÐÝÝ¥-ŽÅ·²»,[n!Ð"ê ÑnØù ²PI0ÑûÝXì¡Ms¿Lo`I93Á¡| ßð 6º­³xK²‘a¿î±¯h6’#à´â狈àèC~Rµà‹ŽE•½ ñ஋¡8Š!Rð¢Xá#±á ¡§Rß$ÿ{M}ý$I½jð ? ð°KŒaæ4&3~*ÓZÓ5Ã!“Ž™B´DûÞç SÈ’©D®#VOõ¨ƒ;¸O¾=‹5êW¥™NšåAÒÔ™‘¬ˆ.ƒQbÝ3ú|åv²r>$jW¿³®aÝòü#YH­©AæÇkæ·™|QãÏ:ºQ"“8¨¨ Óå´Uu?Ìp0êzÓí@éôûUëâÍkº*Í¥[hØÒ&‚Oø’µ¿»Ù›DßÊ aë™ÑáþæÊNîæbs®{Ïñ$G•/*œnˆYXÖ…µ)ðF&)Â>ì3µCÄx‰ÏNŽ!*½·4èUÐÿc6 Qõ‰ÍÞ†Þj†rô{zÄa#:ÅJ9CE*ì1ŽŽ¶î›¾˜Õ­W×Ö‘â+X 0Èm9àãî`\aþ“àüÞ J(FláK;ðyÚ¹Ý)Ñ[‰Æ]˵Âpâ$8Ð A8à,dØÐá@( HP±b†75n„ @=!E†¼0¤Þˆ„¼’\-$jͬ5 Á/–#ëÝSÈÑgC„ðDãÁƒ?‚lÉT§ÓP£‚ ÖäéU=.D*0JŠ­ajë0E8Q, ¥¬C>d}>Юƒ+e¡h°õŽÜ·  €åŠðíØ­ÿIløÆèÂ+á`éÀ°+cÀ ¯€­â$±×Tyâ€€Ì S–Üðñá…¦V3t‚Ú6jŸ®°òSÏì…­i/^q¢Å‹Â‡óDÃÆËpœ@áĺ“×>™ûTñ\íBna',ø†,ͬå8ØgW†Xž¬xÒº'ãÉóëo´¢Ú£ê 7¸´êO'xCƒ”Ó Ô€Éà«¢­ï‚ʨælðÁˆk‹(¢H¡¯´oC†ÎO©ðàF=ð0ì©)¬êy hªé&šR'wz$àxã(B£+J¡²ïÿà<øçL4ÓTsM6ÛtsMæ6L±8<,ì (@KVŒ.!ŸR* ‰€ˆ".Àª ¬'­äŒ‚N;g4Œ¡ŒËn;‡ž €£¬O¡èJÕ輺,hÕƒHe¡îÒboÌÂàØ¡pÅU(â’’ÍÒžH¶ß|²Â’EVY:9zò6Ü~qÉAAZˆ{~$ z™J¤^¬R‡G¿­ÇNOÌ ,Þ`×Ý^_…/ÝSz";غ¯…d¼sU¤áøO£˜Š5LZ5¢\VðăodýZ1¬ÙgtŽZäHì+P~yæ#ºx¶êÑ\ý%XP‰ uª­Þˆb…¢°h„…n¡0¨ÇÊ|ó}øãW“SùV€bEÿÓr¢ ™ú 'ر±É2‚h©—²Ž˜"8NÑ™P2ŽÐC‘"w+¶!ݰ¿°È:°(€ûc±£ÛŠ°Ó &'€¶ƒ8œÀÈ ±4Ë ŸÞIi;—ÁBØ€‚ô½¼cŒžÂŸ¤˜Áò=ºØ“'É ²x‚. ÆU¬—æx¢6ª‚ì Þˆ‹ã Ä“ 3¿ Žò¶=ã›±Ÿx:1²€Ø´+œ©ü¹à ½‡Q´¿zàABXËÿÁJÓŸÏ`H”ÄŸxF®ø‹å È6Á¤×ˆŒ‘ùB„Z]ƒƒ Æy™=òú)x¤ò“ˆ Ë* ¸.Û•\ê ¸c ñHÇ™©™¾¡B›Â?üh—Ép—ýc¿‚{š´ÆÆøÀ+a£V ·„y»Â«Ø-të1ïžé«à ,N{·ë«ž¦(Á©° ax®_¤ïzŠ~ƒ £Ä”á"¸?á¡Æ"JD©·©pÊ:“@ •X´AZ™Ç04ƒÁ‡! ƒ‘红ˆJ¦ ‰”+ÃB ĺ0þ¸+h€*ã*FŒ?© ØC§3š°C†ì»pC¬Ü»†œCŸp+h鲌Àÿ÷Ø«y) »û¶ŸͼÑÚ”äGDꈌÊTÇ·‹Klˆ;{¦e“¥Y¦×ˆ8¡*x1ø¨Ÿý¨§ñpŒø„l=‡±‚H'°E£ùÊÜY‡¸3 H¾ûEÖ , Ü¤6‚f$¾ò+Á ,‘qÆhºÂˆF D 'ó§³ÓÇÓÈ n,žOY ›OdÅÃxÃÄ2çoT*ªÅqL4º‰’8‰”X ÄžÞ Ž¬ŠÂ$̲KŸàÀÙœÆ B«c*3HE“Õ@&õâš²;´­ä«Â‹¾¥¬G:²…CY‚$ØÑëÙ Q é¸´HFìŠTœ!ÉXÿÁ® ç‘Ë;ºháJ£™¶†¨ è Óƒ°ClŽJ$¸× ÒRÈ3²”Ü<³“ÚÒ`ë…ÛŠi)й˜ŒÑø©Y°/êu´ì¹ÊÃp«=‚UI²-ôQŸgÛÒŸ#êySŒ‘өʸ–lÙ–zè–&j !ìÓÅcM#œÒ“ó=­‡Y˜¤ˆD¹ŸpƒÑØ3Æ„<U"DÛ Ç\°ˆ /¬ /l¿ÐèL¡xË<Œì»ÚhÍÛŠ(ˆ³­2x’RæpÅÚLÖÓ² ½tt§p2vtÍÕà À²¡AKÜÍás5šÖI€ÇèMâa§|dˆSÜ‚ÿ‚yº å´9†PõbW•y (°ƒØºCݵÃì@D,É6†èEŽ0ÊõÜJg ¶„[S8ˆ‹c;å™ aôÌüSF[Ñ x ml}¨p2!UM•JL„}ÌV%V(èO8øÏNKJí€Hœz Iý…˜‰ÄŠ{TªUc5ÌáVðÖ°èŠ(˜MQ]Ñ\J&JБNêü¿§©Q‰Ì‰^ Ð­½¨R[!Ncì8@DíÔä’ä0•;ÅÂ?’…×g@*-3ì`Ç9H»øV„øÒ­à¯€*˜Õˆ2 uº‚’é3÷#2Ò;-‰|$‘¤ñ uè…ŽA‡YÀÿ"uÐ=¦àSذ‚þ¹Ïœ|ºñx<âªÐz Ü°Ü«°#˜¢*º¢µâ‰Ñ?ÿC<À5•„(Õ©‡Zh‚Z¸ÜX «Õx˜Óh3 B„)CLI^‚ºåˆYž )ë|½ÛÔ¥tdšé¬N} ¬Òª+ãÐC‹[1 ‹r5WÖ³õ;œUÌñI8[ØxÍÖ!Y¹À40KŽH\×O„°‚ š& ª¡Ù×s×­(LÑ€¾²C•+¸` ¾`v¤¦©ýM¤Ó ­d‚Hýó?…£±¯#G9󨲭HS"¶A¤ 4!‹ª«T/g Ï@m ê¨+‹Ü¤ƒ‘ÿO½šŽàO{µ÷ÃÖV”•í“i+² ?ÙÅ£Ú­zìÚzÚ)†¿Zé_} EjÚ§…Ú€\Qó€õx0«ešP—>æá®ÔÙê@€ (äBžHA"Ûí Ž³;ˆÅ(ß­"Ì=YÁX‹'¬s›[¹´šÄšY]Ã[ìz^>Œ^… õ⤴8À§ÜG„ v‹DY&SLBåM‚£Ü-ÆÀ_ýÝˆÓ ÛîªÊð¯FÒ ³ Ñ} (€[¾`_Qé\X<[ݰm]ï ‰ðrBJ®§ÈTÌ[——dI)— Y("hçv>¹ÙÈÿcâ(¡Ó7ó‰Y×»”Xý‰ë-š^ë‹èÀÅ ü‰_•ª*©WÛ¨â=+Ú7pÀÃãQEÍkߘ3à8R·+ÖDd;$‘×,L:+ë’3Wò=¥­2Ð&‹½©zÑRô æ„ çÔ0†fè(ÎB©c€0ç !â/Ì ø$Úv)j˜DÆ.%‹pí¦¹ˆV*Žš¡ÌÎVê«ÉÌÔaaØ4Î¥X5âÙªÖÊgÅ’¿ô¶(Lé^®ßW &vbÑ(ëœý‰$cÌæ‘¸ÐÉ™_¥ ІéNÑ|7†ã¨-4}ÇrÇã ˜(—»?q> \,yÅœ ÿŽ¢uU¨°Õ“ rë”tROQ‘˼ÕÍkÞŠóê46åèpåÅàÕxí±‰íQ’(ŽÎhAñÓ©‘+9c$‘(Á%If±¸äæÐdåxf—Õ@TޏÁ®9#X“³Ñ§8f%YÁÚÈohísF±,žíÖMBS¥ÃÐ õy±c²Hü "‹þlÅf‘ê݈Y­»ô£>'˜høÀNSÇ…(è¼ñÝ ºo¤R¨S´>ò¥2+Si §Ö,:ÞÑp`É:Õ¥)Hî!³%VnÕ]@ÂØ,Š>áÔÏ|õ` »‚»bˆn“¥›Ö8$bYIW¯ …Rï_ÿЍ>ðóëüÅYÆØŽªX­È“?ýa?³B¾hŸÐð¡’…8âZ‘rxÕb‡@Õí\Õ· Œ¦I•™‘S;¬´ÎoÕàbãÖ뼦AºÇ5w!†x_‹X'ÃvZÄÈÔRv‚>?çœÞmÇw|ÇZ8º½L ­ ×Ï` œ<¨àp h€Õèç9ÖÃ%G' ¡bŒ htiR×Q=Ï1X¹–Sª—ktÚþ¹©ªªç ;ƈu–ƒ¹7¨u—ÎgSzÇ%D&Ô.í9fPî°  ·8ÑVõ­„&*K¹Á°MöCqB¼ §\q>Œ'ÌÓýœô~t¨‚"ÿ…Y€÷Y8^:*¯ÚδX"mJPpdPV’Ú\áHޤ±Â(¢– !ó´É6ÿ žÛ´òñ' ÇÍu `,¦~Ç4ߊ¾Œ>Ûàmg2‚âL“‹ÇEãŸ@:ŸËÚW¦;~  äj%ÔÕ¤›QGŒâãºèòmµÛÓµ/· ¹p¶'¿èÞfs‡°‚8Sf” ÒõÓÝÌh…\RäÉóG,]ûS^Ôîx±hÛ‡ 3×M4W6@.f2vvÉ ¾îðäÌŸÛ!Mu"™¿ 5xãAµf­Þ¤¸{˜ŸÒ¶göOÍ ²•dÄŒ{éÒO P€Á+x@ÌŸÿÀlRº=´³F,L9ïXí>§@X<ñ }$ÔÐÊϠļÔGñ ïR¬Q°K‘P‡¼ Ûrö{€vcðC~Ñ_Ô[LE…G܉ˆ.Ô‚ûz(÷,€«Ášˆ¢Ûuwûh‚»Lü÷%ò ñ1t\Ùä©VšµÙ±!mŸ¸^Ø›ÄjìÞƒŸ^ôQOÀŠÑ†ÿ á#>å˜Y†P€€3 œ‚pâL€Á†«0¨`EA+ ‰BÀ blx1$I8oP„ãÀ•ŒÞDX£©‘3 "ÌE΃V €ÂÊÍ‚zl’L‘!£G8Æ„ƒeÕ ¨ÿ5gÂ8q6¬ÀÙ È^í™1"Æ7ªÜ[t.]‘u*hµ Æ¦]¦ÐçJ‚‚ ^DÓ¡“›Xž¬€‚¥$”$Èœ9L>6«( :CˤK£4}Šñ €SX §ŽÜ†A‹Ž]Úaž=S (Z{n•<¹rxÉ'…C€R€½z֯׻‡ýºöíÙ·kâ}Ѷ( ®$å%<þ €X ÈœA((@ƒ™ÙöžñÑGWDÝxÝuç]‡ä}HžuñØô†‰'F(“TpIåAÉ…t…4à„ÿN¬]†Ê™´Bf­01„¡‘Ý…k=‰P‘qeÒ„òÑÇä\Jn•PMCÂñSPCqi”\*΄eHoD…‹ÍD[ˆØi÷‹Á\7‹èpW0pŸ~þéáuÖ(XÒhÅ|WÔ¥£zf^N@±B‰F±]Ðð§ÛÉI§uv¢Óá={ú 蟈¨=‘’4ãMM"Ù© ·^§Î²3Ž¯ãˆ¸áu‘’‰d˜v)Å0AÁRAnív—g%‘iE  àA£HZ”¼‘Ap3Ý«C2½¡¦T+°©œ‚3¢mHU, G³¥A›e”ÃA$QJÍ[ïÿ½a€$™k |”H÷Þ\[Ò…¡™+wTQeê‘ °YlŠv•0Fd®¤­‰Vt@cq…éD(Üh#—ÉHcÍNè¨ÐA1†eP @Lµ… —y`ã¶¶EÑ€ÕW3\Rì†4mA+¸÷Æ,bÄqÕp|ÜnCQ fEK[Q`;4vH<³7{0ÂÌ£ÈP`²A‚;å[CÀÝ¥!œÂZ·gŸ«Êx°æ-(Û†EŒñ³›ßµ@CÜß’^ºéØLQ„EKí¹Pu‹o÷fžžÚ,‰p<€&a›AkçšÔ~èÇ_HP,¹œÿr"OåÀq7“Lk’KÒÊÕ“±·.¯Z«ïd%óÅËÇŠé7_Í$– 0aÑA½%Ñf]ˆ!ŽSKµàù)v¶X;踓ý¼C(å¤ëY'2ÑȲ—¡@0 8¬åoý#HÀÚ]çUaê]nrc%.„¸":nÅ¡.NpNø 0Ò2 Þ+ á¼”¸ì‡dSŽ×Š=$ yJA˜Rh #å:Vzà°žöP$nIÎà›øˆA![ìøÅ8L¤"µ £K05Œ.p„Lâ€çðˆ|$Á‹°à"½ÁBpè—aRš›hl.‰ÌÿÁ’³Õ¬gú:sY³PcXÈT#MÂÃ!!ä DßB…’]8ŸL>vBcigôÀ(ݤ òËV}ŠÈ6²É¬“Y$Ôƒ(ë|‘[’@¶·Ld<"\E¤'”7&ŽKx€ÞÀ7ºh(wŸúP¯3À Š3Díɇ<+`F-b1_ M9Òñ9o¸cAüsº4As™R…^É8\˜ß$eç?«U%‘F8âsa 3H&É„õ°Ç/Ô,ÈTš <Á˜à¬K¥™‘8P{, ªP†º4B‹’ïr¨DYá ŒâR"ëÿ¢¢~M6Áæ2mÃÛ%á˜êTEd‹Ë:½ÀkwÀ»²(1}àó rh(ØSŽUˆY!®r}¨u®šÕzlµ«¦ª‡y„aÁu½B'ǚ§Òέ]ì°êòa6`AR5‡,.Yá OØJ‹RDÊx`ˆ“”É ØnfŽ$Sä šx94~s:Z;£R¸„‹Õª$VpÀÕxk5Þ ·—=Ö&#Ü¢ô´!'II~\¢¶°¦‘¦ˆ,TqŽ“Ò›0Z*TvSiY‡wp1«§h²¸ ¡·0¬Ëˆqr“€(’Ìya¥%]kßÞ‰ö˜ƒIAh ‚ÿ§)VXA œÙŒèMˆßrgH¬ÀMnbëÁ@cfQ\àFªè'By‚¢Ì'? ¸”äÛ_ öÅ!™l½aRœbéj×ëäU¢‰¥œ'x2R¶. lòg@{üOs-vïQjž•2ήŷçíÚ!Š ÌY&‘ò{ðYÇ}â±X\‹a`$8‹¥P3™©7Vîý¥ kuàö"7ŠúÕn—¥ñt $êHÍxæ0õýÀäz,Á}h/’`„&ÃvÝùj]Ä‚´Kcz´3¥&àŽ0µ(mEìuÝä`5úÑ‘–\_•SâÀ>ö¯née¬dÆJÿ®…²ˆMß°Pc†µ¶svšÕúXá*¸äÑgc…ÇWªy^„VmžÝ9Ÿx¢Xkcé€@ns;$Ò”‰Ÿs{ãöÅvòRqšÙ7ܹä™îFîp4Z€Nh9ct9“¢z×”› ƒdð–GEOo|IÞ©Ï oØa6ÔDïÆ»ylO²[€<ä!Ÿ‰}í›$xï iŽ¿#«¼ ¸Ç1AâÃ(ð†ø;ã²Ut_&Ùi‚–ß]N’IÑTCÚÖ‚ZgºÈœ¦J@©2±t:n«_|yíÍ{5ÐDû8ìŠT§PµF­÷cHC-ñöUôqFô…ÿ¸kòýê±;6‘ŒßݤrÛbmxâq¤8ï™»ÂG¿¨í›¦uisÈöxÃkŽÕ5`zÕz…Ö)B‚ñ«»Ž'È ÈáÖ{Pš.aÅ8­eB¸ÚÙ)ð‹ß~»¸ÊbÉ—…8eO{ÛC´Õ¤ÌyïkXÕÃðMr—{&:ñað½‚ÈËï9„ñèç Âïš}7òÚ„Ü£¿‚VY”Õkâè¼ÆY‡Û}ÍDe\†f8gˆ[™ÌÄ Þú(Gr)DÔåÓ³ðÓ1íVoaMStÀ‘„—\ÓM¨Î5IêÔ’â±¢—ÿTBùCUܳt (J•Ýê@ ¯©à¯‰Xëp dÌDÕH¥\J¦DÑJ°Û4€ðø†û„úí›A¸}ͳ\Ø]´Üà NÏ©‘y©™” ÑÑU®Õƒó‰FíaßxÐIdÒ0ùH8À̑ĸ[³ ؉ÝHêœFjDÁÐTL­TGÝ®íyìÎõÜÅÙ„÷¤XBTrì_õåÄrOò,FáµY”LF¬ a…DE™ÕEíÅÐ8`™ZG|Äð…®Í)Šâ÷¼™GÖk–F( ³HYÁD’”¢ÖD¾PÙ]däCì&ÁŒø<Hd¥Ø¨".²ØªPw„J|‡£c!J0ŠP½›… 1µãMŒZêÊ,ôʯ\ßsŽJt¾ 7*RX†åXJb†Xfe–#íxŸ=ˆfDHÙìRhõrô täz¤–´ %ªò8VÅUdUÜþñˆ XNœ%çLpWž =ú‘=bÁ¶ îὩ¢†þÁÿP5‘(‡†I8 ŠTF u]Ö}!¹aèoÊ’¿l¡c¼NÿQ’cm&ï,$ðTÞèYhÐÁÁÛ¬:¶`A”ݧ½D`Z”*^A ããÙ„²håpœU„*½GX%ŒH–‚†N骀 \SEäŠ žG¹Kœ[RfyÎ tvci‡yXj†Î0™Ôq8AwÏoŒ‹`æ 1ååjÏdŽãÜY*!Ú]üaÌCòhÍ›JŠŸ¦Ÿ5 œ–&X™>M I Šü•WƒÅµ‘‡âæ—ͪ ‘çéV®ÖêÈȦ݄›ÐŽ4Îg=dÿ#vL§v)—žÿ…Ì{šŒ²ŒÑ‚Åj9U®ñâ¢YG²ö±†ÿi«*D¶†á Úö!–:«ZìeýWÔà  UèØ±˜©inÔeŽÎ½µK•*éÎÅHù•Ÿ}0‚î‡}èL˜Ç€ ÂVb‚~ÝÇZâä¦@ÌaPX¤âEFš‘DeIxæ 2lÉÌE“6ä1"—¾b‘úü–`EjÅðñ!,>° èVAºµXXÁš¶é¹I\^:X„9íM¾j¦rLFqžñàÆh”FW&šdJü &)–š)â¼K["L ÞÚxx+©åN‡ÀƒMà É™Cÿ@© ! ô­KmS7ñ £6jØñ @ÖS˜I8ë-Ö“iªÿ¡éЄ’¦cæŒTâší©.¡fUÁ½ªÍ2ºÎäWƒi¾D+æ-àm¡)IØhd­®ÄYdÁeFƒ ].ž«þÁ$Áð.A°4+ 2ià8hÔGáùÞ]XÄbÀ)}§8–£-ïðj'ò^¤a9•¤ÙšºÎçHRˆ JÓN¤œ*6¢¿è>Ì]ÙªêÜm`(„=^A‰þcÌœf¾iZ:d\ñØÛ礦ÌÞÅ£&¿jìpüeÐäç”>œŠYx€¦eI€jÞ†`QèlA ^ûÿç”Qœxù•IÀækráâMÄêKq6Jï@–b Rl­nli—ÔÔ Ž‹ÂA±Ûq} AåÒÄÙ×ÓD»¯pþë’¢Ïg¥Êöö¯õRfÝ„°¥¢Ã¥Àº½ÛŠNá6j UË1Å]%­±X:+÷=•vbŠ’ „æ iç±$—TgP i¾§±•F²Eë.^ìä…¦ô…¸²)ÛmºnY[ÚŠlF%&?ò$µÖbï*¸vH/A9â5…°ðeg|%Ì|e]˜_ïB.v°²ŒI£àd–€#·Žã¡Åu]È ÍÔLÿÞEkqCH-FT$ç̲ J‘àhs±Íͺ£ÖrÜbªJ`–¹s€Þ cÅ–Bàü>Û7×9ÛÑ;×ÅÆ&jT Ž•øñ* ž©i=^vfǼ°1áÝQñ3¿*¬ö/¤¦©½¸H ¬(“Jåé!FC,ñG¤.ÚLèJ:‘ællKŒý†„,¤„†>ʦOâGpe¤x)HãØHÅŽ'Cä›N ¢Vµr/?K¨Àd\A¸‡ÈX ¶hË,×1áºq@1´ÚØ3³”ãÊí’-«eJ.Ð&lƺ¬+žqŒ,%S¢€P 0—@«©VŸc °¹>ï‘ü `ÿbDô:ͼ…¦mìú¡N;„2¡Íu–øÚù–¤φ¡+sæ‰0À\@eWvW×ÃñnŒaB,$“n¥E¥×QeéEsAD£ïбžL¶e_ö6Š«l*‘¿­.û2fGÊ“Æçà°½›mÕéM(¡¿þ_éfÄ 6þÎ0ÐÝœÀEJ5guI¼,*Š(o{å½:óvb÷ßDàîÍ™\,7+ìŠ#•§ž°‘|E}A†d€QíZ³Ú*Çn î±|F8ð+Ù' Âo È"-Ú¢ÿ’A@Ó= ll­MÛ¼M4IëÊ ç5 «ròt!ûv”vo_xÛZ#]J6eÿ³vs¶QKÅL¦‰îØ Ql£YW”ËTãa%ýˆAHOH8Òr’bjû¸°ˆr'p˜–p<Î…D á2çÙ´l•¦Xœ •oéž+Qi_¶Ï亅­rÅ_óåfÌáFùn¬W‘`SýøÖ@¶f+î[¿¶Bt'FTïcöx¬yÏyTsõ…/j»|ŽG¡¨@ØØÍ)n Í gq˜L3µ<ä‹CxH ÷\È3–õo^“ꊾ¨{E×Í2¿¹”±Î§s]¨ßòNw£½l©:w?º;pIÌ.qÿëz5uðgv®7IˆEâÂñ\rE([wÎ$·bÌÿl±tZC•r]'AÀš€„ÑRxd~-F 8x @21C,¹è¡é@TÁ =ߣt5vQü§<Á¼©’)“Ç®w¸…òø­uÇž“x9Öm°“ÐâÞôz§ ]ĸŒ‹Ýá kL´Ž#¤Ûú1ÓöuìN;«ª9/¡¯æÝ.ºhŒ’àLwÌÎé©þg€".ÅŸ3q×Ù«¿W¯<Á¨ÆáÙì³TLü`I c…`ÁÍ÷pÙ1ï,£²+‹H-À_«¸9µ|”±Ge­fÃ6[z¥Š!Ó“Wžw/¼Kž:_žls8ó. ÛìÅJÔ¹þ=´£ï;p‡æýæÿ‘ûƒ¾6t×y, ž:^3sô®Þ™ß›’Çê{] @ÙÚ âçQ}BóÊoÇO¼mª‹ ‹'TÃñËq^ƒ…\÷uâÏÅ]K0sWPt`|%6•”äMס* ÈPŸL4ÍÓðºÔ4„AíƒqÓH#.YWwH@1ªèLH–›Òn×{ù¿@T(ÎÆ½‡Ÿý‡p}=Í'Ý& W8Á´Ñµ£HµÃ›Îp(K”oô—;Êc¼3Ž8aæu+ín–íægäE)¦ea©ç8úy®I8æ D•7pŒç`B„ ÂÀbA‰£¤˜HðM”+NT¨ÐÔË# ¾ °‚ ÿVàD0dL8zDÊ̸±£Ç…pRdhÙ€`€(!Öp¯^ÒzH—*MÊ”©Ó¦R©>µšÔZM™#Qhh€ ‚'!Uèp«Ì†£¨H;€ªs©FJ·®Ò{Zß¶$PPƒƒ‚¢H4[– \§w¥ÚÅÛø*T§|cZY‘ –­V¨pâà††w&î{µD>”O·-å/ÁÀƒ \[ðkµi+¦Ö-ñ Nˆ;;ñI’ >û›·Å‚É—7 $u²™§&òímÄ­ýܺðÀ ý¬è½›“K1çúR/0Ç´*‘ H΢è 7kì€%8¬ÐÚœN Ð -ï¬h`Gú\"€¾ }Clξæ$ ­Ã¢#I<95'€âîE8°.µöb²°¾ˆJŒ" Á„ÿé0£"…ÌKIñÊêÉ7|\ÉŠ”ssWµ¤HºÓ⪧ËG#ãÖQo‘²'K‰ª˜Ž¯ÄÂLtq]H±z'5x*ɼM º+œè âœXaÙ˜TðªZ‚¨-"u×ýŽÕdz"€TÅ Ú}_o¼Z8ry»ÞP+Š· À-²RMàƒ  V"› â™´Ÿ déyÚ;b´ðÓPG-õT‰œÍ®ä @YeÿLT@уF¨áLt@Í+‘NB™½îÉ(0mRS-*± ^äÌÍ‚ªP É Üé ÖÃ"€’ÈÈU8r"¾ BñÙV8— , OäWcmÿ©ÔZu1_‰Þ˜#ß7§¹ Ô =YKRvØ‹·*H! x¨ÊôÏS´‹Z'ìÈ«óÏ襟^Ï(± –U‚Œv±Fñú[ð®ŽP˜¨ÆØ |"‚3ýB…#¸+sÿõfç)Øtz(]$ÙÞÙr%µ´4„pBÎõp®Y¿‰™À&‚=áTDÑÖ¶Õ;Ö\ÞQÏ~ø§¿çè.LË»v°ïupa{aílG€ù"Þ ?¸†¥ +{‹‚84€îPð~º+ˆÈ¨¾Ùp‡c ¡!éh8Ü$q*\ÚV–'Ý8!MFÀš'ÿ,¡eŽhÚë™DÀ8Æ0–ñ"Il£ ǾpjaŸDÜø]dkRr¢` X¹±½ÈlfdÈoþ“½‚Œh~·¹ G²6,ÆD‹P‚ƒåà@6=ÖÄB* $F>“'ÈïMŽëËz®àW¾–ÎYˆŒæ…U…ÌRãb’¦4Ð)`í$‘ÛÙJZP + U¸Bµ H³K–ç n«ä•xšF1Æw0ô!˜3¼Gª€p PÁ€Îb’©„%.Yÿ=꽞ÕÛ &…È=…xσ;”¤R)í\¤bNûp$À® ~÷K£oÅN^ ‡D þXψF ºÞ4ÓÈÿFËB¯"€ž+hMp¤BŒr—ßµp›ô•ê"+‘(—b(¸IÀÜ@v¿ªé‘ÿT¦bÐ]×…Oð9&†.tJ™8ƒLŽMd=ÆL²êP„ä&žñ…'I{@‚u ›ù¤*R)õ’¬q!JfpP7P}>r@€ÛEç5‡-­ )ZBvöj`É뜘‡‘Z˜¢Œý%A.•©¹5’µg²A1ÁtŸáMAÖ^ ß5°Ì( à£vk¿a¼¬ PakŠ”ª6–Í„}°³ƒ¤ÍHu[ýTQðãwi–Ö‘LqV7lÈ„˜>(dfÞ ª×À&aM’³ŠÚ£o};X™hË;ÎXr› .Ô¬¨4ƒDÌ ÁQñì`U;*þQTÿhÀ¤%=éI?¡ …(EV±q×½-k;åÝ„{j¦•±ky 5xÖ³²áÜûÊàQ/² Pû¦ëáˆó5wÝQ./Ô—é´÷9SÙYñg <òÿÁ¼Ñ5,ý åâúØ¿žã¨êåPÿõT‡ë®/‡ª aŽïª` :ÀìvÄæËDûΊAŠî¸ŽLT² [ަþžæâìÊ;¦¤_*ëð¶$&þµRkµP;êŽÂ~cûʇ½¬cà«Ô,5ÂÏÔ‚= ãº6°TX%´"ÂfÌÂê²­]n5Jy8lÏ‚šúE¢‘4DõúJœ4 ž( ßîËTÀ†«®àÀØzäGx-%â­TìÐh͆*là Ib‚Gà6F vîçÐ:GnpGŸÍõ‚,¿nŽÝ†öã—oî0!v¯÷"ñ #¿†¨ª ŸPÙσ’ïûFl+,h0H"rGëà@áÔi»ì¯Âqÿ'²ï,¶0ÂÛ>±€r§iB¤ó(…ÎLÔ杖j›†ì<dŒæÂ’È©„Í;X(óÉɆlà ŒU°à}Š`rNÊj*{‚åU,/ ‰50pv˜í}FbŽÒ¤Ž.î œ5 °ŠV±ßVLª>J»s˜ÐîXІ®Qk~#æÌP%@Ëú@îñîCKàcVO„NbëÒé%ð1%¾Jb¤!‚Î’öïz¨…$¡€ZD‚d¶ªÍdbp ‡œ²¯¤C ¤\ã5 ®| £ů:”‹&éö¡dø€,©b,)°ÍW$òShØÉ$1£lǦLw21ÿÈ8HaZÈ-.f‚Í &îîRc W±úÒr`ÑöôQxÐÙŒ´$í¬ çÄŪô+r‡h>R:ÜKv‚ðj´«U®‡8§15&)'j®{$å»s[†F³<4DƒAñ‡²/fr“¤ |ðÛèÑUÖ÷¤n$ø.b$†élq¯ +N\‘3a¯iI›uå¦LÊ%ÂÆ¢WòaŸgX‰uܰÃ;MŒ®®òVµ©_/‘O+˜PNUÔ`¡Ï¾úÅMå*oCôZ¯ÈBé¯`]ñ ÀUÃÕü°Ô>6H/_*1Ù5Ÿ0PùŒ¯tdà¦O'7&Þ…?ðøªí^“è/±Õ!Ê6W{ˆ)æ v—wy÷pQXL·V6Z)€"v+ °$²ðk-&J5æ¼66‡LÉQ_ +´dw0{M– êZBm¢mË‚*eƒÇ°välÖÔo-"×cE£ bw±à ì×~y÷ Ü7QµªÞbÿð3 fÀ2oCSOî7bL“Œk=o{Q(ÖV%3]Ÿ‘*xuQ=ÔþQ{®VAé6¾:¶ÌË'!ôÅ–Tç”âY-4x ën¬Ì;¸ócM±[O(´r± vÑx) ,GSl{å!€QÆhTȪt÷Ê"¥#Û.(V&œ1ç:öˆì¬ª¯v…QB—Øm‚?Î8&5 V‚UÃêð3ˆ}y/´ÀR7‚eBP VK8V&|ø v1W.7Ûø;ŽØdÓN±x¥5nyŽ­|ŽrÅö4lXòÄ2? âbò z»–åJ s~SÕ¥#PD•y™ß :|˜ €øA“^Õµ¨y"Cpê¨(žOxÿø)×jw‡ÿúþª¹C̪ÐctŒ5Ž/õâ‰O§‘?”ƒóã¸7傇‰—Õ‡ŠT‰’Ñv/[ç~ã 2 4@´I{´¡“êù,˪°Iba«IŽe§xó'fU2¾Š¢#‚»@õ­Æ2¢‡¸µ·ƒƒøcïÆÕx °ÌfÍ4qNKW£O#‚­ßW3„ñwpei{‚moLÄ¥P sŒ€ir-Ø0Ï¢ó,¡º¯D7Ù”í·óz(ÓMHuõƒ¹§gnÿ”ºÿʬÏzz°Ã£çQØ—ù6š“B®™®“ËE À‘äÈœã{iÄù¯·pÖpy¥¤ug¸1”x‰ Ú •¢±ßgÁø®f{$ø9¦à™^Zç~YH·zçbâ V@mÖD•%"ƒýQèæ—j•W,z¢_øVš¨*£n°ï&ãº5t¾?vB=ö’ël¹GÂ’KP,Ú’žÄ£Ï¯[h±[héL'Hw7Çr½±ÑO­ù`+¾1B ä,fÙÖÖÞ Â½OÑ¡}Òȃ{w Ú_=».ÜÁDóÃâ½ÿûÆ\Àɸ=Ó¾ïuÆW˜…·ÊGõ?"5C —p ÿÃÕRÿrà õ,°œf´\ßÙ‚£‘S\˜LôMW ÏOKX÷YΠûV)4»×rÁm=+¥BO+hØFmŠuÛÈ_[ÏBÉOfT ‰ ¹Û*Èó‘8©Œ­ü·addz{’¥×}$¼¯Ü}ÛH }ÔIÝ9ÞöT˰Ì=(ióÎ1¢¡¹N­] âUß/½ÃWcT—¶Ñ'ز¿Çë!æÜK×±M|ôƒ-ýÒý¤€ÁŽ·¤(ÍvÑùI2\ˆ£½ÈJ¡0°_>°çºÕÑy!ÐýcÔý¬ò’‚%þõp}éJ˜¨Yñá B‹71±9}©¬ûÇq÷‡Òâ À ÿ2€OG×7¹©}¾ þÚ "Ûo³¥-Ì.$£wÙÕi×Ü#Úæ×çIB­Ap@¿ü"Þ^C=í¹ÇÐéc!­@=Xæ}Ðx SBµï™ë!µŽÙ»Î·Zj:”ÈóÞá +û–^Þ.°íŠá Ô¦C¸ã1ýÔ™<—yg±Ï/P¾f¯™”‰™î¾Ù2Õ…XöSÞ.!bíérèY5Ç1Ûo·Åç§£zoGƙԭ™ÌØÑÑæ¨mÁ›¸^²Õ¨§pêtÂdýxëw_½Q@Å»áGpª)ùöU¾õ3÷Ÿ¤íIâÌË ·¢À›ýa¿ªÃ¢Î+k†ÿA$g à ° Aqà$\¨KXƒ í t¨Ñ ìÕ»W¯iS¦NBº”*Ô©T£B…WTè(^Âyã˜3c¦…ƒÀ¿·pãÊK·®Ý¹]qÊdxÔgÒªYµ~:Xðàx@Õ*^«¶gŠœ…“·¯e“kfÌysãÌCó½¬ÖTå˨áè9Ú²M«„ dž XöRk¬qPa0aнE¯¥Üº¸@h¤ÆšõªíÚXíå6Γoòå™vþ¼ÿéôžb> ‰Qà€É~§îs$ûÖwÖ¬  Š ÆYË<9³J öòõä™p ø^I¦ˆÚjÔV]g4à€?)ˆAO€ÓyåÁaE$ðPð„4ñô]Lo°‚@Np‰áõ¤SxîõµŸIdA‘D†…½¡…Ä1)Ô_ÏiW[wR.ÅUpXš¤K;¡Øc[w…)æ˜rè uP6sRVÉ]Sˆ×ãf<¡b@Ñ@NöÚœj Â¡ÆP‚}Å`¢B½6›lUN©fl¸]æÄ €é{zYè’"G[¤ÊÑi©Ò1êJ×ÿ•šÝ«Ýٖ׎8EñŸA»ñÇorÒª‚9ªÚS|–ÑWP øwÚ™Ù à{€ªõëˆ ËÓ¢ rÆŸf¹1í§Öú5VNèªB}ÂEžE&pd’饈™Q(9Ñ@A¼˜zû Y¤‘HŠd¦¼„6&Ð< pk%*8­’á–”fs“RijTW¦«Áh &™ ‡\æQÌæ§v³Eº¦mPŹmÁ¡e©bÄ3ksÌÂl°e UK³AØþ\£§Jú(ÊÚÝS)“€6)ôqÉ)Eê›ýÔúj¬,ÇFõ¯Îti¦˜Ði¯N?-P°jÛ×ÄÝ@Üt;páªÿÃoh*x3ÖÔùütÐÙz ¡P;Þ¼àùÅíF±áÂAÑðË´´duôyû)|å LÁß}Úx¢×·Ú>ý›\­2Ugî©î:+ŸÈÀ‡!ï©ÍnêÊoM*œ‰õNgAN‚+8a}ì°§¸óÃå¼=ñ> .4áBíu”°.ïÔÒ:r|sÚB‹:µÕÛ–jö”U½uòT£¼dBþyYP>ƒ?ÓeÏmÙËC "‘³=ËBßb\qÄ÷3ònwi‰Ã¯¾· ¶æ;aƒëL¡xp7Ò•xÈs±­}„ÂtÃ7Œðê@,žÚÒt»äiÿ }MÉÞvÖ1Aý.xH S/t2I!¯~Ê;ózÅAµ8m(3Ýò̪Âå¨Dib¬Ì¸GlŽS[yÂF°0¯¤Š²‹_}^PN*¬” ‹ý[j\SVxBë’ô¼ã4£ˆG€feŸ°Ó+5ûêW{rç4Q(4`7óHn•€dU‡±‰% À”œP#?É£ É@â0a «ˆT ‹ao´É™å@áÍ}5“àŠ_<öO¹q† pö\OúyqÕ¯ìîlXkÞ0ÖpßP# q”B»5£Ý“+<Ó:ĉº‚‚¯œ(È“¨ñ'n•’ZÎ$•­½ðÕÑ ÐÕ·Å-½J ÿÃ[ª›BÁ%eR}mdfß÷ÈUi¨”©`Î8ÙÁ[4e¦\oºòU6X޶@™§ àáÿY™»MÀmê àvRÅÄ^ þÚÊjqhØ-Xûöõ‰G–÷ßÜ&ÿ†5–Æ´¦'ém ê\à‰"øƒJ‹nj †¸§g¢ó¨3iê…»øÉ×-[8pŽ#¢%m¼žr‘“ì®pß5R>ä™çͮة9l\.y™j¹9ÎE¦só‰.¿÷5¡mÞÑz,*‘lžë¥;Ý ~·àßÃæ?¿9VéîÓ§ç{ÇùAÇÏ´»Òû|õܯÿ„"vr0ŸV ‰go÷ <Ó¿ò’èm jY³yÏ3”òJ·¼Ò­ËT˜£þ9×4'¢7z Sz˜ç|›w]LtÝ&¦eã)`¥Çt0£=h}¹§ èGäfO}¦>L|‰"qÄWü7X sVQzôÖCo‡ÅvWo # ×xü}ø£}#—pà±-pÖ~°Óò-uT!Ö~þæ.ˆT[;8€4ö4õ'€Ú‚4s,ç|FæszÄJŸWsh€c‚€ÍWnêã€fS*F{àb‡=¢„ïÁ„ÅQuÿäNÌ6&8R|—WSâuxV?Uÿ¢|_HvÍgF³"`‘`X~‡&åáƒ8%#Rs§*`˜=zÈ|(€¨5|Å%:A:'c”¤‰ZÇ^1¡¸"(†/×?I&yi˜MkȆJ¤l¿·GeGrø€D1{èm¶·Œ=j‹Ö{£ò†¤2ˆªR~)(†ïFX3ƒæFofçA±%+P–:ާ6[h!@„—±,1RGQ‹j3ŠÔQЏ„^(LºÕB“±`mÇJ“¥41‹áB´È©‡‹-è»h$§ÑŒ(Œ\uz\ƒLj‡¾¢ŒÉ`ÎH(öhøˆ!H‚o¨Ö(,\×^eŽLÁˆ´ƒÿ£\…ú‘Ekùƒ d­x„B–„Ј?êg-êQx´t,¶”5׉YpQ†i-?i•õ¥€ y*‰k½ÈI‘m(Œ.˜‘šW*’’U‡j©-Íh‡#Y%y~H?/7pv•áÒnX—ˆá˜Þ¨•eig²º#JQù3ë¨ íŠ?öj”Ök¢X”Ùs”ZвÆ)Äx‹jS•,©_˜€Åè—@4]ɋŶ¿(–tá†?—yþ§5iÉ‘I÷…mI'o¹ŒqÙsé‚å{Ôo²±’Ž™‚ ˜FÁæN2yÌ7˜áØ-œ©Mžù4É(Põt‘¹Cæ;¿ÿ©#zI‹É4[W˜†ÕY>áyJeu²YdL‘šÄFr¬yl®YŸöyŸø™Ÿù‰ú9üÙŸrñŸ D0 qÑúš  úCР º :¡ŠjFР¡j Ú ¡K0¡: –P¢ JŸù¢ Z ª¢z.Ú  ŸÊ K ¡ÚŸ£;ú£@ʆCI` CZ¤ºð¡ (: D2 #¤ùé¤VzŸI7š¥^Šs £¥ ZС 0 à£úÙp ª¤nªŸH@¦ýI$Hj €¥ú9¤Uš¦bŠŸ§/Z§øÿÙ§ú©¦)J¥_zŸD¤:©”zEÒ¤x:¦™ÚŸ… HÀ§D"§yº©•Šlº§¥úd—šª¬Ú†D¨PJ$O:ªˆjŸ:£ùI§µZŸ««À¢iJ$5ªŸ}Jª‹J$Ÿz¥ÆšŸ§: fº¬øY$k¬»ŠlE’¬Z½Úªªº­Üú­@ú/ÀʬE2®+ú/Ί®¾Z­£'®àZUD ®ïŠDmê­óʪCj¯ùY¬È: ê§z§úêšÿò ʯìj€ÚZ$j õ ­ù/ƒjŸÝ¤¬Db®ùiòz¬kŸSZ$¸J«†ZŸÏ ±[®÷êLÛ±)Û²®¯ÿ«öÿ ³E"³ö §«©E2±béMù™¯ 벤'±BK&ºJ$![´ÚM­ÛŸû/ØÊ±D2­÷¹°,{²E"©÷‰³«Ÿ[ú´ÚM6kŸ=ú/³J‘4K$ +²aÚŸÐM\ë´_‹Ÿg›µÝZ$iK±ÝÔ¶J+&Þd°;¸íê³[·¼j¸äÚM¨j¶Þ4·«¸„KÿZ³“ûš’{¹?êMà·tK´T‹·l·Ý„¦®éµˆ›¸bû¹(«³ÿ"ªõ‰°¢k€œÛ¸ÀȹZ¹¯šŸ»º¬+«®;»Î¤»DJ¬¸«¹˜›¹È»¼d¹¿J¨œÛ´)»Â+]Q«¼Zë»I¼ÿ0¬Ì[²Ú;¹Xû/V˼ º¶©+–wK¶ùIºÝijl¶ØË†ÎÛ¥÷¹¾éˆÔk²À8¾ù ¦Ñºÿ+]Üë½÷Ù»á¹Ç‹Ÿ@ÛMSË·K‘×›À Ì´æûè;Àü½ÎÛ¹ö ¾}û»Eb¿ÙkÁcë¼õ™ÁÕ›²,½J‹º¥»Áʹ Á \Ÿ̸‡ÛM{;zûË¿…˹‚«º7|³œ°PÖÁž+–+ëMð[U ¬ÁÀöé¾»Ã̆MœÅÓå¼Ol­¼ÁGLÂ2,ÃGŒÄIÆ6\ÄiÅÞT¶¸ÅÝ4Äô{ÄÌ˽A«¹g\ÆëÊÆ={Ä.Ä(|Ÿ˹ÿL»v|ƒLÄ4ŒÅr«¾{¬Èœ ÇÒÉU|ÄKl€9<¿lˆÇDòÅy»È8çÉŽZŸøËÉÈ‹Æ|̼ªÜ®ÚÊ®œ¢MºÊqËBkË´L»ŠËªºË³üÊ/J¡¼üLÃÜËyêËiŠÌ²¼¨ÁœËoQÌÎì²Ð eÀ¼ÌÉ ¥Ñ<ÍàªÍÑœDÜLÍÖÎÌ\Í×LÎÇlÎÑªÌØŒÎë|¥ÍìÌßÜÍßϤÇÎç\Î÷LËôœªû,ÏÍ«Îí,ÎîlÏãLÐ ЊÐ-ÐcšÏ­ÏþœËýüÏïüËø¼Ð«<Ñ”ªÑmMÑmÑ-ÒÒélÐ=«Ð]Ñ$}Ð ]ÆÿÝÑYÓÒ ýÒ.-Ñ:-ÓÝÒ#]Ò'ÍÒ ­Ò9Ó)mÓ¼JÔ+Ô> Ó<íÔ&ýÓ=-ÕEÑ;ýÔ7-ÔT=ÕYmÔ]íÕG­ÕIÔ«ÔLýÕC ÏX-Æ`]ÕiÝÔn ÕV½ÖqýÖ@m×KÕy­×c-ÖeMÖaÝÖ}}ÖxÍÇ4M×€±‰­Ø‚M¿Ù|ÕˆÍØ~MØw]×[Öp=Ø|-Ù}»fÙ½Ùæ{Ø‘-Ú¡mÚ§]ÙšmØ]Úº¼Øž Û`ú٫٩mÛ±=Ù–ÍÕ¼ÍÙª}Á¤íÚ…½×ÃMܽ}ÛrÍÚÂíØ²ýÚºب ÝÑíÜm­´-Ý¿ ÚØÿ}Ü£½Ü“ÜeÒܱ<Ýã Ñæíݳ-Þéýܾ۵Ýí ßÔMÞóíÞï½ÝÆmÆè=¸à]ËêmÝÕ½Þç­ÜûmÌìÜÅ}ßÜ­à žÛ^É×ß NÙžßl]àEÛßWõßnßÌÝÚúáÎá#~àþàåâ%®âÄáNß'®Ýâ"Þ²þÌ$nU7Žãò­Ç ^ã9çâ/îáõÝã>áøÝà)Nä1ÎäCÎà» Ü@nã,à0¾ä3.å>åAžãÓ%ä~åa.æ:æ+NægîäMål¾¼;Îåi®äI.ãt>ç¬üãpÒUçH~ärþäFŽå}^äƒÿîçžå€~è•zÆŒÞèŽþèé’>é”^é–~阞难éœÞéžþé ê¢>ê¤^ê¦~ꨞꪾê¬Þê®þê°ë²>ë´^ë¶~븞ë·n ŠÐë¾þëÀìÀÂ^ìÆ~ìÈžìʾìÌÞìÎþìÐíÉNìÒ^í¿Ní֞튀íÚ.íÜÞíÐþíà¾ìâ>îæ~îÂ^îè¾îã®îìþîðï¾îîò>ìõŽìô~~ïðÎï÷îïñðõ.ðèNðý®ï׎ðÇnð¯ðÆÎðëñÙ.ñæNñéÎëÚnñ¿ñßñÛîñò!ïñßí%_í'/ò&¯ò Ÿò,ÿÿòÑîò/ò2oí5ïì7ïí4ÿò9Ïì=îÿóÏ.ôäÎòDïóôÊ.ó¾ò0ÿôP?ð-¯òJ?í;ÏñUõÁžõZ¿ï]ÿõoôW?öI/öSoöAöÏõø~ödßñlïõnŸñÿì# x/…y`ø‚ìhpĉ°€/õoŸös¯ðqßõ‘õ“?ø¯öXùk¯ùeïð‰¿G‹¿î=pÄøòžgŒ‹ÀøùTû°¯ï‰Pú­ïíuïì‰`aΖü‚o¹¯ï•oïïøÌ/ü ïüçžüÐð²Oòœÿï×ÿ¿ùÏLò.Ì£ïAÐÁ6€üÙýÕoý³ï€þÎË6¿ûÌøåϹ" øÓ¿ÿ*øÀ¹Aa‘"‚ D˜PaB >„¨°aDŠN´˜‘"F/zR䯑%MŠäxRåJ–-S¶¬øæC™3iÚ„X§ÄuöLtÀP¢C õ4T´è E‰z¤ t¨Oý´JkÏ­V»rÍZð+ˤR0EùOíZ¶mݾ…÷ÈD"¤Hä4ì^¾}=&:c6/ß±8 Ï< 3±ÊÅ~w6v¬8òdÊ!³¼|23cÇ›5Sö,rÔVuH]¨ªÕDfÿÑè}º¤l´QV¶M²ïi¥ TÃî@îpâÅÿ6•dueæÍŸšPZºonÔ5ZψݧóÈÚ¹;ôþ]¼Xæá·ãî\ôd4J%„•  ßD=”Ú}wõë÷š_(¥ØÈ/¸âD-‘‚(ŠÕƃ0¿ ÊA¿ÌÉ?þ.”0+ #ü°ÃÉBOÃÓÛoÃÈl(ꨬÚ(ÊÇ⛪ÀÇúCÑÄ=tŒ¥l¼.A!)ª¡1I%ƒ(§KqG§\±*%»2Ëót„2Êÿp”Ò/ Ð/¦Zn¯²(H›H\NËÀ S?ú €4²Ï¸F2$ÿ‚pSKC+ƒ®‡Boä’°F½:t%9¹›4R, «Ò9©<±ÓÈ)c¨E…‰Îø”·Q¿ôÒÑV»ÌÔ1ÕF›Ï$áüÄUÁ‘z°ÐR_›ÁSëdÖ_CÒ”Îc³L–ÄÅÛ)‹ø‡AVa¼W¬mÈÀGAX¡ÃÙõîK¢h“ eO9ÓÈ"ìR1`Ð Í$ ¥ Å/uÊ7¸9þ±‘â¡FÁ¿¡àåf!`þ&(IÞpúóà›@(H–t#ªâÂâéRG¬J$˜øÈ–lp)xÌH¤2?: € àCIùÅ\<ÙÉ3vÚ“• ÙcQFpÉŒ$"¨ùŸEÖT”¾éÆ„R;¨æîùÁP^*£=a*kãJ!Á’ûЇû|Ù|ì#Û|&BZW=wìp¿;'K]jΘ*‰aG>šqgøÊë‡øöy$z'm†øœ×Ô}@/†Õ›‡?Øá1¨úT§óž1WzT}˜³ 'éä€Î•˜DÀ,#Xä–H RFäŸDñM_X”BÀ­ =k$-"O³ˆ¡ƒ1Û'Qrÿ× 5”FJQ¤_?ºÊŽJªi½(e'«YSæój$=P û᱄ $ #a¬$m¹ZÙŰ"«!-DR{V$ÖŽ³íYFF`–¡¡sÅ,*’V¥à ž!±íP" ÙGö¯—$%•BÏZä®|ý-EìÃ[CZt³ý.g* ¯ñZ¶¼˜.>3Z"d‘8.må[’Çš%rH“x €Ô3áýŒD÷;”¾†åºE)“@›;ßÌÒõ!»ÝïB)Wâ*%¸]`E&j–~zw£U¥ƒÓÜW­Ä!EñˆƒÄÞö2ØÅ ¬[aò²*ÕL$¾¹=±ˆM‘߈E/7>ÎýK[ÿçºé± âÇÃ@Æ13<ᓸÊ.92x«Ñ-s6Åž]1‹‡ób2gySÙE³Š¿¼f8Ê .³šAÜf*Ww“w®³HÕÛeó6X¼~Æòyû\W0·RÌcŽs¢C$ŽÛ=ïww|á%ÿuÍs¾ô˜g|à·žx¯žôe·|¹oþùÑC>öÿI<íe_ûÓ÷Þ÷¿‡}ð_?|Ûë¾ø¬¿}º/¤Ô/ÿð¼'¾ð£?tÄOŸÞÉß}ÂsŸ}è‡û¬n~óýí|ò—øto½èÍ®ý±»ôÔ7¿òãtñ¿ååêg¾ç‘ÿ÷¯ßø×Ÿ<ïë¾ãû?ÿ¿ï›¿TÀík<Ó{¾ö@i»?T»´? d¹ú?üã?ë«@l@ì?4À¬¼$Á@îKA tÁ,@Õ«>dAö³ÁôCÀ¶ÐÀÙƒAÌÁ ¤Áâè8÷ûÀD8 ”@$Â?48S$EK¬ºHĽJÄDJ|Dª°_Æ`Æa$Æb4ÆcDÆdTÆedÆftÆg„Æh”Æi¤Æj´ÆkÄÆlÔÆmäÆnôÆoÇpÇq$Çr4ÇsDÇtTÇudÇv Çv[ƒx”Çy¤Çz´Ç{ÄÇ|ÔÇ}äÇ~ôÇÈ€È$È‚¤GH„,H…4È5`Ȇ\Hÿˆlȇ”ȤH¼ÈŠÈŒìGŽÔÈIyôÈ$É’4É|É“¬Ç”äG–ÜG—ÔG˜|ɉ$H™TI›,Iœ­ÔK­Ñ}TŒDÐ(õcˆGcè6pÐNˆGeÀ‡5`Øz„0Ò5ÀbxUS]ƒkp‡xôgˆGg€UÝÕ^…‡R=ÕT}ÕXÅP•‡9mƒ}UNˆGlÈÕ5Ö5ðÕBÅÖ¥ÔmýGò$ŠØPHÅÔET;ÍÖ=×îœÔ{ìPEuÔû$TrÝTMeOq× ­×L Ô}Ñ{µÈN]ƒNð‡yì‡Ox£uXv@XDhÖX•ÇÿjzT†vGDð…U+•]UX‡ƒEØ……Øz\Ö½Øf Øx´XŒUWØØt­Óð„W€¢ÈP~íO}åVœ}W˜¥TŸ ÎuµÇvÍÏ5Zy×q¥×ë´ÑrÅW¦µ×pÚ~•Ú„XņhMÕ6ØP]ƒmøÕUMz´Ø%eƒ~ S6X‡ˆ¥ÖŽýÕ·ÕØ6è¯Û5([UEÛ5‡aXƒf5Dè¿e[·ÍØ5ðX Q™u×}Ü¢€ÅLKTÊEZÅ]IÌO§EׯíÜ™½ÜÐUZª…ZÒ­Ú§•\áä\IÍÙÑý×Á¤ÇNè‡5„Nhƒy4„ÿNà„óÔG Ryô]6ÈܵUàý„ßUÕOpØx ^ÍÍVÆ-Z€Ü-(ݦµÜ¤½ÞuÞÌÝ^ËZîÝž=Z‹LTìÕÙóu]Ô=ÝŸ\]ÕÍ×ÖeÝÔmÉ«Ýîµ_â„ÞÊýÇ(ƒê]ZôÝìý\ûýÞûýYÿÕ^Ï5×è%_àÿ]_õåÙÉE` –_÷Zø­I€5àÞ\óMàõI0àלàNß¡õà´ŒP>áö=`FTF ß®` ¾à°„á÷¼a Îaö}`ÓK^á"6Ìü_uH€›-ß á Žáû-`‰6‘Ð*îÊFmàß(žâ†`ÿ1ÞÉ6á÷µÞ.c)Æá!†]|”Ý|\Мc#¶ã0`0Z„¡ÎÔà.Fã<Þ^-6H ê}áAþbAv`GÖßNaþá3Vc®dLŽà6ŽßMžß7¦Ç8…8ŽÇ&ÒRÆ4-e"E^ydƒap$-ÓTþ])†*]-UÒ5€„)mÞ½cÅEb=žM4ƒ¢(á'NcbÆ\C&H3¨Ù¡¸E¾dæbgÖfBa2îäkÖdoIh®brfd öä—ØOð‡±]ƒöQÕy°UlÈZ¾][yŽÖz.e¸]IXá-ÙgÖ\mÖV%Ö5@Õ`~æ$–dÿ÷ÔÉ(Š á@Þæe&æt…æL¨¡pb‡6cðefväG¶áLgqFg“öâf†bжh–niNåhmÕR®_gèyÀ†v¨ç’µÖœÞ階Ç4€lè‡~àÕ5€‡9U†iÅÛ‹MƒŒÙ…R…†Ùa†äøÄÉ3QŠ?ÎfN¾èoëçOúÖ5ç¯îf†^ë±ÞbpÉŒþÞ´fc±vé—ždKFéO·z|ÕQhУBÜ~€PD°‡šîÛÁ.¼=ìyÂnP}ÐÒÄVÛxl[`ÛBèÚx¼[«öY¬®èbþG3.¢`Žä5^é1ndÍÍ耜æâÒê>Hevkÿl^mNç”Viµfm°¾kà®kÕÆëáVç™6^\.eSeƒN`P.ÕO`nçŽ]åueënÐã^{$^Ïf¶ÆãýG#™'ß–`ð†invmø„0³èh%>gõníùíðnëànãÖáøgÚ>é¼>ïüNo«Enï6p»–ïÇ_Ü ÜŽkÛà†^ïïÔÓý¢ñæï’&i¿ïú®í §äÝþoüŽpçí½q×o”$â‡ñþ¾í·Îb4ƒÇqÀñ‡ðýîqâžñ˜uÏ¿qßqÔ^pÇí^òñÔþíâðoñ‰&qïí‘ð-ݾŽñ/_qÿ ÿpCerûfñ¬Vñy|í ßãWr݆r1ñ&Gsó)×ë+—ð*§ò˜–ò;ÿs÷r0't,§o9Oò8s Wt.i^óÿ`¸Vó=?ôE÷p:gó3·ó§tóætGõ(p?OÌ/ôTGomurÊœL-tLu3_h7·æÞ&ÚFçp]¯ô7÷ôO·ôY—q`·ò4OñQGvêìÄeÃPtö¿ã;ý«EPÜÅWDÅÌKEEÅO¤öVÜCn·öI„D]œÃj¿ErÃ^ÌÅi/wfwwfG¿o»h@vD\ôÄBÄö}G÷n¿wmwÅ–“w{_wY„EILwMÌDÿuGøqWøw‡øC|vpŸ;€ø&dÅQôwóËö÷E|wgÄS´ø‘'ø†ø#4x‘wxso÷“Çxqø™¿v’¿x¢£÷ŒçÅ’·Å|wÁŽ¿y”[Ńø4ú /Ã~y_ú„où”8Gù©‡yš·úŒw¤zž§øgù¦÷y ú‰‡»¡?z²ßøÿú \yûso{´¯ú¨Wú·y†¿ú¼/¿¬—ûŠ_ûŸûX¬û°·À±·ù¾3{®7yµW|ÀOû‚ßöž‡{™WyÊ÷z¨Ÿ|»¿|½ç|äûÇöÆg|§}Ì_ Ã'ý²çwƒOÄ¿'üÒ}—§zɧûÿ¸‡}¦O}Üüz§ýÎ÷ýÓûü®ÿx×ý§ïûÝB‰G½Õ·üâ|ç~Ôú»7ýÌGþÊÏýëŸÅÁ‡|ã×ýßÿÞ þç7ºœ'zê'þÍ÷öf_þög}·—þógûã÷~í÷»È·ÑŸýúÿ~Íß~¼ˆ,hð „ 2lèð!Ĉ'R¬hñ"ƈ$n´Ø1#È‹9†ò¡É‰)Oª¬¸’%̘ÿ^ʬ9Ó&΂4sÜéÐgC  …ÅHôàÑœIk.ÅÙôäS™QòüYUáT˜Y¡^%¸ä×®bÇ’-kö,¦[âõê²äÙ¯láRœÛVäÝŒvãæ½‰ÿ÷¯G°TëöÝK¸0ß¼†­*n»ø°c²5ö­lù2æÌCIÖ̹¥`³r-Oìéi”©ß ø­ÞÁ [ÓF,ÚöXÓ”Ñê†Ø›u×ß›W/nüøn߯‘÷„ûöòÈ™s¥®ÓúõÆÑ?;ßžœ;ïÚÚË /*7tñás«Çþ üøòçÓ¯oÿ>þüú÷óïïÿ?€ 8 óà&X ƒ · ‚R¡„ýQà…b8`†zøá„ Šx_‡#‚X¢‰õ¡Èߊûµ¨ß‹.2£Š)Zh#Œ8²¨c<âG£†@š(ä‡DŠhd‘>>¨d–w“QJ9%•GF¨ÿ`•"¢“Snß—I f–]–Y ™e¦i&–hÎÈ&‡qª™åšp*Yç›Lâé&•{¶Y¥Ÿ2ªåYgz(¢ƒþf RnYg£;òy棉êi镘Þ8ç¤rþÙ阞*Ú§¡‘ Jg”¦.:*«^^Ú*š…j:+­µn˜Ÿ <°ëðºk «Úzj¦y¦j,§·kå²$6ël²¢† ª´ÊKª’ºþê+¯`{l´#¾°¹äP.¹2à8ºæ¢[‚.üÚë¼êâ¸Á¼ÜîÊ£¯~Ûà“=;0Á˜¾H +¬0׼䴻Jí¿Â>lgÁªê¨ñ¦ŸF\íÇ!ûÇÿ±¤Œð‡|ôñˆQôÃÝXG7º±4Χæ ‚<|ÇA¨mîÈa ©PŠGR¡ú€‡4ÖQO‚Uó[v‹ÞK£»ÈÅŽ%óŠÂ´Ñß‚¼ó™Êåͤ´FðKIØLØ.yÔ€…AÀš'Ú£‚ Ÿ?Ž’ Ò˜õQ ø\C‡”¬<ðáB’ðžð±$ – âc•œèêÊ  ~!jS;e;XËnlƒ ¢àÁ H*À£–Ääò—°ÀAñY¾¤ØÆ~™Ge~Ô™Ób¹Ìb6“¥`´L 4¥ú@¦h¤æˆ¦ R”IØìi”†:?&MAa@gŠr 1Çõq>ŒèH‡Áø|¡²k®F…Cÿ4b«·k„å¸Àˆ¥õ p|pv±¯iáliÆü#ÇûÍtX' f5ûšRÁ~Tªa«žOoêÒ’2“°:ªŽÈhFv¥A_¥$ÒÉú¨Lœ’ਪ͜#S'®Š×ÕQHƒƒcMýÛaVV±œma³¨[È6–±4ìm ®)!¬T–uŸ’z[*`šSêÙ]MFöˆµE.UËÂÚíæö?œ ®»ØëòÒ¸â½å€¾‹½¼òV¸å®mqŠÛû¨¼:jªy‡kZM¡¾>òï`«„_ҎȰEC-w|ÌŸîÖ·îÕ#J×Û[[W¯X*eÛ^ÚÚ÷ÿÁï¯|Ȥ><—¼rÃî~)à—–ÁÇE‚åÈÞç¥ôU¬c•¸— #ŠÏÛc!I ç†mUÝ ;x¼žð“ „ý/Â&²‹3¼c,KøÄ·e1Œbœ‰bd‚ú]1rQø4‚ukÞá0*·K.ˆ¢ž@]›[ŸC­Tð'A…?äb7Þ²‚¿·äë5ù·Yn4„!mK#õ,at$ð²–,EC9¾[üp€Èx.+¯Ì1M2¢[lêsr¹ÕcB-«¶¯>Õ;§BA»Óòá!ˆºfÐ7Ìa@'ÈO^ç©V±¢}LdúÀtÓùÿõ4zÿÿ…aX¿/Ml”‰ÆiPKLRß‚õc-ºÚà~ö—1]êx¿xQ¨­Æwxf*$c e®áS ~ü»ñA,ep²Ri÷$¤!»aqøÞ¬vóþºîÃ’[ËŽ¦0‘§ËU'JÓãæpÇËýX•Çn «ò´%ÔîzÏÛâôöø•Ys{Wõrþxå±@N`” ý`G9‡P£/T>£(ºFžôŽ>æ¨è=¹ÀyR¡ž6ç.ÆŒmùv9åeÿx¢ÿSé9’Q&'5Ê;n'Ç=?@ÜÆµtmWóýë:oû©íåtö<>8+Ã#*N´âyi]uÿŸÚÏ•y+×útõfõ;^þ`–S›æâÞ»ÙÁ®×þÉl´¦§ÕÛKìáºË}öRæºe¦î±^ÞCö=èeþnÁGø,Šqð“éš³—ô+üÜožúí†Tgˆ®ôÃküÛGŸì'G;ííC]›!•÷z~ñQ­|¸3¿ï?;Œ ¿þù«:ûÍ7ÿóÝ~oOÿâý‘A»Dº¸ÿiàMUÞ! ì…Ÿ÷ùG ๔ ‰õßò ûÙýqœþU æÜiÉ_†àùy lÅ\ˆ½÷ÁÝ©^ŽàÅÄ^ ZÛ÷žó™ÛÖßÎýžŠà§©`‚ †òÿ ¶ þŠÆ™àîô1`K} ~›ú¥`í9! nÜšÈ`â r`.á¶Ÿú … ßž!ЉØuß ¦Šáê¢_ n_š`Î`Ö ¡^º!¾! n!£"‰Ä…Ï$¢"."#6¢#>"$F¢$N"%V¢%^"&f¢&n"'v¢'~"(†¢(Ž")–¢)ž"*¦¢*®"+¶¢+¾",Æ¢,Î"-Ö¢-Þ¢*º‡.î"/GUM”]‡lŒxôâ1*‡1b0¦E1N4vG4ªÆstÆz,£X4#j #uhcs´Ç/‚#7Ž#9–£y2 ch£w¤ÿG2š#VX£tè¢7f‡*£>~¤?NäHŠd@V†7FdDfä6.dE¾$G²¤LÎdq@d:n$Nž¤Ež‡IfdV¨$/åNžcN’äp`dQ–äEº¤Rx$M2%:BeLäJ>¥U^¥@Ød/ªc5òdHÆ$E>åO:e7’eXž%HåQ%Qö$O¬dJš%V²6.¥Nþã\æ¥^†#Lv¤[úb_"%^¦åUŽe]2‡P~%a &c.¦Rþe<ΣT2…\îå[VÿfT¦WZ&gvæ0ÞåC&%Z^¦Zf&[2¤aNfj$¦h¶ecŽ&`>ækÆ&]&_ª¦g~æ`Úåm‚enþ&pºfSnekÊfoBæq:&M¦¦d2#f 'lBçi&W–fdî¦;Öfs'eÚ¦f'vr§xr§VeqÒfrN'iΦO*¦v:§w¢§qΧrÖçZº§|‚ævšfxާDö'¦ç{ú'þfy†&r.D\Z§€J§L2'€ÖäsÞ'{Rh‚¶¤zRç3ò¦ohv¨nvèfê'‡‚¨‰æåúe…æ§Slh„j(Šâ§‡"æ„*¨‹F'‹ZhŽ:莶hJÅžÿh‚ç‹jn )’ÂcŠºGu2¨‘:)‘âhCB¨ˆ"k^è7ÊèjäŠê¨}’h•®ç~&i—F释é™RG ¬)›¶©›¾)œÆ©œÎ)Ö©Þ)žæ©žî)Ÿö©Ÿþ©› ò© ª¡j¡ꡦ@¢.jž6jŸBª£FªŸJê¤^*¦®©¥âé¦f*vª§f*¨†*œŽªšj¢ê§"ê ªj©²* ºj¨Ê*©2j­Î)­Îê­î*¯bj®zê¯új¯²i°Nj±–êY «².+³6ë²+¥:«±Vê¢Bk¬¶ª´¾i±Zk¶Âj´v+·‚k·j*¶^«¹–ëŸn«·Rÿk¶†ëº*«»¢ë¸Îë°Æë¹J«½Þi¾*jµ&+½þ+Àì³Â«À~랺ë¾rª¼Š«Áì­kÂò«Ãêë¼Z«Å.,»¦kÆÞkÃ2kÄJìÀŽëÇN,½Žì£ŠlÈâ«£z#ɶ¬Ë¾lª,̺©Ô¬Í€Íz œlŸælÍâlÎ’* ø,ÐÚìÎê©É"-žú¬­ÎάŸ-ÑæìÑ*,ÊBm 0­ÓVí­j­Ï‚ìJíÍú,×R,Ÿz­Ñ‚휊íÏ~mÇÒ)Û¶mÚvíÔÎ-¯¢mÍ–í¥Æ­Óz¯ÆmÓR-Öb-ß’íÝÖ­Íþ-âÖl¦âíÓÞjámºúëàVÿ®å2l¯&­§ŽŸÍtÏò©øL­Ï €ÚªìºœÍøíåâé6©ÌÁVìમ̰“ÎhÀ馪õínr®ÌxnìÞiÓêLlìF“Ìèm¦¯Ê/¯:oÊ@o¦v€Ï(ófêë¦Lë¾, ”n¯†®ÎŒî®/ù5¯ÏPo¨Z¯Î(@¬Rn÷©Ä/ýªæ¶éýb* °žÊ4€Òúéö& ÜjèŒí~îÕÚé÷ÚŒÿÖ/²¯ÌèîÿbîÌ.°Ì8€²0¸¯ïΩèŒúš-ŸòoÊpððÞ)îÊŒÆê©ùª ùB. /Œ ÿ­Î40©¦pÊÀ°¶pÊH°ÿl¯î°jðñ†¯Îd¯ý2p¯JoÂèðûšÅ»©¼@¶¾ƒ#D±ÇÊlå~°Ê81ï)+ O*í*Œ OpÛi§Œéb±œâ°Â1£.Ö®ñË-+sïÛÚi'Ì qžæ±S!oð w°œŠoÊ p¯rq3«#/Œ×j 'Œó*'Œ»1Àö1`ðÛÌgªò* (gj$r¯îo·*ü®)ØC;PC6øÃ³€?,ƒ<B ä?,7ð¬©.èÃ2¼ƒ<È@ hÂ/kƒ? ÈÃ;,ƒ=˜C Dó4Wó›2ó283 ¬©?Hƒ4,C?èB $C7°ÿi;.Ó.ë2!èÂ/ó0§@8s9ƒ37$7L5,ƒ?lÂ27ó3ƒ³8“³9“Â>˜Ã præjqåJoÇìŸ*²)Ó02§îó:tœVò(Çiþ®jåöñ÷j&_òã)+K²Fã©ôª4 Óio2"Ëéö†ô¥Æt³öñDW¯Êü1¯n¯G¬+L+k&òݪ #‡ªD+k*€MGê+§€ø ¬).‹Á øC=cÂ;°©øC €‚5¯i ÄÀ è¼õ øCøC4œ§@е]¿i[¿5ÄõVƒõšÂX§€<`B à‚6\³?¸³?øA ˆ5Y›ÿõW×3aƒs¬©9tbSC_õVÛ³eö;ðrQ?,DîQoðMòÂ<õ®Ú1ξt³ÒêjŸñi¯© 3µÕR0ÔÞ¶³’pUÏô¦²L÷vŸ’°P÷œÂ±NãjϦÌ)«r;ëj/7Të1§ oç¶´ÊöI÷ê6Áö°Z4<÷Ÿ^7³:/¢^uVÓ€ZûC|õ ¶=°)˜õ&´› Â}s5Ð@}cµ? ‚ xV74›>°) Ô³?øeãõcëC|;v}B€§@~cö`¶|k¶&¬).\ƒƒC¸„S8i_±wëj½v¯#O2s/í ÷¢Fn¯ôFßÿéÓø‹sîp‹p»^îKks¬žr.vùž¢@$+¹®Qwó8 + y7òÂdë‘++ÿ7&Çñ‹ÿ«Ž;k ãø¥®Ñt‡êŒ7kK˜ì+£ôƒ6Ø>¸u Ð7›?¼ƒ>¼¬)&ô s‚>ȃ>ØCÄ@;ðC;LP @º¤Sº›?0º£ƒx BaŸõˆWº?È€ øÃ §€Ÿº ƒsƒº§›C‰wv (:§g¶=ã:¬§5ØC& ù˜;9jw¯ËÅ9I*î®ù®.0[ymó©Ëýôi·4°«ì^îßH{ô&L•#÷“7±”ë©Ëu»°Û)ûfÿykãt„w¯{·Fû²rñ÷*ëU{°g*³gk²Kkñ&õ­º{³rq“Ë9K1?Ü;ÂÏìHÛj÷~ïÀ; €¿—7hû©þë¯:|Âë6;Eû6á²v·öÆêiûÅêþλ·ãé8Ù{ þiÓ*û°j|·Úü²ÒM·Z¯Çoü®†®Åïê »RÏ6 ?ü¿Ç+˾éVû¼Ó ìÂ/¼§¢<Äÿi°;¯Rýǧqžj}Q{½œJ½HËø¼~pÉë)؇½¡¦½Ú÷)Û·½Ÿ¾=¦ÊýÔK+Ý_êÝ?ý¢æ½£^ý¸ò=Ÿ¾¡BùÊ^µÞ>Ƨö½‡®Ó/pâ/k`ÿ=䊽›ÆÌ¸2~¶î/ý^l‘s}Ê6ë}­*Í#¾éŸ>ê»ñÒjÈ) ´¾›†Á]§>êG½Ï/°à_®Ë=þ°ŽÓÄ·;UK+îvkñŠ>©" Ò»,ç÷¸³R¾µ;kè6{¯²¯äÓ¾õ_?ö;ìêêÇ)`x›ârg¿ÞÛþÆÿôç¶#çþ»v­ǻ°?¿¿´þÍïS|ÂÿÄ.ó_{ÿ7+@x0PA ƒ&T¸aÃp8‘bE‹1fÔ¸‘cGA†9’dI“'QZðeK—/aÆ”9óŸB]å¾#•Bš¾hÚüJñÂß²xŽXø£‘‚š¾eÿ@¥ Óïµlþ0%å‘B¿§þ¢²÷n™=s)ѦU»Ö#¶ݾ•{1Ã@‚sñ:Daw`Þ†qåàëaî^¾~S¶K±¾ 1IÀ/#Î\y3ÞÎo ðíàW_•Q§V½šukׯ9Ó”=›öBy˜RÒ†Æ yˆú#c0†Òƒ<|÷ã…Á¤Ë{ë#3}¿[Šúi›{÷’ŸÑ‚÷>R²] ãS&à  àjñ'ó0W=ßösãÛï·ü@ÆxC{ =ŠÞ«¨Àµd+Áð[2¼:X¬Ð 1ÌPCÔV¢ÍÃ[Z¨ üÐÇ ©º0Hà’ÿÚ‚8¥PTQ9ãR(N xŸƒXŽSXn ‰oÁ‘Ž,’¡úøzPI4€óTKò#$<­(%¤ò-,×Ó@ ÷›«. G+ÒJ…Ö4©Í“ÞD’?)!› ¢õ$zRÏ=ùìÓOA ´¶…@ñ'ÅåÑDzúD€Lб%KŸAüˆ‡{ð±GŒSDŸDíI1†vúiÇŸkþlU®89‚µÈ3%¼ÏU…ú;¬J¹”ð?´P¸S¹z]ïW¶ò[¯Î·rLIYe )Z‘¦m˯bE“«)ÈàÖoÁ WÜV;ÔܘÆMWÜj/b÷ÂfíJsÜÒ¸µU³·’ÿÅs-z¥´­|ùÊ“Yný“‹I —ÕÚ]ÝKÍ]‹h%ó­ ¦PÝ‹1ÎXcÏÎíø¥A~Ö3–ÐÉp)&XÞ{ד[1QâRåµàµ fµ°]¯Lµ"–re v˜µ‡5"z¢šJ-ŸM ä§¡ŽZj†Êõ¸ã©±îÎh‡¶Zê®7›kÎ.[è=ƒæpè³Õf;ë·áŽûÖª­6Wî»Y~5j±-ä#¿­n•«]õêWÁV±Ž•¬e5ëYÑšVµ®•­muë[ÊA Ì•®uµë]ñšW½î•¯}õë_XÁ–°…5ìaí:%ÄV±‹uìc ÛXÈN–²}•le {YÌêU³›Íkg=»WІ–³¤ìhM[YÔþuµ©’kýÚZÓÊv¶°­mq›[Ýî–·½õío\ºÊR¸Å5îqKÛÉ*¹Ëm®n™›Úè:—·Óݬu¯\ì"w»Ãnw) ^ÇŠw¼ß}îyÑ›^õ®—½íe­\Ý_ù¢—¼‚­ÿï|ëz_üz·¸úµooýYḰޭx ü_í&×¼ Þïƒ!a Ox½Ä¥ð…1üØ—6ÃŒípf»a¾ŠxÄ 6±ƒåË´~eÀÃ(vñì[˜Æ5¶ñe ߺž@v-Áæ ƒhà?0²>`Z à˜É‡qb›|Û(sxÀÕð‰_låùöL>Žq–sûäƒyÊe6ó™ÑŒY Û••¨ë=.Áb^dCÙà]ûàJ°x³GHóŸóf@¿vÐbf­–aüec9¾Û’’¼LfèJÚ¶†¦ò 1iMzÍu‚?N0×9ÓuÔvæóìq »~ éàE<ÿÊ1×JðƒÓðGXíjXk ׯŽõüQ Ü‚ÖÙà‡æê^ƒýPõ¦)liBÿYÚÏ­¶”'èE3ZÛ)–PLiÜ^;Ðâv-¹¡nu¯›´®ë-ΡO'YÔtÎF<¦‘ï[ Ù®7Pö80×>èC„?~ðï€Yás%¨)ñº&\ð²5 ˆt°ÂÒFw1ýñ»’Ý"Ÿ«ÉOÎm÷ö,NVô•·s˜sœæ5·ùyÝ]×sÜ‚ kJÍ >çõü>B?Ñ{ÐõB(ú\.ˆ§k ê?%âA×O';sD¼o_:ä!îö¸Užÿhs§—_€t¸e÷lË}îa·ûÝñ.]ßõþˆ†]ƒ>t¼~ ü8‡?¦!p}ÄCö@ráO ^CÞ’·zÆùñŽ{¼#Ôç·Æó^aAsºì W{Ýg¾véFX1àv¹êWO÷ÑË>ôµ·ýí-»wÌ ÷Ôž}šQþrÚ×öì§~¥#\—–#ÖäÁyó…ß{éO¿ö9§>õÇNz²›õh~÷¿e8€÷->>òÏûô_Ÿýí×´õÝûìû~ûU?úaOüüÛXäŽ nhö/»0þ°ùO÷îê€ì±ºî°8`ë ïªHÀñ¶‚oýn,§í÷<°øÿîüÎLä âíz«>Pµ¾ÏY°? þ´Nô*Îþ*|î°~€ìŠüL¯pÐÛíÍŒSo‡‰0—°}‹^–·hÅ™ð•P±0 ñËú¦AxáÎ5¼ð*ú@BA¸Áç¢á€Á íêžmØîÞ¡„ØæìØæJM.>€èìòf­Ön®ô!Ô´0¼š0ÊŒð EPý&Ñû3 Ý’E¤i¢° 11qIÀt/n!ñæŠd®N@âáÎ4 w eQ—L.!ÖŽ"ŽÏ(®6n®.á®ã¬nàÿ NnáxáʯA̯ôì¯õO³ñ«‘·„e ¨Ð¶Ú\Ïí¥1Õ1Ì0xQfMÞø¡Ç4`d‘…€ºènq®ìã„‘®A°NëüA r®>âH@.A®”Žé0n Ca_Ï GÐÓŽQ#%1ë/·Æ>¶¸ÌíBÒ#Í#]ò%U uÑÞˆMãáÊáx|nä¡Hàôa'{2çên‘ú!ô!Žø!ð!``3oón@r®²!.oàÏñø¬*& $Ë,[R-YÒ-©QC‹-ÿÛ²²R’=rKÅìâ$áR$¹-30 þ¢±x!ÎæŠÅ s±†.„`1Êâr#G°.“Ð2·±q+ô’/ ³²JÒ.Êq2±ñ#35UÓ¾dr5!ñ#™Œ.aÓ4Q3çò岯ªm4õ%o'4/ó/gÓ5‰S0a°8ùo8“³2Eq0…S97Ó6u³Á€3:ió:û9µ&s;;lþ8“þp;­:337i ú:Ò/W²<½ó=×±;á3ÚÌó9R3U°=Ý“<Ù3<õs?ß²>Õl> ô%e‰4AtA´AôA!4B%tB)´B-ôB14C5tC9tAÿ C3ôCAtDI”CE´DQ4E'ôDUTCY´E!ôEaôAetF#´Fm4Fs´BqtG}4DôFƒTB{4H‹ÔH‡”F“tI™´IôI¡4J¥tJ™ô¨°ê˜Š “¬TªJª£ªÊ¢<ªK#É› Šª¦ L¯4MÕtMÙÔ—LÊ’¶ôMÅô¾´€ÊTNá´¦Ð4¦iNÛôO5PÕK÷TKÓi–¸´Pù”¤üÔ‘ÈTOëçQuP)µR-õR/I© 5 î4R'•}¢É™âOI5QÍÔTOSUuUYuP³4O9R)¨N55©JuLe•PiÕSµU}õW5¥^u’FUQ{Tÿ?u}BµS!IRmÕNŸZƒuZ©µZ#jX¡éP=h£v•Ws•NcõLSÕXQ•\­õ\Ñ5]±ôVU[Ô]Á5ZÍ^ÛõX½µ[5YÕu_ùµ_×[q5\åµOÅUZVWê[ãµ`–aýõa!6bŸŠ^©X Ö^Õ‡š6_õµœµc}hc‘UbI¶dMÖˆ¶YÝ•Y9v\]öe/V¶a)vaödq6guÖfïUfv[ñUYY6fËUe1¶eki“vg™¶i–Ž–Ž,¶V}4¶jgkýId³6h»ÖkŸ6lÅVlSö‘¦–fAVˆÀvd¹VhWvmÙnÿm¨mǶní¶d˶^_ Q£vné6c‡6£þÖoÓ6§Šön7qM6oW` w…ä–pµpßöf{öpÑfws9·Z+Àv’@‚l§‘>wt3Êtlg âu[—`ÈvŠ€T—`À¢\w‘†Àvˆ .àvpv¡(wßGˆ×}~—`Œ s™·y©•`À}0@xO—[ÉÆ¦‰[ R¹eì' †uó  …¨7Š }«WJ‚×}ùgz¹¥ò§  Þw=. ùâv÷XU—Àz_w=ÀבìWJ0 Y 8Ä~ágw!¸~@Jº—*x‚õÇ|ÿ¥¤wÈx%D{ÇTƒ‡7„Ñ—„ß§t×Ãõg}Qx~^8€ex†Õ´vùax="Ɇùš$$ƒ2ø†[è‡ùW¤dv(ˆí‚…c‰ˆ#I~ùâ€ù{¸‰×ƒ|cW‡O¸‡ ˆŠù‰i8ŒÅøJ×#zë'yí‚Xµ8’¼x è7øÂŒ‡Ø.˜8Ø.p€\x‰µh h¢ àÔù·‚Ú.˜˜/–—›øB„·x Æx’)9¨X’çê8’y öWÓXƒî8 X‚XŽ „1¹‚Œ ŠûØ*”·–ùˆ‹ Ȇ™€ˆÀ– (W¹’9˜'*ƒyŽÿ1Ɇc9šˆù„k¹–ìBŠ+(ˆyè—')y79Txš tgŽ@+¨t=X˜É¹œ÷ r¹~°÷¥Î6…ài([’ ¨•‹ùvYžyƒv‹µ4—Yƒ°7‘À˜à¹–Íy¡zœîYèy’ ¢‰õƒš>¹‚º‚ô9Šàš1(¡Ó´ D:r+g£š+ÈŸº¥]:”º'e¸g[Ç `àꦭ{r§ÍǦyú§ZzY{^º¨š›à ©•z©™º©ú©¡z©ù¢ºª­úª“zª·«¹º«•º ¨Ú«M!¬½º¬ÍÚ¬Éú¬Õº©Óz­Ýº­ÿÝú¬ë®ã­ë:®éú®¯ZòZ¯¯z®ýZ­û:°«z° ª û°zª»«Qê!²%{²)»²-û²1{²Ûù¨9»y›«ãB{´E»´Iû´á€±Ë:´›µ]Û´K;µÕ‰¬_›´«º¶aûµ­ ­q›´Çº±¡šµ û³Z¸[;·‘µi;¹™»·›¹ÃÚ¹oû¹q[©;»©¹á`¹µû©µÛ¶•º­¿;¸·›µù¸±úºWÛ¯‰;ªÃ›¹»»Ï»¾ãÛ»ëÛªã[µí;¶ã:´;³|À \²7»³\q߫㛴ùÛ­¶µÚ軺Í;ÂY¬ÿ+ü¹áà·ÕûÃÇÛ¬¼û›ª1¼¿ÛÄ9¾Q¶ÙûÄa¶U<¾Y¼¼“¿¥{º¥;½A<ªÙ»ÇŸzÁ‹»Å•›Èüµg¼¿|»ù;ÂÍú ’ú ž@©Üêá"˯<˹|˽\ËÁ¼ËÃüË <ÁÍüÌ=FÈ—|¿Õ|ÈO\¶·:©mÜÍ•|·7¼º=ܪ@à€¼¬Û\¿•<Éc<Æ »/ÜÈ­ǼÅ}λ¼}»½ºyüÏ›úÇ1}©© }¾?ýÓ'Òýµ›¼Å¹zÀ Þ   à à Àµ¼Àm½À±üÀÑ|×›¶Ó+É}ÝÓQ}ÂÿièÎWœÄi\ÃåœÒ󼩱À R€0žÊ7½«ƒ½Æ)}Ôý¾ó»Ô•üÅ·Ýȵ=Ç‘}»Çýؽݶ/½Ú“ZÓÙýÚÛC½ÑÏÜu¹OýÍ­zà 4 à   f²oýàm]×y}áqÞ±·¼®œØ‡(ÞÑ=Ò)ÝΗ]º›Þ  šú øàÙ½°Õû»ë=Üq{åGãiÜç=Â]^¾ÓºÃý×ÕÝá×ÚÝ«ç7¾ÄYžÞ‡~Í%œÑ¼ªß ¬ àW€Ú\Ì¥žÌ©~Ì­¾Ë5›áµ~ëÃÄ;âïšÆ)ž‡,ÞÞa^¾•=¿;^©¯€Úÿ“ú àä±èoÞ¶k~æeÕë^¾e~èå=ç÷>´ïÞæ>©×Ý}~Óé>èµ{ðñ^ðý´¾ì•|È¡ 4  é á=ß²k½žëIŸ_ïÁ^¯¿{ì‰òÍ^Ø«[ãÕ>¯ßÀ2?À ä~?ò¿ð«»ïßÜ#_øKû÷_û×áàð«=ñ1ýôÿ¹•è«ù¯ÚÁ‘^Ñ›:2¢ îá ¢ ó?ÿü'[ËG¿ôÙÿ\¥ÿæS߯¥›õµÈõ)}ïá í¿{í…»ö5`÷ŽÀ (ˆ0¡Â…ãÀqQàÁˆZ¬ˆñ¢ÆŒ'nüÿ˜‘!Gpê82%È•=ª|iQäG—,kVdˆR ž“8{údhò§Ð¡y “&Ì¥6-*m ó§C><™F%X%@”(à¨ð*õêÝ+{Ö,ÚµjÛ¦}ËnÛ²tü»‹7¯Þ½|ûúý 8°àÁ„ >Œ8±âÅŒ;~ 9²äÉ”+[¾Œ9³æÍ|ýœ3"UÐDG¡ÊYpU¨5eÞ´²Z%SžßT±r;wnÒ¼‡zî”äS«¬G/ŽSvÐÐȉ·lÎÚµSèWqî|9vÞ¿·Ty|$<t>}uœ£™«ÿXË“P° K7¿þýüûûçoWjÿH`ˆ`‚ .È`ƒ>8`wÞ%gQ{.j ÆFI’T‡¦ÑvAX¬`ß|a]x¡„,&áuHÜŒLIw“vïí(#MIg£Ö¹ø¢BÚù‘‡Ü@ @Â@ïõÈ£lì‰è#EP U<ᜄßfžù_Zea›n¾ gœrÎIgvÞ™˜’HJyšžK’¤á‚Xò(°ñ)‰ ­AoPÅžÀù¹§CTféc7~˜ã ˜&õikj*¤B×IÚÓ‘¨.D©wÏm c‡—V)ªBÒZѬ˜AW•)W°q ë±j¶Å&žÊ.Ël³ÿÎ> m´ÒNÖêž®Š¨@*è)¡Âb¶#þæPX1اЗ­p¶É‹©¸ÎjŒœÆ¤c¾ÈÙ[ªBO‰Ð©ô"¤êÁUëªFô(8A1Åâ¶6pÀÝê¯@Y 䕉fÉ&ë—ì´*¯ÌrË.¿ sÌ„1\äµ[ºm‚ÝbŠÓ¡î­4‘V¤  ñ*E@ÓMg°"¶4™ñ½Uýã¾%íl5¾]›–Öèd°Â%löÔÛu@PˆÜP“b˺1×mƒ @t ´Þt É'Þß±)ËŒxâŠ/ÎxãŽC¦ö…6›3‚v{›ÏÿÑ)ZâxPÅ\5j¶P‘·è/zs[©¥ý~ÝÔêw•zÖp”]:Ú ŸŽÝÕwG/,ôƲ…ìãÖ_}öÚo¿,ïÛM®på"9AšGÅyADôäBN0qÅNìýv²óx­F’_{þÄÑ;ÙàÎlº£_é 2;¼áh%ŠŠÿîÆ±® ¤ €žð+²‹pœK=ǽŠp„$,¡ S?à€ï`â3ÿÊg(äm!(@°´ù-ä p;` 'U¼ñ&û»X½6DQ=ðFTXéõCîtÈsÝè»$Â$‚ÿKÈ–ÈD–Š@',£ψÆ4Æ,ФY!½ZX òL çûQúr…<ê1V``Bœ ¼àð€ÔbM–¨¿³Éñ^X³Âü"¯Ÿ™‘QiâÁž(/6‚kë#Hû$¹J"‡‹÷ˆÐ% ë>a”ž+£Kÿ€P´¬¥-o‰Ër n” D¾+8¡ Ÿ,š&\ ¼Éáð†hJsš»ì‰&7iHðdsyyÝ6ÙFœ¤ €iNKÔ #J^“(˜”Z5‰WÞpœ:l&¨R6ç èB‚4M  \+Çx2¹¬)— m¨C QÕ¼³—Øú¥ÿ.í©/8@!û’MÕ,D!,UÐ@0È+¨`+P %(¾žßLOM-ÕMþ “˜ÆD¦C™¼žÔè¦1±$½Ú¹ªu%cöyž UvɨÑ'¬âæ.!øqB;˜–YFt¬d-«Y·§Ô¡PtU дQÿcææŒ‡G¡àDyÈ1‰¢€dfr¦édMa•Ã?·q´uÑyØ@"?Š¡tªøšQå…TT¥ÕtÉkªS±ðÙ¨Ýè°M±*О€PlNX2¡©ÜÆ ´5è+§wÛçÉò¬¼í­oû²Íþd­¨jkjÞ ‡N*ïFmÍ?ÿ&èPW d {èÎw’V›•57— (/? Éð4ŠÝåþh»ð¹,¶2+)áúı l@Wj8_•W8TÕˆiCÂÃXš\=èWÏ´ÁºwÁ n°ƒß$ßžWRÆåLbáÛÙÖ¶®2|.Xº‚h€¥)ðÓ£&SíöœýÝÚÅœPИâ48²9ïx…‡Ñ{Öôvlté„ß=E¸^A…ƒV5:(¥£]q…¢@â˜9o˜,h‚…­ îÀhR¨X æ0‹yÌ2C&l­/_´ÈXˆŠ™Ûa†Ea±¡¢ðãìV“½Lê.дãȘÀ!’9! 3€‚ÿD'úµ}.24ý¸ßŠð™$î=Ê 3³JÅW}ƒ˜ÐG¦©w’NžŠÝr¢­@´ À@0]0æ'–¹^š>Hæ\ëz׼mõk„Tx3‰Õ• œà€7h`oþ‘]Ñ'g:$[u’`õ¼ËI¿ªÅA'9vÎB?68:d‡`“0)›Ù9Ž‘¶‹ºN§þ$ÈH 6BΫ@ž9®ã€O™~“gÛ‘\ðHË;—®³§xÏ5w:¿våÙ§†¶çÃd,S°6hÂÀð×âØá}!ˆ,éK_ÈÕ_Ä÷…uˆQÊ v›×4à¶‚ <`4œ¸‹ +@—àh|êÎîzo¾óŸOÂØÏã?.Ñc4gH#þ#)Ú3စHß@)$¯ðˆßñÐ/¶ iyŸÞu<9´¢Q`,ÂáÒÿcjÖ²ßQæ6:¡IƒWx s#}=BycóP€.'‚bUs¼w;UL³u¥gI³4ådNa±et7wt¡&Õ})¨‚+8- èwbâU è'€‡f()°4 ³}úÒ}!qGÂp€„.Q°+%ò ‡÷~>TyNæbúFnž‡eÑôTWU ÔdÿcJ<8 yŸW0fd⃠°J!uC1|Q|™¦b Ø6ièQPƒ?Xtê‡k؆£„\E!!o1‚t§[úq(È‚‰‘'.¨6)@nk(Zñ8x:x"`Ctv#ŠRáÿ 0ÀpJ'X8õ(õd))Ànƒ•uè;èQN°"ï¡!òsB‡ŠÌ~a¡yÅv·Èf+Š mdÈq(s˜-–ˆt¾¢‰?Ãc–ÖOèßö4X¯Ç" ÈI—h&LJÈHÔ˜t×(ˆ×WOð7{£îˆR‡lëf[Γ|µ¦|ÿ¨`’(InB‰ ‘[Ñ_Ž>Á‰–‘XPàƒ£ö#AÏdN>F:o€g|"%QPAÁ“è8yÙ…cƒt`x>HÚÑyŒ…7Tè!‘$I‘¤vÝXN n‘#Ç=WiQPO)µGGiuäX‹Èñ“ ð¨ÿŽL©@ù”ag3–]! —¬FªW$grøQ‚ŠŽXi©–k 9Àqˆmt:ò±OÐÃ…– kx”X¤è\z"R¬ÈZ…I8A2Gh¤±€ºws ×p) Ð* P…9¦üw3ÖxšczÑ¡— '“¡™Qâ™rI—+—8ñz}t6MÓd›IY‡&é…X6«™Žþ¡š ¹E‰õ`rçò(èxš_£‡€¶e–]¶wɖ׉Ù鑃T—d›¨6ƒh÷Y§.®¦d¤™XéLxå6!9&#¹7™.Ò¶:YÿNáÆ˜4g‹ÀÉQ|ñ$‰XÃøYZØfRe"-å +åR‰õ0£É—¿•3fúR1å!o`_FFx™Ù^Db)¶Ù!B”R¦$âˆ:vÈƒŠž6 1ê˜@MŠ_"ÊW)p+B”‚)œâwä7Y[ÖýX2Ö©Mê¤k9`Éz6yƒj"ÊæIè©—±•g1ê6]’-!ÖE^% 'YVðœq*§ê‰AqeÅZ úÔ$ÚpŠ£XXtdQ žK&”~‚‡4xv–’pN@›EDy.ú#QÀ„¡ú…œ¹‡5…z¨“Õ£Xo×ÿŠxýÔ䧪ÙB„~ñ‚„"Fe)F´OŠ«¹ê¤§ãœÐ‰˜v‰„'tAWžL ‘DGGÐ˪¬Ëº¬_Cð8C“g8儽YÆDK9€ôµC‡e/7R@gŸàG"n­cÍj_Îú¡œ 4j<Ø#ž6&´%j‰*ìØ]G¥~ê,:!Jy#æPðªXRåŒÉ£¯ §ÕÊ\ä'ÒЫ†E§˜Š«x˜7³6q̧«)«²i95–²³0ë~j¥6/ÉMUÚ Ès•‹_šxaZ )‹Õã‰d ƒé…ÿª?Çyv±?R®ðGæIÿDYѱ³àR”7 4Çá(Wާ¹@+÷tzò“¨”XA§{9oJI©VrJ6)HHchX ôhj[×¢££ç~§™K“-J—©@I²&ˆ[IʈÔs‚+k¹— ‰‘£\½ñ‚¥¢Åš³Òš8ô‹ à¬Ç­…6¸ùUßwL„Ç%€3ÆOBÁ™ÛZ·D™P¢)@›ˆ…ú Úspà”铹Šýv£D4ºPºË:t3 v&:ŽûÖ{Eþš±óQ qñ*¾§K‡“ª›Á‰×·^¨½ØûŽqd[¢d×Á;™‹;ÿ†+œ#5§0«¤ea ½`2jÒˆ˜‹À Ü|§³ ÆRÅêN }i¬ç _[Ë‹U¢šF8ò«p¥—>ž)XAx@tÁH‹¹{z GƒÁ“~A¦/K¨†{ø¥ƒÁŒºº—\Õ]¥› Ÿ4¢ Q [aºN[§´A”ìD·ç» ñx|ŠDlÄ¡:˯?æ¨Ï9Æcüœ‰›¾c``'3 0ê ¿ 0“»| ¥Ày¬Ç¼Ö²É5³p¬@ àÄ4ºÌû¼?tÒ›{©ÛÅŸöÅ­û§SO›DÙ"¦§~uÈ ‘¡ºÿ¡¸KÅý…5Êè(°~3Ìž¦®ûǮذ™H¥ ²)‹,½(Ü®8úrbª×Ë1÷Z­É(^íC¯©±9›Lëë·9´ý†oÁüËQ1ažÅVø-Q@¦¤³`êPFPp Õ¹Çï Ï`9Y|´U[à ës¤ÓTj—‰Œ¾†òN°~mcW¶Ò(ß÷·+ƒ*Eܪ»wc¨ëHBê]‘e1ñLØSoR.‚Ê]¬Ê½aáËœÔýÉÞÍKšC:ÔÁ0±q€nOÐúHeP„ «ƒNnQ3¡ÝQå9¨!ÒɺâÚQiúL: Ýé©íÕS›á¥, +ÿª8#v…ÞèÚ}#ҳĩ¾©a©‘©©8–­d«û¹®èP 'k&>äÃNìÁEÇir`NáWÂ%¦{³Qµ"Xp¼Bœ5u` ÁÐP€7a®QÑ—v]šMMj× °p,ÕZ+ :}·p޵­¡Rê+­ ¢Nr¥X`_ˆù>æäÉcí«MÙˆ>/³0KîßI PÐuamdÏI™®èå ‹šÒK%Ñ`“‘MÓ¸`L K§Ž‚ñ¹7rýí2•N ŽUÀn {4Xð°K8»žëä€;®|e)ìÅ®ÿôKÿ,}œoH§‹hììDñšy“éÓ.(Òª@QÀRU¿¢¹)Þ\Ÿ~?ÚÊ'"¼¢¬$ƒíÒþ­[ §ZÐ ˆ“9&1Ìî›ó ¸&]‘½„oø†÷¥Gb€¾ª<ŠË¸Ðä¾áåHêÈM\¯¾¹Ëá1xbMVàäEyPçoys:§¤}—ÙIB>f?޶¿E›H ÏÖ£ïØ1r-òHÏ7¼9—^}· ·]²JÀb²Ò *ZSÄ}ÂK‚ºßD©%A'PV@±ÖÊ(gá¼¹ˆ @=ܸïåæÝ›÷¬¨Ìw½ÝÇ“×ðÏùsèÑ¥ÿO§^ÝúuìÙµoçÞÝûwðáÅ'_ÞüyôéÕ¯gßÞý{øñåOÿ ¸¡• 6¾º5³}„*jɾµ2›/;­.s(… à€Ë ·øs,@8zj¬+ „"J%SþBÈ ¿úêŽ+œè5'R\ Š™ª 2•z’í¦*@ê°( É €‘À‡&‘@32©ÕªxÃ-,˜1É´žÜijz„‘BÑ:Ð +®-HÀL3+ÊiÉ›TÐÀÁ¸à /ƒÌ£Íò °Ìúì³(²²ËM8 š³±ŠžÀ _D $"oÂâ‰žÈ |cÈH‹Lr¡Zc ÿê4ÒS6%ãÓÏL%ì?Œ sÑ7dÝ …7UJ Gšè@6+4 µ¶ÛŽ3¹Üš ¢·~ÑíØÞvkî@j«µöZl³Õv[n»õö[pí6S»ªH`^©¼ ÖN½ó 1;…Ã@oLÕ ¶ÞŠk®ºÔµð 8R`ìA9鬨ÃN%«É®·àÇ•¢š €ThŒÜ¼¬X!'8Åô^.á0,½éSTQFhÐÉGWGé‰*`?9s Y4ÚzF+…\-K™Í™æ €H P;›Í¬Zê°€Þj'¬06Èh¤Ñ”&\S°Â‰£‚4á7ˆ h°ÿS­­ªÐ§ Á‚dŒZE¯c¾êNu­–evE3( '.X)’;P›xú I²íÙÜ’Ó<ÚzÔ±  uê!Lj!ŽÝÜ·iÅU}uÖ[wýuØc—}vÚÁ‹{&,Øz‡"ÝSU*œHÚ°¸‚6yçM[{Õ‰R“™þß•¸NšWƒŽJã¦T@!T +r"ÊSLqïðÀ Ú¬è—öùqT˜ñ_„nWÉÅ–Bä+yÀ/*P°‘ßF@*½ ŒÂ BC%H NøÓÓô¶3ƒdUP£Â¢TajŒÊÞö·4 Mé^T‰LwŠpjF`ÿ\(´Š¸¨h€À˜Géï&¸rP ¢ÚGˆE{Á)b °ØâR°!€%)ŠN3H Gˆ·ý§D'2ŸVÐ7ùé¥løªÏ¤‡S+sÐê :~qG<æq޾Yn–W;@Rƒ$d! yHD¦g‰"šA†g }e/´ ½ºÕ¼%E*"€Îî%2{¬d/ÔÞ×n¢ìq ošd`­^³¤å•$¯(¤À–òÚbR¬àR¡ÀƒY\!W¢App˜(;[aâJV„A…ª0h¸»Ó0«~“#üÛ‹ÿìrØÕ0* ü=ÐÿÎT®ÄjW `°­43Ro°¤6½A1yr9Z×’¨DÄ ºK©*΄Z›Ä¼Œò$ª°,D‡<ôa^¸È lËÑåèè›q  FÀÀ,\úÒ>Òq9LdMmzSœæT§;å©v)¾€¶ò^ ¡œˆOY’yTXäu•Í-…) ÀJ9…(h‹ÿ¨É2®(b³éYY‘—ÍZÀúhÌkR”h½tÌ4TMé%¥™opW˜âuÍ|=ˆ_aAf:¨¦ˆnå *Ô"WÛ©ñ•ï NXÚNÔ¹–ÄïdË@«Pp4D3-òºHYZ¤HÿQH&y+ÊQ×Â!²)šle?ùŸ½…Ÿnƒ\ÕÞt½5©\Sœ¤’ËÅôt1ÅÍ/š€¬Ý0wÊeNO­{]ìfW»Ûå.{~НÊõ2DLúÐ5ì%•¦ÙÂ$aظÃþ0¯\¤B~Ìa®äª‹Í.%ÓßÍRha€™m£²Ä5˜ pª@£ú!ò•Q³®¥ëN»/ºÌw'ú4«h'=ÑÚ5NZEsè+ŽÊ—©¹¾ŒH¤'lU¨ ¹¬)ˆ3éÍä »4Û"ÙÙÎ(¨F‚¼Lžà$(ùón± Ÿ†TáŽÄ8£·+¢8ñ ©3é,ØÖÍÆÿ!&E´’# ü¢^Åœt³ÞîÆYÎs¦sí »ïfÐFˆBòK¸<ŸVxp¾V{¹°ßwË&®o ‡´ýVä è@®—€^%’º9ÃkJ(Èx¬·ì<1±ðØ.P戔üIVzR•R\’ô‰Lenå} 8o~Ãra‚Ê$Öš§Þî¹â…ÐE“•ðù¶’Õ¥3SV @ª}md»É›¶[Xô)èNÞM^,ŠgHü±¨#è‹( WÙ~Ú„™‰Â† ðÆÙà;,;F E®Bæ“îѹä8]ÀcJè;'\á gxÃ~Ÿ"DÄ2˜kÉ»ï·5ªÿI€ä¥ÔmÚ½ð,ÀŒl®Ø«') ™PBkÕ ®"»Ê«À U0AwÕœhíÔFã Ä%Ú~1f‰ÙÝù è§“¯Ò̉ãµE/ö2+í2kXâå\"¹—ñ:MÙTß§--{»ÕÚÖ!FÓóh‡DÁQMžè@"?˜«ƒ;Õ°ÇÊïŸê?ø¡Iä~ä°p{’W“ÈØ …är®ÌÐÇ* $CºŸ<ÂþyЇ^ô£?dž[³ÁÎû»DÔUzrm‰ÜiŠ›ð']Ô›æaaÛil¤öˆYcQPpüãŸSÕ¨íÔ<ëyì ê K;ÞÿK€þn×^2É@–Þ‘f;õû£ú4ù{“½Hþ-™¬¸”D5€7ÙÔZâ0éJ_Ú™îH%Ô¤Z7Z¦à+¨ëY‹oËoê¨"q#ñŸÐÓx‹ƒÂò³­S½Ã?Kô Tž+°‰*À±µ`;CÙ2€Aœóƒ2s37à t˜ €ÏY.™ª.ÒÛAìAüÁ;-¬ó*¹¸)cœ Ѐð‰ó¢y¬#ŠŸF£’Xªó‹ªo›µèÿ”+pµ1D‚¨™­X% 4!·y‚* ¨”?ƒ-Éñ © 3š3ÿrs,8·}Œ$°@3Œ@›‰žˆ¥Uƒ·‰›¢(H7¿“8ëİ»ŠÿH`+hal€zÚŠ.<À}ë+xñ €3³6ë$0Ž€ã#ÞpB ¼FlÌFmÜÆX$+((p,¨4B¹y¶UŒ Øc¯s±ŠðÃWc4{É‹H FT‹*®X+Iô5€q‘ FHßš ]tÜ;­=´C{ÂÃ5A™„ô•Ű6/é r-HÙµ^+Gúȇ:± È`tCuQȓ໊j1€É½¶SÁŠÿè½_ࣱ¸±;‘À;ƒ'x§vB@ƒÉÙPkA„z­°°3&ñË0”3:ó2Šyɘ¼VD§r,žã©‹f,³LŽ$¸ øÊ¯tÆÉË käF³ŠÈÃw„ƒýzá4ˆ+’‰«0µì”žrжÍÊNqµœÛC=Á›=ì Çy 3‚ @|#’8Vú¯ŠEsû‘©P¢s¿FPe± 1C»8z$€,Û͵˜ER<% ¢Hq‘“ðø¡$%²ƒD΢‹7õC¾M6câQ•°Ç¥2Ñ¥#Ô••«Ñ½Ë±‡Ëz(‚$†qhÓq˜Æ±üÏùœS:­S;—„““t ¹ 8ÿ­ DG9}2„X¬„j4, Æؘè€*•HsÃè‹Ä…T€øÑ¾¨À‚â1,ÕåSQ×%Œa£Q\ÝÀoK»#Ì bØí¡I6X• „X ZŒÃd0ú €Ú ˜Å“«¬ AÔúJ• NÆ£ÙuÒæ³:-£Ã‘lH£uˆ=dP@yÐ ,œ8HÚĬk«Ökí€;Ïãè † †õ<©B XÁ\µÓ<˓Π°£Ø? !W´pØB Áý´'|ò—¿xŸЀDZØM>;àãÊàԒБíYLì¶`íÅsY&ÓY>ÓÀÙôL»°5­02$@%ÛŠÇÝ Ä9¦ žÊ…>”£M ½Ð0 ÄX´@!—z#•*ÿXº¦Û ò4ÒlåÚ×úŒ¸ˆ+èï#¿S¨MÔ»b2çÅTèMvY^Z'ŽÜŠÑx‹`LÕ•¬TÌÁ e©‡`ÀÜi„S?*\N`î×ú¤“`„ªïJÊA]—ÀmC¥ˆ®‹Ã9t-ÑÜŸÇá‹ X#0´ˆÍ•ø¥a4ÄaÔÕÀ#‘‰•LAž‹”áu;t3¦à-[†àP|9ŒQJP¬i¦P€r{2$¿h¿6±M^)_ƒT9 §Æ'@y++ààáˆO4ˆžà¾ñÞ&ZIíŒ9#“ûVî%’©È¸ ˸Ž­¡SÕbíË+àâqT‹U9“Vÿ ™•AMtQÍ[ÉEÙß{Åa€_àzÍ;– ^`K¾dLn¸ˆ“(é˜=¨©Mɵ– ^‰ê-Æbêï«T[PŠeYÎÂQ;e€Y5²‚ȶ]f«¹Å¡y]Yy æUI·,¥ôPܪÂãÕ­*èJ¥¨‘›ª J© (¶å¥e=䪫%Zš*EA )\#/ΔØ,*'ÆVy9Ît…ÜF„À+®ãÿ[aŪT.׈:gEq€~–Ê–DáÿbÑ—Ü hœ%Œœ2EÓiD‡^…^ÈWóì_éªäLÞhŽîhìX.ÛU="‰ÀT½ËzÿYÊmê&V§¥ôˊ舟ª«¢,È6m€8¡ˆ•ö&—ŽŠiž‰kê$R~Üd.ôVoM€$F¨¾| £NǰÎûbJ„ µ Ýß\Dkci? jP ª'ù¿ûé–†PX‘ë™-Ar€ññ*Žˆ/%Š$¹Z ^‰´ó0¬½ºŠ© ,ЯÅPûà ûyRë$Úë[k½s=#údÑð¢ÂšŒf;‹È3þ‡Z@ ¨Ó®…Y@g1–å88~mØŽíî:Ü!·H·ÆÝ Ô=­QÆSF E5¡Ž‘ñä/Œ9CîAë°Væî±6ÈHÿ‘ç¯ÕçËØ‹šÙ­…v*ì+ºUA›ÕŒÚ1p-Á ®·aº·ÊðaŒ(؃­8È^M|éÝQZ¹•p@ E oN¡g#†¥ß}»äy㌃9&ßä‰Ð¹®àÇìË㮹‚7ü^Q^ˆá¡J¨åjžjû¹ò¤Fˆæ^x.u 8mm²”mq¯)Ó;fÔKf.EãS ÓHéí'|i¼N±Ö¤’1é,VÐLñP›Ç1A.)0ÚzÒÎX ƒRæÛ§Š!Yñ•]¢±Ç+Ë2£üm(–9!vŒð;f ó0GšdM<ð€ÅF¬èD\ÏX\0ç*z &"»¿, ÷ÿ&±ý ¯jJ*â#ŧ®ˆÀf‹{.rÄNµòÖbn$¥ð,As³R>/Øv_=Ý5´vÜD3árA9²Û‹h[Àu(P”ÕmÝ^ö‹\ºÑ·‘MeÈð¾(û‰‹¨ƒíÈ aá.:5-ºùk¡*ÃøÝ¹¼»®€P¡NpàˆrpáB(Œ‘a/.”xÑ Š1‚<ø1äD £¤ 9ѢĖp\Â|)ó` °¨Ì(S#Ë>cº<øæ`'C#þLª‘+@} µA¤£ @ ÊŒ„(1E‚U(D Þ½zlÝÂ+·­[unmÙŠKw¯\¹þ,x0á†#N¬x1ãÆŽCŽ,y2åÊ–/cάy3çΞ?ƒ-zÿ4éÂasNTà#P¥p˜¢^øÀ8oxˆ ’iéÅ#[Ç„³"Š+oÞTé ŠX×A«ü¾õÍ(³­04uš! |­mu&Y³( ùæ H+ÞÃoráöœWœthàdÿþêºöœO$ITEJÎ  ‚UÀB ¬pÐ \E Uñ•PèÑÄa±´I´BUB À V(SB”ŸN1òäЩ0 pƒAx€$’7ú¤G}©ßˆwÑ`a Ö€]øŸm+4À(`ç%€ÿͧT*üã‚¶y0âQ^妀;ÿid’{’øfL°ÄD+°‡Ô„Ge°"I FQQ¥V_“òåÖ=³ L=ô¢ãLj\õVª©§¢šªª«²Úª«¯Â«¬¦>)àšÂäz Ÿ3[ƒ •g&C¼½]Œ‡N…ƒãŇѭÀˆE.¤ÝDW€®¸L¶Ä¨£b4­ N8pí =¡ÀœÚz¦±Pøjì™8&ÕQòû⯠> ‡j†p—çœÀjpLxÒ¶ 9ÀQvê8ìDÓ<Çp8QC-bb4°NäÊädH&õD•êÕË$Eµ‚tÅs^tN<ÇÿJm†¼c|KŒZŽü¦©2Ë+Ì µL°A‘$Ðu×í1Iê†Å+ü¼¤”ZÚ]³X NFÔ£ŽÁˆj[¤Îڷ߸àƒ^¸á‡KF´JÈAÁmÈ‹t{*@ŸÆ"몲:*}QÅ  ]‡o@]ˆB{ëáq«³³Ff£-4D™‡Pz3ôÄeÂ9‹„&w $@<ñúrm‡D± ­kÉ÷ëÔTRMåºk W¡ ¨P/Ȱ‚øh ~M$Y±B N¼¼Õxz¿(įÁæÑŽ EVYÆ'ä·)l A2#‰¦ƒ,4¥$ @ªp…ÿ‚$t¸ƒÃÂr’&ŒM7Š+Ú¿.è ¨(ú‚·”¦+ðYVƒ\X ðDA¼R°¥µ#aë"Ðɲ¶Jå-.êè¨Ð1 »Ô­moY¢ëÁ7ÄA1ŠRœ"«hÅ+b‘3”` Ð#8ü(HλSäF8Â̵ê~ý’ÖTÚX½ÇI+:o  º3EÁ!u ɘ˜¢dÀ‹ÍøØCˆh˜‡tv($‰LÙâERð3ºïqXp’$,Ô‹_% †ª”¢BY­K›J4 ›!å?îQA $¾[>íWN ÙÈd<ˆ`AÚË€Q¬§‘†ÿ¤Z×ÊzüeIˆ$ ‘[¢ %¹ˆ¢5!ÍKWj€m°+äKƒpJ £`pñi+£0mRLcê(Xåqš‰ÉMŒ!k "ûÙ—`4!ˆty˳hЃ"4¡ ](CÚ˜jB¤dÙÝãII‰\‡GªáF1WÐU©±5ÃóZñ$¨¼ïÉ$rÖAp3=¥˜Jg²qá$UHÀÓÖ“8Á#IÈE     VXj:Õ9°Ñ(cØñ£ìÞ4JÜemk$MØ*ÚšŠ|(!ÑAœð.°‹X<òªªé‚”´›EªR™:Κn—Æy<àÍ)Ú›ã‘ÐÊâ€íé™Z‘dŠÁ˜à$£x ž±&´®vi@Œ™å1WÐ5¡8¼þ/1êEv¹«j@®tnI>óÕ´¢‹GJJþ)±´P°5Ì0)!®ä%h’5ƒ±Í]qNžtó›mu±™¬¦0Ç[1€‰UGQçvâ|D8rìd3÷#›”'ÿa¦h0šƒjs2?o e¹L™m}á­— nðƒ#<á ÷™Â Æ0cⶨ±$z2çΪ¢.°éëq9?ç4–Fµ4˜2DP !Ôj¡ãá aœ@ÂB£j(ÔÜ^fz¦†Õ½n]^„檶Z¹i2žÚ%Ô–\>Kók%•×2)7Í„’büqn½0”áÕ {è„3&˾Ȯíl͘콎‹ÉÒKY8Xö½>ç¶¾¬`³z¹™$TWjƒ÷ÚØëÞ û™56£²þŽ s$„½F×å-Ø v4Ùl­ìÏ{C8Àæ5ßù(C™à =éKoúÓgѨ?òHËòÿï{!—ÖðùûD4ž*Žû„Wâ!…B†gžWeÃÝ2oV¹FҮ⎥™ tÅ¡ò–8}+PÁ Œ‚¢šI#‰\ä°7íë¬e)QÈaÒ§nã(½‡‘]ÿêHº¢ÖI?RkÆ÷ò1r¡ÙW÷¼ï=Ñu4ϪØÓ€@t %ÑÞ#ÅÞ_Àr©˜QUŒ%€™©„qùN”‰ØÉyÄ Hì$ͯ1…àè×Bð× ÁÁ3YP…AÁ³¸üPm‘-X@\ ƒ ƒUÊ@ ”è¡^á"aö†qADx€†”ŸK I„™€•ÙRà›!­ÈÙ.½ÿvÍÄp¤_÷ àNÆ ÛqXr4] Ll¡Tp¤FQÚ8\Ä‘YV  DøÎÛ]Ø8ÍÅÔÛ‡ÝIÍ4XN4Þ\‰ÚEh]ŽM»y¡U9‡¹¤Ö:O­_“ÔÊñÑ^ÍÙ‡µ]Hx›w„›VÄÜÊÒv À•`½ÏÔÜw8˜Èõuà:yZ'F ltÚ§ÙF¨ÜEÙù wÅR xUž¨ü›-¨¸E/Àö•]™zã7‚c8Š£b@Ô|\A;=*…ÌÚŠ@œ€…àEتàžK@G‘I’tTB_,…Nœ ê<‰µ¡8)Mÿ5J:M©‘!aI³M˜—à„˜Á£Ã‘[Ò<Á#š €AâMU´ÂX_a‰Pa×­åÄÿGzä_žäãL‚œÈTמÍÏIìÞ!‰ÔØcý’DP|ˆu$P‰¢JØÝàݦýnW:UÀ, Hd4õbÈ@$–ð# ]ÅÑÀÕÇ¡†€É¿ÑÖåÉE/ Á,0ü[Þ á8Úå]âe^.œQM ÍÝ8±cÊtë¹ &Íã©ÔãDHæ8aŠ<â‡8Ê5„D~˜{(’"IÉ"ÀÛIOT´QUøO6 (îŸg±[4yœ?Ú ¾×~5Rÿ*…Å?ÂA@ªG €9)ã^¡Ç¹hâ¯Ý‚É5&? §K\A„SM¤]BBž½eYÊ¿(Si‹‹°Ÿ™\`n`<Æ—6 tîØ:iD 9@~ÒVÌ vRÀ’Õf½ÄT FþHšÝU^eZ¤8Y•99üÂTÀZÎeÛl¡^Jè„Rh…RQ9ªD‹#ö˜(ÒsêÆará¨E' rÆ!APÔ#M`xaDOfÉ ]An„DØZ³ä‹·YÎDADÁ É"N¤±@~QFR¢Y‰IVÀkýŠ}ÁÁ0‚×£!^ÏHTËv]Œz”MÿNMb·9¦Ð8¹ Q0çp4ððäöd[ ùJk%õJ® &Bé8ÐétÝRn,Ê"Tš‰-ŠXÖW®YI¢Þ …$É$UÕ$X’d5$„D ¬Tð¥…ZÒe_4ÝÄEü‚4ŠJ„Zh©šê©¢êÆËfÐë):vGÁ ˜¾D0i¼“•Þ‰T.„¨€Ä*DPæB<Á ÅP: g2JR‹‘¦—d©ll©—@i%ÆHµ¡Zݯ, VðŽïè¡ÖëF€G,šÓfƒñŸŸØª; /Ýdƒ´aò½]Üå—º‰‡zœrž¦µf¿ðé^ÕÇŒj%ÞÓÿ$Âtt4Àvxî‹.Áf~É&rÞ'AøÊ¤R ÑlŸúÙ ¦r#[ÂE@`@-lãÀ¥j˺ìËÂìg\™„†"H½¢_¬ˆ– ­‚| ¤zÆ‘‡dàeŽÅ¹`zÀU¼0½Äà¿dŸÀÀÞ·¶(|Þ,±=ªùùÚcåKŒ4–¯+¢¾ Ó¾$TZÍÏŠ|èêó$EŸùÙÜþÙY=ÊXÂé“Ühµð„ð ZÀvÈ• À˘' 'Ý O£Q+…=Ó€Wüå²›”‚š¨½ÏÅbïLNü mýðŒìLÌ ú“Þà åÍeèÅlëºîë®ÿap¨blùáìÁRmˆ’ji$f¦€šòØï]WKõ×°ò]p“j‡îðΕèá 9비¾J˯kߊ …Q§¯íˆµê›tIhXd¢b¢ß‰à ç¿$ZÿQ'[1D*‚›âÛ¾z¢ÖîDˆ!÷Õgê‹ ®€Q*&½/·}-d@u×@,ÂZ¥bj«ýnèm²)wiÛj•Ò ÐØ®< Ú”I4¢®\ØÁ$A /Á¯e7Æî Ãp [(Êg!vîÛÅÅ®dsD/IðìváÇ @²u-žLDœP…öbFŽÿ>c_O˶×êÒd5òeá+øöD$¹.Zd2»ý"fß Ç`ñ'7U;OœÚveá6D ôð2V<òX#é8¡÷ÝtpêN„3‚Êza‰ø‘”¦²Õ€i„a¨ÔÂþ \D»Ådv}Û÷}ûM< ]×Bjlœr£óÀ2iT6óÞó*+0‘XËg E•ÇÚ)íG„‡uSúèP`sxætTï43϶}ñsïD ÁÚnønuÐ@xyÚé=ÿJW²³3“¶jŠd*cg±•Âsãí?ÂÚ`K "u‹µu?îˆX¯V{“V?u¿ÀF™V„Dv{lÿúºÛÄñl¨'o*ÛÐ7~“y™›9ë†IóÔxßuÙ'DÑ4G ø˜Ël×w”‹žåÊ9$Xp,g=P•ZEwÆÔwù=étÄÎvOCé[Ó/·Ðf†xSÑVzÑêÐÒˆž/óûÜ9q“ZLĹL´ –F€¿«U£â·ÁuûËUTõA€5’#3­w:‘èºå躮_wÀ47Ü=7¨³ÐFbFÄ ÎhŽ£´à^Û˜ïµ|³ì™[ûµc{Ïš •7„•[ìE®jO)¡Ïù¬Öäsªs.«Ÿ¿!‚©Ñ f¥4IÄ´M,.G¢ì¢''ˆç¶JËÝ-yÿÈði‹i,§{1Ô »»f¿¤¶§{kßWl²àl*Û5åS*54§DÙ:N|Â{øA“×vÛU¾y=3Mü«P 3*;‹ƒ¹ÄIO„¤¬îA?Bç¼_dûÏ}З6qä{õ×*ëË~Ëj²Ôä¨Û´,íÄ‘Ÿ€ü„®ؽՑw4€"Í«Tj„‰{–uëô37z¿+¡K ¢ünsX¾|®\}Ökí8=BXÿbÇ’®ûÕ€{ü…_››É€“´,ÿ}Ä#x}܉ñJ¯OÔ ŠY“áÞ_œl÷ŽÑú›½¿Û—žãûÚévEQ-ön—‹ßI”Š{æzóŸh‘·tǯÍd¸çqŸNÄôsm‡DóLÌ:’y¡¾€Öà¿¥Kü­+O¯ ü¶D8 4Xp6tèP Cœ$HÀðƒ‹ DÑáaCTê•4ye½{)S®4éR%K“þÕ´ygN;yöôùhP¡C‰5ziR¥K™6uújT©S©VµzkV Cv éd€a <éÚñ`Z…^ÙÂâ!ÿÚ¶U¨(×´h#zÅåMÃÀ{ G´¢7$_†¦ ¼â¤C'“¬ …£Á ª8ŒB Af‡o¢¬X¸nꆈU·†X8-œ…Šiî}[¶mÂpª°ÆàJfÜpêpUÌ0 \†µ&wÍp¶n„]ÿ†3wÄè߯ÛUn+ ­h˜‹°ß {w}\8,å{è`öúx´Ä×?÷϶¿ÿth;é¾  ˆbÀ‡ƒ#¼ñà(ï¼å Œh­Ä^ë+¤ê³0¢74@¡ +L”p$™J‚I&—Xlé%™h‹Æm¼ÇuÜ‘Ç}üÈ k ЫéÚÊΠ ]{b£ÿÀì¿»|Ô ÉÔœ»¡öŽŒ1¯ P®H†˜ôêI¶Œ@4ŸÎA,‘D²MæàxàÜ6þšïOûð{C?Ýš³µ8 mëÊ*Û³«2-<,$è¤DƒÔk‹N;ÿÌsOÁP!'/ ¬ËÔO5]]íÕX=Π2xhÿ›u7J²L±LˆH>9 éJ ? )E{bzVÅ£u1Fi¡QÈlµÝ–Ûn½ýÜpÅ÷¨bÃÜòMbÿõµPÊ©4°®8¢ 5ÓÚ|­× 8ºô Ø¢×® À‰T`U>c…õáÔ˜ã5ÝŠÓ¢86ÁÿJ;­áa‹{ƒ]8LEUÕ‡†K6Q73îªQz l(d‡Ü IË‡Þ ._†6­‹4ÓP3YäÐ`…†.‹/¢â"VÓÜ¥T¹ ,P ù4¸U@Œªy4ør®MIt l¹ŠR è ¹JñÅ­u%˜Ú^ [rí¾ï¼õÞ›ï¾ýŽªéÓ Û5°Ä küŒ—Çy 3Ù÷•x±þRÐ`Ëæ€sÐ5óˆø8­¡VÙôcWþºÏâžÚ­¢:šõýPV-õ>-t.Ý—2|¬¹¨Ó;AÕ0¢‘ç7¢‰*Ú(£&SÚ鬫·Þâ?£Øž{(¸÷/w1ë4^ÏåÿÁI”Ë>;m_ST‘Zøßf©í“êþÿüõߟÿþýÿ_(£œw½Ô0nGŽ£[ݨí?ÿêʈJt¢ø`!mlA”¡ÃA±içtÃMîú"ÂÝ(Íy»ŽFF§Ð¼È6è> ·áUážqÌ|:#’êhÕ!еN€L¢Ã×›(˜ªskÊF³±ŸK7dlÔg6† Ó 8 !¹ÿžÊüCÒð,†jЂ¸E„(¯‡ºƒÂæä¹(t$9k•qÇË”¥‹‰Ttë¸ÄR•!±‚ÐLf:ShïCã³Ê8Mé1ŽÙÔæ6¹ÙMo‚+’t„c9L× pTL'òÉP‚®JôO!ãB8 Ðê4t;%ú’_¹©$&ÑrÉ"„zŸ©¥-q)š( 0rÁÙÍFY%vÂÁC;"–V©N3=K,t , XAÇvuºÚŽœ^¹hFݲQ‡TaxpXApš·jRS~ÑÂæ7™ÚT§>ªQÍ‹J=šSqú9âãÿ«Qy¢TäZkèÙ[Á!  „C¢°e½ÆŸÁ¤êJ ZׂÔ® QÚPà“ÆÆ ð\gREa='|(X½†:ÝÝô‘U‚åšÒ)'Aiz,Ý\ŸLdyÀž˜«h^MhUšyU¢¿ÁY\@€XÄ" È@`ØFFkÎ-nÕbÉR¥Ú[ßþ¸Áý›fXÓú2«8Úª['$Øv.˜æäÈÚŸ²m/4 Cd* ×ë÷ax=¨AÄ[WþXW˜íWC¬ð„'¬–¦© _s‹Öèz´t¤ånŸ&ëÅ̬ïÂbJ9ûð¾j¾ Á‚ à9ªMq¼ã=îCÿ[ßÂÖUsˆ4§¿¤ê¶~¼îˆI\bŸ/§@&ìÁäÞh¹üœ{á ÙØŒU5euž°(hX4aˆw«§bW•w¼HÆ$@†/™ X8"yߺ$˜<4^0•Yþxd ê~\`ˆ™9M;L:àSŒ€O¿m±2µüf¯\*p‚DäUÓo~0B£ÜP"bщVô¢mbdqÎÙ€/¶QŒ$å Q=U¢nŽYÓ(@q‘û}° ¨?í“—ŽFS—1ÉêìQ/ÌÂcåa, ÷Ò³–¦P•m<É8¯¤pè¯3‹f;ÍòR ¯üëÿÒ.Q×˜Ö æÒ*½/~G=‰¶}-FÜá·TUGd3DÒCÂoZ6mkîÇ©¡ç®Po{ß{C KÛÈìkåïžV®««©Xf!g©1ªípÚ}©wdžà^~e¹÷‹ƒ›™âpö,°3Cd¯D\enx°Ú²‚œ|,Púó ]­£ÚÐã–ùÌi^s½eü9¾^ºiDéõÆ;¬*Û´¼}ó£ésìˆf´Pùçˆuöé@^%ê³xñ@ùn( 7¶wS?«†«t]¼ÀQÿ¥²Ï”CfÓUàrNâ×Wû@Áá ¦fÈÊýrkn;6üà _xm©ÿ]5:¯ÏS¼n„d]>Çšœ†^—²^¡^„ƒЀº÷%Qaô8‹x\‹£¨·ºq”}+ú[¾Â„<ž¸þ𻪞ãÊ*»$ „öÒ\ æõÌÛ;‹ûbº&"Ò0ퟎ‘ìûTh @Õ8œíOëŒt3üö¹ß}ïSÅôuQ¼Ó¯Ÿé‡UèX<+ßzöÈ Áó>©=ØÿøUO}ÜmzuašIãZÏõ|fýöÏø¼b÷HG7|o®Âî æîJí>VíO@Ò¦béB)ƒŽ¦¨þ©úN·däûJÐOwÂÙbü–¦ü²âüdlò¨ýØ‚žÊ=H.cfÿ)Š>GrI¥V°øøÏbôo8üoãöˆþUl0ŒŸpijƒ©J»‚„ô­T¢/Uî +0‹D*÷&… ‡…à€ïr Z> Ä®)ßãpð®0$Z0b^+b°írýÉ7V<À ŒÎ :Æ`Hª!Lê÷ò -é3©×>JC–0{~ ™K ¦ØŽ ˜6ph:°ùNC.‰Æ.>ØÂC®ãÆÈún‹åMûäÐoí¯BWçX€)Þ,/@þ" âeÐË!$%/øN1ì¤ÑcXÏ„d%#wc«ÇâvñÌm¾Bïy0ÿâ kŠgŽêoë" Æ`ŒþÎúM ×°b.óQ÷1ŽÀÝüñ­"gXjÐ+ÊŠÑjƒŒ!f¦¡q!1é —Œi²ñ 12yè° ªð=‘ gì ª5¼0$"rœ2.!s³¯åêñ%í±$ð‘kÒ&or¸€¯c% «b 7üÐ?ü)ÖÊ"í R#/&)“Æ…¯ë&R“RØvQ < ü1±$ý‘>ÿ =/rDÕ"êºj±p €ú,óú0s 5ÿ³Ð”G{ÔG{¢A±ó@}²;Oñ;«+$ÈqôÎ1ˆT±>ý>[”)'q šMJÉ«DyÓ>sŠ ,YLí*ì¹ì‹PÄFÕÛªi½íGÛÔM4HÏm;¥Bõ 5çÉ\ZñƒÆðI¹´E9tJÁp“’CwóÜNT®6Ô¦*Â$3üÚë½0‚¶`ѶfЮoHßTS7ÕãÙæpŠ( ²+ )"x°s|1Tñ/E¯Põ Dí²/¯T U>9Q]U-ò­õJûÓK@<¦¬BÒÐ9/ûR"S9ÕYŸõû<ÕØ@*êTàî/}ƒ¯ü ù(‘W{ÕV³ÒC[ÿe\“ V³ôP·ôUÁ¾4,9¨ÝL¥3µRÙÐå`R:¡U_÷µSESHTTÝ“TC‚žÐ«/œ1–2ÔKý#c•\u³ƒÂWMT]•0Ì]…•fÖƒ¢^±RÍGÓ4ðø•dK6ZýUN›•NÖN%Ô}#f"Â![CN¾ÕØbõVÁòa[T\]‘mWÖb’ÃUcECù>…ëèõRukÑd£VjOZÑŒZŸÂZms`BÇŠ2¨hÖ[7‹a=ÔaÛ3{–lÖØ‚’Æ–]… Ö=6Fý6Œ$üGcrMwtjûÖoÃMê@p—p ×pq—pG‚âÿÀqr#Wr'—r+7è€1´q7÷r;—s?×sCtGWtí«q-7r1NWt[—sQ÷qI—ua—vcâà jWwwwã`u]xe7xƒ·è`!Þ@x“wx•·qïàw™wy£WvŸWz«zqW6êàw{µ—{¿×{÷{Ç|ÉW|—1f—w×—rñàwÙ~'×xã—~%—z¡Wxã÷~­—“W!Ô·~%—yUîÁ€ø€Ub%¸øUöo+Ø‚»éLAPƒ§ÉY:¸<„?X„C˜„GØ„=xƒSøï2¸„[ø„_Ø…Qø$bØ„M¢„£ÿ…†s†wX‡g˜‡X‡o؇ƒˆ‹¸ƒI¢9m؈—˜ˆ›˜‰ŸØ‰£x‡U˜ŠÑHН¸†•‹·Š»˜‹¿Ø‹Ã‹SŒi¸ŠÏxš(ø‚טوRÑŽTŽc‘ŽëuŽ?ï8ï1ëXýûMù¹9Ù™‘Ù¶îðY’y’¹’/9ãX“1Ù’÷–“?™’C¹“G”IY”÷¸”Ù”WYóµ_–¿)ƒ7™–k_m™åf—w9oyÙ—˜©X—ƒ™˜‹Ù˜idY™—™™›yƒ“y“¡9˜¡6–«ÙšÝÈFOY›ÑÒ™y˜»Ž¥ÿœÇÙ™-SœÉÙ•OÙŽ—ùœÓžãYžç™o¯Ùžï¹ÞØ™·ù’E0•3Ù~þyI™Z šŸÚ é&GÚ¡ú¡ž%š!Ú¢):¢3ú¢í£[y£=zdñY¤Gzo¾™ž5Ù“ùELú¤Û¹¥_z™Y¦gzžß™¦o§‹Ù¦«x§ãx¥I¨ƒš\²Y£9§}z&ŽZƒ{Z©•Úœ›ª ¹£3™©k¹ª£«³œ7S¨»Ú«·EŸ›yªó8Y-F ù£ÇÚŸ#Y­Ûº¨ßZ’“šEÜ:­áš®™™Ðêڣ隯íÚ¯õÚÿzû:o©ù«±•K«ŸÿÙ¥}¹Œdú¤Sz±'»!›²/[1[³7Û%ùªŸÖ [´GÛü¤Z°©86YÔA§™õ²W[©S›³±ï©gû¥ û³9·ÏhÆ¡`¶m[¸:ÄHÛ¸›N¹yš ¹, J¢Øš¬YB€þZºÑ·%ªûºM©œû^ÍZ¼ë!ºÇ{»õºÐ°O»½ãÚ˜që½ú¯/  JâÔÁ»›û¹Ý;½ÿ›•ý[ºZYg¹Á“²e" À*С’@Š` µ ŠÀ fÒ8ÜÃKb*œ ºÜ, —à0 ª[Â)ÜÂ1ÿ|&7¼Ã?\ZT¼*ªÛ·iüÂS[ÀŒ0@%J¼Nü¼ÏxÁå™Z€|Â+|Èë ܆ Pb Æ«ûÁk ÆÏ[ÃEüËüÈ“¼$ŠÀÌ/<ŵ¼Å_<Æ`Æ­ÜÆïÇGü²£|¸•kÆ\L\¢›Í‘\ÉÁȉàÄû[Èm<Ís¼ÝÍëÉ%š.`dÜ»¿Æ7=Ñ/½Ð+ ¿]¬•y· ¼²\Ög=/À;eáLâÇg¡\B ºeÛ,`&e»ˆ½0<‚Á  r½$ÐAÂÅ[ÆgØKâ×QÝØ¯½$p]×ÿܺ­Ý$²}4üL"Ù—Ùý¤½›×}–\¢ º%¨ÎÝ$ÈÁ* н$޽ʽøý$ü½ŒÀÛ£}ÚŸ»Ú¹=Ûƒ}à¹=ªY¤¶Y}¢±Û˜÷ݼ•=jØ >¿WâØÕ…AܱØ`Û ÞÜÑ䛵OÔQöÛ¹máÔ]äõÛã5^è—ÛmÔ˜Ö^¨ÃeÛmÁjL"H|»žÊ¯Ù£¾$Ô!˜Þ$œž¿qêMâägÒê Þ$À¾$l¡€¼ìñ›$ÐaLÜžë/]¶U©´[À?¹»«>îëáäŸ}E– ×­ÿ¥¼«þ~A„¡$Àоâë¾ûämÁñ!ËÞ\Bìõÿìï1í¹ÀSÙZÐúïSßõ§[¥ËšŸg·{!ï½¾è^î5Ï£„ô©þôs¿î ÿîmß$p?FnÞ»u¾láö‰œñ[Ÿúç{~Ò[£aÝ~žû‘ÞÝO¢Ä-@†€µkA*à, 竾òM¿ý“½ ¿ÄÑ_Éë Ô­ûêÏ?ý¿ Œ«WÏ–‚g ¨pC=uÈÕ«µð€‰ê,°€Á^  †°¤É“÷N8ɲ¥Ë—0c¾LY/%D‰^¬'k#$NA ÿ«žÀ‡ /T0"ÀÄfp¡c=tI—6U¨Ña½¡³nN¬¸Ó(Tƒ2Óª]ËÖäʶpãÊK·®Ý¶4óÞ-IÓìÇ#‘nì¨î—€!F0ç F}¨‘£Çz ìK𬇟Þ* d‘$Åî]ͺõ]ή[¶;amÿrëÞÍ»·ïßÀƒ N¼¸ñãÈ“+_μ¹óçУKŸN½ºõëØ³kßν»ï·¶ ê­)¾|ì¹µeÇL!øöð׎ЫÞ8µâÓe¯¿x÷|ù'à€¯™7Þ&Hs.È„ Vhá…ºnÞuèᇠ†(âÿˆ$–hâ‰(¦¨âŠº½E¡z Ö6ÞLš4ÛŒF¸‚1¢TÒJ<© =I$6ê‘0¢#…G)¥‘SFI¥y@Fhå–Uvy%—_z ¦•ñA)æ”96I:j*)“I>yf˜tŽ9§uÞ©`œx‚©g‘56É!‹„j衈&ªè¢Œ6êèrïí…#|þ—Ö¤­aº¤y FŠ¡\š²¦)œ–¾Éé§¢þˆêª¬öGª“€úޝ‚Úê­† ß‹›¶à +ì°Äkì±È&[]¤~Â¥kœÐ®'«–sÒ¦*®’fK)¬¦b»×{¼z+®³Öú){7ž:+[èŽëîÿ»¹¦É°ÊÖkï½øæ«ï¾üçâºÊjf·WÚ׳x¡ S–y6Ügµnªe®ºÒ|0Å—«±Ã ciñÆs,rÈ$wœ©ÄWm¬{FlpÇíŽ òÌ2×\r¯7ÃÙìÊ.ÓÛïÏ@-ôÐD-§°"LqÌó<­µM¿'ÒðVÚ­ÒÔf̲¥éF]õÕ×~-¶·dÚZðÓä~ì5Àc·}©Éú…[ªÓêúlôÝxç­÷Þ|/Ê,Ä ¯æ‹rÿ·3»§Rív .£,oà½.θ’W.uÈd¯U8ÚÜZîùçLOkwߤ—nú騧NÜ¿iSº9ãomøŽ/l3͘»‰õÿÄ‚ÃxθÞÃÁßn<ðÇ{y2â";¾òŒHrÞ|šÈW_¼õ k~½Â‡žä誇/þøä—¯¬âÚŸý8äcíx×/¢ÿµûpS9§]ÏýùìMË¿ÿÿISÞïê'¡ôÄŒ~‘ å7•I¯vF1Ÿ'HÁ ZÐDË^Ú.–5Æqp?zËü§À×Ñ ‚\Ãß (!ʱÐm7slLè@Ƚð†ïò^Ï.ÈÃúð‡@\†HÄ"ñˆHL¢—ÈÄ&:ñ‰PŒ¢§HÅ*ZñŠXÌ¢·ÈÅ.zñ‹` £ÇHÆ2šñŒhL£×ÈÆ"ñpŒ£çHÇ:ÚñŽxÌ£ÿ÷ÈÇ>úñ€ ¤ IÈBòˆL¤"ÉÈF:ò‘Œ¤$'IÉJZò’˜Ì¤&7ÉÉNzò“  ¥(GIÊRšò”¨L¥*WÉÊVºò•°Œ¥,gIËZÚò–¸Ì¥.wÉË^úò—À ¦0‡IÌbó˜ÈL¦2—¹! ‘™ÐŒ¦4§IÍjÆ‘@¢5·ÉÍnzó›àJЂô M¨B- $X 7@U ¡È .P„" ª ‚Zd# AMøGE/šQˆJ| ©LgJÿÓš²hPØ ‡Ê`qè¡-Ê °ÊÓÝä4¨6MªR—ÊÔ¦FgPÎNuš› PõCí©FÊÕ®zõ«\VE¢š  *E€èP³›X©eý‡Y«BÝŒ¬xÍ«^÷:Ó‘òõ¯€ ¬`KØÂ*¨@3p{œ!ö±¬d‹vTÕõØê?. ¾Ëú5³ÿ «bÿ‘„ß !7¥•kUsãØøõ´ÿH«jU ÑÜ€ö-Í)P­ÊÐ’•±›jn`ë×Ùò¶µ9mé?N›RÌÆ•¶»á-P‹ë[Öææ¨»ÍÍhS ÛÒ×¶ÖÅêdÇKÞòJö²Ë½î?Žº^èÿ¶×7¼m/{Ù[öú¦dµ¯{“««ê½dï{}S\ýj¶½-E¯~œÚ´Ö±£5ð3‹Þ»W½½©ïn4ÜZ»—¬æ ±ˆGüUÐ*w ÿ0‚ˆÐR ¬x(ö ,0„  XÅ,¾.‹[[\²½˜qnf\cÓØ·E@€z[ݨ­U2pS¼â–‚˜µ/FqK›,eíZÊ*qnyÓåÝ` K¯—sLe0û¨Øñu‹pºn™7K‚rIÌç>ûY¯K´ {«&­µ#ʬlÿÌèF;úÑŽ´¤'MéJ[úҘδ¦7ÍéN{úÓ µ¨GMêR›ú€Ô¨NµªWÍêV»úհ޵¬gMëZÛúָε®wÍë^ûú×À¶°‡MìbûØÈN¶²—Íìf;ûÙÐŽ¶´§Míj[ûÚØÎ¶¶·Íín{ûÛà·¸ÇMîr›ûÜèN·º×Íîv»ûÝðŽ·¼çMïzÛûÞøÎ·¾÷Íï~ûû߸W!ÿ STARDIV 5.0 “¯÷ƒ;mod_qos-10.28/doc/qsfilter2.1.html0000664000000000000020000002035512264072142015166 0ustar rootbin Man page of QSFILTER2

QSFILTER2

Section: qsfilter2 man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qsfilter2 - an utility to generate mod_qos request line rules out from existing access/audit log data.  

SYNOPSIS

qsfilter2 -i <path> [-c <path>] [-d <num>] [-h] [-b <num>] [-p|-s|-m|-o] [-l <len>] [-n] [-e] [-u 'uni'] [-k <prefix>] [-t] [-f <path>] [-v 0|1|2]  

DESCRIPTION

overview

mod_qos implements a request filter which validates each request line. The module supports both, negative and positive security model. The QS_Deny* directives are used to specify request line patterns which are not allowed to access the server (negative security model / blacklist). These rules are used to restrict access to certain resources which should not be available to users or to protect the server from malicious patterns. The QS_Permit* rules implement a positive security model (whitelist). These directives are used to define allowed request line patterns. Request which do not match any of thses patterns are not allowed to access the server.

qsfilter2 is an audit log analyzer used to generate filter rules (perl compatible regular expressions) which may be used by mod_qos to deny access for suspect requests (QS_PermitUri rules). It parses existing audit log files in order to generate request patterns covering all allowed requests.  

OPTIONS

-i <path>
Input file containing request URIs. The URIs for this file have to be extracted from the servers access logs. Each line of the input file contains a request URI consiting of a path and and query.
     Example:
       /aaa/index.do
       /aaa/edit?image=1.jpg
       /aaa/image/1.jpg
       /aaa/view?page=1
       /aaa/edit?document=1

These access log data must include current request URIs but also request lines from previous rule generation steps. It must also include request lines which cover manually generated rules.

-c <path>
mod_qos configuration file defining QS_DenyRequestLine and QS_PermitUri directives. qsfilter2 generates rules from access log data automatically. Manually generated rules (QS_PermitUri) may be provided from this file. Note: each manual rule must be represented by a request URI in the input data (-i) in order to make sure not to be deleted by the rule optimisation algorithm. QS_Deny* rules from this file are used to filter request lines which should not be used for whitelist rule generation.
     Example:
       # manually defined whitelist rule:
       QS_PermitUri +view deny "^[/a-zA-Z0-9]+/view\?(page=[0-9]+)?$"
       # filter unwanted request line patterns:
       QS_DenyRequestLine +printable deny ".*[\x00-\x19].*"

-d <num>
Depth (sub locations) of the path string which is defined as a literal string. Default is 1.
-h
Always use a string representing the handler name in the path even the url does not have a query. See also -d option.
-b <num>
Replaces url pattern by the regular expression when detecting a base64/hex encoded string. Detecting sensibility is defined by a numeric value. You should use values higher than 5 (default) or 0 to disable this function.
-p
Repesents query by pcre only (no literal strings).
-s
Uses one single pcre for the whole query string.
-m
Uses one pcre for multipe query values (recommended mode).
-o
Does not care the order of query parameters.
-l <len>
Outsizes the query length by the defined length ({0,size+len}), default is 10.
-n
Disables redundant rules elimination.
-e
Exit on error.
-u 'uni'
Enables additional decoding methods. Use the same settings as you have used for the QS_Decoding directive.
-p
Repesents query by pcre only (no literal strings). Determines the worst case performance for the generated whitelist by applying each rule for each request line (output is real time filter duration per request line in milliseconds).
-k <prefix>
Prefix used to generate rule identifiers (QSF by default).
-t
Calculates the maximal latency per request (worst case) using the generated rules.
-f <path>
Filters the input by the provided path (prefix) only processing matching lines.
-v <level>
Verbose mode. (0=silent, 1=rule source, 2=detailed). Default is 1. Don't use rules you haven't checked the request data used to generate it! Level 1 is highly recommended (as long as you don't have created the log data using your own web crawler).
 

OUTPUT

The output of qsfilter2 is written to stdout. The output contains the generated QS_PermitUri directives but also information about the source which has been used to generate these rules. It is very important to check the validity of each request line which has been used to calculate the QS_PermitUri rules. Each request line which has been used to generate a new rule is shown in the output prefixed by "ADD line <line number>:". These request lines should be stored and reused at any later rule generation (add them to the URI input file). The subsequent line shows the generated rule. At the end of data processing a list of all generated QS_PermitUri rules is shown. These directives may be used withn the configuration file used by mod_qos.  

EXAMPLE


  ./qsfilter2 -i loc.txt -c httpd.conf -m -e
  ...
  # ADD line 1: /aaa/index.do
  # 003 ^(/[a-zA-Z0-9\-_]+)+[/]?\.?[a-zA-Z]{0,4}$
  # ADD line 3: /aaa/view?page=1
  # --- ^[/a-zA-Z0-9]+/view\?(page=[0-9]+)?$
  # ADD line 4: /aaa/edit?document=1
  # 004 ^[/a-zA-Z]+/edit\?((document)(=[0-9]*)*[&]?)*$
  # ADD line 5: /aaa/edit?image=1.jpg
  # 005 ^[/a-zA-Z]+/edit\?((image)(=[0-9\.a-zA-Z]*)*[&]?)*$
  ...
  QS_PermitUri +QSF001 deny "^[/a-zA-Z]+/edit\?((document|image)(=[0-9\.a-zA-Z]*)*[&]?)*$"
  QS_PermitUri +QSF002 deny "^[/a-zA-Z0-9]+/view\?(page=[0-9]+)?$"
  QS_PermitUri +QSF003 deny "^(/[a-zA-Z0-9\-_]+)+[/]?\.?[a-zA-Z]{0,4}$"

 

SEE ALSO

qsexec(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1), qstail(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OUTPUT
EXAMPLE
SEE ALSO
AUTHOR

mod_qos-10.28/doc/qstail.1.html0000664000000000000020000000355112264072142014547 0ustar rootbin Man page of QSTAIL

QSTAIL

Section: qstail man page (1)
Updated: January 2014
Index Return to Main Contents

 

NAME

qstail - an utility printing the end of a log file starting at the specified pattern.  

SYNOPSIS

qstail -i <path> -p <pattern>  

DESCRIPTION

qstail shows the end of a log file beginning with the line containing the specified pattern. This may be used to show all lines which has been written after a certain event (e.g., server restart) or time stamp.  

OPTIONS

-i <path>
Input file to read the data from.
-p <pattern>
Search pattern (literal string).
 

SEE ALSO

qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qslogger(1), qspng(1), qsrotate(1), qssign(1)  

AUTHOR

Pascal Buchbinder, http://opensource.adnovum.ch/mod_qos/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR

mod_qos-10.28/doc/mod_qos_s.gif0000664000000000000020000001723712264072142014705 0ustar rootbinGIF89a˜‰÷  -K.!6I&    1Œn6**!3( G88¡~ $ !SAVC %kTA3æöñ&nV>´ \HYÆ¢"bMJÁ™·æÖ*z_kAçñï*nS 8Žk”ÚÃ5lIÏÖ×}yy1†g4n<Žg¾º¡ÝÓØA¬‚âÎÎ,>0ööò“Ò½‰iž¢kLLLêïòÇàَ׿EŸrúöî@ w?­…Bk=¥…=¥‚„Ò´¡¥¥ÎΪÿÿúöúöÅÚÏG7'(H\E‘eeaLøøúøýû'K2àìêÚêåÌéÞÓ·:¡}âÎÖèóñ#+<¡záëê1J*ÓãÚÜðê}Ò¶/†i<­‡¥àÌÿÿÿ!ÿ XMP DataXMP ÿþýüûúùø÷öõôóòñðïîíìëêéèçæåäãâáàßÞÝÜÛÚÙØ×ÖÕÔÓÒÑÐÏÎÍÌËÊÉÈÇÆÅÄÃÂÁÀ¿¾½¼»º¹¸·¶µ´³²±°¯®­¬«ª©¨§¦¥¤£¢¡ Ÿžœ›š™˜—–•”“’‘ŽŒ‹Š‰ˆ‡†…„ƒ‚€~}|{zyxwvutsrqponmlkjihgfedcba`_^]\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-,+*)('&%$#"!  !ù,˜‰ÿÿ H° Áƒ*\Ȱ¡Ã‡#Jœ(ч<2hÌà¯cG 'l!äÅ“(Sª|¥þ(Dhd„Í*úéì—ä&:" ð—Ç!“+“*]šÐG‹.8 c§Õ«X¯ªdB0K–¢‰(h)Q#«Û·n¥Ññ`‚²xó\d$Ã-Ià Œµ• *øÐËx©‰ DŒ L¹òÎ!D(\¸Û¸óÄ704jk¹´å88ˆõÌzá› nä4MÛ² n´ÞMðTj 7=D‡(¼[ßXaöðç•¥\˜±(9ã(4ν´ -¬ãÿm!ar÷ó•khÉ`B¼C ¥á½ýÁ#8jXén9´— ªÝg eEÌÀƒB,øñ@əЀ?7øG  q_qÁ‡ †##†Xà„x@4@Y4ÓyCP!Âþ,°€G@éO <À @Hqž 7%<4ÐÀWˆ÷ l Cí}#ÜÅ!R iæ™-€À Œ˜(ÜÜÕ þ(§{ÿ¸ €ì#”ð\ M`ð#šˆ&À:„ð\ tpÁ„|F€§@(ÔÙ?"P\m%H f¢¤–º@M¸iÙx¤9ÿré?&À´ ü¼PÇYV‡–*,©4Âv•©ÐD°ÌÐȬÑQPðÃÏ>h¡ª[qp,© 8ð@GT`nãÖI§°,¶Yu›nX A•КàµÖòCBŸº5Ä ßžù€ ð D0°  0(a“Š2À5ð·ÌñãÁÐþóÁʯµºòŠ•² ‰ðB¨(ÑAÜpLˆ. A¯V±dÇ8pЦ ƒ>༠QãÌæ”(ZËxMT  3¼`gв‹Þ sx;?]°Þ¥'ìÍ„z4“ù¾4¦N)h òGÙ¥ànW¤ã¿@Hª)ÁÍG¥R–¼G<:ÁÇÀ ôÒˆÈ5Rr8Ÿèè>ø™)ñƒ¨0%éd6‘¥ˆ´ÇÝuÒZPhê@©8, /X€ NÙ66´ÌU›b%Órב"é€È¢L `(Ý ëU9´À„@ÌÔE ¤” ¨D^ÚW!ÿ½h µz'aÓz ä±—uÚi¿Z€NäHàª!S •!›Ý]°Thî¶_/H7÷ˆÚ^Õˆÿ8ƒGLd`%kcæ„tƒ”U·„]* ÜàŠtzÅmd€bÕIÉ`:Å;Ð×UmˆŠÖÀ’=ÂäIE p DîÊ™#¤„¯”Á;² ƒˆ—Át´À0€('1A‡"P,0 ÷vyLð?‚YrÓ²)ij $ðpEu=­hW0&ÀÆ0Àéû‚ж÷ û1Ç€”í”.±?padø›ð܇HJ™p@ÿÝ¥ã 4ç€Õ„ºA(1ณ ø”DsÂã^® Èfi àNû¢µŸ¡ÃAŽ›&{˜" †ãzTçƒTHFŠht`ÏÒ”À‹Í!àüˆƒ¬ÏŸý%)"dfF–ÌîÕ#$ ¬h;1¸€›-øB%È ‚ôl¹ËIo#K æ $ ÂC@’`ZÉFà<%˜Z[ ‚"Œ„ŽlÊéÙ.$!ôˆß8!…JÁvÍDµÖ;ˆç 8°^ï ¼ÿ`A WJL¤-" p^#7`ƒ° ƒ ÐI MUAÙG7ÞtˆÊAÂÓBÿ1ƒ:‘øƒ™ÒAX$ìD9J€VB`³á6J\eƒš² <çDXÄL1_à FH¡ÇuóŸ9=;s`p|Ì­ƒ„°aPnÀR!*˜ x傸µ#¨Ð…ôíÅAÜ$÷U ÀiÏ„æ@ò@y90#hà”Î Rs ¢G `EßÓUB € ën<à €B+¶U ~FØÈ¹B ï J.O„·ÉS¯Çº[eãA €¢ûÑO øÞ € ¯/¬ˆ·9VJð­ò„€>6¤ë%²ÈÞU10H!þ¦ƒ¬àÜ#u¹Jÿ>ƒßðóV‘?2Ö|²'!è9ø€Ž)|«í¡Àψ Û‰dö”40b†d@Òns`sVá{VÀ×Rà¾çJâ€`¶dR ýÂuY1zdm¡@ì6@§tHegmà7rY!t°¿¶RàpX°ƒ¾!À€¼× Sw`-zçA"‚ñi%x‚‘‚+¸;­V0XMŽâU¦ð58¨ƒWу†Mà[Hyw„:áü°°{Vñ-€rARN|&9p4Ô»@!vi‚~ˆ+àCuÅד1þÿ Òâq%à@ïgXá†`{YñuuhP$xØgA…Ä‚E–`Y8f‰x:pü p©$ ÀyýŽh€íç#à~:áˆ;Ø3@SruV1bOŠB‚‡:¶¦G¨èH«H‰nÁs:D~OÃkœ×ÃØO O;h~:(þÀ†Càäà*Єñva‚ÄäQ}××Õ80ð77¨ðÖ2;€Eè©$Ÿ¾Ç1 ȆŒxôÕïg $N˜¹'…¡hEvd±}@Ò}XÑ"Ð/4ø†´ÁßBzWÿ1ßr[A‚Ät0µbóVo"#5‹hÁ¶·“Uq ý †!ð-DcB}i4}ax§$VqiÑAŽçаx;0‹RoµWGó¢ÙWY®J-mqpJw $DGô¨{V¡“RIo厮˜ŠQh9xŸ¡Ì”D p²/£IG(`‘Ýñj•ó~*ge&RÓlÄTè6/wJ je¦’Á’ýà’>·”è!Ù8©“@“uÈÕĤt±GGE.8wåwNÉJ°‘Ü¡_'$d§ZPduÿYgæåDû1ðvJß~É6~˜&qЯOpr f€_×­óÐWN 0?QèG.@@9€×"€˜ñDào¥ÝæŽ1ð- *’ézJøH`yJ>9-e¦pEƉVcJ!ÐhÒ^±/'gFgQ$@L^U™Ìôœ¡b÷fQ@X@€ŸÃ¡0ü™I€’È¥r äš(qìY0øç v£×iŸ>Ù<´10IÊ®´G_*ÿˆTåÄr'F@ €páUiI¦?s„ø É{ª¦SzZ:ŸáSå`(ÿQ”Ay0i0‘hµ¤TuDŸY¡% ‘1¦ý²¦Ä¡¢È¥\M´—–Ì”x@"iÑТÒd©ˆR, ²ŒM@c° JA¢jVxš”•uY)Á¥§$fDz7 "e«_t*õØ„U¬gÒxº_eJÌ¥ÿwJˆiñ0¬d­½ÔÀ®ÒÄ­¤Qñ¡õˆ¥†[îæ™6Ea¶;E:0¨át¢{„4p]¡Z¨GåéŠúc̪̤BòšZ|ÚKCr k-ô$°ê¡û¥¯†”WI{̰E6J —´Nÿ\ г±; z×E•§•£,PWäJB©o`™$`~ð’¬dIVF3•VA€| ;û$P%7HÉUNɳ_fbö@ ®òÊR»G#š:Q!;e9ĵhò`IôOåpKá—ìDQHåÛ/o«O:;¸>‹Vx«J³Y9*›Fæ5`ÅLkWQ»¹9Sµ–AYû³ wÎVN€Ëjתß2«)æ¹£r+E 9°°„…¥«¬åäÇD™{J; ;@­;, °¸Â1)ูÛm eqúžJÁQÌt$(¦ÇûMZð§”1Œÿ R¢µ"¥»ˆRƒ,õ»dÁ<Í9m§r¸îмÐ(1ºIÐov`@¸Oæ{&E»rÔ¸iT”Ú®°‹¼ð!"5a?"a¯KG4f&P¹–{^zq¶tP³n;µEV;`€ã#¿é¼ÀÀ° "¹VN€ Šoà4Gµˆ«ÂcæEZYõ%$`a€â0ÅO4lQ±fHeÛ<`}pô+ š¸hâ7paA€T“Ä‘¿“Àh0zzÐ èpÁ·´@À-tÕ »p„ƒêÅ ÅWxWgPÆ_ÿô ÐÀ †Ð``‰ h`X‰Á0¯û6Y˵xáÐÃÏ#p;‚ì2», áRâò;  ­ ­xÀ?€O`sÐÆ™ü}€ ½ÀJÜ ”M´ë.›>"L«p³ˆÆeÆ&à÷ÓÍ÷Ã0&¡ ´P § œ€Gp^° =ð•|É™Œ0í€Áó®ÇÃeýZÀéóÈkÍ EÄxA‘À _€HÀmðí,ÌÄÜÄfÀÉö\‚U¬F ³»Á·ÆÅ¥#Й$FxáŽðiÎH° ‚ pÜ’àÆM|ÌÆp·RÿƒÇ@œ»ñ\²È}7)ÐÂUIQ£ kbÒ=0Lf€}€Éƒ`ó\Ī¿H·àÁâa½¨ÜÓ¹— KHÌiV“Í(A K`iÀ\Ð΂ÐÔs`ɘü›ÜÉ·3ó ä@ €êp)Y<Ín ÒÛZgU%ë*¡%Ô'¡ ö°ÖK°_ÐË^ ×,­.ÍzðXÐ@{.¿Pϰ µ-P/YͯtÄ8]‹T 3ϸ4stÐ- Ñ dÐÖéü` ÙƒÀÙ’ÕÐpÖÐ/|Ýðd U0+…`ˆ°mQbÿ-póU*óÐJà0FTé-JP'$<`Óð °`vàÖHð›P ÇýÁœ±€˜`0ѹp Ö2Ýð0 x`d`œàîQ°ÝØ‹V¤Á_ä®GÞ=hTª «@k`p mà ™] = N³Àf`¦@ã°àãr^i°Kàâu`­ðÚ¶Ò´áÕeÆ u…ÂÀÖV€@îË-‚ð”Ü> q\ÔÀÓ- Làm\@Ž0á­Á@eÚ¿#ËLî°N$à¶ðï K{°x` IÍ›ÿ€=ДLã6¾ÉØ ÀÐ^àL€®¢Ð~°ú‡7æg¼unU  ]µí䶤Àlp”@ ø@_0k€{ â–ð^ŠnzÀ±Àu­ã•þm`èV äjð „Ð@7‹Í¡PêX$Ú©.,å;°Ä.@ ªpÈ —ÀpÐÖHp¾Üë‹nk Õ|`@ € ^ðG€b€/΀@Èá)@ÇÚNHÜN'¡v«µ¿;pJnî ð´`߆ðK0'Î ÝÐì¼å“` ’ òЛÿðƒð\`K@îÝd¢ÓÊq €O¤€°ô0@;Àô`ô#ËC`” ¬àÝ`î.G` –°Ð?ã6ìfÐàÐpob×\€_`޹€ÖƬGÿ÷Ͼ°éŸ@r â™¾{ÀL Æ àöŽ €z€P b`îëv¯ yÏ€_ú"ÅlÀ·P Ž@\ðøŠßâg~Üí¬s` ¦€ ]`6mA¾óŸàó9Ý@lúÊúÛ§P£ ®ð_PåG€ÔŽÿe?aÿÐ܉ÀÄÞ-î xàîvá¬À »± T¿üðN0Í`‘àn†p r\öXÙs‰¥#`=S ‹L˜ºL´QéÇ‘4V–\úÄéßG!EŽ$Y’¤9^ðcÙÒåK˜1eΤSDƒ!«T)Ó“•!;Aá#Q/žž ²ÑeÎL“º0A‚ÇÊš—V‰ªbÒëW°!xXYÓìY´1;`ð°¨dE¥FÊ´ŠŒ@+ü@" /OžLŒÚÑ’)[o¹$ ìcÈ!?´x€BZÌ™_®¸9!Êc¸eÜ”1ô…Ì;x,ÁIÃÅË/=Û°1 ÿ*9‰·$¾t*òoÈF¤À¡Ù¸Ù;ƾþÑ›Q‘D9Róå‹5mĤióa%DrœÉ&G“îÞ]›¯'yÈA 4ŽÏg¹¢CŽ$ܲÿ÷!EF)C‘L\Q#›/ÖXcªÒø‹Ä4‘·ó¦PÃ1þ2é À@„²èCk ˜  GP7"Q¤ G Qƒ 9äÀ®=–Xl 5ÙÈ›ƒŒÂƒ0¨` DŒiŸ r@ #>Ò«*‰¤EE8 „.GìHGŦ˜B“ó¦43Š2@@HÀ!ÄÌö9AƒüQ`‡ö3ó1«,¥§@!C 5Ä4TOöT`Ô‡F"pà8HAJ58Lq¡RÔ´“ƒ ‘RÑ -’@BÉ$”ORI¥õH•Õ…C6°uÐÕn5B=er'Sÿt±ŠH„UvYf›uöYh£•vZjÁ ;mod_qos-10.28/apache2/0000775000000000000020000000000012264072142012757 5ustar rootbinmod_qos-10.28/apache2/mod_qos.c0000644000000000000020000155201612264072142014574 0ustar rootbin/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Quality of service module for Apache Web Server. * * The Apache Web Servers requires threads and processes to serve * requests. Each TCP connection to the web server occupies one * thread or process. Sometimes, a server gets too busy to serve * every request due the lack of free processes or threads. * * This module implements control mechanisms that can provide * different priority to different requests. * * See http://opensource.adnovum.ch/mod_qos/ for further * details. * * Copyright (C) 2007-2014 Pascal Buchbinder * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is released under the GPL with the additional * exemption that compiling, linking, and/or using OpenSSL is allowed. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * */ /************************************************************************ * Version ***********************************************************************/ static const char revision[] = "$Id: mod_qos.c,v 5.470 2014/01/10 22:29:11 pbuchbinder Exp $"; static const char g_revision[] = "10.28"; /************************************************************************ * Includes ***********************************************************************/ /* std */ #include #include #include #include #include /* apache */ #include #include #include #include #include #define CORE_PRIVATE #include #include #include #include #include #include #include /* apr / scrlib */ #include #include #include #include #include #include #ifdef AP_NEED_SET_MUTEX_PERMS #include #endif /* mod_qos requires OpenSSL */ #include #include /* additional modules */ #include "mod_status.h" /* this */ #ifdef QS_MOD_EXT_HOOKS #include "mod_qos.h" #endif /************************************************************************ * defines ***********************************************************************/ #define QOS_LOG_PFX(id) "mod_qos("#id"): " #define QOS_LOGD_PFX "mod_qos(): " #define QOS_RAN 10 #define QOS_MAX_AGE "3600" #define QOS_COOKIE_NAME "MODQOS" #define QOS_USER_TRACKING "mod_qos_user_id" #define QOS_USER_TRACKING_NEW "QOS_USER_ID_NEW" #define QOS_MILESTONE "mod_qos_milestone" #define QOS_MILESTONE_TIMEOUT 3600 #define QOS_MILESTONE_COOKIE "QSSCD" #define QS_SIM_IP_LEN 100 #define QS_USR_SPE "mod_qos::user" #define QS_REC_COOKIE "mod_qos::gc" #define QS_R010_ALREADY_BLOCKED "R010B" #define QS_R012_ALREADY_BLOCKED "R012B" #define QS_R013_ALREADY_BLOCKED "R013B" #define QS_PKT_RATE_TH 3 #define QS_BW_SAMPLING_RATE 10 // split linear QS_SrvMaxConnPerIP* entry (conn->conn_ip) search: #define QS_MEM_SEG 1 #ifndef QS_LOG_REPEAT #define QS_LOG_REPEAT 20 #endif #define QS_PARP_Q "qos-parp-query" #define QS_PARP_QUERY "qos-query" #define QS_PARP_PATH "qos-path" #define QS_PARP_LOC "qos-loc" #define QS_CONNID "QS_ConnectionId" #define QS_COUNTRY "QS_Country" #define QS_SERIALIZE "QS_Serialize" #define QS_ErrorNotes "QS_ErrorNotes" #define QS_BLOCK "QS_Block" #define QS_BLOCK_SEEN "QS_Block_seen" #define QS_LIMIT_DEFAULT "QS_Limit" #define QS_LIMIT_SEEN "QS_Limit_seen" #define QS_COUNTER_SUFFIX "_Counter" #define QS_LIMIT_CLEAR "_Clear" #define QS_EVENT "QS_Event" #define QS_COND "QS_Cond" #define QS_ISVIPREQ "QS_IsVipRequest" #define QS_VipRequest "QS_VipRequest" #define QS_KEEPALIVE "QS_KeepAliveTimeout" #define QS_CLOSE "QS_SrvMinDataRate" #define QS_EMPTY_CON "NullConnection" #define QS_RuleId "QS_RuleId" #define QS_MFILE "/var/tmp/" // enable connection counter if one of the following feature is used #define QS_COUNT_CONNECTIONS(sconf) (sconf->max_conn != -1) || \ (sconf->min_rate_max != -1) || \ (sconf->max_conn_close != -1) || \ (sconf->max_conn_per_ip_connections != 1) || \ sconf->geodb // "3758096128","3758096383","AU" #define QS_GEO_PATTERN "\"([0-9]+)\",\"([0-9]+)\",\"([A-Z0-9]{2})\"" static const char *m_env_variables[] = { QS_ErrorNotes, QS_SERIALIZE, QS_BLOCK, QS_BLOCK_SEEN, QS_LIMIT_DEFAULT, QS_LIMIT_SEEN, QS_EVENT, QS_COND, QS_ISVIPREQ, QS_VipRequest, QS_KEEPALIVE, QS_CLOSE, QS_EMPTY_CON, QS_RuleId, NULL }; static const char *m_note_variables[] = { QS_PARP_PATH, QS_PARP_QUERY, NULL }; #define QS_INCTX_ID inctx->id /* this is the measure rate for QS_SrvRequestRate/QS_SrvMinDataRate which may be increased to 10 or 30 seconds in order to compensate bandwidth variations */ #ifndef QS_REQ_RATE_TM #define QS_REQ_RATE_TM 5 #endif #ifndef QS_EXTRA_MATCH_LIMIT #define QS_EXTRA_MATCH_LIMIT 1500 #endif #define QS_MAX_DELAY 5000 #define QOS_DEC_MODE_FLAGS_URL 0x00 #define QOS_DEC_MODE_FLAGS_HTML 0x01 #define QOS_DEC_MODE_FLAGS_UNI 0x02 #define QOS_DEC_MODE_FLAGS_ANSI 0x04 #define QOS_CC_BEHAVIOR_THR 50000 #define QOS_CC_BEHAVIOR_THR_SINGLE 50 #ifdef QS_INTERNAL_TEST #undef QOS_CC_BEHAVIOR_THR #undef QOS_CC_BEHAVIOR_THR_SINGLE #define QOS_CC_BEHAVIOR_THR 50 #define QOS_CC_BEHAVIOR_THR_SINGLE 20 #endif #define QOS_CC_BEHAVIOR_TOLERANCE_STR "20" #define QS_ERR_TIME_FORMAT "%a %b %d %H:%M:%S %Y" #define QSMOD 4 #define QOS_DELIM ";" #define QOS_MAGIC_LEN 8 static char qs_magic[QOS_MAGIC_LEN] = "qsmagic"; // Apache 2.4 compat (experimental) #if (AP_SERVER_MINORVERSION_NUMBER == 4) #define QS_APACHE_24 1 #define QS_CONN_REMOTEIP(c) c->client_ip #define QS_CONN_REMOTEADDR(c) c->client_addr #define QOS_MY_GENERATION(g) ap_mpm_query(AP_MPMQ_GENERATION, &g) #define qos_unixd_set_global_mutex_perms ap_unixd_set_global_mutex_perms #define QS_ISDEBUG(s) APLOG_IS_LEVEL(s, APLOG_DEBUG) #else #define QS_APACHE_22 1 #define QS_CONN_REMOTEIP(c) c->remote_ip #define QS_CONN_REMOTEADDR(c) c->remote_addr #define QOS_MY_GENERATION(g) g = ap_my_generation #define qos_unixd_set_global_mutex_perms unixd_set_global_mutex_perms #define QS_ISDEBUG(s) s->loglevel >= APLOG_DEBUG #endif #ifdef QS_MOD_EXT_HOOKS APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(qos, QOS, apr_status_t, path_decode_hook, (request_rec *r, char **path, int *len), (r, path, len), OK, DECLINED) APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(qos, QOS, apr_status_t, query_decode_hook, (request_rec *r, char **query, int *len), (r, query, len), OK, DECLINED) #endif /************************************************************************ * structures ***********************************************************************/ typedef struct { const char *name; /* variable name */ #ifdef AP_REGEX_H ap_regex_t *preg; #else regex_t *preg; #endif const char *url; /* redirect url */ } qos_redirectif_entry_t; typedef struct { unsigned long start; unsigned long end; char country[3]; } qos_geo_t; typedef struct { const char *url; const char *path; } qos_errelt_t; static const qos_errelt_t m_error_pages[] = { { "/errorpages/server_error.html", "work/errorpages/server_error.html" }, { "/errorpages/forbidden.html", "work/errorpages/forbidden.html" }, { "/errorpages/500.html", "work/errorpages/500.html" }, { "/errorpages/error.html", "work/errorpages/error.html" }, { "/errorpages/error500.html", "work/errorpages/error500.html" }, { "/errorpages/gateway_error.html", "work/errorpages/gateway_error.html" }, { NULL, NULL } }; typedef struct { short int limit; time_t limit_time; } qos_s_entry_limit_t; typedef struct { short int limit; time_t limit_time; const char *eventClearStr; // name of the var clearing the counter const char *condStr; #ifdef AP_REGEX_H ap_regex_t *preg; #else regex_t *preg; #endif } qos_s_entry_limit_conf_t; typedef struct { unsigned long ip; time_t lowrate; /* behavior */ unsigned int html; unsigned int cssjs; unsigned int img; unsigned int other; unsigned int notmodified; unsigned int serialize; unsigned int events; /* prefer */ short int vip; /* ev block */ short int block; short int blockMsg; time_t time; time_t block_time; qos_s_entry_limit_t *limit; /* ev/sec */ time_t interval; long req; long req_per_sec; int req_per_sec_block_rate; int event_req; } qos_s_entry_t; typedef struct { time_t t; /* index */ qos_s_entry_t **ipd; qos_s_entry_t **timed; /* shm */ apr_shm_t *m; char *lock_file; apr_global_mutex_t *lock; /* size */ int num; int max; int msize; /* limit table settings */ apr_table_t *limitTable; /* av. behavior */ unsigned long long html; unsigned long long cssjs; unsigned long long img; unsigned long long other; unsigned long long notmodified; /* data */ int connections; } qos_s_t; typedef enum { QS_CONN_STATE_NEW = 0, QS_CONN_STATE_HEAD, QS_CONN_STATE_BODY, QS_CONN_STATE_CHUNKED, QS_CONN_STATE_KEEP, QS_CONN_STATE_RESPONSE, QS_CONN_STATE_END, QS_CONN_STATE_DESTROY } qs_conn_state_e; typedef enum { QS_HEADERFILTER_OFF_DEFAULT = 0, QS_HEADERFILTER_OFF, QS_HEADERFILTER_ON, QS_HEADERFILTER_SIZE_ONLY, QS_HEADERFILTER_SILENT } qs_headerfilter_mode_e; typedef enum { QS_FLT_ACTION_DROP, QS_FLT_ACTION_DENY } qs_flt_action_e; typedef enum { QS_EVENT_ACTION_DENY = 0 } qs_event_action_e; typedef enum { QS_DENY_REQUEST_LINE, QS_DENY_PATH, QS_DENY_QUERY, QS_DENY_EVENT, QS_PERMIT_URI } qs_rfilter_type_e; typedef enum { QS_LOG = 0, QS_DENY, QS_OFF_DEFAULT, QS_OFF } qs_rfilter_action_e; typedef struct { char *variable1; char *variable2; char *name; char *value; } qos_setenvif_t; typedef struct { #ifdef AP_REGEX_H ap_regex_t *preg; #else regex_t *preg; #endif char *name; char *value; } qos_setenvifquery_t; typedef struct { pcre *preg; pcre_extra *extra; #ifdef AP_REGEX_H ap_regex_t *pregx; #else regex_t *pregx; #endif char *name; char *value; } qos_setenvifparpbody_t; /** * generic request filter */ typedef struct { pcre *pr; pcre_extra *extra; char *text; char *id; qs_rfilter_type_e type; qs_rfilter_action_e action; } qos_rfilter_t; /** * list of in_filter ctx */ typedef struct { apr_table_t *table; #if APR_HAS_THREADS apr_thread_mutex_t *lock; apr_thread_t *thread; #endif int exit; } qos_ifctx_list_t; /** * ip entry */ typedef struct qs_ip_entry_st { unsigned long ip; int counter; int error; } qs_ip_entry_t; typedef struct { qs_ip_entry_t *conn_ip; int conn_ip_len; int connections; } qs_conn_t; /** * session cookie */ typedef struct { unsigned char ran[QOS_RAN]; char magic[QOS_MAGIC_LEN]; time_t time; } qos_session_t; /** * cfg/act entry for event limitation */ typedef struct { const char *env_var;// configured environment variable name int max; // configured max. num int seconds; // configured duration int limit; // event counter time_t limit_time; // timer qs_event_action_e action; } qos_event_limit_entry_t; /** * access control table entry */ typedef struct qs_acentry_st { int id; /** pointer to lock of the actable */ apr_global_mutex_t *lock; /** location rules */ char *url; int url_len; char *event; #ifdef AP_REGEX_H ap_regex_t *regex; ap_regex_t *regex_var; ap_regex_t *condition; #else regex_t *regex; regex_t *regex_var; regex_t *condition; #endif int counter; int limit; /* measurement */ apr_time_t interval; long req; long req_per_sec; long req_per_sec_limit; int req_per_sec_block_rate; long bytes; long kbytes_per_sec; long kbytes_per_sec_limit; int kbytes_per_sec_block_rate; struct qs_acentry_st *next; } qs_acentry_t; /** * access control table (act) */ typedef struct qs_actable_st { apr_size_t size; apr_shm_t *m; apr_pool_t *pool; /** process pool is used to create user space data */ apr_pool_t *ppool; /** rule entry list */ qs_acentry_t *entry; /* shm pointer */ int has_events; /** event limit list */ qos_event_limit_entry_t *event_entry; /** mutex */ char *lock_file; apr_global_mutex_t *lock; /** ip/conn data */ qs_conn_t *conn; /* shm pointer */ unsigned int timeout; /* settings */ int child_init; int generation; } qs_actable_t; /** * network table (total connections, vip connections, first update, last update) */ typedef struct qs_netstat_st { // int counter; int vip; // time_t first; // time_t last; } qs_netstat_t; /** * user space */ typedef struct { int server_start; apr_table_t *act_table; /* client control */ qos_s_t *qos_cc; int generation; } qos_user_t; /** * directory config */ typedef struct { char *path; apr_table_t *rfilter_table; int inheritoff; qs_headerfilter_mode_e headerfilter; qs_headerfilter_mode_e resheaderfilter; int bodyfilter_d; int bodyfilter_p; int dec_mode; apr_off_t maxpost; qs_rfilter_action_e urldecoding; char *response_pattern; char *response_pattern_var; apr_array_header_t *redirectif; int decodings; apr_table_t *disable_reqrate_events; apr_table_t *setenvstatus_t; } qos_dir_config; /** * server configuration */ typedef struct { apr_pool_t *pool; int is_virtual; server_rec *base_server; const char *chroot; char *mfile; qs_actable_t *act; const char *error_page; apr_table_t *location_t; apr_table_t *setenv_t; apr_table_t *setreqheader_t; apr_table_t *unsetresheader_t; apr_table_t *setenvif_t; apr_table_t *setenvifquery_t; apr_table_t *setenvifparp_t; apr_table_t *setenvifparpbody_t; apr_table_t *setenvstatus_t; apr_table_t *setenvresheader_t; apr_table_t *setenvresheadermatch_t; apr_table_t *setenvres_t; qs_headerfilter_mode_e headerfilter; qs_headerfilter_mode_e resheaderfilter; apr_array_header_t *redirectif; char *cookie_name; char *cookie_path; char *user_tracking_cookie; char *user_tracking_cookie_force; int max_age; unsigned char key[EVP_MAX_KEY_LENGTH]; int keyset; char *header_name; int header_name_drop; #ifdef AP_REGEX_H ap_regex_t *header_name_regex; #else regex_t *header_name_regex; #endif apr_table_t *disable_reqrate_events; char *ip_header_name; int ip_header_name_drop; #ifdef AP_REGEX_H ap_regex_t *ip_header_name_regex; #else regex_t *ip_header_name_regex; #endif int vip_user; int vip_ip_user; int max_conn; int max_conn_close; int max_conn_close_percent; int max_conn_per_ip; int max_conn_per_ip_connections; apr_table_t *exclude_ip; qos_ifctx_list_t *inctx_t; apr_table_t *hfilter_table; /* GLOBAL ONLY */ apr_table_t *reshfilter_table; /* GLOBAL ONLY */ /* event rule (enables rule validation) */ int has_event_filter; int has_event_limit; apr_array_header_t *event_limit_a; /* min data rate */ int req_rate; /* GLOBAL ONLY */ int req_rate_start; /* GLOBAL ONLY */ int min_rate; /* GLOBAL ONLY */ int min_rate_max; /* GLOBAL ONLY */ int min_rate_off; int max_clients; #ifdef QS_INTERNAL_TEST apr_table_t *testip; int enable_testip; #endif int disable_handler; /* client control */ int log_only; /* GLOBAL ONLY */ int has_qos_cc; /* GLOBAL ONLY */ int qos_cc_size; /* GLOBAL ONLY */ int qos_cc_prefer; /* GLOBAL ONLY */ int qos_cc_prefer_limit; int qos_cc_event; /* GLOBAL ONLY */ int qos_cc_event_req; /* GLOBAL ONLY */ int qos_cc_block; /* GLOBAL ONLY */ int qos_cc_block_time; /* GLOBAL ONLY */ apr_table_t *qos_cc_limitTable; /* GLOBAL ONLY */ char *qos_cc_forwardedfor; /* GLOBAL ONLY */ int qos_cc_serialize; /* GLOBAL ONLY */ apr_off_t maxpost; int cc_tolerance; /* GLOBAL ONLY */ int cc_tolerance_max; /* GLOBAL ONLY */ int cc_tolerance_min; /* GLOBAL ONLY */ int qs_req_rate_tm; /* GLOBAL ONLY */ qos_geo_t *geodb; /* GLOBAL ONLY */ int geodb_size; /* GLOBAL ONLY */ int geo_limit; /* GLOBAL ONLY */ apr_table_t *geo_priv; /* GLOBAL ONLY */ int server_limit; int thread_limit; apr_table_t *milestones; time_t milestone_timeout; /* predefined client behavior */ int static_on; unsigned long long static_html; unsigned long long static_cssjs; unsigned long long static_img; unsigned long long static_other; unsigned long long static_notmodified; } qos_srv_config; /** * in_filter ctx */ typedef struct { apr_socket_t *client_socket; qs_conn_state_e status; apr_off_t cl_val; conn_rec *c; request_rec *r; /* upload bandwidth (received bytes and start time) */ time_t time; apr_size_t nbytes; int shutdown; int errors; int disabled; /* packet recv size rate: */ apr_size_t bytes; int count; int lowrate; char *id; qos_srv_config *sconf; } qos_ifctx_t; /** * connection configuration */ typedef struct { unsigned long ip; conn_rec *c; char *evmsg; qos_srv_config *sconf; int is_vip; /* is vip, either by request or by session or by ip */ int is_vip_by_header; /* received vip header from application/or auth. user */ int has_lowrate; qs_conn_t *conn; } qs_conn_ctx; typedef struct { qs_conn_ctx *cconf; conn_rec *c; qos_srv_config *sconf; int requests; // number of requests processed (received) by this connection } qs_conn_base_ctx; /** * request configuration */ typedef struct { qs_acentry_t *entry; qs_acentry_t *entry_cond; apr_table_t *event_entries; char *evmsg; int is_vip; apr_off_t maxpostcount; int event_kbytes_per_sec_block_rate; int cc_event_req_set; int cc_serialize_set; char *body_window; } qs_req_ctx; /** * rule set */ typedef struct { char *url; char *event; int limit; #ifdef AP_REGEX_H /* apache 2.2 */ ap_regex_t *regex; ap_regex_t *regex_var; ap_regex_t *condition; #else /* apache 2.0 */ regex_t *regex; regex_t *regex_var; regex_t *condition; #endif long req_per_sec_limit; long kbytes_per_sec_limit; } qs_rule_ctx_t; typedef struct { const char* name; const char* pcre; qs_flt_action_e action; int size; } qos_her_t; typedef struct { #ifdef AP_REGEX_H ap_regex_t *preg; #else regex_t *preg; #endif char *name; char *value; } qos_pregval_t; typedef struct { const char* pattern; pcre *preg; pcre_extra *extra; qs_rfilter_action_e action; } qos_milestone_t; typedef struct { char *text; pcre *pcre; pcre_extra *extra; qs_flt_action_e action; int size; } qos_fhlt_r_t; typedef struct { apr_time_t request_time; unsigned int in_addr; unsigned int conn; unsigned int pid; unsigned int tid; unsigned int unique_id_counter; } qos_unique_id_t; /************************************************************************ * globals ***********************************************************************/ module AP_MODULE_DECLARE_DATA qos_module; static int m_retcode = HTTP_INTERNAL_SERVER_ERROR; static int m_worker_mpm = 1; // note: mod_qos shall be used for Apache 2.2 worker MPM only static unsigned int m_hostcode = 0; static int m_generation = 0; static int m_qos_cc_partition = QSMOD; static qos_unique_id_t m_unique_id; static const char qos_basis_64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"; /* mod_parp, forward and optional function */ static apr_status_t qos_cleanup_conn(void *p); static apr_status_t qos_base_cleanup_conn(void *p); APR_DECLARE_OPTIONAL_FN(apr_table_t *, parp_hp_table, (request_rec *)); APR_DECLARE_OPTIONAL_FN(char *, parp_body_data, (request_rec *, apr_size_t *)); static APR_OPTIONAL_FN_TYPE(parp_hp_table) *qos_parp_hp_table_fn = NULL; static APR_OPTIONAL_FN_TYPE(parp_body_data) *parp_appl_body_data_fn = NULL; static int m_requires_parp = 0; static int m_enable_audit = 0; /* mod_ssl, forward and optional function */ APR_DECLARE_OPTIONAL_FN(int, ssl_is_https, (conn_rec *)); static APR_OPTIONAL_FN_TYPE(ssl_is_https) *qos_is_https = NULL; /************************************************************************ * private functions ***********************************************************************/ /* simple header rules allowing "the usual" header formats only (even drop requests using extensions which are used rarely) */ /* reserved (to be escaped): {}[]()^$.|*+?\ */ static const qos_her_t qs_header_rules[] = { #define QS_URL_UNRESERVED "a-zA-Z0-9\\._~% \\-" #define QS_URL_GEN ":/\\?#\\[\\]@" #define QS_URL_SUB "!\\$&'\\(\\)\\*\\+,;=" #define QS_URL "["QS_URL_GEN""QS_URL_SUB""QS_URL_UNRESERVED"]" #define QS_2616TOKEN "[\\x21\\x23-\\x27\\x2a-\\x2e0-9A-Z\\x5-\\x60a-z\\x7e]+" #define QS_B64_SP "[a-zA-Z0-9 \\+/\\$=:]" #define QS_PIPE "\\|" #define QS_WEAK "(W/)?" #define QS_H_ACCEPT "[a-zA-Z0-9_\\*\\+\\-]+/[a-zA-Z0-9_\\*\\+\\.\\-]+(;[ ]?[a-zA-Z0-9]+=[0-9]+)?[ ]?(;[ ]?q=[0-9\\.]+)?" #define QS_H_ACCEPT_C "[a-zA-Z0-9\\*\\-]+(;[ ]?q=[0-9\\.]+)?" #define QS_H_ACCEPT_E "[a-zA-Z0-9\\*\\-]+(;[ ]?q=[0-9\\.]+)?" #define QS_H_ACCEPT_L "[a-zA-Z\\*\\-]+(;[ ]?q=[0-9\\.]+)?" #define QS_H_CACHE "no-cache|no-store|max-age=[0-9]+|max-stale(=[0-9]+)?|min-fresh=[0-9]+|no-transform|only-if-chached" #define QS_H_CONTENT "[\"a-zA-Z0-9\\*/; =\\-]+" #define QS_H_COOKIE "["QS_URL_GEN""QS_URL_SUB"\""QS_URL_UNRESERVED"]" #define QS_H_EXPECT "[a-zA-Z0-9= ;\\.,\\-]" #define QS_H_PRAGMA "[a-zA-Z0-9= ;\\.,\\-]" #define QS_H_FROM "[a-zA-Z0-9=@;\\.,\\(\\)\\-]" #define QS_H_HOST "[a-zA-Z0-9\\.\\-]+(:[0-9]+)?" #define QS_H_IFMATCH "[a-zA-Z0-9=@;\\.,\\*\"\\-]" #define QS_H_DATE "[a-zA-Z0-9 :,]" #define QS_H_TE "[a-zA-Z0-9\\*\\-]+(;[ ]?q=[0-9\\.]+)?" { "Accept", "^("QS_H_ACCEPT"){1}([ ]?,[ ]?"QS_H_ACCEPT")*$", QS_FLT_ACTION_DROP, 300 }, { "Accept-Charset", "^("QS_H_ACCEPT_C"){1}([ ]?,[ ]?"QS_H_ACCEPT_C")*$", QS_FLT_ACTION_DROP, 300 }, { "Accept-Encoding", "^("QS_H_ACCEPT_E"){1}([ ]?,[ ]?"QS_H_ACCEPT_E")*$", QS_FLT_ACTION_DROP, 500 }, { "Accept-Language", "^("QS_H_ACCEPT_L"){1}([ ]?,[ ]?"QS_H_ACCEPT_L")*$", QS_FLT_ACTION_DROP, 200 }, { "Authorization", "^"QS_B64_SP"+$", QS_FLT_ACTION_DROP, 4000 }, { "Cache-Control", "^("QS_H_CACHE"){1}([ ]?,[ ]?"QS_H_CACHE")*$", QS_FLT_ACTION_DROP, 100 }, { "Connection", "^([teTE]+,[ ]?)?([a-zA-Z0-9\\-]+){1}([ ]?,[ ]?[teTE]+)?$", QS_FLT_ACTION_DROP, 100 }, { "Content-Encoding", "^[a-zA-Z0-9\\-]+(,[ ]*[a-zA-Z0-9\\-]+)*$", QS_FLT_ACTION_DENY, 100 }, { "Content-Language", "^([0-9a-zA-Z]{0,8}(-[0-9a-zA-Z]{0,8})*)(,[ ]*([0-9a-zA-Z]{0,8}(-[0-9a-zA-Z]{0,8})*))*$", QS_FLT_ACTION_DROP, 100 }, { "Content-Length", "^[0-9]+$", QS_FLT_ACTION_DENY, 10 }, { "Content-Location", "^"QS_URL"+$", QS_FLT_ACTION_DENY, 200 }, { "Content-md5", "^"QS_B64_SP"+$", QS_FLT_ACTION_DENY, 50 }, { "Content-Range", "^(bytes[ ]+([0-9]+-[0-9]+)/([0-9]+|\\*))$", QS_FLT_ACTION_DENY, 50 }, { "Content-Type", "^("QS_H_CONTENT"){1}([ ]?,[ ]?"QS_H_CONTENT")*$", QS_FLT_ACTION_DENY, 200 }, { "Cookie", "^"QS_H_COOKIE"+$", QS_FLT_ACTION_DROP, 3000 }, { "Cookie2", "^"QS_H_COOKIE"+$", QS_FLT_ACTION_DROP, 3000 }, { "DNT", "^[0-9]+$", QS_FLT_ACTION_DROP, 3 }, { "Expect", "^"QS_H_EXPECT"+$", QS_FLT_ACTION_DROP, 200 }, { "From", "^"QS_H_FROM"+$", QS_FLT_ACTION_DROP, 100 }, { "Host", "^"QS_H_HOST"$", QS_FLT_ACTION_DROP, 100 }, { "If-Invalid", "^[a-zA-Z0-9_\\.:;\\(\\) /\\+!\\-]+$", QS_FLT_ACTION_DROP, 500 }, { "If-Match", "^"QS_WEAK""QS_H_IFMATCH"+$", QS_FLT_ACTION_DROP, 100 }, { "If-Modified-Since", "^"QS_H_DATE"+$", QS_FLT_ACTION_DROP, 100 }, { "If-None-Match", "^"QS_WEAK""QS_H_IFMATCH"+$", QS_FLT_ACTION_DROP, 100 }, { "If-Range", "^"QS_H_IFMATCH"+$", QS_FLT_ACTION_DROP, 100 }, { "If-Unmodified-Since", "^"QS_H_DATE"+$", QS_FLT_ACTION_DROP, 100 }, { "If-Valid", "^[a-zA-Z0-9_\\.:;\\(\\) /\\+!\\-]+$", QS_FLT_ACTION_DROP, 500 }, { "Keep-Alive", "^[0-9]+$", QS_FLT_ACTION_DROP, 20 }, { "Max-Forwards", "^[0-9]+$", QS_FLT_ACTION_DROP, 20 }, { "Proxy-Authorization", "^"QS_B64_SP"+$", QS_FLT_ACTION_DROP, 400 }, { "Pragma", "^"QS_H_PRAGMA"+$", QS_FLT_ACTION_DROP, 200 }, { "Range", "^[a-zA-Z0-9=_\\.:;\\(\\) /\\+!\\-]+$", QS_FLT_ACTION_DROP, 200 }, { "Referer", "^"QS_URL"+$", QS_FLT_ACTION_DROP, 2000 }, { "TE", "^("QS_H_TE"){1}([ ]?,[ ]?"QS_H_TE")*$", QS_FLT_ACTION_DROP, 100 }, { "Transfer-Encoding", "^chunked|Chunked|compress|Compress|deflate|Deflate|gzip|Gzip|identity|Identity$", QS_FLT_ACTION_DENY, 100 }, { "Unless-Modified-Since", "^"QS_H_DATE"+$", QS_FLT_ACTION_DROP, 100 }, { "User-Agent", "^[a-zA-Z0-9]+[a-zA-Z0-9_\\.:;\\(\\)@ /\\+!=,\\-]+$", QS_FLT_ACTION_DROP, 300 }, { "Via", "^[a-zA-Z0-9_\\.:;\\(\\) /\\+!\\-]+$", QS_FLT_ACTION_DROP, 100 }, { "X-Forwarded-For", "^[a-zA-Z0-9_\\.:\\-]+(, [a-zA-Z0-9_\\.:\\-]+)*$", QS_FLT_ACTION_DROP, 100 }, { "X-Forwarded-Host", "^[a-zA-Z0-9_\\.:\\-]+$", QS_FLT_ACTION_DROP, 100 }, { "X-Forwarded-Server", "^[a-zA-Z0-9_\\.:\\-]+$", QS_FLT_ACTION_DROP, 100 }, { "X-lori-time-1", "^[0-9]+$", QS_FLT_ACTION_DROP, 20 }, { "X-Do-Not-Track", "^[0-9]+$", QS_FLT_ACTION_DROP, 20 }, { NULL, NULL, 0, 0 } }; /* list of allowed standard response headers */ static const qos_her_t qs_res_header_rules[] = { { "Age", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Accept-Ranges", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Access-Control-Allow-Origin", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Allow", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Cache-Control", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-Disposition", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-Encoding", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-Language", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-Length", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-Location", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-MD5", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-Range", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Content-Security-Policy", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 8000 }, { "Content-Type", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Connection", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Date", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "ETag", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Expect", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Expires", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Keep-Alive", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Last-Modified", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Location", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Proxy-Authenticate", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Retry-After", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Pragma", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Server", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Set-Cookie", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Set-Cookie2", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Strict-Transport-Security", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "Vary", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "WWW-Authenticate", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "X-Content-Security-Policy", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 8000 }, { "X-Content-Type-Options", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "X-Frame-Options", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { "X-XSS-Protection", "^[\\x20-\\xFF]*$", QS_FLT_ACTION_DROP, 4000 }, { NULL, NULL, 0, 0 } }; /** * Studies pcre pattern (for perfomance improvement) and sets match limits. * @param pool Pool to allocate structure from (or to register cleanup) * @param pc Pattern to study * @return extra data */ static pcre_extra *qos_pcre_study(apr_pool_t *pool, pcre *pc) { pcre_extra *extra = NULL; #ifdef QOS_EXTRA_USE_PCRE_STUDY const char *errptr = NULL; extra = pcre_study(pc, 0, &errptr); #endif if(extra != NULL) { apr_pool_cleanup_register(pool, extra, (int(*)(void*))pcre_free, apr_pool_cleanup_null); } else { extra = apr_pcalloc(pool, sizeof(pcre_extra)); } #ifdef PCRE_EXTRA_MATCH_LIMIT extra->match_limit = QS_EXTRA_MATCH_LIMIT; extra->flags |= PCRE_EXTRA_MATCH_LIMIT; #endif #ifdef PCRE_EXTRA_MATCH_LIMIT_RECURSION extra->match_limit_recursion = QS_EXTRA_MATCH_LIMIT; extra->flags |= PCRE_EXTRA_MATCH_LIMIT_RECURSION; #endif #ifdef PCRE_EXTRA_MATCH_LIMIT_RECURSION extra->match_limit_recursion = QS_EXTRA_MATCH_LIMIT; extra->flags |= PCRE_EXTRA_MATCH_LIMIT_RECURSION; #endif return extra; } static int qos_encode64_binary(char *encoded, const char *string, int len) { int i; char *p; p = encoded; for (i = 0; i < len - 2; i += 3) { *p++ = qos_basis_64[(string[i] >> 2) & 0x3F]; *p++ = qos_basis_64[((string[i] & 0x3) << 4) | ((int) (string[i + 1] & 0xF0) >> 4)]; *p++ = qos_basis_64[((string[i + 1] & 0xF) << 2) | ((int) (string[i + 2] & 0xC0) >> 6)]; *p++ = qos_basis_64[string[i + 2] & 0x3F]; } if (i < len) { *p++ = qos_basis_64[(string[i] >> 2) & 0x3F]; if (i == (len - 1)) { *p++ = qos_basis_64[((string[i] & 0x3) << 4)]; *p++ = '='; } else { *p++ = qos_basis_64[((string[i] & 0x3) << 4) | ((int) (string[i + 1] & 0xF0) >> 4)]; *p++ = qos_basis_64[((string[i + 1] & 0xF) << 2)]; } *p++ = '='; } *p++ = '\0'; return (int)(p - encoded); } /** * loads the default header rules into the server configuration (see rules * above). * @param pool To allocate memory * @param hfilter_table Table to add rules to * @param hs built-in header rules * @return error message (NULL on success) */ static char *qos_load_headerfilter(apr_pool_t *pool, apr_table_t *hfilter_table, const qos_her_t *hs) { const char *errptr = NULL; int erroffset; const qos_her_t* elt; for(elt = hs; elt->name != NULL ; ++elt) { qos_fhlt_r_t *he = apr_pcalloc(pool, sizeof(qos_fhlt_r_t)); he->text = apr_pstrdup(pool, elt->pcre); he->pcre = pcre_compile(elt->pcre, PCRE_DOTALL, &errptr, &erroffset, NULL); he->action = elt->action; he->size = elt->size; if(he->pcre == NULL) { return apr_psprintf(pool, "could not compile pcre %s at position %d," " reason: %s", elt->name, erroffset, errptr); } he->extra = qos_pcre_study(pool, he->pcre); apr_table_setn(hfilter_table, elt->name, (char *)he); apr_pool_cleanup_register(pool, he->pcre, (int(*)(void*))pcre_free, apr_pool_cleanup_null); } return NULL; } /** * Returns string representation of filter type (for logging purposes) * @param pool To allocate string * @param type Rule type * @retrun Name of the directive used to configure the rule */ static char *qos_rfilter_type2text(apr_pool_t *pool, qs_rfilter_type_e type) { if(type == QS_DENY_REQUEST_LINE) return apr_pstrdup(pool, "QS_DenyRequestLine"); if(type == QS_DENY_PATH) return apr_pstrdup(pool, "QS_DenyPath"); if(type == QS_DENY_QUERY) return apr_pstrdup(pool, "QS_DenyQuery"); if(type == QS_DENY_EVENT) return apr_pstrdup(pool, "QS_DenyEvent"); if(type == QS_PERMIT_URI) return apr_pstrdup(pool, "QS_PermitUri"); return apr_pstrdup(pool, "UNKNOWN"); } /** * Sets unique apache instance id (hopefully) to the global m_hostcore variable * @param ptemp Pool to allocate memroy from * @param s Base server record */ static void qos_hostcode(apr_pool_t *ptemp, server_rec *s) { char *key = apr_psprintf(ptemp, "%s%s%s%d%s" #ifdef ap_http_scheme /* Apache 2.2 */ "%s" #endif "%s", s->defn_name ? s->defn_name : "", s->server_admin ? s->server_admin : "", s->server_hostname ? s->server_hostname : "", s->addrs ? s->addrs->host_port : 0, s->path ? s->path : "", s->error_fname ? s->error_fname : "" #ifdef ap_http_scheme /* Apache 2.2 */ ,s->server_scheme ? s->server_scheme : "" #endif ); int len = strlen(key); int i; char *p; for(p = key, i = len; i; i--, p++) { m_hostcode = m_hostcode * 33 + *p; } } /** * temp file name for the main/virtual serve * @param pool Pool to allocate the file name from * @param s Server record * @return path */ static char *qos_tmpnam(apr_pool_t *pool, server_rec *s) { qos_srv_config *sconf = (qos_srv_config*)ap_get_module_config(s->module_config, &qos_module); char *path = QS_MFILE; char *id; char *e; if(sconf && sconf->mfile) { path = sconf->mfile; } if(s) { unsigned int scode = 0; char *key = apr_psprintf(pool, "%u%s.%s.%d", m_hostcode, s->is_virtual ? "v" : "b", s->server_hostname == NULL ? "-" : s->server_hostname, s->addrs == NULL ? 0 : s->addrs->host_port); int len = strlen(key); int i; char *p; for(p = key, i = len; i; i--, p++) { scode = scode * 33 + *p; } id = apr_psprintf(pool, "%s%u", path, scode); } else { id = apr_psprintf(pool, "%s%u", path, m_hostcode); } e = &id[strlen(path)]; e[0] += 25; /* non numeric */ return id; } /** * QS_LimitRequestBody settings. Environment variable (dynamic) has higher prio than * configuration (static) value. * @param r * @param sconf * @param dconf */ static apr_off_t qos_maxpost(request_rec *r, qos_srv_config *sconf, qos_dir_config *dconf) { if(r->subprocess_env) { const char *bytes = apr_table_get(r->subprocess_env, "QS_LimitRequestBody"); if(bytes) { apr_off_t s; #ifdef ap_http_scheme /* Apache 2.2 */ char *errp = NULL; if(APR_SUCCESS == apr_strtoff(&s, bytes, &errp, 10)) { return s; } #else if((s = apr_atoi64(bytes)) >= 0) { return s; } #endif } } if(dconf->maxpost != -1) { return dconf->maxpost; } return sconf->maxpost; } /** * Similar to strstr but restricting the length of s1 (supports strings which * are not NULL terminated). * * @param s1 String to search in * @param s2 Pattern to ind * @param len Length of s1 * @return pointer to the beginning of the substring s2 within s1, or NULL * if the substring is not found */ static char *qos_strnstr(const char *s1, const char *s2, int len) { const char *e1 = &s1[len-1]; char *p1, *p2; if (*s2 == '\0') { /* an empty s2 */ return((char *)s1); } while(1) { for ( ; (*s1 != '\0') && (s1 <= e1) && (apr_tolower(*s1) != apr_tolower(*s2)); s1++); if (*s1 == '\0' || s1 > e1) { return(NULL); } /* found first character of s2, see if the rest matches */ p1 = (char *)s1; p2 = (char *)s2; for (++p1, ++p2; (apr_tolower(*p1) == apr_tolower(*p2)) && (p1 <= e1); ++p1, ++p2) { if((p1 > e1) && (*p2 != '\0')) { // reached the end without match return NULL; } if (*p2 == '\0') { /* both strings ended together */ return((char *)s1); } } if (*p2 == '\0') { /* second string ended, a match */ break; } /* didn't find a match here, try starting at next character in s1 */ s1++; } return((char *)s1); } /** * Comperator (ip search) for the client ip store qos_cc_*() functions (used by bsearch/qsort) */ static int qos_cc_comp(const void *_pA, const void *_pB) { qos_s_entry_t *pA=*(( qos_s_entry_t **)_pA); qos_s_entry_t *pB=*(( qos_s_entry_t **)_pB); if(pA->ip > pB->ip) return 1; if(pA->ip < pB->ip) return -1; return 0; } /** * Comperator (time search) for the client ip store qos_cc_*() functions (used by bsearch/qsort) */ static int qos_cc_comp_time(const void *_pA, const void *_pB) { qos_s_entry_t *pA=*(( qos_s_entry_t **)_pA); qos_s_entry_t *pB=*(( qos_s_entry_t **)_pB); if(pA->time > pB->time) return 1; if(pA->time < pB->time) return -1; return 0; } /** * creates new per client store * @param pool Persistent process pool * @param srec Server rec for sem/mutex * @param size Number of entries * @param limitTable Table of "QS_Limit" events * @return pointer to the per client data array */ static qos_s_t *qos_cc_new(apr_pool_t *pool, server_rec *srec, int size, apr_table_t *limitTable) { char *file = "-"; apr_shm_t *m; // per client memory table apr_shm_t *lm; // "limit" memory table apr_status_t res; int limitTableSize = apr_table_elts(limitTable)->nelts; int lsize = 0; int msize = APR_ALIGN_DEFAULT(sizeof(qos_s_t)) + (APR_ALIGN_DEFAULT(sizeof(qos_s_entry_t)) * size) + (2 * APR_ALIGN_DEFAULT(sizeof(qos_s_entry_t *)) * size); int i; qos_s_t *s; qos_s_entry_t *e; qos_s_entry_limit_t *limitTableEntry = NULL; msize = msize + 1024; if(limitTableSize > 0) { lsize = APR_ALIGN_DEFAULT(sizeof(qos_s_entry_limit_t)) * limitTableSize * size; lsize = lsize + 1024; } /* use anonymous shm by default */ if(limitTableSize > 0) { apr_shm_create(&lm, lsize, NULL, pool); } res = apr_shm_create(&m, msize, NULL, pool); if(APR_STATUS_IS_ENOTIMPL(res)) { char *lfile = apr_psprintf(pool, "%s_cc_ml.mod_qos", qos_tmpnam(pool, srec)); file = apr_psprintf(pool, "%s_cc_m.mod_qos", qos_tmpnam(pool, srec)); #ifdef ap_http_scheme /* Apache 2.2 */ if(limitTableSize > 0) { apr_shm_remove(lfile, pool); } apr_shm_remove(file, pool); #endif if(limitTableSize > 0) { apr_shm_create(&lm, lsize, lfile, pool); } res = apr_shm_create(&m, msize, file, pool); } ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, srec, QOS_LOGD_PFX"create shared memory (client control)(%s): %d bytes", file, msize + lsize); if(res != APR_SUCCESS) { char buf[MAX_STRING_LEN]; apr_strerror(res, buf, sizeof(buf)); ap_log_error(APLOG_MARK, APLOG_EMERG, 0, srec, QOS_LOG_PFX(002)"failed to create shared memory (client control)(%s): %s (%d bytes)", file, buf, msize); return NULL; } s = apr_shm_baseaddr_get(m); s->m = m; if(limitTableSize > 0) { apr_table_entry_t *te = (apr_table_entry_t *)apr_table_elts(limitTable)->elts; limitTableEntry = apr_shm_baseaddr_get(lm); s->limitTable = apr_table_make(pool, limitTableSize+10); for(i = 0; i < limitTableSize; i++) { char *eventName = apr_pstrdup(pool, te[i].key); qos_s_entry_limit_conf_t *eventLimitConf = apr_pcalloc(pool, sizeof(qos_s_entry_limit_conf_t)); qos_s_entry_limit_conf_t *src = (qos_s_entry_limit_conf_t*)te[i].val; eventLimitConf->limit = src->limit; eventLimitConf->limit_time = src->limit_time; eventLimitConf->eventClearStr = apr_pstrcat(pool, eventName, QS_LIMIT_CLEAR, NULL); eventLimitConf->condStr = NULL; eventLimitConf->preg = NULL; if(src->condStr) { eventLimitConf->condStr = apr_pstrdup(pool, src->condStr); #ifdef AP_REGEX_H eventLimitConf->preg = ap_pregcomp(pool, src->condStr, AP_REG_EXTENDED); #else eventLimitConf->preg = ap_pregcomp(pool, src->condStr, REG_EXTENDED); #endif } apr_table_addn(s->limitTable, eventName, (char *)eventLimitConf); } } else { s->limitTable = NULL; } s->lock_file = apr_psprintf(pool, "%s_ccl.mod_qos", qos_tmpnam(pool, srec)); ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, srec, QOS_LOGD_PFX"create mutex (client control)(%s)", s->lock_file); res = apr_global_mutex_create(&s->lock, s->lock_file, APR_LOCK_DEFAULT, pool); if(res != APR_SUCCESS) { char buf[MAX_STRING_LEN]; apr_strerror(res, buf, sizeof(buf)); ap_log_error(APLOG_MARK, APLOG_EMERG, 0, srec, QOS_LOG_PFX(004)"failed to create mutex (client control)(%s): %s", s->lock_file, buf); apr_shm_destroy(s->m); return NULL; } #ifdef AP_NEED_SET_MUTEX_PERMS qos_unixd_set_global_mutex_perms(s->lock); #endif e = (qos_s_entry_t *)&s[1]; s->ipd = (qos_s_entry_t **)&e[size]; s->timed = (qos_s_entry_t **)&s->ipd[size]; s->num = 0; s->max = size; s->msize = msize; s->connections = 0; s->html = 0; s->cssjs = 0; s->img = 0; s->other = 0; s->notmodified = 0; for(i = 0; i < size; i++) { s->ipd[i] = e; s->timed[i] = e; if(limitTableSize > 0) { e->limit = limitTableEntry; limitTableEntry += limitTableSize; } else { e->limit = NULL; } e++; } s->t = time(NULL); return s; } /** * Destroys the client data store * -- not yet implemented (errors for DSO) -- */ static void qos_cc_free(qos_s_t *s) { if(s->lock) { // called by apr_pool_cleanup_register(): // apr_global_mutex_destroy(s->lock); } if(s->m) { // called by apr_pool_cleanup_register(): // apr_shm_destroy(s->m); } } /** * searches an entry * @param s Client store (locked) * @param pA IP to search * @param now Current time (update access to the entry) * @return client entry or NULL if not available */ static qos_s_entry_t **qos_cc_get0(qos_s_t *s, qos_s_entry_t *pA, time_t now) { qos_s_entry_t **pB; int mod = pA->ip % m_qos_cc_partition; int max = (s->max / m_qos_cc_partition); int start = mod * max; pB = bsearch((const void *)&pA, (const void *)&s->ipd[start], max, sizeof(qos_s_entry_t *), qos_cc_comp); if(pB) { if(now != 0) { s->t = now; } (*pB)->time = s->t; } return pB; } /** * inerts a new entry to the client data store * @param s Client store (locked) * @param pA IP to insert * @param now Current time (last access) * @return inserted entry */ static qos_s_entry_t **qos_cc_set(qos_s_t *s, qos_s_entry_t *pA, time_t now) { qos_s_entry_t **pB; int mod = pA->ip % m_qos_cc_partition; int max = (s->max / m_qos_cc_partition); int start = mod * max; s->t = now; qsort(&s->timed[start], max, sizeof(qos_s_entry_t *), qos_cc_comp_time); if(s->num < s->max) { s->num++; } pB = &s->timed[start]; (*pB)->ip = pA->ip; (*pB)->time = now; qsort(&s->ipd[start], max, sizeof(qos_s_entry_t *), qos_cc_comp); (*pB)->vip = 0; (*pB)->lowrate = 0; (*pB)->block = 0; (*pB)->blockMsg = 0; (*pB)->block_time = 0; if(s->limitTable) { int i; for(i = 0; i < apr_table_elts(s->limitTable)->nelts; i++) { (*pB)->limit[i].limit = 0; (*pB)->limit[i].limit_time = 0; } } (*pB)->interval = now; (*pB)->req = 0; (*pB)->req_per_sec = 0; (*pB)->req_per_sec_block_rate = 0; (*pB)->event_req = 0; (*pB)->serialize = 0; (*pB)->html = 1; (*pB)->cssjs = 1; (*pB)->img = 1; (*pB)->other = 1; (*pB)->notmodified = 1; (*pB)->events = 0; return pB; } /* 000-255 */ int qos_dec32c(const char *x) { char buf[4]; strncpy(buf, x, 3); buf[3] = '\0'; return atoi(buf); } int qos_dec22c(const char *x) { char buf[4]; strncpy(buf, x, 2); buf[2] = '\0'; return atoi(buf); } /** * hex value for the char * @param x * @return hex value */ int qos_hex2c(const char *x) { int i, ch; ch = x[0]; if (isdigit(ch)) { i = ch - '0'; }else if (isupper(ch)) { i = ch - ('A' - 10); } else { i = ch - ('a' - 10); } i <<= 4; ch = x[1]; if (isdigit(ch)) { i += ch - '0'; } else if (isupper(ch)) { i += ch - ('A' - 10); } else { i += ch - ('a' - 10); } return i; } #define QOS_ISHEX(x) (((x >= '0') && (x <= '9')) || \ ((x >= 'a') && (x <= 'f')) || \ ((x >= 'A') && (x <= 'F'))) /** * url unescaping (%xx, \xHH, '+') * optional decoding: * - uni: MS IIS unicode %uXXXX * - ansi: ansi c esc (\n, \r, ...), not implemented * - char: charset conv, not implemented * - html: (amp/angelbr, &#xHH;, &#DDD;, &#DD;), not implemented ('&' is delimiter) */ static int qos_unescaping(char *x, int mode, int *error) { /* start with standard url decoding*/ int i, j, ch; if(x == 0) { return 0; } if(x[0] == '\0') { return 0; } for(i = 0, j = 0; x[i] != '\0'; i++, j++) { ch = x[i]; if(ch == '%') { if(QOS_ISHEX(x[i + 1]) && QOS_ISHEX(x[i + 2])) { /* url %xx */ ch = qos_hex2c(&x[i + 1]); i += 2; } else if((mode & QOS_DEC_MODE_FLAGS_UNI) && ((x[i + 1] == 'u') || (x[i + 1] == 'U')) && QOS_ISHEX(x[i + 2]) && QOS_ISHEX(x[i + 3]) && QOS_ISHEX(x[i + 4]) && QOS_ISHEX(x[i + 5])) { /* unicode %uXXXX */ ch = qos_hex2c(&x[i + 4]); if((ch > 0x00) && (ch < 0x5f) && ((x[i + 2] == 'f') || (x[i + 2] == 'F')) && ((x[i + 3] == 'f') || (x[i + 3] == 'F'))) { ch += 0x20; } i += 5; } else { (*error)++; } } else if((ch == '\\') && (mode & QOS_DEC_MODE_FLAGS_UNI) && ((x[i + 1] == 'u') || (x[i + 1] == 'U'))) { if(QOS_ISHEX(x[i + 2]) && QOS_ISHEX(x[i + 3]) && QOS_ISHEX(x[i + 4]) && QOS_ISHEX(x[i + 5])) { /* unicode \uXXXX */ ch = qos_hex2c(&x[i + 4]); if((ch > 0x00) && (ch < 0x5f) && ((x[i + 2] == 'f') || (x[i + 2] == 'F')) && ((x[i + 3] == 'f') || (x[i + 3] == 'F'))) { ch += 0x20; } i += 5; } else { (*error)++; } } else if(ch == '\\' && (x[i + 1] == 'x')) { if(QOS_ISHEX(x[i + 2]) && QOS_ISHEX(x[i + 3])) { /* url \xHH */ ch = qos_hex2c(&x[i + 2]); i += 3; } else { (*error)++; } } else if(ch == '+') { ch = ' '; } x[j] = ch; } x[j] = '\0'; return j; } /** * returns the request id from mod_unique_id (if available) */ static const char *qos_unique_id(request_rec *r, const char *eid) { const char *uid = apr_table_get(r->subprocess_env, "UNIQUE_ID"); if(eid) { apr_table_set(r->notes, "error-notes", eid); apr_table_set(r->subprocess_env, QS_ErrorNotes, eid); } if(uid == NULL) { /* generate simple id if mod_unique_id has not been not loaded */ qos_unique_id_t id; char *uidstr; int len; m_unique_id.unique_id_counter++; id.request_time = r->request_time; id.in_addr = m_unique_id.in_addr; id.pid = m_unique_id.pid; id.tid = apr_os_thread_current(); id.conn = r->connection->id; id.unique_id_counter = m_unique_id.unique_id_counter; uidstr = (char *)apr_pcalloc(r->pool, apr_base64_encode_len(sizeof(qos_unique_id_t))); len = qos_encode64_binary(uidstr, (const char *)&id, sizeof(qos_unique_id_t)); uidstr[len-2] = '\0'; uid = uidstr; apr_table_set(r->subprocess_env, "UNIQUE_ID", uid); } return uid; } /** * returns the version number of mod_qos * @param p Pool to alloc version string from * @return Version string */ static char *qos_revision(apr_pool_t *p) { return apr_pstrdup(p, g_revision); } /** * Encrypts and base64 encodes the provided buffer * @param r * @param sconf Key to use (sconf->key) * @param b Buffer to encrypt * @param l Length of the buffer * @return Encrypted string (NULL on error) */ static char *qos_encrypt(request_rec *r, qos_srv_config *sconf, const unsigned char *b, int l) { EVP_CIPHER_CTX cipher_ctx; int buf_len = 0; int len = 0; unsigned char *buf = apr_pcalloc(r->pool, l + EVP_CIPHER_block_size(EVP_des_ede3_cbc())); /* sym enc, should be sufficient for this use case */ EVP_CIPHER_CTX_init(&cipher_ctx); EVP_EncryptInit(&cipher_ctx, EVP_des_ede3_cbc(), sconf->key, NULL); if(!EVP_EncryptUpdate(&cipher_ctx, &buf[buf_len], &len, b, l)) { goto failed; } buf_len+=len; if(!EVP_EncryptFinal(&cipher_ctx, &buf[buf_len], &len)) { goto failed; } buf_len+=len; EVP_CIPHER_CTX_cleanup(&cipher_ctx); /* encode */ { char *data = (char *)apr_pcalloc(r->pool, 1 + apr_base64_encode_len(buf_len)); len = apr_base64_encode(data, (const char *)buf, buf_len); data[len] = '\0'; return data; } failed: EVP_CIPHER_CTX_cleanup(&cipher_ctx); return NULL; } /** * Decryptes the base64 encoded string (see qos_encrypt()) */ static int qos_decrypt(request_rec *r, qos_srv_config* sconf, unsigned char **ret_buf, const char *value) { EVP_CIPHER_CTX cipher_ctx; /* decode */ char *dec = (char *)apr_pcalloc(r->pool, 1 + apr_base64_decode_len(value)); int dec_len = apr_base64_decode(dec, value); *ret_buf = NULL; if(dec_len == 0) { return 0; } else { /* decrypt */ int len = 0; int buf_len = 0; unsigned char *buf = apr_pcalloc(r->pool, dec_len); EVP_CIPHER_CTX_init(&cipher_ctx); EVP_DecryptInit(&cipher_ctx, EVP_des_ede3_cbc(), sconf->key, NULL); if(!EVP_DecryptUpdate(&cipher_ctx, (unsigned char *)&buf[buf_len], &len, (const unsigned char *)dec, dec_len)) { goto failed; } buf_len+=len; if(!EVP_DecryptFinal(&cipher_ctx, (unsigned char *)&buf[buf_len], &len)) { goto failed; } buf_len+=len; EVP_CIPHER_CTX_cleanup(&cipher_ctx); *ret_buf = buf; return buf_len; } failed: EVP_CIPHER_CTX_cleanup(&cipher_ctx); return 0; } /** * Adds the user tracking cookie to r->headers_out if QOS_USER_TRACKING_NEW env variable * has been set. * @param r * @param sconf * @param status (302 or other) */ static void qos_send_user_tracking_cookie(request_rec *r, qos_srv_config* sconf, int status) { const char *new_user = apr_table_get(r->subprocess_env, QOS_USER_TRACKING_NEW); if(new_user) { char *sc; apr_size_t retcode; char tstr[MAX_STRING_LEN]; apr_time_exp_t n; int len = QOS_RAN + QOS_MAGIC_LEN + 2 + strlen(new_user); unsigned char *value = apr_pcalloc(r->pool, len + 1); char *c; apr_time_exp_gmt(&n, r->request_time); apr_strftime(tstr, &retcode, sizeof(tstr), "%m", &n); RAND_bytes(value, QOS_RAN); memcpy(&value[QOS_RAN], qs_magic, QOS_MAGIC_LEN); memcpy(&value[QOS_RAN+QOS_MAGIC_LEN], tstr, 2); memcpy(&value[QOS_RAN+QOS_MAGIC_LEN+2], new_user, strlen(new_user)); value[len] = '\0'; c = qos_encrypt(r, sconf, value, len + 1); /* valid for 300 days */ sc = apr_psprintf(r->pool, "%s=%s; Path=/; Max-Age=25920000", sconf->user_tracking_cookie, c); if(status != HTTP_MOVED_TEMPORARILY) { apr_table_add(r->headers_out, "Set-Cookie", sc); } else { apr_table_add(r->err_headers_out, "Set-Cookie", sc); } } return; } /** * Verifies and sets the user tracking cookie * - QOS_USER_TRACKING if the cookie was available * - QOS_USER_TRACKING_NEW if a new cookie needs to be set * * syntax: b64(enc()) * * shall be called after(!) mod_unique_id has created an id * * @param r * @param sconf * @param value Cookie received from the client, possibly null (see qos_get_remove_cookie()) */ static void qos_get_create_user_tracking(request_rec *r, qos_srv_config* sconf, const char *value) { const char *uid = qos_unique_id(r, NULL); const char *verified = NULL; if(value != NULL) { int buf_len = 0; unsigned char *buf; buf_len = qos_decrypt(r, sconf, &buf, value); if((buf_len > (QOS_MAGIC_LEN + QOS_RAN)) && (strncmp((char *)&buf[QOS_RAN], qs_magic, QOS_MAGIC_LEN) == 0)) { verified = (char *)&buf[QOS_RAN+QOS_MAGIC_LEN]; } } if(verified == NULL) { verified = uid; apr_table_set(r->subprocess_env, QOS_USER_TRACKING_NEW, verified); } else if(strlen(verified) > 2) { /* renew, if not from this month */ apr_size_t retcode; char tstr[MAX_STRING_LEN]; apr_time_exp_t n; apr_time_exp_gmt(&n, r->request_time); apr_strftime(tstr, &retcode, sizeof(tstr), "%m", &n); if(strncmp(tstr, verified, 2) != 0) { apr_table_set(r->subprocess_env, QOS_USER_TRACKING_NEW, &verified[2]); } verified = &verified[2]; } else { verified = uid; apr_table_set(r->subprocess_env, QOS_USER_TRACKING_NEW, verified); } apr_table_set(r->subprocess_env, QOS_USER_TRACKING, verified); return; } /** * Adds new milestone cookie to the response headers if QOS_MILESTONE_COOKIE has been set. * See qos_verify_milestone() about the syntax. */ static void qos_update_milestone(request_rec *r, qos_srv_config* sconf) { const char *new_ms = apr_table_get(r->subprocess_env, QOS_MILESTONE_COOKIE); if(new_ms) { apr_time_t now = apr_time_sec(r->request_time); int len = QOS_RAN + QOS_MAGIC_LEN + sizeof(apr_time_t) + strlen(new_ms); unsigned char *value = apr_pcalloc(r->pool, len + 1); char *c; RAND_bytes(value, QOS_RAN); memcpy(&value[QOS_RAN], qs_magic, QOS_MAGIC_LEN); memcpy(&value[QOS_RAN+QOS_MAGIC_LEN], &now, sizeof(apr_time_t)); memcpy(&value[QOS_RAN+QOS_MAGIC_LEN+sizeof(apr_time_t)], new_ms, strlen(new_ms)); value[len] = '\0'; c = qos_encrypt(r, sconf, value, len + 1); apr_table_add(r->headers_out, "Set-Cookie", apr_psprintf(r->pool, "%s=%s; Path=/;", QOS_MILESTONE_COOKIE, c)); } return; } /** * Verifies the milestone. Evaluates rule and enforces it. Does also set the * QOS_MILESTONE_COOKIE variable if a new milestone has been reached. * * milestone cookie syntax: b64(enc(