mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
General cleanups and simplification. Because the port includes
scripts to update the data file, turn use @sample on the data file included in the port. PORTREVISION bump for this change.
This commit is contained in:
parent
c9727b2839
commit
cb00e89e4a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357637
3 changed files with 18 additions and 19 deletions
|
@ -1,29 +1,27 @@
|
|||
# Created by: Yen-Ming Lee <leeym@leeym.com>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= GeoIP
|
||||
PORTNAME= GeoIP
|
||||
PORTVERSION= 1.4.8
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= net geography
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= net geography
|
||||
MASTER_SITES= http://geolite.maxmind.com/download/geoip/api/c/
|
||||
|
||||
MAINTAINER= adamw@FreeBSD.org
|
||||
COMMENT= Find the country that any IP address or hostname originates from
|
||||
|
||||
CONFIGURE_ARGS= CC="${CC}" PATH="${PATH}" \
|
||||
CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
||||
MAINTAINER= adamw@FreeBSD.org
|
||||
COMMENT= Find the country that any IP address or hostname originates from
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES= libtool:oldver
|
||||
USES= libtool:oldver
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
SUB_FILES= geoipupdate.sh
|
||||
|
||||
run-autotools:
|
||||
@${REINPLACE_CMD} -e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
|
||||
${WRKSRC}/aclocal.m4
|
||||
SUB_FILES= geoipupdate.sh
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/geoipupdate.sh ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/geoipupdate.sh ${STAGEDIR}${PREFIX}/bin
|
||||
${MV} ${STAGEDIR}${DATADIR}/GeoIP.dat \
|
||||
${STAGEDIR}${DATADIR}/GeoIP.dat.sample
|
||||
${MV} ${STAGEDIR}${PREFIX}/etc/GeoIP.conf.default \
|
||||
${STAGEDIR}${PREFIX}/etc/GeoIP.conf.sample
|
||||
${RM} ${STAGEDIR}${PREFIX}/etc/GeoIP.conf
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -8,4 +8,7 @@ This module can be used to automatically select the geographically closest
|
|||
mirror, to analyze your web server logs to determine the countries of your
|
||||
visitors, for credit card fraud detection, and for software export controls.
|
||||
|
||||
This port includes a helper script, geoipupdate.sh, to help you keep the
|
||||
library up-to-date.
|
||||
|
||||
WWW: http://www.maxmind.com/geoip/
|
||||
|
|
|
@ -2,9 +2,7 @@ bin/geoiplookup
|
|||
bin/geoiplookup6
|
||||
bin/geoipupdate
|
||||
bin/geoipupdate.sh
|
||||
@unexec if cmp -s %D/etc/GeoIP.conf %D/etc/GeoIP.conf.default; then rm -f %D/etc/GeoIP.conf; fi
|
||||
etc/GeoIP.conf.default
|
||||
@exec if [ ! -f %D/etc/GeoIP.conf ]; then cp -p %D/%F %B/GeoIP.conf; fi
|
||||
@sample etc/GeoIP.conf.sample
|
||||
include/GeoIP.h
|
||||
include/GeoIPCity.h
|
||||
include/GeoIPUpdate.h
|
||||
|
@ -16,7 +14,7 @@ lib/libGeoIPUpdate.a
|
|||
lib/libGeoIPUpdate.la
|
||||
lib/libGeoIPUpdate.so
|
||||
lib/libGeoIPUpdate.so.0
|
||||
%%DATADIR%%/GeoIP.dat
|
||||
@sample %%DATADIR%%/GeoIP.dat.sample
|
||||
man/man1/geoiplookup.1.gz
|
||||
man/man1/geoiplookup6.1.gz
|
||||
man/man1/geoipupdate.1.gz
|
||||
|
|
Loading…
Add table
Reference in a new issue