1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

databases/ip4r: update 2.0 -> 2.2

- moved to github
- set LICENSE

PR:		219766
Changes:	https://github.com/RhodiumToad/ip4r
Submitted by:	Jov <amutu@amutu.com>
Approved by:	tobez (maintainer timeout)
This commit is contained in:
Kurt Jaeger 2017-08-03 02:29:04 +00:00
parent c1175ae500
commit 6449c62195
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447193
4 changed files with 21 additions and 22 deletions

View File

@ -2,13 +2,14 @@
# $FreeBSD$
PORTNAME= ip4r
PORTVERSION= 2.0
PORTVERSION= 2.2
CATEGORIES= databases net
MASTER_SITES= http://pgfoundry.org/frs/download.php/3380/
MAINTAINER= tobez@FreeBSD.org
COMMENT= IP address and IP range index types for PostgreSQL
LICENSE= PostgreSQL
OPTIONS_DEFINE= IDXPATCH
IDXPATCH_DESC= Prefer ip4r indexes over seq_scan on large datasets
@ -21,20 +22,11 @@ MAKE_ARGS= USE_PGXS=1
.if ${PORT_OPTIONS:MIDXPATCH}
# Patch if the option is supplied, however we need to unpatch if the option is de-selected after previously selecting (TODO)
PATCH_SITES= http://www.sorbs.net/home/:SORBS
PATCHFILES= ip4r-2.x-SORBS-prefer-index.patch:-p1:SORBS
PATCH_SITES= https://raw.githubusercontent.com/amutu/patch/master/:SORBS
PATCHFILES= ip4r-2.2-SORBS-prefer-index.patch:-p1:SORBS
.endif
# In order to make this port PREFIX-safe, we override the install target
# and install the three files manually
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/postgresql
@${INSTALL_LIB} -m ${BINMODE} ${WRKSRC}/ip4r.so ${STAGEDIR}${PREFIX}/lib/postgresql
@${MKDIR} ${STAGEDIR}${PREFIX}/share/postgresql/contrib
@${INSTALL_DATA} ${WRKSRC}/ip4r.sql \
${STAGEDIR}${PREFIX}/share/postgresql/contrib
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/postgresql/contrib
@${INSTALL_DATA} ${WRKSRC}/README.ip4r \
${STAGEDIR}${PREFIX}/share/doc/postgresql/contrib
USE_GITHUB= yes
GH_ACCOUNT= RhodiumToad
.include <bsd.port.mk>

View File

@ -1,4 +1,5 @@
SHA256 (ip4r-2.0.tar.gz) = 251e70d12fc1244aab1707d3db0fe9f821ab224765e34cd8f2fb66ee3468a957
SIZE (ip4r-2.0.tar.gz) = 93007
SHA256 (ip4r-2.x-SORBS-prefer-index.patch) = 4c10dcb0c31b6abe012597fc7826ccff2611c8ef256bbc5d448633cfb3b60427
SIZE (ip4r-2.x-SORBS-prefer-index.patch) = 9221
TIMESTAMP = 1496567402
SHA256 (RhodiumToad-ip4r-2.2_GH0.tar.gz) = b513ca2f5e71c33b82566096e9b0ed420405845ed5ac396936ef676527074dc3
SIZE (RhodiumToad-ip4r-2.2_GH0.tar.gz) = 103362
SHA256 (ip4r-2.2-SORBS-prefer-index.patch) = 7f0740c8278dc01964323e74683a7d1e43bc761e8698201aee60da479b8d5b41
SIZE (ip4r-2.2-SORBS-prefer-index.patch) = 9160

View File

@ -3,4 +3,4 @@ existing 'inet' and 'cidr' built-in types, providing extra functionality
and simplicity to IPv4 and IPv6 address lookup within large-scale
environments.
WWW: http://pgfoundry.org/projects/ip4r/
WWW: https://github.com/RhodiumToad/ip4r

View File

@ -1,3 +1,9 @@
lib/postgresql/ip4r.so
share/doc/postgresql/contrib/README.ip4r
share/postgresql/contrib/ip4r.sql
share/doc/postgresql/extension/README.ip4r
share/postgresql/extension/ip4r--2.0--2.1.sql
share/postgresql/extension/ip4r--2.1--2.2.sql
share/postgresql/extension/ip4r--2.2.sql
share/postgresql/extension/ip4r--unpackaged1--2.0.sql
share/postgresql/extension/ip4r--unpackaged2.0--2.0.sql
share/postgresql/extension/ip4r--unpackaged2.1--2.1.sql
share/postgresql/extension/ip4r.control