# $Id: Portfile 51506 2009-05-27 04:13:12Z toby@macports.org $

PortSystem 1.0
name            bnc
version         2.9.4
categories      irc
maintainers     toby
description     irc bouncer
long_description \
    BNC which is a acro for BouNCe is a daemon designed to allow some people \
    who do not have access to the net in general, but who do have access to \
    another pc that can reach the net, the ability to BouNCe though this pc \
    to IRC.
homepage        http://www.gotbnc.com/
platforms       darwin

master_sites    http://www.gotbnc.com/files/
distname        ${name}${version}

checksums       md5 190486d2346415e30f6381377e82eb3b \
                sha1 4665c7b740dd37fe01a1ff82328600c9963dfd08 \
                rmd160 47065d7b9b6044f7eb9a3820201d64a7d682a7c9

patchfiles      patch-cmds.c

build.target

destroot {
	xinstall -m 0755 ${worksrcpath}/bnc ${destroot}${prefix}/bin
	xinstall -m 0755 ${worksrcpath}/bncchk ${destroot}${prefix}/bin
	xinstall -m 0755 ${worksrcpath}/bncsetup ${destroot}${prefix}/bin
	xinstall -m 0755 ${worksrcpath}/mkpasswd ${destroot}${prefix}/bin
	xinstall -m 0644 ${worksrcpath}/example.conf ${destroot}${prefix}/etc/bnc.conf.sample
}

livecheck.url   http://www.gotbnc.com/download.html
livecheck.regex files/bnc(\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)\\.tar\\.gz
