|
Revision 34794, 1.3 kB
(checked in by markd@…, 9 months ago)
|
|
Rename the sample logrotate-default to logrotate.conf.sample.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name logrotate |
|---|
| 6 | version 3.7.1 |
|---|
| 7 | revision 1 |
|---|
| 8 | categories sysutils |
|---|
| 9 | maintainers markd@macports.org |
|---|
| 10 | platforms darwin |
|---|
| 11 | |
|---|
| 12 | description Rotates, compresses, and mails system logs |
|---|
| 13 | |
|---|
| 14 | long_description The logrotate utility simplifies the administration of log \ |
|---|
| 15 | files. It provides automatic logfile rotation, compression, \ |
|---|
| 16 | removal, and mailing. |
|---|
| 17 | |
|---|
| 18 | distname ${name}_${version}.orig |
|---|
| 19 | worksrcdir ${name}-${version} |
|---|
| 20 | |
|---|
| 21 | homepage http://packages.debian.org/stable/admin/logrotate |
|---|
| 22 | |
|---|
| 23 | master_sites http://ftp.debian.org/debian/pool/main/l/logrotate |
|---|
| 24 | checksums ${distname}${extract.suffix} md5 552639142e163745f6bcd4f1f3816d8a \ |
|---|
| 25 | logrotate_3.7.1-3.diff.gz md5 7b0dd9835339bbf85f106d4adb25cf0c |
|---|
| 26 | |
|---|
| 27 | patch_sites http://ftp.debian.org/debian/pool/main/l/logrotate/ |
|---|
| 28 | patchfiles logrotate_3.7.1-3.diff.gz |
|---|
| 29 | |
|---|
| 30 | depends_build port:popt \ |
|---|
| 31 | port:gzip |
|---|
| 32 | |
|---|
| 33 | use_configure no |
|---|
| 34 | |
|---|
| 35 | build.args POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt" |
|---|
| 36 | |
|---|
| 37 | post-patch { |
|---|
| 38 | reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \ |
|---|
| 39 | ${worksrcpath}/config.h |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | destroot { |
|---|
| 43 | xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin |
|---|
| 44 | xinstall -m 755 ${worksrcpath}/examples/logrotate-default \ |
|---|
| 45 | ${destroot}${prefix}/etc/logrotate.conf.sample |
|---|
| 46 | xinstall -m 444 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/share/man/man8 |
|---|
| 47 | } |
|---|