Changeset 116129 for trunk/dports/mail


Ignore:
Timestamp:
Jan 19, 2014, 4:48:30 AM (6 years ago)
Author:
jmr@…
Message:

pflogsumm: fix destroot failure when /var/log/mail.log does not exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/pflogsumm/Portfile

    r116119 r116129  
    101101                ${destroot}${prefix}/share/doc/${name}
    102102        xinstall -d -m 0755 ${destroot}${cgi_path}
    103         set maillog_group [file attributes ${maillog_path} -group]
     103        if {[file exists ${maillog_path}]} {
     104            set maillog_group [file attributes ${maillog_path} -group]
     105        } else {
     106            set maillog_group wheel
     107        }
    104108        xinstall -m 02755 -g ${maillog_group} ${worksrcpath}/${name}.cgi \
    105109                ${destroot}${cgi_path}
Note: See TracChangeset for help on using the changeset viewer.