]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
xt_geoip_update: fix date and add maxmind copyright to GeoIP.dat
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 24 Aug 2019 13:42:27 +0000 (15:42 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 24 Aug 2019 13:44:23 +0000 (15:44 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/scripts/xt_geoip_update

index b9490dbcfc449cda9e7d80d29a2c2f6de8747133..9ea66e00678a3bb89a3d92c376ca67c6ea511099 100644 (file)
@@ -91,7 +91,8 @@ function build_legacy() {
        cat $DB_PATH/GeoLite2-Country-Blocks-IPv4.csv | \
            $DB1_PATH/bin/geolite2-to-legacy-csv.sh $DB1_PATH/bin/countryInfo.txt > \
            $TMP_FILE
-       $DB1_PATH/bin/geoip-generator -v -4 --info="$(date -u +'GEO-106FREE %Y%m%d Build')" -o \
+       $DB1_PATH/bin/geoip-generator -v -4 --info="$(date -u +'GEO-106FREE %Y%m%d Build -IPFire-' \
+           -r $DB_PATH/GeoLite2-Country-Blocks-IPv4.csv) $(<$DB_PATH/COPYRIGHT.txt)" -o \
            $DB1_PATH/GeoIP.dat $TMP_FILE
 
        return 0