freebsd-ports/net/GeoIP/Makefile
2015-08-15 15:50:51 +00:00

38 lines
870 B
Makefile

# Created by: Yen-Ming Lee <leeym@leeym.com>
# $FreeBSD$
PORTNAME= GeoIP
PORTVERSION= 1.6.6
DISTVERSIONPREFIX= v
CATEGORIES= net geography
MAINTAINER= adamw@FreeBSD.org
COMMENT= Find the country that any IP address or hostname originates from
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= maxmind
GH_PROJECT= geoip-api-c
USES= autoreconf libtool pathfix
PATHFIX_MAKEFILEIN= Makefile.am
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
SUB_FILES= geoipupdate.sh pkg-message
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
OPTIONS_DEFINE= DOCS
PORTDOCS= COPYING ChangeLog LICENSE README.md
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/geoipupdate.sh ${STAGEDIR}${PREFIX}/bin
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libGeoIP.so.*
@${MKDIR} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>