2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Yen-Ming Lee <leeym@leeym.com>
|
2002-08-15 15:34:10 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-07-01 19:32:18 +02:00
|
|
|
PORTNAME= GeoIP
|
2015-08-15 17:50:51 +02:00
|
|
|
PORTVERSION= 1.6.6
|
2015-04-19 21:19:35 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2014-07-01 19:32:18 +02:00
|
|
|
CATEGORIES= net geography
|
2002-08-15 15:34:10 +02:00
|
|
|
|
2014-07-01 19:32:18 +02:00
|
|
|
MAINTAINER= adamw@FreeBSD.org
|
|
|
|
COMMENT= Find the country that any IP address or hostname originates from
|
2011-07-23 18:39:41 +02:00
|
|
|
|
2014-10-29 22:47:25 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-08-27 17:53:24 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= maxmind
|
|
|
|
GH_PROJECT= geoip-api-c
|
|
|
|
|
2014-10-13 03:31:28 +02:00
|
|
|
USES= autoreconf libtool pathfix
|
2014-07-28 17:26:32 +02:00
|
|
|
PATHFIX_MAKEFILEIN= Makefile.am
|
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2002-08-15 15:34:10 +02:00
|
|
|
|
2014-07-22 14:24:58 +02:00
|
|
|
SUB_FILES= geoipupdate.sh pkg-message
|
2014-10-29 22:47:25 +01:00
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
2011-07-24 00:30:39 +02:00
|
|
|
|
2014-08-27 17:53:24 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTDOCS= COPYING ChangeLog LICENSE README.md
|
|
|
|
|
2008-07-03 23:51:55 +02:00
|
|
|
post-install:
|
2014-06-12 23:37:01 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/geoipupdate.sh ${STAGEDIR}${PREFIX}/bin
|
2014-07-28 17:26:32 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libGeoIP.so.*
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
2008-07-03 23:51:55 +02:00
|
|
|
|
2014-08-27 17:53:24 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
2002-08-15 15:34:10 +02:00
|
|
|
.include <bsd.port.mk>
|