#!/bin/sh # ME=$(readlink -f "$0") MEDIR=${ME%/*} BASE=${BASE:-/mnt/sda1/lamp} EXT=xt_geoip_LE_IPv4 . $MEDIR/phase-default-init.sh DEPS="xtables-addons-KERNEL tcl8.6 tcllib" . $MEDIR/phase-default-deps.sh mkdir -p $TCZ/usr/local/share/xt_geoip rm -rf LE mkdir LE # IPv4 rm -rf GeoLite2-Country-CSV* wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip unzip -o -j GeoLite2-Country-CSV.zip #tclsh /usr/local/libexec/xtables-addons/xt_geoip_build.tcl tclsh $BASE/contrib/xt_geoip_build.tcl cp -r LE $TCZ/usr/local/share/xt_geoip . $MEDIR/phase-default-set-perms.sh . $MEDIR/phase-default-squash-tcz.sh