# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 77507 2011-04-01 18:43:58Z ricci@macports.org $

PortSystem 1.0

name                iplike
version             2.0.0

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     37896569794c37ef65f20c0078a248c8 \
                    sha1    20db660dde23334039d570a96e262c10d35d635c \
                    rmd160  670e7c255f7b2c6a841429b475cb945690020ebb

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"
}

