diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:26:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:26:40 +0000 |
commit | abf8e556035710951777913a041e35c274a105f6 (patch) | |
tree | 0023ab55bf5a326dae983f04773cc7ac330fbd19 /debian/create-orig.sh | |
parent | Adding upstream version 20240219. (diff) | |
download | geoip-database-abf8e556035710951777913a041e35c274a105f6.tar.xz geoip-database-abf8e556035710951777913a041e35c274a105f6.zip |
Adding debian version 20240219-1.debian/20240219-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/create-orig.sh')
-rwxr-xr-x | debian/create-orig.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/create-orig.sh b/debian/create-orig.sh new file mode 100755 index 0000000..1dca095 --- /dev/null +++ b/debian/create-orig.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +OLDDIR=$(pwd) +TMPDIR=$(mktemp -d) +DATE=$(date +'%Y%m%d') + +cd ${TMPDIR} + +wget https://mailfud.org/geoip-legacy/GeoIP.dat.gz +wget https://mailfud.org/geoip-legacy/GeoIPv6.dat.gz +gunzip GeoIP.dat.gz GeoIPv6.dat.gz + +mkdir ${TMPDIR}/geoip-database-${DATE} + +mv GeoIP.dat GeoIPv6.dat ${TMPDIR}/geoip-database-${DATE}/ + +tar -cJf geoip-database_${DATE}.orig.tar.xz geoip-database-${DATE} +mv geoip-database_${DATE}.orig.tar.xz ${OLDDIR}/../geoip-database_${DATE}.orig.tar.xz + +cd ${OLDDIR} +rm -rf ${TMPDIR} + +echo "Saved tarball: ${OLDDIR}/../geoip-database_${DATE}.orig.tar.xz" + +exit 0 |