+
+ # Copy database to correct location.
+ cd $(DIR_APP) && cp -avf $(DIR_DL)/location-$(DB_DATE).db.xz /var/lib/location/database.db.xz
+
+ # Uncompress database.
+ cd $(DIR_APP) && rm -f /var/lib/location/database.db
+ cd $(DIR_APP) && xz -d /var/lib/location/database.db.xz
+
+ # Launch location util and export all locations in xt_geoip format.
+ cd $(DIR_APP) && /usr/bin/location export \
+ --directory=/usr/share/xt_geoip \
+ --family=ipv4 \
+ --format=xt_geoip
+
+ # Remove exported IPv6 zones.
+ cd $(DIR_APP) && rm -rvf /usr/share/xt_geoip/*.iv6
+