Changeset 7554


Ignore:
Timestamp:
Jun 19, 2004, 2:25:22 AM (16 years ago)
Author:
rshaw
Message:

Adds variant for building the IPv6 version.
Fixes man page installation to adhere to porthier(7).
Take over ownership of port (per approval of original maintainer).
Fix to install setuid root and warn when not installing as root.
Cleaned up port file formatting.

Submitted by: rshaw@
Approved by: marius@

File:
1 edited

Legend:

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

    r2127 r7554  
    1 # $Id: Portfile,v 1.4 2003/03/03 07:09:29 mij Exp $
     1# $Id: Portfile,v 1.5 2004/06/19 02:25:22 rshaw Exp $
     2PortSystem              1.0
    23
    3 PortSystem 1.0
    4 name            fping
    5 version         2.4b2_to
    6 categories      net
    7 maintainers     marius@caos.aamu.edu
    8 platforms       darwin
    9 master_sites    http://www.fping.com/download/
     4name                    fping
     5version                 2.4b2_to
     6categories              net
     7maintainers             rshaw@opendarwin.org
     8platforms               darwin
     9homepage                http://www.fping.com
     10master_sites    ${homepage}/download/
    1011checksums       md5 d5e8be59e307cef76bc479e1684df705
    11 description     A scriptable ping program to check if multiple hosts are up
    12 long_description        fping is different from ping in that you can specify any number of \
    13                         hosts on the command line, or specify a file containing the lists \
    14                         of hosts to ping. Instead of trying one host until it timeouts or \
    15                         replies, fping will send out a ping packet and move on to the next \
    16                         host in a round-robin fashion. If a host replies, it is noted and \
    17                         removed from the list of hosts to check. If a host does not respond \
    18                         within a certain time limit and/or retry limit it will be considered \
    19                         unreachable.
     12description             A scriptable ping program to check if multiple hosts are up
     13long_description        fping is different from ping in that you can specify \
     14                                        any number of hosts on the command line, or specify \
     15                                        a file containing the lists of hosts to ping. \
     16                                        Instead of trying one host until it timeouts or \
     17                                        replies, fping will send out a ping packet and move \
     18                                        on to the next host in a round-robin fashion. If a \
     19                                        host replies, it is noted and removed from the list \
     20                                        of hosts to check. If a host does not respond within \
     21                                        a certain time limit and/or retry limit it will be \
     22                                        considered unreachable.
     23
     24configure.args  --mandir="${prefix}/share/man"
     25
     26post-destroot {
     27        if {[variant_isset ipv6]} {
     28                system "ln -s fping.8 ${destroot}${prefix}/share/man/man8/fping6.8"
     29        }
     30        # Check if user is running as root
     31        if {$env(USER) == "root"} {
     32                system "chmod 4511 ${destroot}${prefix}/sbin/fping"
     33                if {[variant_isset ipv6]} {
     34                        system "chmod 4511 ${destroot}${prefix}/sbin/fping6"
     35                }
     36        } else {
     37                ui_msg "-----------------------------------------------------------"
     38                ui_msg "Note that you are not running as root, so ${name} cannot"
     39                ui_msg "be installed setuid root. Therefore, it will only be able"
     40                ui_msg "to be executed by root."
     41                ui_msg "-----------------------------------------------------------"
     42                system "chmod 0511 ${destroot}${prefix}/sbin/fping"
     43                if {[variant_isset ipv6]} {
     44                        system "chmod 0511 ${destroot}${prefix}/sbin/fping6"
     45                }
     46        }
     47}
     48
     49variant ipv6 {
     50        version                 2.4b2_to-ipv6
     51        checksums               md5 b1f10f88afd35b94846bfb0844d7a834
     52        master_sites    http://unfix.org/projects/ipv6/
     53}
     54
Note: See TracChangeset for help on using the changeset viewer.