diff --git a/helpers/DATA/geoip-database-contrib/geoip-database-contrib_update.shim b/helpers/DATA/geoip-database-contrib/update-geoip-database.shim similarity index 100% rename from helpers/DATA/geoip-database-contrib/geoip-database-contrib_update.shim rename to helpers/DATA/geoip-database-contrib/update-geoip-database.shim diff --git a/helpers/make-geoip-database-contrib b/helpers/make-geoip-database-contrib index 95d5a8cb749e7f4389ae8afe951d0c80fe4cd8c8..9d8dc7006c3dae19c4ddb27143a861a751eaee2f 100644 --- a/helpers/make-geoip-database-contrib +++ b/helpers/make-geoip-database-contrib @@ -15,27 +15,29 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# +# VERSION=1 EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu $UPSTREAM multiverse' . ./config -sed "/^exit 0/d" -i geoip-database-contrib_update -cat $DATA/geoip-database-contrib_update.shim >> geoip-database-contrib_update +sed "/^exit 0/d" -i update-geoip-database +cat $DATA/update-geoip-database.shim >> update-geoip-database cat $DATA/copyright.shim >> debian/copyright -sed '/rm -f \/usr\/share\/GeoIP\/GeoLiteCityv6\.dat/a\ - rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPCountryCSV.zip\ - rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPv6.csv.gz\ - rm -f /usr/share/doc/geoip-database-contrib/csv/GeoLiteCity-latest.tar.xz\ - rm -f /usr/share/doc/geoip-database-contrib/csv/GeoLiteCityv6.csv.gz\ - rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPASNum2.zip\ - rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPASNum2v6.zip +sed '\|rm -f /var/lib/geoip-database-contrib/GeoLiteCityv6\.dat|a\ + rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPCountryCSV.zip\ + rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPv6.csv.gz\ + rm -f /usr/share/doc/geoip-database-contrib/csv/GeoLiteCity-latest.tar.xz\ + rm -f /usr/share/doc/geoip-database-contrib/csv/GeoLiteCityv6.csv.gz\ + rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPASNum2.zip\ + rm -f /usr/share/doc/geoip-database-contrib/csv/GeoIPASNum2v6.zip\ + rmdir --ignore-fail-on-non-empty /usr/share/doc/geoip-database-contrib/csv &&\\\ + rmdir --ignore-fail-on-non-empty /usr/share/doc/geoip-database-contrib ' -i debian/postrm -changelog 'Handle CSV source in geoip-database-contrib_update and postrm #13927' +changelog 'Handle CSV source in update-geoip-database and postrm #13927' compile