New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82285


Ignore:
Timestamp:
08/11/11 14:58:37 (4 years ago)
Author:
pixilla@…
Message:

sysutils/logrotate: Fix destroot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • users/pixilla/dports/sysutils/logrotate/Portfile

    r82267 r82285  
    3939use_configure       no 
    4040 
    41 build.env-append \ 
    42                     CC="${configure.cc} [get_canonical_archflags]" \ 
     41build.env           CC="${configure.cc} [get_canonical_archflags]" \ 
    4342                    CXX="${configure.cxx} [get_canonical_archflags]" \ 
    4443                    CPP="${configure.cpp} [get_canonical_archflags]" \ 
     
    4645                    POPT_DIR="${prefix}/include" \ 
    4746                    STATEFILE="${prefix}/var/run/logrotate/logrotate.status" \ 
    48                     DEFAULT_MAIL_COMMAND="/usr/sbin/mail" \ 
    49                     USEINSTALL="install" 
     47                    DEFAULT_MAIL_COMMAND="/usr/sbin/mail" 
    5048 
    51 destroot.env-append BASEDIR=[string trimleft ${destroot}${prefix} /] 
     49destroot.env-append INSTALL="install" \ 
     50                    BASEDIR=[string trimleft ${destroot}${prefix} /] 
    5251destroot.keepdirs   ${destroot}${prefix}/etc/logrotate.d \ 
    5352                    ${destroot}${prefix}/var/run/logrotate 
    5453post-destroot { 
    55         xinstall -m 755 ${worksrcpath}/examples/logrotate-default \ 
    56     ${destroot}${prefix}/etc/logrotate.conf.sample 
    57     xinstall -d ${destroot}${prefix}/etc/logrotate.d 
    58     xinstall -d ${destroot}${prefix}/var/run/logrotate 
    59 } 
    60  
    61 post-activate { 
    62 #    delete  ${prefix}/etc/logrotate.d/.turd_${name} \ 
    63 #            ${prefix}/var/run/logrotate/.turd_${name} 
     54    xinstall -m 755 ${worksrcpath}/examples/logrotate-default \ 
     55        ${destroot}${prefix}/etc/logrotate.conf.sample 
     56    move ${destroot}${prefix}/man/man5/logrotate.conf.5 \ 
     57        ${destroot}${prefix}/share/man/man5/logrotate.conf.5 
     58    move ${destroot}${prefix}/man/man8/logrotate.8 \ 
     59        ${destroot}${prefix}/share/man/man8/logrotate.8 
    6460} 
    6561 
Note: See TracChangeset for help on using the changeset viewer.