import ports/databases/postgresql-ip4r, tweak/ok op@

IP4R is a PostgreSQL extension which supports 6 data types allowing
you to store IPv4 & IPv6 addresses in a PostgreSQL table:

  ip4   - a single IPv4 address
  ip4r  - an arbitrary range of IPv4 addresses
  ip6   - a single IPv6 address
  ip6r  - an arbitrary range of IPv6 addresses
  ipaddress  - a single IPv4 or IPv6 address
  iprange    - an arbitrary range of IPv4 or IPv6 addresses

While PostgreSQL already has builtin types 'inet' and 'cidr', the
authors of this module found that they had a number of requirements
that were not addressed by the builtin types.
This commit is contained in:
sthen 2022-05-13 12:21:45 +00:00
parent e1e5bb3a28
commit 84fd583f88
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,28 @@
COMMENT= IPv4/v6 and IPv4/v6 range index type for PostgreSQL
GH_ACCOUNT= RhodiumToad
GH_PROJECT= ip4r
# use a slightly newer commit including the license file
#GH_TAGNAME= 2.4.1
GH_COMMIT= 5f9ce88a353f241b7968b60835ba7186c8199162
DISTNAME= ip4r-2.4.1pl1
PKGNAME= postgresql-${DISTNAME}
CATEGORIES= databases net
# PostgreSQL license (BSD)
PERMIT_PACKAGE= Yes
WANTLIB += c
USE_GMAKE= Yes
MODULES= databases/postgresql
BUILD_DEPENDS= databases/postgresql,-server
RUN_DEPENDS= databases/postgresql,-server
TEST_DEPENDS= ${BUILD_PKGPATH}
TEST_TARGET= installcheck
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (ip4r-2.4.1pl1-5f9ce88a.tar.gz) = a9p8htxxUU+K21/hFgnZrlpQmGhqVTUb+YUeNn6Hk5A=
SIZE (ip4r-2.4.1pl1-5f9ce88a.tar.gz) = 129118

View File

@ -0,0 +1,13 @@
IP4R is a PostgreSQL extension which supports 6 data types allowing
you to store IPv4 & IPv6 addresses in a PostgreSQL table:
ip4 - a single IPv4 address
ip4r - an arbitrary range of IPv4 addresses
ip6 - a single IPv6 address
ip6r - an arbitrary range of IPv6 addresses
ipaddress - a single IPv4 or IPv6 address
iprange - an arbitrary range of IPv4 or IPv6 addresses
While PostgreSQL already has builtin types 'inet' and 'cidr', the
authors of this module found that they had a number of requirements
that were not addressed by the builtin types.

View File

@ -0,0 +1,14 @@
include/postgresql/server/extension/ip4r/
include/postgresql/server/extension/ip4r/ipr.h
@so lib/postgresql/ip4r.so
share/doc/postgresql/
share/doc/postgresql/extension/
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--2.4.sql
share/postgresql/extension/ip4r--2.4.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