Create the temporary directory within DATADIR, to ensure they're created

on the same device as their destination.

While here, use USES=autoreconf, and remove the @dirrm.

PR:		194086
Submitted by:	Yasuhito FUTATSUKI
This commit is contained in:
Adam Weinberger 2014-10-13 01:31:28 +00:00
parent cb974625ea
commit d3d9a5a97e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370750
3 changed files with 3 additions and 6 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= GeoIP
PORTVERSION= 1.6.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net geography
MAINTAINER= adamw@FreeBSD.org
@ -15,9 +15,7 @@ GH_PROJECT= geoip-api-c
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= 2e9100a
USES= libtool pathfix
USE_AUTOTOOLS= aclocal automake libtoolize autoconf
AUTOMAKE_ARGS= --add-missing
USES= autoreconf libtool pathfix
PATHFIX_MAKEFILEIN= Makefile.am
USE_LDCONFIG= yes

View file

@ -9,7 +9,7 @@ echo Fetching GeoIP.dat and GeoIPv6.dat...
_fetch() {
url="$1"
out="$2"
TEMPDIR="$(mktemp -d /tmp/GeoIPupdate.XXXXXX)"
TEMPDIR="$(mktemp -d '%%DATADIR%%/GeoIPupdate.XXXXXX')"
trap 'rc=$? ; set +e ; rm -rf "'"$TEMPDIR"'" ; exit $rc' 0
if fetch -o "$TEMPDIR/$out.gz" "$url"; then
gunzip "$TEMPDIR/$out.gz"

View file

@ -10,4 +10,3 @@ lib/libGeoIP.so.1.6.2
libdata/pkgconfig/geoip.pc
man/man1/geoiplookup.1.gz
man/man1/geoiplookup6.1.gz
@dirrmtry %%DATADIR%%