Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2019 21:30:12 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490429 - head/net/geoipupdate
Message-ID:  <201901152130.x0FLUCVJ032934@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Tue Jan 15 21:30:11 2019
New Revision: 490429
URL: https://svnweb.freebsd.org/changeset/ports/490429

Log:
  Pass variables to make(1), rather than patching

Modified:
  head/net/geoipupdate/Makefile

Modified: head/net/geoipupdate/Makefile
==============================================================================
--- head/net/geoipupdate/Makefile	Tue Jan 15 21:28:27 2019	(r490428)
+++ head/net/geoipupdate/Makefile	Tue Jan 15 21:30:11 2019	(r490429)
@@ -21,7 +21,9 @@ USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	maxmind
 
-MAKE_ENV+=	GOPATH=${WRKSRC}
+MAKE_ENV+=	GOPATH=${WRKSRC} \
+		CONFFILE=${PREFIX}/etc/GeoIP.conf \
+		DATADIR=${PREFIX}/share/GeoIP
 
 OPTIONS_DEFINE=	DOCS
 
@@ -29,9 +31,6 @@ PLIST_FILES=	bin/geoipupdate \
 		'@sample etc/GeoIP.conf.sample' \
 		'@dir share/GeoIP'
 PORTDOCS=	GeoIP.conf.md geoipupdate.md
-
-post-patch:
-	${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/Makefile
 
 do-build:
 	${MV} ${WRKSRC}/vendor ${WRKSRC}/src



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901152130.x0FLUCVJ032934>