description Network management extensions to Tcl that enables \
TCP/UDP connections, DNS queries, and SNMP. The graphical \
network mapper tkined is also included.
long_description ${description}
homepage http://wiki.tcl.tk/220
checksums md5 40e1aeeee79767b882a78910ad177f78
distfiles ${name}-${version}-rev2813.tar.bz2
#svn.url https://subversion.eecs.iu-bremen.de/svn/schoenw/src/scotty
patchfiles patch-Makefile.in \
patch-configure.in.diff \
patch-tnm-library-init.tcl
startupitem.executable "${prefix}/bin/nmicmpd"
autoconf.dir ${worksrcpath}/unix
configure.dir ${worksrcpath}/unix
build.dir ${worksrcpath}/unix
configure.args --exec_prefix=${prefix} \
destroot.target install sinstall
reinplace "s|\$(INSTALL_ROOT)|${destroot}|g" \
${worksrcpath}/unix/Makefile.in
reinplace "s|\$(BIN_INSTALL_DIR)/nmicmpd|${prefix}/bin/nmicmpd|g" \
${worksrcpath}/unix/Makefile.in
reinplace "s|\$(BIN_INSTALL_DIR)/nmtrapd|${prefix}/bin/nmtrapd|g" \
${worksrcpath}/unix/Makefile.in
ln -s scotty3.0.0 ${destroot}${prefix}/bin/scotty
ln -s tkined1.5.0 ${destroot}${prefix}/bin/tkined
# Replace the launchd item with one supporting inetdCompatibility
file copy -force ${filespath}/org.macports.nmicmpd.plist \
${destroot}${prefix}/etc/LaunchDaemons/org.macports.nmicmpd/
reinplace "s|__PREFIX__|${prefix}|g" \
"${destroot}${prefix}/etc/LaunchDaemons/org.macports.nmicmpd/org.macports.nmicmpd.plist"
To enable the ${startupitem.executable} daemon:
1) Add the following line to /etc/services:
(You may use another port if necessary.)
2) Load the launchd script installed by MacPorts:
3) Reboot and test the nmicmpd daemon:
(The daemon loads only when requested and unloads afterwards.)