1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net/GeoIP/Makefile
Romain Tartière 1c169c5c36 Report failure to the caller in geoipupdate.sh
The script was returning an error due to the service not being offered anymore.
The update attempt was replaced with an information message, but it's better to
still return 1 as it did before to allow users detecting they have a problem.

Reported by:	aramw (maintainer)
2019-01-11 19:50:07 +00:00

40 lines
971 B
Makefile

# Created by: Yen-Ming Lee <leeym@leeym.com>
# $FreeBSD$
PORTNAME= GeoIP
PORTVERSION= 1.6.12
PORTREVISION= 3
CATEGORIES= net geography
MASTER_SITES= https://github.com/maxmind/geoip-api-c/releases/download/v${PORTVERSION}/
MAINTAINER= adamw@FreeBSD.org
COMMENT= Find the country that any IP address or hostname originates from
LICENSE= GPLv2
USES= libtool pathfix
DEPRECATED= Legacy databases no longer available. Switch to GeoIP2 instead
EXPIRATION_DATE=2019-02-01
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
SUB_FILES= geoipupdate.sh pkg-message
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
OPTIONS_DEFINE= DOCS
PORTDOCS= COPYING ChangeLog LICENSE README.md
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/geoipupdate.sh ${STAGEDIR}${PREFIX}/bin
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>