# $Id: Portfile 58549 2009-09-30 21:28:11Z blb@macports.org $

PortSystem          1.0
name                fauxident
version             1.2.1
revision            1
categories          net
maintainers         nomaintainer
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.

platforms           darwin freebsd

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

checksums           md5 fc968c08f18ed23df5b3a20399c29be2

depends_lib         port:python26

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

configure {
   reinplace "s|/usr/local/bin/python|${prefix}/bin/python2.6|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}
}

