[82672] trunk/dports/sysutils/logrotate/Portfile

pixilla at macports.org pixilla at macports.org
Thu Aug 18 08:13:32 PDT 2011


Revision: 82672
          http://trac.macports.org/changeset/82672
Author:   pixilla at macports.org
Date:     2011-08-17 14:29:51 -0700 (Wed, 17 Aug 2011)
Log Message:
-----------
sysutils/logrotate:
- Whitespace edit
- Long Description edit

Modified Paths:
--------------
    trunk/dports/sysutils/logrotate/Portfile

Modified: trunk/dports/sysutils/logrotate/Portfile
===================================================================
--- trunk/dports/sysutils/logrotate/Portfile	2011-08-17 21:24:46 UTC (rev 82671)
+++ trunk/dports/sysutils/logrotate/Portfile	2011-08-17 21:29:51 UTC (rev 82672)
@@ -1,50 +1,53 @@
+# -*- 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
 # $Id$
 
-PortSystem      1.0
+PortSystem          1.0
 
-name				logrotate
-version				3.7.1
-revision			3
-categories			sysutils
-maintainers			pixilla openmaintainer
-platforms			darwin
+name                logrotate
+version             3.7.1
+revision            3
+categories          sysutils
+maintainers         pixilla openmaintainer
+platforms           darwin
 
-description			Rotates, compresses, and mails system logs
+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.
+long_description    The logrotate utility is designed to simplify the administration of log files \
+                    on a system which generates a lot of log files. Logrotate allows for the \
+                    automatic rotation compression, removal and mailing of log files. Logrotate \
+                    can be set to handle a log file \daily, weekly, monthly or when the log file \
+                    gets to a certain size.
 
-distname			${name}_${version}.orig
-worksrcdir                      ${name}-${version}
+distname            ${name}_${version}.orig
+worksrcdir          ${name}-${version}
 
-homepage			http://packages.debian.org/stable/admin/logrotate
+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_${version}-5.diff.gz md5 619d36e123f8d5d6e25a1544a589cf27
+master_sites        http://ftp.debian.org/debian/pool/main/l/logrotate
+checksums           ${distname}${extract.suffix} md5 552639142e163745f6bcd4f1f3816d8a \
+                    logrotate_${version}-5.diff.gz md5 619d36e123f8d5d6e25a1544a589cf27
 
-patch_sites			http://ftp.debian.org/debian/pool/main/l/logrotate/
-patchfiles			logrotate_${version}-5.diff.gz
+patch_sites         http://ftp.debian.org/debian/pool/main/l/logrotate/
+patchfiles          logrotate_${version}-5.diff.gz
 
-depends_run			port:popt \
-				port:gettext \
-				port:gzip
+depends_run         port:popt \
+                    port:gettext \
+                    port:gzip
 
-use_configure			no
+use_configure       no
 
-build.args			POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt"
+build.args          POPT_DIR=${prefix}/include LDFLAGS="-L${prefix}/lib -lpopt"
 
 post-patch {
-	reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \
-		${worksrcpath}/config.h
+  reinplace "s|\"/bin/gzip\"|\"${prefix}/bin/gzip\"|g" \
+    ${worksrcpath}/config.h
 
-	system "cd ${worksrcpath} && patch -p1 < logrotate-${version}/debian/patches/rh-dateext.patch"
+  system "cd ${worksrcpath} && patch -p1 < logrotate-${version}/debian/patches/rh-dateext.patch"
 }
 
 destroot {
-		xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin
-		xinstall -m 755 ${worksrcpath}/examples/logrotate-default \
-			${destroot}${prefix}/etc/logrotate.conf.sample
-		xinstall -m 444 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/share/man/man8
+  xinstall -m 755 ${worksrcpath}/logrotate ${destroot}${prefix}/sbin
+  xinstall -m 755 ${worksrcpath}/examples/logrotate-default \
+    ${destroot}${prefix}/etc/logrotate.conf.sample
+  xinstall -m 444 ${worksrcpath}/logrotate.8 ${destroot}${prefix}/share/man/man8
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110818/683afa66/attachment.html>


More information about the macports-changes mailing list