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

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 20:31:11 PDT 2007


Revision: 27688
          http://trac.macosforge.org/projects/macports/changeset/27688
Author:   markd at macports.org
Date:     2007-08-11 20:31:11 -0700 (Sat, 11 Aug 2007)

Log Message:
-----------
Add gzip dependency and make logrotate use it.

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

Modified: trunk/dports/sysutils/logrotate/Portfile
===================================================================
--- trunk/dports/sysutils/logrotate/Portfile	2007-08-12 02:44:00 UTC (rev 27687)
+++ trunk/dports/sysutils/logrotate/Portfile	2007-08-12 03:31:11 UTC (rev 27688)
@@ -4,7 +4,7 @@
 
 name				logrotate
 version				3.7.1
-
+revision			1
 categories			sysutils
 maintainers			markd at macports.org
 platforms			darwin
@@ -24,15 +24,22 @@
 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
+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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070811/33ad88c7/attachment.html


More information about the macports-changes mailing list