ports/151721: [PATCH] add rsyncable option to archivers/gzip

Josh Paetzel jpaetzel at FreeBSD.org
Mon Oct 25 17:20:09 UTC 2010


>Number:         151721
>Category:       ports
>Synopsis:       [PATCH] add rsyncable option to archivers/gzip
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 25 17:20:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Josh Paetzel
>Release:        
>Organization:
>Environment:
FreeBSD cvsup.tcbug.org 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #4: Mon Sep 20 17:49:53 CDT 2010     jpaetzel at cvsup.tcbug.org:/usr/obj/usr/src/sys/EIGHTY  amd64
>Description:
Add the --rsyncable option to gzip, which lowers the compression ratio slightly while producing output that is rsync friendlier.
>How-To-Repeat:
N/A
>Fix:
# fetch -o files/extra-patch-gzip-rsyncable.diff "https://trac.macports.org/raw-attachment/ticket/16446/patch-gzip-rsyncable.diff"

And apply the attached patch to the Makefile

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/archivers/gzip/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile	5 Feb 2010 21:55:09 -0000	1.23
+++ Makefile	25 Oct 2010 17:16:11 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	gzip
 PORTVERSION=	1.4
+PORTREVISION=	1
 CATEGORIES=	archivers
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -23,6 +24,14 @@
 DOC_FILES=	AUTHORS COPYING ChangeLog ChangeLog-2007 INSTALL NEWS README \
 		THANKS TODO
 
+OPTIONS=	RSYNCABLE	"Include --rsyncable patch"	OFF
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_RSYNCABLE)
+EXTRA_PATCHES=	${FILESDIR}/extra-patch-gzip-rsyncable.diff
+.endif
+
 post-configure:
 	@${REINPLACE_CMD} -e 's|^SHELL =.*|SHELL=/bin/sh|' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's|need_charset_alias=true|need_charset_alias=false|g' \
@@ -36,4 +45,4 @@
 .endfor
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list