# $Id: Portfile 27688 2007-08-12 03:31:11Z markd@macports.org $ PortSystem 1.0 name logrotate version 3.7.1 revision 1 categories sysutils maintainers markd@macports.org platforms darwin description Rotates, compresses, and mails system logs long_description The logrotate utility simplifies the administration of log \ files. It provides automatic logfile rotation, compression, \ removal, and mailing. distname ${name}_${version}.orig worksrcdir ${name}-${version} homepage http://packages.debian.org/stable/admin/logrotate master_sites http://ftp.debian.org/debian/pool/main/l/logrotate checksums ${distname}${extract.suffix} md5 552639142e163745f6bcd4f1f3816d8a \ logrotate_3.7.1-3.diff.gz md5 7b0dd9835339bbf85f106d4adb25cf0c destroot.violate_mtree yes patch_sites http://ftp.debian.org/debian/pool/main/l/logrotate/ patchfiles logrotate_3.7.1-3.diff.gz depends_build port:popt \ port:gzip use_configure no build.args POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt" post-patch { reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \ ${worksrcpath}/config.h } destroot { xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin xinstall -m 755 ${worksrcpath}/examples/logrotate-default ${destroot}${prefix}/etc/ xinstall -d ${destroot}${prefix}/man/man8 xinstall -m 755 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/man/man8 }