source: trunk/dports/net/scotty/Portfile

Last change on this file was 125738, checked in by mf2k@…, 3 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
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name                    scotty
6version                 3.0.0
7revision                6
8categories              net
9maintainers             nomaintainer
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
18master_sites            macports
19checksums               md5 40e1aeeee79767b882a78910ad177f78
20distfiles               ${name}-${version}-rev2813.tar.bz2
21use_bzip2               yes
22
23#fetch.type             svn
24#svn.url                https://subversion.eecs.iu-bremen.de/svn/schoenw/src/scotty
25
26depends_lib             port:tcl \
27                        port:tk
28
29patchfiles              patch-Makefile.in \
30                        patch-configure.in.diff \
31                        patch-tnm-library-init.tcl
32
33startupitem.create      yes
34startupitem.name        nmicmpd
35startupitem.executable  "${prefix}/bin/nmicmpd"
36
37autoconf.dir            ${worksrcpath}/unix
38configure.dir           ${worksrcpath}/unix
39build.dir               ${worksrcpath}/unix
40
41use_autoconf            yes
42
43configure.args          --exec_prefix=${prefix} \
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
60use_parallel_build      no
61
62post-destroot {
63        ln -s scotty3.0.0 ${destroot}${prefix}/bin/scotty
64        ln -s tkined1.5.0 ${destroot}${prefix}/bin/tkined
65}
66
67platform darwin 8 {
68pre-install {
69# Replace the launchd item with one supporting inetdCompatibility
70        file copy -force ${filespath}/org.macports.nmicmpd.plist \
71                ${destroot}${prefix}/etc/LaunchDaemons/org.macports.nmicmpd/
72        reinplace "s|__PREFIX__|${prefix}|g" \
73                "${destroot}${prefix}/etc/LaunchDaemons/org.macports.nmicmpd/org.macports.nmicmpd.plist"
74}
75}
76
77notes "
78To enable the ${startupitem.executable} daemon:
79
80   1) Add the following line to /etc/services:
81        nmicmp 57777/tcp
82      (You may use another port if necessary.)
83
84   2) Load the launchd script installed by MacPorts:
85        sudo port load ${name}
86
87   3) Reboot and test the nmicmpd daemon:
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.