Well if you want it to be automatic then package is not required!
Just make a script with this 2 commands(rough idea)
sh /usr/lib/iptables/xtables-addons/xt_geoip_dl
perl /usr/lib/iptables/xtables-addons/xt_geoip_build -D "/usr/share/xt_geoip" GeoIP*.csv
Search Criteria
Package Details: xtables-geoip-db 0.1-4
Package Actions
| Package Base: | xtables-geoip-db |
|---|---|
| Description: | GeoIP Database for xtables. |
| Upstream URL: | http://geolite.maxmind.com/download/geoip/database/ |
| Category: | modules |
| Licenses: | |
| Submitter: | amish |
| Maintainer: | amish |
| Last Packager: | None |
| Votes: | 1 |
| First Submitted: | 2014-05-04 12:27 |
| Last Updated: | 2014-05-06 15:14 |
Latest Comments
Comment by amish
Comment by jskier
This works really well, thank you. Would you be interested in incorporating a systemd timer to run the perl script to update the database the first Tuesday of the month? That way, a manual rebuild of the package would not be necessary to update the database.
Comment by amish
PKGBUILD to build the database which can be used by iptables geoip module.
I named it xtables-geoip-db.
Please vote up.