Port details
ip4r IP address and IP range index types for PostgreSQL
2.4.3 databases Σ=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.4.3Version of this port present on the latest quarterly branch.
Maintainer: axel.rau@chaos1.de search for ports maintained by this maintainer
Port Added: 2006-01-07 00:31:53
Last Update: 2026-06-14 16:43:28
Commit Hash: e51a72f7
People watching this port, also watch: sudo, dspam, smartmontools, roundcube-php85, pam_ssh_agent_auth
Also Listed In: net
License: PostgreSQL
WWW:
https://github.com/RhodiumToad/ip4r
Description: #
IP4R is a contributed PostgreSQL module that embraces and extends the existing 'inet' and 'cidr' built-in types, providing extra functionality and simplicity to IPv4 and IPv6 address lookup within large-scale environments.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
Expand this list (14 items)
Collapse this list.
  1. /usr/local/share/licenses/ip4r-2.4.3/catalog.mk
  2. /usr/local/share/licenses/ip4r-2.4.3/LICENSE
  3. /usr/local/share/licenses/ip4r-2.4.3/PostgreSQL
  4. include/postgresql/server/extension/ip4r/ipr.h
  5. lib/postgresql/ip4r.so
  6. share/doc/postgresql/extension/README.ip4r
  7. share/postgresql/extension/ip4r--2.0--2.1.sql
  8. share/postgresql/extension/ip4r--2.1--2.2.sql
  9. share/postgresql/extension/ip4r--2.2--2.4.sql
  10. share/postgresql/extension/ip4r--2.4.sql
  11. share/postgresql/extension/ip4r.control
  12. @owner
  13. @group
  14. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ip4r>0:databases/ip4r
To install the port: #
cd /usr/ports/databases/ip4r/ && make install clean
To add the package, run one of these commands:
  • pkg install databases/ip4r
  • pkg install ip4r
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: ip4r
Flavors: #
there is no flavor information for this port.
distinfo: #
TIMESTAMP = 1781109341 SHA256 (RhodiumToad-ip4r-2.4.3_GH0.tar.gz) = b49157a38b520c919a327637bfa6478b9985d9ec7c78b47c68595ba0271371a1 SIZE (RhodiumToad-ip4r-2.4.3_GH0.tar.gz) = 133375

Packages (timestamps in pop-ups are UTC): #
ip4r
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest2.4.32.4.32.4.1_12.4.22.4.3
FreeBSD:14:quarterly2.4.32.4.3-2.4.22.4.3
FreeBSD:15:latest2.4.32.4.3n/a2.4.2n/a
FreeBSD:15:quarterly2.4.32.4.3n/a-n/a
FreeBSD:16:latest CURRENT2.4.32.4.3n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. gmake>=4.4.1 : devel/gmake
Library dependencies: #
  1. libpq.so.5 : databases/postgresql18-client
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
databases_ip4r
USES: #
gmake pgsql
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/RhodiumToad/ip4r/tar.gz/2.4.3?dummy=/
Collapse this list.

Number of commits found: 29 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.4.3
14 Jun 2026 16:43:28
commit hash: e51a72f72527aa9a3aae0d2b828bec43345f7986commit hash: e51a72f72527aa9a3aae0d2b828bec43345f7986commit hash: e51a72f72527aa9a3aae0d2b828bec43345f7986commit hash: e51a72f72527aa9a3aae0d2b828bec43345f7986 files touched by this commit
Kurt Jaeger (pi) search for other commits by this committer
Author: Axel Rau
databases/ip4r: update 2.4.2 -> 2.4.3

- now supports PostgreSQL 19 (bits8 -> uint8)

PR:		296053
Changes:	https://github.com/RhodiumToad/ip4r/releases/tag/2.4.3
2.4.2
19 Nov 2023 18:30:21
commit hash: 75e6e3c90fc50020151736fbdd6eac5209b20a03commit hash: 75e6e3c90fc50020151736fbdd6eac5209b20a03commit hash: 75e6e3c90fc50020151736fbdd6eac5209b20a03commit hash: 75e6e3c90fc50020151736fbdd6eac5209b20a03 files touched by this commit
Kurt Jaeger (pi) search for other commits by this committer
Author: Axel Rau
databases/ip4r: update 2.4.1 -> 2.4.2

- Support pg 16, including soft-error handling for input.
- Check for lower < upper in binary format input and correct if necessary.
- Remove support for some long-obsolete PG versions
- Remove support for old-style (pre-extension) building.
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2.4.1_1
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.4.1_1
20 Jul 2022 14:21:07
commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16commit hash: d076ad94e206dda108061fe99ddb860d93cc6d16 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
databases: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  "Choe, Cheng-Dae" whitekid
  *  "Mahdi Mokhtari <mokhi64@gmail.com>"
  *  "Meikel Brandmeyer" <ocaml-sqlite3-port@kotka.de>
  *  <hvo.pm@xs4all.nl>
  *  <jsmith@resonatingmedia.com>
  *  <ports@c0decafe.net>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Ade Lovett <ade@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alan Snelson <Alan@Wave2.org>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.4.1_1
26 Apr 2021 09:35:46
commit hash: c7e7e9abc20a75be7219a04beceefd5f2903b851commit hash: c7e7e9abc20a75be7219a04beceefd5f2903b851commit hash: c7e7e9abc20a75be7219a04beceefd5f2903b851commit hash: c7e7e9abc20a75be7219a04beceefd5f2903b851 files touched by this commit
Fernando Apesteguía (fernape) search for other commits by this committer
databases/ip4r: set new MAINTAINER

Set MAINTAINER to axel.rau@chaos1.de, already maintainer of several ports

PR:	255317
Reported by:	axel.rau@chaos1.de
2.4.1
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
2.4.1
03 Aug 2019 08:23:00
Revision:507936commit hash: cadce4f06027d66fee354fb860ba901ff8857112commit hash: cadce4f06027d66fee354fb860ba901ff8857112commit hash: cadce4f06027d66fee354fb860ba901ff8857112commit hash: cadce4f06027d66fee354fb860ba901ff8857112Original commit files touched by this commit
tobik search for other commits by this committer
databases/ip4r: Update to 2.4.1

This fixes the build with newer PostgreSQL versions.

Drop the IDXPATCH option.  The patch no longer applies.  Unfortunately
it was never upstreamed, its purpose is not clear, and the port no
longer has a maintainer to ask about this.

Changes:	https://github.com/RhodiumToad/ip4r/blob/2.4.1/README.ip4r
PR:		239514
2.2_2
26 Jul 2019 20:46:57
Revision:507372commit hash: ea8c8ec7da96df12146a2cc428077258141791cfcommit hash: ea8c8ec7da96df12146a2cc428077258141791cfcommit hash: ea8c8ec7da96df12146a2cc428077258141791cfcommit hash: ea8c8ec7da96df12146a2cc428077258141791cfOriginal commit files touched by this commit
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2.2_1
08 Apr 2019 19:17:24
Revision:498412commit hash: 24a48c23da23e819abf0ae05194163cb668642fbcommit hash: 24a48c23da23e819abf0ae05194163cb668642fbcommit hash: 24a48c23da23e819abf0ae05194163cb668642fbcommit hash: 24a48c23da23e819abf0ae05194163cb668642fbOriginal commit files touched by this commit
rene search for other commits by this committer
Return tobez@'s ports to the pool after his commit bit was safekept.
2.2_1
12 Dec 2018 01:35:36
Revision:487272commit hash: a9f015d155018758628ec8858a3d05e162673f67commit hash: a9f015d155018758628ec8858a3d05e162673f67commit hash: a9f015d155018758628ec8858a3d05e162673f67commit hash: a9f015d155018758628ec8858a3d05e162673f67Original commit files touched by this commit
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2.2
24 Jun 2018 00:54:27
Revision:473169commit hash: 078a5d741919a7be140ed626640199bd6c7a79dacommit hash: 078a5d741919a7be140ed626640199bd6c7a79dacommit hash: 078a5d741919a7be140ed626640199bd6c7a79dacommit hash: 078a5d741919a7be140ed626640199bd6c7a79daOriginal commit files touched by this commit
linimon search for other commits by this committer
Workaround the following problem on aarch64 by setting LLD_UNSAFE=yes:

  cc: error: invalid linker name in argument '-fuse-ld=bfd'

Neither emaste nor I can figure out exactly where the offending stanza is
coming in.  It will take someone with more knowledge of gmake debug flags,
and possibly the src build infrastructure, to figure it out.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2.2
03 Aug 2017 02:29:04
Revision:447193commit hash: 6449c62195aebec84fcccc5c2ea9e6613ae2de7dcommit hash: 6449c62195aebec84fcccc5c2ea9e6613ae2de7dcommit hash: 6449c62195aebec84fcccc5c2ea9e6613ae2de7dcommit hash: 6449c62195aebec84fcccc5c2ea9e6613ae2de7dOriginal commit files touched by this commit
pi search for other commits by this committer
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)
2.0
20 Oct 2014 10:41:13
Revision:371255commit hash: 3edc030b9f4ebc1bbc06d185768d69e2c64ffbb8commit hash: 3edc030b9f4ebc1bbc06d185768d69e2c64ffbb8commit hash: 3edc030b9f4ebc1bbc06d185768d69e2c64ffbb8commit hash: 3edc030b9f4ebc1bbc06d185768d69e2c64ffbb8Original commit files touched by this commit
bapt search for other commits by this committer
Cleanup plist
2.0
07 Jul 2014 05:27:17
Revision:361022commit hash: 504d450fc1769b4637eda9d9a9656fa59521c29ecommit hash: 504d450fc1769b4637eda9d9a9656fa59521c29ecommit hash: 504d450fc1769b4637eda9d9a9656fa59521c29ecommit hash: 504d450fc1769b4637eda9d9a9656fa59521c29eOriginal commit files touched by this commit
pi search for other commits by this committer
databases/ip4r: patch to prefer ip4r indexes over seq_scan on large datasets

- add option to prefer ip4r indexes over seq_scan on large datasets

PR:		190104
Submitted by:	michelle@sorbs.net
Approved by:	maintainer (timeout)
2.0
05 May 2014 13:48:25
Revision:353002commit hash: 1604951b3093e548a7245a9a4de33403f76ba72fcommit hash: 1604951b3093e548a7245a9a4de33403f76ba72fcommit hash: 1604951b3093e548a7245a9a4de33403f76ba72fcommit hash: 1604951b3093e548a7245a9a4de33403f76ba72fOriginal commit files touched by this commit
bapt search for other commits by this committer
Convert to USES=pgsql

While here:
databases/pg_reorg
- stagify

databases/iplike
- convert to USES=libtool
- strip binarie

databases/ip4r
- strip binaries

databases/postgresql-libpgeasy
- convert to USES=libtool
- strip binaries
- stagify

databases/postgresql-libpqxx
- convert to USES=libtool
- strip binaries

databases/postgresql-libpqxx3
- convert to USES=libtool
- strip binaries
2.0
03 Feb 2014 13:52:18
Revision:342443commit hash: 4b67ba1dff6209414c45eebddffbe631058c434dcommit hash: 4b67ba1dff6209414c45eebddffbe631058c434dcommit hash: 4b67ba1dff6209414c45eebddffbe631058c434dcommit hash: 4b67ba1dff6209414c45eebddffbe631058c434dOriginal commit files touched by this commit
tobez search for other commits by this committer
Update to 2.0 and take over maintainership.
1.05
21 Jan 2014 23:18:05
Revision:340671commit hash: 56fcf8379f5682c3905a92cebe66335f8bc8b08ccommit hash: 56fcf8379f5682c3905a92cebe66335f8bc8b08ccommit hash: 56fcf8379f5682c3905a92cebe66335f8bc8b08ccommit hash: 56fcf8379f5682c3905a92cebe66335f8bc8b08cOriginal commit files touched by this commit
bapt search for other commits by this committer
Fix properties on pkg-plist
1.05
20 Sep 2013 16:13:49
Revision:327717commit hash: 36117d709704f772dbc3d305cda6923741791598commit hash: 36117d709704f772dbc3d305cda6923741791598commit hash: 36117d709704f772dbc3d305cda6923741791598commit hash: 36117d709704f772dbc3d305cda6923741791598Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
databases)
1.05
09 Mar 2011 16:58:26
Original commit files touched by this commit
miwi search for other commits by this committer
- Update to 1.05

PR:             155272
Submitted by:   Ruslan Mahmatkhanov <cvs-src@yandex.ru>
1.03_1
16 Mar 2009 07:32:57
Original commit files touched by this commit
linimon search for other commits by this committer
Mark as broken on sparc64-6.
1.03_1
19 Dec 2008 10:17:37
Original commit files touched by this commit
linimon search for other commits by this committer
Maintainer has turned in his commit bit.

Hat:    portmgr
1.03_1
06 Jun 2008 13:17:10
Original commit files touched by this commit
edwin search for other commits by this committer
Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
1.03
04 Feb 2008 21:46:02
Original commit files touched by this commit
ade search for other commits by this committer
Update to 1.03
1.01
29 Jan 2007 23:25:35
Original commit files touched by this commit
ade search for other commits by this committer
Update to 1.01 for pgsql 8.2.x support
1.0
05 Jul 2006 02:30:58
Original commit files touched by this commit
linimon search for other commits by this committer
Change all bogus uses of BROKEN to IGNORE.  See CHANGES 20060705.

PR:             ports/92445
Hat:            portmgr
1.0
22 Jan 2006 01:29:10
Original commit files touched by this commit
edwin search for other commits by this committer
Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry

Approved by:    krion@
PR:             ports/88711 (related)
1.0
19 Jan 2006 04:21:46
Original commit files touched by this commit
ade search for other commits by this committer
Set default pgsql version to 8.1.x, since the port doesn't work with
the packaging default of 7.4.x
1.0
07 Jan 2006 00:28:21
Original commit files touched by this commit
ade search for other commits by this committer
IP4R is a contributed PostgreSQL module that embraces and extends the
existing 'inet' and 'cidr' built-in types, providing extra functionality
and simplicity to IPv4 address lookup within large-scale environments.

Number of commits found: 29