Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2000 21:42:25 +0900
From:      Akinori MUSHA aka knu <knu@idaemons.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16252: bsd.port.mk: Add bzip2 support for distribution patches
Message-ID:  <86ya9j61fy.wl@localhost.local.idaemons.org>

next in thread | raw e-mail | index | archive | help

>Number:         16252
>Category:       ports
>Synopsis:       bsd.port.mk: Add bzip2 support for distribution patches
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 21 04:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Akinori MUSHA aka knu
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
A.I.D.
>Environment:

	FreeBSD 3.4-STABLE i386 + ports-current

>Description:

	Why not accept bzip2'ed distribution patches.  Patch files are
almost always in text format which bzip2 does compress much more than
gzip.

>How-To-Repeat:

>Fix:
	
--- bsd.port.mk.orig	Tue Jan 18 08:20:13 2000
+++ bsd.port.mk	Fri Jan 21 21:27:04 2000
@@ -61,7 +61,7 @@
 #				  patches (default: none).  make will look for them at
 #				  PATCH_SITES (see below).  They will automatically be
 #				  uncompressed before patching if the names end with
-#				  ".gz" or ".Z".
+#				  ".gz", ".Z" or ".bz2".
 # PATCH_SITES	- Primary location(s) for distribution patch files
 #				  if not found locally.
 # DIST_SUBDIR	- Suffix to ${DISTDIR}.  If set, all ${DISTFILES} 
@@ -1582,6 +1582,9 @@
 		case $$i in \
 			*.Z|*.gz) \
 				${GZCAT} $$i | ${PATCH} ${PATCH_DIST_ARGS}; \
+				;; \
+			*.bz2) \
+				bzcat $$i | ${PATCH} ${PATCH_DIST_ARGS}; \
 				;; \
 			*) \
 				${PATCH} ${PATCH_DIST_ARGS} < $$i; \

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ya9j61fy.wl>