Ignore:
Timestamp:
Jan 19, 2014, 6:47:18 AM (7 years ago)
Author:
jmr@…
Message:

rc: fix installation bypassing destroot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/shells/rc/Portfile

    r96313 r116136  
    55name            rc
    66version         1.7.2
     7revision        1
    78categories      shells
    89maintainers     nomaintainer
     
    2526                sha256  d4b552b6652a2f85400b61b970c9034b17fcb59b74a0f242bbea12959e8939c7
    2627
     28patchfiles      Makefile.in.patch
     29
    2730configure.args  --mandir=${prefix}/share/man --with-history
    2831
     
    4043}
    4144
     45pre-activate {
     46    foreach f {- -- -p --p} {
     47        set path ${prefix}/bin/${f}
     48        if {![catch {file type $path} ftype] && ($ftype eq "file" || $ftype eq "link") && [registry_file_registered $path] eq "0"} {
     49            file delete -force $path
     50        }
     51    }
     52}
Note: See TracChangeset for help on using the changeset viewer.