(

  #It seems like someone missed -lz here...
  sedit "s:\(librsyslog_la_LIBADD = \$(DL_LIBS) \$(RT_LIBS)\):\1 \$(ZLIB_LIBS):" runtime/Makefile.in

  OPTS+=" --enable-pthreads    \
          --enable-regexp      \
          --enable-largefile   \
          --enable-klog        \
          --enable-inet        \
          --enable-imfile      \
          --enable-imtemplate  \
          --enable-mail        \
          --enable-fsstnd      \
          --enable-rsyslogd    \
          --enable-unix        \
          --enable-rsyslogrt   \
          --enable-rsyslogd    \
          --disable-rfc3195"  &&

  default_build  &&

  if [ ! -f /etc/rsyslog.conf ]; then
     install -m 644 $SOURCE_CACHE/$SOURCE2 /etc/rsyslog.conf
  fi &&
  if [ ! -f /etc/config.d/rsyslog ]; then
     install -m 644 $SOURCE_CACHE/$SOURCE3 /etc/config.d/rsyslog
  fi &&

  mkdir -p /usr/share/doc/rsyslog/scripts/{mysql,pqsql} &&
  install -m 644 plugins/ommysql/createDB.sql /usr/share/doc/rsyslog/scripts/mysql/ &&
  install -m 644 plugins/ompgsql/createDB.sql /usr/share/doc/rsyslog/scripts/pqsql/ &&

  gather_docs doc/rsyslog-example.conf

) > $C_FIFO 2>&1
