diff --git a/lib/configfiles/freebsd.inc.php b/lib/configfiles/freebsd.inc.php index d8a2d57d..7e7e0237 100644 --- a/lib/configfiles/freebsd.inc.php +++ b/lib/configfiles/freebsd.inc.php @@ -189,6 +189,22 @@ return Array( ) ) ) + ), + 'etc' => Array( + 'label' => $lng['admin']['configfiles']['etc'], + 'daemons' => Array( + 'awstats' => Array( + 'label' => 'Awstats', + 'commands' => Array( + 'cd /usr/ports/www/awstats/', + 'make install clean', + 'cp /usr/local/www/awstats/cgi-bin/awstats.model.conf '.makeCorrectDir($settings['system']['awstats_conf']) + ), + 'files' => Array( + 'etc_awstats.model.conf' => makeCorrectFile($settings['system']['awstats_conf'].'/awstats.model.conf') + ) + ) + ) ) ) ) diff --git a/templates/misc/configfiles/freebsd/awstats/etc_awstats.model.conf b/templates/misc/configfiles/freebsd/awstats/etc_awstats.model.conf new file mode 100644 index 00000000..4370c0cf --- /dev/null +++ b/templates/misc/configfiles/freebsd/awstats/etc_awstats.model.conf @@ -0,0 +1,19 @@ +# for Froxlor and AWStats to work together +# you have to comment out the following +# variables + +# look for +LogFile="" +LogType="" +LogFormat="" +LogSeparator="" +SiteDomain="" +DirData="/some/folder/" + +# and comment this out with a hash (#) +#LogFile="" +#LogType="" +#LogFormat="" +#LogSeparator="" +#SiteDomain="" +#DirData="/some/folder/"