# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 88378 2011-12-30 00:51:21Z ricci@macports.org $

PortSystem 1.0

name                iplike
version             2.0.2

categories          databases
maintainers         nomaintainer
platforms           darwin

description         PostgreSQL IP address query interface
long_description    C implementation of OpenNMS's plpgsql iplike function, \
                    preferred as it offers better performance.  Allows for \
                    complex IP address queries on a text field.

homepage            http://www.opennms.org/wiki/IPLIKE

master_sites        sourceforge:opennms

depends_lib         port:postgresql90

depends_run         port:postgresql90-server

checksums           md5     89a7760f22ccc60a7d07ce85a2cdad55 \
                    sha1    042f12f885993dc2720ac3cd84e4825f6c388ebf \
                    rmd160  2d3e16c72984e4edb92f96298036f005c97c9795

configure.args      --with-pgsql=${prefix}/lib/postgresql90/bin/pg_config


post-activate {
        ui_msg "\nNOTE:\n\
                This package (${name}-${version})will not work until you run\n\
                ${prefix}/sbin/install_iplike.sh with the appropriate options.\n\
                Run:\n\
                ${prefix}/sbin/install_iplike.sh -h\n\
                for more information.\n"
}

