# -*- 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$

PortSystem          1.0

name                fauxident
version             1.2.1
revision            2
categories          net
platforms           darwin freebsd
maintainers         nomaintainer
license             GPL-2
supported_archs     noarch

description         small extremely naive ident server

long_description    fauxident is a small Python script that will act as an \
                    extremely naive ident server, answering all ident requests \
                    with a consistent response -- either an ERROR or a USERID \
                    response.

homepage            http://www.alcyone.com/software/fauxident/
master_sites        ${homepage}

checksums           rmd160  43e4e87e51f297b23afb0e4e184dc6b9988ef42d \
                    sha256  73dd881432d5c816f34ed3ba1bf78b477beb8a7a53ae0f542390dab33b6a697f

depends_lib         port:python27

post-extract {
    file attributes ${worksrcpath}/fauxident.py -permissions 0755
}

configure {
    reinplace "s|/usr/local/bin/python|${prefix}/bin/python2.7|g" \
        ${worksrcpath}/fauxident.py
}

build               {}

destroot {
    file mkdir ${destroot}${prefix}/bin
    file mkdir ${destroot}${prefix}/share/doc/${name}
    file copy ${worksrcpath}/fauxident.py ${destroot}${prefix}/bin/
    file copy ${worksrcpath}/COPYING ${worksrcpath}/README \
        ${worksrcpath}/doc/index.html ${worksrcpath}/doc/home \
        ${destroot}${prefix}/share/doc/${name}
}