wrong path for zombienets.regex

Issue #10 resolved
Marcel Evenson created an issue

When I try and start clapf I get this in the log:

#!
Feb  6 10:03:29 myhost clapf[1112]: error: cannot open '/share/clapf/zombienets.regex'

It seems that clapf is missing the prefix. The regex files were actually installed to :

#!
/usr/share/clapf/zombienets.regex

My original configure line:

#!
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-database=mysql --enable-clamd 

Comments (4)

  1. Janos SUTO repo owner

    Can you show me the clapf-config.h file? Btw. the installer should create zombienets.regex.dist and not zombienets.regex. The reason behind is this file may include some a local addons, fixes, etc.

  2. Marcel Evenson reporter

    Here is the clapf-config.h.

    #!
    
    /* clapf-config.h.  Generated from clapf-config.h.in by configure.  */
    /*
     * clapf-config.h.in, SJ
     */
    #define CONFDIR "/etc"
    #define DATADIR "/var"
    
    #define HAVE_DAEMON 1
    
    #define TIMEOUT_BINARY "/usr/bin/timeout"
    
    /* #undef HAVE_PDFTOTEXT */
    /* #undef HAVE_CATDOC */
    /* #undef HAVE_CATPPT */
    /* #undef HAVE_XLS2CSV */
    /* #undef HAVE_PPTHTML */
    /* #undef HAVE_UNRTF */
    /* #undef HAVE_TNEF */
    /* #undef HAVE_ZIP */
    
    /* #undef HAVE_STARTTLS */
    /* #undef HAVE_LIBWRAP */
    
    #define ZOMBIE_NET_REGEX "/share/clapf/zombienets.regex"
    

    Here is my full make install (You can see it put everything into /usr/share/clapf) :

    #!
    # make install
    ./mkinstalldirs \
                    /usr/bin /usr/sbin /usr/lib64 /usr/libexec/clapf /usr/share/clapf /etc \
                    /var/clapf/queue \
                    /var/clapf/sphinx \
                    /var/clapf/stat \
                    /var/clapf/tmp \
                    /var/clapf/www
    /usr/bin/install -c -d -m 0755 -o clapf -g `id -gn clapf` /var/run/clapf
    /usr/bin/install -c -d -m 0711 -o clapf -g `id -gn clapf` /var/clapf/queue
    /usr/bin/install -c -d -m 0750 -o clapf -g `id -gn clapf` /var/clapf/sphinx
    /usr/bin/install -c -d -m 0755 -o clapf -g `id -gn clapf` /var/clapf/stat
    /usr/bin/install -c -d -m 0711 -o clapf -g `id -gn clapf` /var/clapf/tmp
    cp -R ./webui/* /var/clapf/www
    cp -R ./webui/.ht* /var/clapf/www
    Making install in src
    make[1]: Entering directory `/root/jsuto-clapf-66023b69cab4/src'
    /usr/bin/install -c -m 0644 libclapf.a /usr/lib64
    /usr/bin/install -c -m 0755 libclapf.so.0.1.1 /usr/lib64
    (cd /usr/lib64 && ln -sf libclapf.so.0.1.1 libclapf.so)
    (cd /usr/lib64 && ln -sf libclapf.so.0.1.1 libclapf.so.0)
    /usr/bin/install -c -m 0755 clapf /usr/sbin
    /usr/bin/install -c -m 0755 clapfconf /usr/sbin
    /usr/bin/install -c -m 0755 spamdrop /usr/bin
    /usr/bin/install -c -m 0755 splitmbox /usr/bin
    make[1]: Leaving directory `/root/jsuto-clapf-66023b69cab4/src'
    Making install in etc
    make[1]: Entering directory `/root/jsuto-clapf-66023b69cab4/etc'
    if [ ! -f "/etc/clapf.conf" ]; then /usr/bin/install -c -m 0640 -g `id -gn clapf` ./clapf.conf /etc/clapf.conf; fi
    /usr/bin/install -c -m 0644 -g `id -gn clapf` ./clapf.conf /etc/clapf.conf.dist
    sed -e 's%LOCALSTATEDIR%/var%g' ./sphinx.conf.in > sphinx.conf.dist
    /usr/bin/install -c -m 0640 -g `id -gn clapf` ./sphinx.conf.dist /etc/sphinx.conf.dist
    make[1]: Leaving directory `/root/jsuto-clapf-66023b69cab4/etc'
    Making install in init.d
    make[1]: Entering directory `/root/jsuto-clapf-66023b69cab4/init.d'
    ../mkinstalldirs /etc/init.d
    /usr/bin/install -c -m 0755 ./rc.clapf /etc/init.d/rc.clapf
    /usr/bin/install -c -m 0755 ./rc.searchd /etc/init.d/rc.searchd
    make[1]: Leaving directory `/root/jsuto-clapf-66023b69cab4/init.d'
    Making install in util
    make[1]: Entering directory `/root/jsuto-clapf-66023b69cab4/util'
    /usr/bin/install -c -m 0755 ./quarantine-daily-report.php /usr/libexec/clapf
    /usr/bin/install -c -m 0755 ./history-to-sql.php /usr/libexec/clapf
    /usr/bin/install -c -m 0755 ./indexer.main.sh /usr/libexec/clapf
    /usr/bin/install -c -m 0644 ./zombienets.regex /usr/share/clapf/zombienets.regex.dist
    /usr/bin/install -c -m 0644 ./db-mysql.sql /usr/share/clapf
    make[1]: Leaving directory `/root/jsuto-clapf-66023b69cab4/util'
    Making install in zombie
    make[1]: Entering directory `/root/jsuto-clapf-66023b69cab4/zombie'
    /usr/bin/install -c -m 0755 ./clapf-postgrey /usr/libexec/clapf
    make[1]: Leaving directory `/root/jsuto-clapf-66023b69cab4/zombie'
    make[1]: Entering directory `/root/jsuto-clapf-66023b69cab4'
    make[1]: Nothing to be done for `install-am'.
    make[1]: Leaving directory `/root/jsuto-clapf-66023b69cab4'
    
  3. Log in to comment