Changeset 82672
- Timestamp:
- 08/17/11 14:29:51 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/sysutils/logrotate/Portfile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/sysutils/logrotate/Portfile
r82671 r82672 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 1 2 # $Id$ 2 3 3 PortSystem 1.04 PortSystem 1.0 4 5 5 name logrotate6 version 3.7.17 revision 38 categories sysutils9 maintainers pixilla openmaintainer10 platforms darwin6 name logrotate 7 version 3.7.1 8 revision 3 9 categories sysutils 10 maintainers pixilla openmaintainer 11 platforms darwin 11 12 12 description Rotates, compresses, and mails system logs13 description Rotates, compresses, and mails system logs 13 14 14 long_description The logrotate utility simplifies the administration of log \ 15 files. It provides automatic logfile rotation, compression, \ 16 removal, and mailing. 15 long_description The logrotate utility is designed to simplify the administration of log files \ 16 on a system which generates a lot of log files. Logrotate allows for the \ 17 automatic rotation compression, removal and mailing of log files. Logrotate \ 18 can be set to handle a log file \daily, weekly, monthly or when the log file \ 19 gets to a certain size. 17 20 18 distname ${name}_${version}.orig19 worksrcdir ${name}-${version}21 distname ${name}_${version}.orig 22 worksrcdir ${name}-${version} 20 23 21 homepage http://packages.debian.org/stable/admin/logrotate24 homepage http://packages.debian.org/stable/admin/logrotate 22 25 23 master_sites http://ftp.debian.org/debian/pool/main/l/logrotate24 checksums ${distname}${extract.suffix} md5 552639142e163745f6bcd4f1f3816d8a \25 logrotate_${version}-5.diff.gz md5 619d36e123f8d5d6e25a1544a589cf2726 master_sites http://ftp.debian.org/debian/pool/main/l/logrotate 27 checksums ${distname}${extract.suffix} md5 552639142e163745f6bcd4f1f3816d8a \ 28 logrotate_${version}-5.diff.gz md5 619d36e123f8d5d6e25a1544a589cf27 26 29 27 patch_sites http://ftp.debian.org/debian/pool/main/l/logrotate/28 patchfiles logrotate_${version}-5.diff.gz30 patch_sites http://ftp.debian.org/debian/pool/main/l/logrotate/ 31 patchfiles logrotate_${version}-5.diff.gz 29 32 30 depends_run port:popt \31 port:gettext \32 port:gzip33 depends_run port:popt \ 34 port:gettext \ 35 port:gzip 33 36 34 use_configure no37 use_configure no 35 38 36 build.args POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt"39 build.args POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt" 37 40 38 41 post-patch { 39 reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \40 ${worksrcpath}/config.h42 reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \ 43 ${worksrcpath}/config.h 41 44 42 system "cd ${worksrcpath} && patch -p1 < logrotate-${version}/debian/patches/rh-dateext.patch"45 system "cd ${worksrcpath} && patch -p1 < logrotate-${version}/debian/patches/rh-dateext.patch" 43 46 } 44 47 45 48 destroot { 46 xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin47 xinstall -m 755 ${worksrcpath}/examples/logrotate-default \48 ${destroot}${prefix}/etc/logrotate.conf.sample49 xinstall -m 444 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/share/man/man849 xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin 50 xinstall -m 755 ${worksrcpath}/examples/logrotate-default \ 51 ${destroot}${prefix}/etc/logrotate.conf.sample 52 xinstall -m 444 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/share/man/man8 50 53 }
Note: See TracChangeset
for help on using the changeset viewer.

