Changeset 99455


Ignore:
Timestamp:
Nov 5, 2012, 9:42:12 PM (12 years ago)
Author:
ryandesign@…
Message:

scotty:

  • patch to work with tcl 8.5 (#23752)
  • fix mtree violation by manpages
  • don't use "system" just to create symlinks
  • use notes instead of post-activate ui_msg, and remove notes pertaining to OS X older than Tiger since MacPorts requires Tiger or newer
Location:
trunk/dports/net/scotty
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/scotty/Portfile

    r71014 r99455  
    55name                    scotty
    66version                 3.0.0
    7 revision                5
     7revision                6
    88categories              net
    99maintainers             markd
     
    2828
    2929patchfiles              patch-Makefile.in \
     30                        patch-configure.in.diff \
    3031                        patch-tnm-library-init.tcl
    3132
     
    3435startupitem.executable  "${prefix}/bin/nmicmpd"
    3536
     37autoconf.dir            ${worksrcpath}/unix
    3638configure.dir           ${worksrcpath}/unix
    3739build.dir               ${worksrcpath}/unix
    38 destroot.dir            ${worksrcpath}/unix
     40
     41use_autoconf            yes
    3942
    4043configure.args          --exec_prefix=${prefix} \
     
    5659
    5760post-destroot {
    58         system "cd ${destroot}${prefix}/bin && ln -sf scotty3.0.0 scotty"
    59         system "cd ${destroot}${prefix}/bin && ln -sf tkined1.5.0 tkined"
     61        ln -s scotty3.0.0 ${destroot}${prefix}/bin/scotty
     62        ln -s tkined1.5.0 ${destroot}${prefix}/bin/tkined
    6063}
    6164
    6265platform darwin 8 {
    6366pre-install {
    64 # Replace the LaunchD item with one supporting inetdCompatibility
     67# Replace the launchd item with one supporting inetdCompatibility
    6568        file copy -force ${filespath}/org.macports.nmicmpd.plist \
    6669                ${destroot}${prefix}/etc/LaunchDaemons/org.macports.nmicmpd/
     
    7073}
    7174
    72 post-activate {
    73 ui_msg "\n
    74 To enable the ${prefix}/bin/nmicmpd daemon:
     75notes "
     76To enable the ${startupitem.executable} daemon:
    7577
    76    1) Add the following line to the /etc/services 'nmicmp 57777/tcp'.
    77         Note: You may use another port if necessary.
     78   1) Add the following line to /etc/services:
     79        nmicmp 57777/tcp
     80      (You may use another port if necessary.)
    7881
    79    2) OS X 10.4 (see below for 10.3) - Load the LaunchD script installed by MacPorts:
    80         sudo launchctl load -w /Library/LaunchDaemons/org.macports.nmicmpd.plist
     82   2) Load the launchd script installed by MacPorts:
     83        sudo port load ${name}
    8184
    8285   3) Reboot and test the nmicmpd daemon:
    83         telnet localhost nmicmp
    84         ps -ax |grep nmicmpd (The daemon loads only when requested and unloads afterwards)
    85 
    86    Additional instructions for OS X 10.3:
    87     a) A startup item was created in /Library/StartupItems
    88         Add \"NMICMPD=-YES-\" to the /etc/hostconfig file to run nmicmpd at system boot.
    89 
    90     b) Add an xinetd entry:
    91 
    92         service nmicmp
    93         \{
    94         socket_type = stream
    95         protocol    = tcp
    96         wait        = no
    97         user        = root
    98         server      = ${prefix}/bin/nmicmpd
    99         disable     = no
    100         \}
    101 
    102     c) Reboot and test as shown in step 3 above.
    103 \n"
    104 }
    105 
     86        telnet localhost nmicmp
     87        ps -ax | grep nmicmpd
     88      (The daemon loads only when requested and unloads afterwards.)
     89"
  • trunk/dports/net/scotty/files/patch-Makefile.in

    r71019 r99455  
    11--- unix/Makefile.in.orig       2003-06-03 14:44:59.000000000 -0500
    2 +++ unix/Makefile.in    2010-08-29 19:17:48.000000000 -0500
     2+++ unix/Makefile.in    2012-11-05 15:34:16.000000000 -0600
     3@@ -43,7 +43,7 @@
     4 TKI_INSTALL_DIR =      $(INSTALL_ROOT)$(prefix)/lib/tkined$(TKI_VERSION)
     5 
     6 # Top-level directory for manual entries:
     7-MAN_INSTALL_DIR =      $(INSTALL_ROOT)$(prefix)/man
     8+MAN_INSTALL_DIR =      $(INSTALL_ROOT)$(prefix)/share/man
     9 
     10 # Directory in which to install the manual entries:
     11 MAN1_INSTALL_DIR =     $(MAN_INSTALL_DIR)/man1
    312@@ -56,7 +56,7 @@
    413 
Note: See TracChangeset for help on using the changeset viewer.