svn commit: r357450 - in head/archivers: . bzip bzip/files

John Marino marino at FreeBSD.org
Wed Jun 11 09:49:17 UTC 2014


Author: marino
Date: Wed Jun 11 09:49:14 2014
New Revision: 357450
URL: http://svnweb.freebsd.org/changeset/ports/357450
QAT: https://qat.redports.org/buildarchive/r357450/

Log:
  Resurrect archivers/bzip and assign maintainer
  
  This port was removed due not having a publically available distfile.
  That has been fixed per the PR with maintainership assigned to submitter.
  
  Additionally:
  
    * The patch-aa was renamed
    * The patch-ab and patch-ac touched the same file; they were combined
      and renamed
    * DragonFly support was added (hence the portrevision bump)
    * GPLv2 license was annotated
    * 80-column formatting was respected
    * PLIST sorted
  
  PR:		188939
  Submitted by:	Chris Hutchinson
  Tweaks:		marino

Added:
  head/archivers/bzip/
  head/archivers/bzip/Makefile   (contents, props changed)
  head/archivers/bzip/distinfo   (contents, props changed)
  head/archivers/bzip/files/
  head/archivers/bzip/files/COPYRIGHT   (contents, props changed)
  head/archivers/bzip/files/patch-Makefile   (contents, props changed)
  head/archivers/bzip/files/patch-bzip.c   (contents, props changed)
  head/archivers/bzip/pkg-descr   (contents, props changed)
Modified:
  head/archivers/Makefile

Modified: head/archivers/Makefile
==============================================================================
--- head/archivers/Makefile	Wed Jun 11 09:47:32 2014	(r357449)
+++ head/archivers/Makefile	Wed Jun 11 09:49:14 2014	(r357450)
@@ -10,6 +10,7 @@
     SUBDIR += arj
     SUBDIR += ark
     SUBDIR += bicom
+    SUBDIR += bzip
     SUBDIR += bzip2
     SUBDIR += cabextract
     SUBDIR += dact

Added: head/archivers/bzip/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/bzip/Makefile	Wed Jun 11 09:49:14 2014	(r357450)
@@ -0,0 +1,33 @@
+# Created by: Andreas Klemm <andreas at klemm.gtn.com>
+# $FreeBSD$
+
+PORTNAME=	bzip
+PORTVERSION=	0.21
+PORTREVISION=	1
+CATEGORIES=	archivers
+MASTER_SITES=	http://bsdforge.com/projects/source/archivers/bzip/
+
+MAINTAINER=	portmaster at bsdforge.com
+COMMENT=	Block-sorting file compressor
+
+LICENSE=	GPLv2
+
+RESTRICTED=	may be covered by patents
+USE_CSTD=	gnu89
+
+PLIST_FILES=	bin/bzip bin/bunzip \
+		man/man1/bunzip.1.gz \
+		man/man1/bzip.1.gz
+
+pre-install:
+	@${CAT} ${FILESDIR}/COPYRIGHT
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/bzip ${STAGEDIR}${PREFIX}/bin
+	${LN} -fs bzip ${STAGEDIR}${PREFIX}/bin/bunzip
+	${INSTALL_MAN} ${WRKSRC}/bzip.1 \
+		${STAGEDIR}${MAN1PREFIX}/man/man1/bzip.1
+	${INSTALL_MAN} ${WRKSRC}/bzip.1 \
+		${STAGEDIR}${MAN1PREFIX}/man/man1/bunzip.1
+
+.include <bsd.port.mk>

Added: head/archivers/bzip/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/bzip/distinfo	Wed Jun 11 09:49:14 2014	(r357450)
@@ -0,0 +1,2 @@
+SHA256 (bzip-0.21.tar.gz) = 85846f55406fa019305cee6f0aa3637769e857d8fff00eba26d8effc4539b014
+SIZE (bzip-0.21.tar.gz) = 325757

Added: head/archivers/bzip/files/COPYRIGHT
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/bzip/files/COPYRIGHT	Wed Jun 11 09:49:14 2014	(r357450)
@@ -0,0 +1,21 @@
+COPYRIGHT
+=========
+
+BZIP is distributed under the GNU General Public License version
+2; for details, see the file LICENSE. Pointers to the algorithms
+used are in ALGORITHMS.
+
+COMMERCIAL USE
+==============
+
+This program may or may not infringe certain US patents pertaining
+to arithmetic coding and to the block-sorting transformation itself.
+Opinions differ as to the precise legal status of some of the
+algorithms used. Nevertheless, you should be aware that commercial
+use of this program could render you liable to unfriendly legal
+action.
+
+	Julian Seward <sewardj at cs.man.ac.uk>
+	Manchester, UK
+	18 July 1996 (version 0.15)
+	25 August 1996 (version 0.21)

Added: head/archivers/bzip/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/bzip/files/patch-Makefile	Wed Jun 11 09:49:14 2014	(r357450)
@@ -0,0 +1,43 @@
+--- Makefile.orig	Sat Aug 31 09:50:33 1996
++++ Makefile	Fri Sep 27 13:57:55 1996
+@@ -1,29 +1,17 @@
+-
+-CC = gcc
+-SH = /bin/sh
+-
+-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -Wall -Winline -Wshadow -W
+-
+-
++CFLAGS+= -fomit-frame-pointer
+ 
+ all:
+-	cat words0
+ 	$(CC) $(CFLAGS) -o bzip bzip.c
+-	rm -f bunzip
+-	ln -s ./bzip ./bunzip
+-	cat words1
+-	./bzip -Q -1 < sample1.ref > sample1.rbz
+-	./bzip -Q -2 < sample2.ref > sample2.rbz
+-	./bunzip -Q < sample1.bz > sample1.tst
+-	./bunzip -Q < sample2.bz > sample2.tst
+-	cat words2
+-	cmp sample1.bz sample1.rbz 
+-	cmp sample2.bz sample2.rbz
+-	cmp sample1.tst sample1.ref
+-	cmp sample2.tst sample2.ref
+-	cat words3
+-
++	@ln -fs ./bzip ./bunzip
++	@echo "*** testing bzip and bunzip ***"
++	./bzip -Q -1 < sample1.ref > sample1.rbz || exit 1
++	./bzip -Q -2 < sample2.ref > sample2.rbz || exit 1
++	./bunzip -Q < sample1.bz > sample1.tst || exit 1
++	./bunzip -Q < sample2.bz > sample2.tst || exit 1
++	cmp sample1.bz sample1.rbz || exit 1
++	cmp sample2.bz sample2.rbz || exit 1
++	cmp sample1.tst sample1.ref || exit 1
++	cmp sample2.tst sample2.ref || exit 1
+ 
+ clean:
+ 	rm -f bzip bunzip sample*.tst sample*.rbz
+-

Added: head/archivers/bzip/files/patch-bzip.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/bzip/files/patch-bzip.c	Wed Jun 11 09:49:14 2014	(r357450)
@@ -0,0 +1,59 @@
+--- bzip.c.orig	1996-08-30 20:35:28.000000000 +0000
++++ bzip.c
+@@ -114,9 +114,13 @@
+ --*/
+ 
+ #if BZ_UNIX_32
++   #include <sys/types.h>
+    #include <utime.h>
+    #include <unistd.h>
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) \
++ && !defined(__DragonFly__)	/* stdlib already included above */
+    #include <malloc.h>
++#endif
+    #include <sys/stat.h>
+    #include <sys/times.h>
+ 
+@@ -2578,7 +2582,7 @@ void bitStreamEOF ()
+ 
+ 
+ /*---------------------------------------------*/
+-void mySignalCatcher ( IntNative *n )
++void mySignalCatcher (int n __unused)
+ {
+    fprintf ( stderr, 
+              "\n%s: Control-C (or similar) caught, quitting.\n",
+@@ -2588,7 +2592,7 @@ void mySignalCatcher ( IntNative *n )
+ 
+ 
+ /*---------------------------------------------*/
+-void mySIGSEGVorSIGBUScatcher ( IntNative *n )
++void mySIGSEGVorSIGBUScatcher (int n __unused)
+ {
+    if (compressing)
+       fprintf ( stderr,
+@@ -3130,11 +3134,6 @@ IntNative main ( IntNative argc, Char *a
+    signal (SIGBUS,  mySIGSEGVorSIGBUScatcher);
+    #endif
+ 
+-   if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
+-      fprintf ( stderr,
+-                "BZIP, a block-sorting file compressor.  "
+-                "Version 0.21, 25-August-96.\n" );
+-
+    #if DEBUG
+       if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) )
+          fprintf ( stderr, "BZIP: *** compiled with debugging ON ***\n" );
+@@ -3205,6 +3204,12 @@ IntNative main ( IntNative argc, Char *a
+                          break;
+          }
+ 
++   if (verbose) {
++      fprintf ( stderr,
++                "BZIP, a block-sorting file compressor.  "
++                "Version 0.21, 25-August-96.\n" );
++   }
++
+    if ( opMode == OM_FILE_TO_STDOUT && numFileNames != 1) {
+       fprintf ( stderr, "%s: Option -c requires you to supply exactly one filename.\n",
+                 progName );

Added: head/archivers/bzip/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/bzip/pkg-descr	Wed Jun 11 09:49:14 2014	(r357450)
@@ -0,0 +1,15 @@
+Use of bzip2, which is intended to replace bzip, is recommended.
+The algorithms used in bzip2 are different and incompatible with
+those used in bzip.  To open .bz archives, you must use bzip, and
+to open .bz2 archives you must use bzip2.  Although bzip2 sometimes
+yields slightly larger output, it is faster, more reliable, maintained,
+much more widely used and is believed to be patent-free.
+
+Julian Seward, the author of bzip, gives this warning:
+
+	This program may or may not infringe certain US patents
+	pertaining to arithmetic coding and to the block-sorting
+	transformation itself.  Opinions differ as to the precise
+	legal status of some of the algorithms used.  Nevertheless,
+	you should be aware that commercial use of this program
+	could render you liable to unfriendly legal action.


More information about the svn-ports-head mailing list