# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
homepage http://netcat.sourceforge.net/
description A rewrite of the well-known networking tool, but more portable, with new features and fully GNU compliant.
Netcat is a featured networking utility which reads and writes data \
across network connections, using the TCP/IP protocol. It is designed to \
be a reliable "back-end" tool that can be used directly or easily driven \
by other programs and scripts. At the same time, it is a feature-rich \
network debugging and exploration tool, since it can create almost any \
kind of connection you would need and has several interesting built-in \
maintainers {alum.wpi.edu:arno+macports @fracai}
master_sites sourceforge:${my_name}
distname ${my_name}-${version}
md5 088def25efe04dcdd1f8369d8926ab34 \
sha1 b5cbc52a7ceed2fd5c4f5081f5747130b2d0fe01 \
rmd160 9eabed2b4b5585a55062b4a82c8c6aee1b01e3b7
--infodir=${prefix}/share/info \
--mandir=${prefix}/share/man
set docdir ${prefix}/share/doc/${my_name}-${version}
reinplace "s|netcat_nc = \$(DESTDIR)\$(bindir)/nc|netcat_nc = \$(DESTDIR)\$(bindir)/gnc|" ${worksrcpath}/src/Makefile
reinplace "s|ln -s netcat \$(netcat_nc);|ln -s gnetcat \$(netcat_nc);|" ${worksrcpath}/src/Makefile
foreach {f} [glob -tails -directory ${destroot}${prefix}/share/info *.info] {
move ${destroot}${prefix}/share/info/${f} ${destroot}${prefix}/share/info/g${f}
# prefix the locale files
foreach {d} [glob -tails -directory ${destroot}${prefix}/share/locale */] {
foreach {f} [glob -tails -directory ${destroot}${prefix}/share/locale/${d}/LC_MESSAGES *.mo] {
move ${destroot}${prefix}/share/locale/${d}/LC_MESSAGES/${f} ${destroot}${prefix}/share/locale/${d}/LC_MESSAGES/g${f}