Installation of sarg-php can be disabled with --disable-sargphp.
SET(sarg_VERSION 2)
SET(sarg_REVISION 2)
SET(sarg_BUILD "7rc1")
-SET(sarg_BUILDDATE "Jan-18-2010")
+SET(sarg_BUILDDATE "Jan-20-2010")
INCLUDE(AddFileDependencies)
INCLUDE(CheckIncludeFile)
SET(LANGDIR "share/sarg/languages" CACHE PATH "The directory to copy the languages files relative to the install directory")
SET(FONTDIR "share/sarg/fonts" CACHE PATH "The directory to copy the fonts relative to the install directory")
SET(IMAGEDIR "share/sarg/images" CACHE PATH "The directory to copy the images files relative to the install directory")
+SET(SARGPHPDIR "share/sarg/sarg-php" CACHE PATH "The directory to copy sarg-php relative to the install directory")
# Sources to compile
INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}") #Make it find this config.h before the one in src/include
INSTALL(DIRECTORY languages/ DESTINATION "${LANGDIR}" PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY images/ DESTINATION "${IMAGEDIR}" PATTERN ".svn" EXCLUDE)
INSTALL(DIRECTORY fonts/ DESTINATION "${FONTDIR}" FILES_MATCHING PATTERN "*.ttf" PATTERN ".svn" EXCLUDE)
+INSTALL(DIRECTORY sarg-php/ DESTINATION "${SARGPHPDIR}" PATTERN ".svn" EXCLUDE)
# Package creation
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Squid Analysis Report Generator")
SARG ChangeLog
-Jan-18-2010 Version 2.2.7
+Jan-20-2010 Version 2.2.7
- Extra compile and run time protection (FORTIFY_SOURCE) fixed in configure.
- Use tabulations as columns separator in intermediary files to avoid problems when a field of the log contains a space.
- Input log file type detection partly rewritten to clearly distinguish which type is processed where.
- Directories deleted without using the rm system command.
- Index created using an internal sort algorithm instead of a system call.
- Fixed exclude_hosts to exclude subdomains and IPv4 subnets.
+ - Replace --enable-htmldir by --enable-sargphp to avoid confusion on the name.
+ - Installation of sarg-php can be disabled with --disable-sargphp.
Jan-06-2010 Version 2.2.6.1
- Remove unnecessary dependency on off_t.
IBINDIR = -DBINDIR=\"@bindir@\"
MANDIR = @mandir@
SYSCONFDIR = @sysconfdir@
-HTMLDIR = @HTMLDIR@
+SARGPHPDIR = @SARGPHPDIR@
LANGDIR = @LANGDIR@
FONTDIR = @FONTDIR@
IMAGEDIR = @IMAGEDIR@
ISYSCONFDIR = -DSYSCONFDIR=\"@sysconfdir@\"
-IHTMLDIR = -DHTMLDIR=\"@HTMLDIR@\"
+ISARGPHPDIR = -DSARGPHPDIR=\"@SARGPHPDIR@\"
ILANGDIR = -DLANGDIR=\"@LANGDIR@\"
IFONTDIR = -DFONTDIR=\"@FONTDIR@\"
IIMAGEDIR = -DIMAGEDIR=\"@IMAGEDIR@\"
all: sarg
.c.o:
- $(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) $(IBINDIR) $(ISYSCONFDIR) $(ILANGDIR) $(IFONTDIR) $(IIMAGEDIR) $(IHTMLDIR) $<
+ $(CC) -c -I. $(CPPFLAGS) $(DEFS) $(CFLAGS) $(IBINDIR) $(ISYSCONFDIR) $(ILANGDIR) $(IFONTDIR) $(IIMAGEDIR) $(ISARGPHPDIR) $<
sarg: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) $(LIBCRYPT)
cp -r ./images/* $(DESTDIR)$(IMAGEDIR);
cp -r ./fonts/* $(DESTDIR)$(FONTDIR);
cp -r ./css.tpl $(DESTDIR)$(SYSCONFDIR);
- -@if test -d $(DESTDIR)$(HTMLDIR); then \
- cp -r ./sarg-php $(DESTDIR)$(HTMLDIR); \
+ -@if test -n "$(SARGPHPDIR)" -a -d "$(DESTDIR)$(SARGPHPDIR)"; then \
+ cp -r ./sarg-php $(DESTDIR)$(SARGPHPDIR); \
fi
uninstall:
EGREP
LIBICONV
LTLIBICONV
-HTMLDIR
+SARGPHPDIR
LANGDIR
FONTDIR
IMAGEDIR
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-rpath do not hardcode runtime library paths
--disable-largefile omit support for large files
- --enable-htmldir=htmldir
- Select htmldir as the root of your WWW documents
+ --enable-sargphp=sargphpdir
+ Select sargphpdir as the directory to install sarg-php into
--enable-languagedir=languagedir
Select languagedir as the directory with the translations of sarg
--enable-fontdir=fontdir
echo "$as_me: WARNING: can not detect the size of your system\'s rlim_t type" >&2;}
fi
-# Check whether --enable-htmldir was given.
-if test "${enable_htmldir+set}" = set; then
- enableval=$enable_htmldir;
- if test "$enableval"; then
- HTMLDIR=$enableval
+# Check whether --enable-sargphp was given.
+if test "${enable_sargphp+set}" = set; then
+ enableval=$enable_sargphp;
+ if test "$enableval" -a "x$enableval" != "xno" ; then
+ SARGPHPDIR=$enableval
fi
else
- HTMLDIR="/var/www/html"
+ SARGPHP="/var/www/html"
fi
-echo "using $HTMLDIR as the WWW Document Root dir"
+if test "$SARGPHPDIR" ; then
+ echo "using $SARGPHPDIR as the directory to install sarg-php"
+fi
# Check whether --enable-languagedir was given.
if test "${enable_languagedir+set}" = set; then
EGREP!$EGREP$ac_delim
LIBICONV!$LIBICONV$ac_delim
LTLIBICONV!$LTLIBICONV$ac_delim
-HTMLDIR!$HTMLDIR$ac_delim
+SARGPHPDIR!$SARGPHPDIR$ac_delim
LANGDIR!$LANGDIR$ac_delim
FONTDIR!$FONTDIR$ac_delim
IMAGEDIR!$IMAGEDIR$ac_delim
AC_MSG_WARN([can not detect the size of your system\'s rlim_t type])
fi
-dnl Select htmldir
-AC_ARG_ENABLE(htmldir,
-[ --enable-htmldir=htmldir
- Select htmldir as the root of your WWW documents ],
+dnl Select sarg-php directory
+AC_ARG_ENABLE(sargphp,
+[ --enable-sargphp=sargphpdir
+ Select sargphpdir as the directory to install sarg-php into ],
[
- if test "$enableval"; then
- HTMLDIR=$enableval
+ if test "$enableval" -a "x$enableval" != "xno" ; then
+ SARGPHPDIR=$enableval
fi
-],[HTMLDIR="/var/www/html"])
-echo "using $HTMLDIR as the WWW Document Root dir"
-AC_SUBST(HTMLDIR)
+],[SARGPHP="/var/www/html"])
+if test "$SARGPHPDIR" ; then
+ echo "using $SARGPHPDIR as the directory to install sarg-php"
+ AC_SUBST(SARGPHPDIR)
+fi
dnl Select languages dir
AC_ARG_ENABLE(languagedir,
-#define VERSION PACKAGE_VERSION" Jan-18-2010"
+#define VERSION PACKAGE_VERSION" Jan-20-2010"
#define PGM PACKAGE_NAME
#define URL "http://sarg.sourceforge.net"