1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Fix insecure handling of GeoIP download file

- Bump PORTREVISION since we change package

PR:		ports/145425
Submitted by:	anatoly pugachev <matorola@gmail.com>
Approved by:	dhn@ (maintainer)
This commit is contained in:
Michael Scheidell 2012-07-04 11:22:49 +00:00
parent 01941640e1
commit 3c3ab07abe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300479
3 changed files with 6 additions and 7 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= GeoIP
PORTVERSION= 1.4.8
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net geography
MASTER_SITES= http://geolite.maxmind.com/download/geoip/api/c/
@ -22,11 +22,13 @@ USE_LDCONFIG= yes
MAN1= geoiplookup.1 geoipupdate.1 geoiplookup6.1
SUB_FILES= geoipupdate.sh
run-autotools:
@${REINPLACE_CMD} -e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
${WRKSRC}/aclocal.m4
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/geoipupdate.sh ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKDIR}/geoipupdate.sh ${PREFIX}/bin/
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
#!/bin/sh
cd /tmp
fetch http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
mv -f GeoIP.dat /usr/local/share/GeoIP

View File

@ -0,0 +1,2 @@
#!/bin/sh
fetch -o - http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz | gunzip > %%DATADIR%%/GeoIP.dat