Ticket #11460: lsof-4.77.diff

File lsof-4.77.diff, 5.3 KB (added by pipping@…, 17 years ago)
  • Portfile

     
    11# $Id$
    22
    3 PortSystem                      1.0
    4 name                            lsof
    5 version                         4.70
    6 categories                      sysutils
    7 maintainers                     nomaintainer@macports.org
    8 description                     LiSt Open Files
     3PortSystem 1.0
     4name                lsof
     5version             4.77
     6categories          sysutils
     7maintainers         nomaintainer@macports.org
     8description         LiSt Open Files
    99long_description \
    10         lsof stands for LiSt Open Files, and it does just that.  It lists \
    11         information about files that are open by the processes running on a \
    12         UNIX system.
     10    lsof stands for LiSt Open Files, and it does just that.  It lists  \
     11    information about files that are open by the processes running on a \
     12    UNIX system.
    1313
    14 use_bzip2                       yes
    15 distname                        ${name}_${portversion}
     14use_bzip2           yes
     15distname            ${name}_${portversion}
    1616
    17 master_sites            ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
    18                                         ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \
    19                                         ftp://ftp.tau.ac.il/pub/unix/admin/ \
    20                                         ftp://ftp.ayamura.org/pub/lsof/ \
    21                                         ftp://ftp.cert.dfn.de/pub/tools/admin/lsof/ \
    22                                         ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/ \
    23                                         ftp://ftp.kaizo.org/pub/lsof/ \
    24                                         ftp://ftp.tu-darmstadt.de/pub/sysadmin/lsof/ \
    25                                         ftp://ftp.tux.org/pub/sites/vic.cc.purdue.edu/tools/unix/lsof/ \
    26                                         ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/ \
    27                                         ftp://sunsite.ualberta.ca/pub/Mirror/lsof/ \
    28                                         ftp://the.wiretapped.net/pub/security/host-security/lsof/
     17master_sites        ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/ \
     18                    ftp://ftp.tu-darmstadt.de/pub/sysadmin/lsof/ \
     19                    ftp://gd.tuwien.ac.at/utils/admin-tools/lsof/ \
     20                    ftp://sunsite.ualberta.ca/pub/Mirror/lsof/ \
     21                    ftp://ftp.tau.ac.il/pub/unix/admin/
    2922
    30 platforms                       darwin sunos
    31 checksums                       md5 605c0aa8591adaf05c47bf1b846c6703
     23platforms           darwin sunos
     24checksums           md5 7b0de0d1283f2d86407a98e5c2f05f04 \
     25                    sha1 603c35a7ade01edf5efcea45abe4b5857aa66a58 \
     26                    rmd160 e71ecec2e3281197846658b5ac774ae80b59de3d
    3227
    3328post-extract {
    34         cd ${workpath}/${distname}
    35         system "tar xf ${distname}_src.tar"
     29    cd ${workpath}/${distname}
     30    system "tar xf ${distname}_src.tar"
    3631}
    3732
    38 worksrcdir                      ${distname}/${distname}_src
     33worksrcdir          ${distname}/${distname}_src
    3934
    40 configure.cmd           ./Configure
    41 configure.pre_args      -n
     35configure.cmd       ./Configure
     36configure.pre_args  -n
    4237
    4338post-configure {
    44         reinplace "s|/\\*.*#define.*HASSECURITY.*1.*\\*/|#define HASSECURITY 1|" \
    45                 ${worksrcpath}/machine.h
     39    reinplace "s|/\\*.*#define.*HASSECURITY.*1.*\\*/|#define HASSECURITY 1|" \
     40    ${worksrcpath}/machine.h
    4641}
    4742
    4843pre-destroot {
    49         if { $env(USER) != "root" } {
    50                 ui_msg "------------------------------------------------------------"
    51                 ui_msg "Note that you are not installing as root, so lsof will not"
    52                 ui_msg "end up with proper permissions, and probably not work"
    53                 ui_msg "properly"
    54                 ui_msg "------------------------------------------------------------"
    55         }
     44    if { $env(USER) != "root" } {
     45        ui_msg "------------------------------------------------------------"
     46        ui_msg "Note that you are not installing as root, so lsof will not"
     47        ui_msg "end up with proper permissions, and probably not work"
     48        ui_msg "properly"
     49        ui_msg "------------------------------------------------------------"
     50    }
    5651}
    5752
    5853variant darwin {
    59         pre-configure {
    60                 cd ${workpath}
    61                 system "${extract.cmd} -dc ${filespath}/macosx_kernel_headers.tar.bz2 \
    62                         ${extract.post_args}"
    63         }
    64         configure.args-append   darwin
    65         destroot {
    66                 xinstall -m 2755 -g kmem ${worksrcpath}/lsof ${destroot}/${prefix}/bin
    67                 xinstall -m 444 ${worksrcpath}/lsof.8 \
    68                         ${destroot}/${prefix}/share/man/man8
    69         }
     54    pre-configure {
     55        cd ${workpath}
     56        system "${extract.cmd} -dc ${filespath}/macosx_kernel_headers.tar.bz2 \
     57            ${extract.post_args}"
     58    }
     59    configure.args-append   darwin
     60    destroot {
     61        xinstall -m 2755 -g kmem ${worksrcpath}/lsof ${destroot}/${prefix}/bin
     62        xinstall -m 444 ${worksrcpath}/lsof.8 \
     63        ${destroot}/${prefix}/share/man/man8
     64    }
    7065}
    7166
    7267platform darwin 6 {
    73         configure.env-append    DARWIN_XNUDIR=${workpath}/krnhead_lsof/6.x
     68    configure.env-append    DARWIN_XNUDIR=${workpath}/krnhead_lsof/6.x
    7469}
    7570
    7671platform darwin 7 {
    77         configure.env-append    DARWIN_XNUDIR=${workpath}/krnhead_lsof/7.0-2
     72    configure.env-append    DARWIN_XNUDIR=${workpath}/krnhead_lsof/7.0-2
    7873}
    7974
    8075variant sunos {
    81         configure.args-append   solaris
    82         # The man page should be done in a generic, global destroot, but
    83         # destroot-append doesn't seem to allow adding commands to the
    84         # destroot phase
    85         destroot {
    86                 xinstall -m 2755 -g sys ${worksrcpath}/lsof ${destroot}/${prefix}/bin
    87                 xinstall -m 444 ${worksrcpath}/lsof.8 \
    88                         ${destroot}/${prefix}/share/man/man8
    89         }
     76    configure.args-append   solaris
     77    # The man page should be done in a generic, global destroot, but
     78    # destroot-append doesn't seem to allow adding commands to the
     79    # destroot phase
     80    destroot {
     81        xinstall -m 2755 -g sys ${worksrcpath}/lsof ${destroot}/${prefix}/bin
     82        xinstall -m 444 ${worksrcpath}/lsof.8 \
     83        ${destroot}/${prefix}/share/man/man8
     84    }
    9085}
    91