/*
 * $Id$
 *
 * Copyright (c) 2003, Raphael Manfredi
 *
 * Extra files installed in various directories.
 *
 *----------------------------------------------------------------------
 * This file is part of gtk-gnutella.
 *
 *  gtk-gnutella is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  gtk-gnutella is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with gtk-gnutella; if not, write to the Free Software
 *  Foundation, Inc.:
 *      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *----------------------------------------------------------------------
 */

;# $Id$

all::		/* So that default target is not clobber! */

EXTRA_FILES = \
	bogons.txt \
	favicon.png \
	geo-ip.txt \
	geo-ipv6.txt \
	hostiles.txt \
	robots.txt \
	spam.txt \
	spam_sha1.txt

PIXMAP_FILES = \
	gtk-gnutella.png	\
	gtk-gnutella.svg

DESKTOP_FILES = \
	gtk-gnutella.desktop

INSTALLFLAGS = -m 444

MakeInstallDirectories($(PRIVLIB))
InstallMultiple($(EXTRA_FILES), $(PRIVLIB))
InstallMultiple($(DESKTOP_FILES), $(INSTALLPREFIX)/share/applications)
InstallMultiple($(PIXMAP_FILES), $(INSTALLPREFIX)/share/pixmaps)

SetSubdirs(el en fr ja tr)

;#
;# Update the bogons and GeoIp databases
;#

update: update_bogons update_geoip update_geoipv6

update_bogons:
;# Target disabled, site seems to be down definitively? -- RAM, 2009-01-16
	: wget http://www.completewhois.com/bogons/data/bogons-cidr-all.txt \
		-O bogons.txt

update_geoip:
	rm -f GeoIPCountryCSV.zip
	wget http://www.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
	rm -f GeoIPCountryWhois.csv
	unzip GeoIPCountryCSV.zip
	$(TOP)/scripts/geo-to-db.pl -c GeoIPCountryWhois.csv >geo-ip.txt

update_geoipv6:
	rm -f GeoIPv6.csv.gz
	wget http://geolite.maxmind.com/download/geoip/database/GeoIPv6.csv.gz
	rm -f GeoIPv6.csv
	gunzip GeoIPv6.csv.gz
	$(TOP)/scripts/geo6-to-db.pl -g GeoIPv6.csv >geo-ipv6.txt

