source: trunk/dports/net/scotty/Portfile @ 125738

Last change on this file since 125738 was 125738, checked in by mf2k@…, 5 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[20349]1# $Id: Portfile 125738 2014-09-25 14:43:03Z mf2k@macports.org $
[34655]2
[17907]3PortSystem      1.0
4
5name                    scotty
6version                 3.0.0
[99455]7revision                6
[17907]8categories              net
[125738]9maintainers             nomaintainer
[17907]10description             Network management extensions to Tcl that enables \
11                        TCP/UDP connections, DNS queries, and SNMP.  The graphical \
12                        network mapper tkined is also included.
13long_description        ${description}
14homepage                http://wiki.tcl.tk/220
15platforms               darwin
16worksrcdir              ${name}/trunk
17
[34655]18master_sites            macports
19checksums               md5 40e1aeeee79767b882a78910ad177f78
20distfiles               ${name}-${version}-rev2813.tar.bz2
[17907]21use_bzip2               yes
22
23#fetch.type             svn
24#svn.url                https://subversion.eecs.iu-bremen.de/svn/schoenw/src/scotty
25
[47462]26depends_lib             port:tcl \
[17907]27                        port:tk
28
29patchfiles              patch-Makefile.in \
[99455]30                        patch-configure.in.diff \
[17907]31                        patch-tnm-library-init.tcl
32
[17938]33startupitem.create      yes
34startupitem.name        nmicmpd
35startupitem.executable  "${prefix}/bin/nmicmpd"
36
[99455]37autoconf.dir            ${worksrcpath}/unix
[17907]38configure.dir           ${worksrcpath}/unix
39build.dir               ${worksrcpath}/unix
40
[99455]41use_autoconf            yes
42
[38785]43configure.args          --exec_prefix=${prefix} \
[17907]44                        --with-tcl=${prefix} \
45                        --with-tk=${prefix}
46
47destroot.target         install sinstall
48
49post-patch {
50        reinplace "s|\$(INSTALL_ROOT)|${destroot}|g" \
51                ${worksrcpath}/unix/Makefile.in
52
53        reinplace "s|\$(BIN_INSTALL_DIR)/nmicmpd|${prefix}/bin/nmicmpd|g" \
54                ${worksrcpath}/unix/Makefile.in
55
56        reinplace "s|\$(BIN_INSTALL_DIR)/nmtrapd|${prefix}/bin/nmtrapd|g" \
57                ${worksrcpath}/unix/Makefile.in
58}
59
[99496]60use_parallel_build      no
61
[17907]62post-destroot {
[99455]63        ln -s scotty3.0.0 ${destroot}${prefix}/bin/scotty
64        ln -s tkined1.5.0 ${destroot}${prefix}/bin/tkined
[17907]65}
66
[17943]67platform darwin 8 {
[17938]68pre-install {
[99455]69# Replace the launchd item with one supporting inetdCompatibility
[19128]70        file copy -force ${filespath}/org.macports.nmicmpd.plist \
71                ${destroot}${prefix}/etc/LaunchDaemons/org.macports.nmicmpd/
[17938]72        reinplace "s|__PREFIX__|${prefix}|g" \
[19128]73                "${destroot}${prefix}/etc/LaunchDaemons/org.macports.nmicmpd/org.macports.nmicmpd.plist"
[17938]74}
[17943]75}
[17938]76
[99455]77notes "
78To enable the ${startupitem.executable} daemon:
[17938]79
[99455]80   1) Add the following line to /etc/services:
81        nmicmp 57777/tcp
82      (You may use another port if necessary.)
[17943]83
[99455]84   2) Load the launchd script installed by MacPorts:
85        sudo port load ${name}
[17938]86
[17943]87   3) Reboot and test the nmicmpd daemon:
[99455]88        telnet localhost nmicmp
89        ps -ax | grep nmicmpd
90      (The daemon loads only when requested and unloads afterwards.)
91"
Note: See TracBrowser for help on using the repository browser.