Gentoo

Gentoo users should follow the following howto:

1 - Create a local portage directory

   mkdir -p /usr/local/portage
   echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf

2 - Create the appropriate directory for the new mod_log_sql

   mkdir -p /usr/local/portage/www-apache/mod_log_sql

3 - Copy the existing mod_log_sql to the new portage

   cp -r /usr/portage/www-apache/mod_log_sql/* /usr/local/portage/www-apache/mod_log_sql

4 - Download the patches to /usr/local/portage/www-apache/mod_log_sql/files/

   cd /usr/local/portage/www-apache/mod_log_sql/files
   wget ftp://ftp.gplhost.com/public/dtc_mod_log_sql_fixed/files/patch-mod_log_sql.h
   wget ftp://ftp.gplhost.com/public/dtc_mod_log_sql_fixed/files/patch-mod_log_sql.c

5 - Delete the standard ebuild and download the patched ebuild to /usr/local/portage/www-apache/mod_log_sql/

   cd ..
   rm mod_log_sql-1.100.ebuild
   wget http://www.atct.nl/public/dtc_mod_log_sql_fixed/mod_log_sql-1.100.ebuild(approve sites)

6 - add it to the digest

   ebuild /usr/local/portage/net-www/mod_log_sql/mod_log_sql-1.100.ebuild digest

7 - emerge our local mod_log_sql

   emerge -av mod_log_sql
  • check that it is merged from your local ebuild [1]

8 - make sure /etc/conf.d/apache2 has LOG_SQL defined in APACHE2_OPTS (dtc install should have set this already)

   APACHE2_OPTS="$APACHE2_OPTS -D LOG_SQL"
Page last modified on June 08, 2009, at 03:50 AM EST