Ticket #37766: htop-Portfile.diff

File htop-Portfile.diff, 678 bytes (added by mklein-de (Michael Klein), 11 years ago)

Portfile patch

  • dports/sysutils/htop/Portfile

    diff --git a/dports/sysutils/htop/Portfile b/dports/sysutils/htop/Portfile
    index 9f0d737..89ff802 100644
    a b pre-configure { 
    3232    system "cd ${worksrcpath} && sh autogen.sh"
    3333}
    3434
     35variant procmod description "install htop SGID procmod" {
     36        destroot.asroot yes
     37        post-destroot {
     38                system "chgrp procmod ${destroot}${prefix}/bin/htop"
     39                system "chmod 2755 ${destroot}${prefix}/bin/htop"
     40        }
     41}
     42
     43default_variants    +procmod
     44
    3545# "String.h" vs <string.h> on case-insensitive FS (#21036)
    3646build.args          {DEFAULT_INCLUDES="-iquote ."}
    3747