freebsd-ports/databases/ip4r/Makefile
Ade Lovett 273354b716 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.
2006-01-07 00:28:20 +00:00

38 lines
1.1 KiB
Makefile

# New ports collection makefile for: ip4r
# Date created: 15th December 2005
# Whom: Ade Lovett <ade@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ip4r
PORTVERSION= 1.0
CATEGORIES= databases net
MASTER_SITES= http://pgfoundry.org/frs/download.php/537/
MAINTAINER= ade@FreeBSD.org
COMMENT= IPv4 and IPv4 range index type for PostgreSQL
USE_PGSQL= YES
USE_GMAKE= YES
WANT_PGSQL_VER?= 81
# 74 is not strictly true, but requires extracting the appropriate
# postgresql-contrib tarball, and associated heavy lifting.
# In order to keep this port simple, we assume >= 8.0
BROKEN_WITH_PGSQL= 73 74
MAKE_ARGS= USE_PGXS=1
# In order to make this port PREFIX-safe, we override the install target
# and install the three files manually
do-install:
@${INSTALL} -m ${BINMODE} ${WRKSRC}/ip4r.so ${PREFIX}/lib/postgresql
@${MKDIR} ${PREFIX}/share/postgresql/contrib
@${INSTALL_DATA} ${WRKSRC}/ip4r.sql \
${PREFIX}/share/postgresql/contrib
@${MKDIR} ${PREFIX}/share/doc/postgresql/contrib
@${INSTALL_DATA} ${WRKSRC}/README.ip4r \
${PREFIX}/share/doc/postgresql/contrib
.include <bsd.port.mk>