anchor.diff:          -e "s|\(#define CONST_DEFAULT_INSTALL_DIR\).*|\1 \"$out/share/ntopng\"|g" \
           -i ntop_defines.h
   
  -    gunzip -c $geoLiteCity > httpdocs/geoip/GeoLiteCity.dat
  -    gunzip -c $geoLiteCityV6 > httpdocs/geoip/GeoLiteCityv6.dat
  -    gunzip -c $geoIPASNum > httpdocs/geoip/GeoIPASNum.dat
  -    gunzip -c $geoIPASNumV6 > httpdocs/geoip/GeoIPASNumv6.dat
  +    rmdir httpdocs/geoip
  +    ln -s ${geolite-legacy}/share/GeoIP httpdocs/geoip
     '';
   
     meta = with stdenv.lib; {
  
positive.code:     ./0002-Remove-requirement-to-have-writeable-callback-dir.patch
    ];
  
    buildInputs = [ libpcap gnutls libgcrypt libxml2 glib geoip sqlite which autoreconfHook subversion pkgconfig groff ];
  
    preConfigure = ''
      find . -name Makefile.in | xargs sed -i "s|/bin/rm|rm|"
  
negative.code: { stdenv, fetchurl, libpcap, gnutls, libgcrypt, libxml2, glib
  , geoip, geolite-legacy, sqlite, which, autoreconfHook, subversion
  , pkgconfig, groff
  }:
  
  # ntopng includes LuaJIT, mongoose, rrdtool and zeromq in its third-party/
  