Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new pkgsrc files for the package lrzip-0.616 #85

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions archivers/lrzip/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Long Range ZIP or Lzma RZIP

This is a compression program optimised for large files. The larger the file
and the more memory you have, the better the compression advantage this will
provide, especially once the files are larger than 100MB. The advantage can
be chosen to be either size (much smaller than bzip2) or speed (much faster
than bzip2).
21 changes: 21 additions & 0 deletions archivers/lrzip/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# $NetBSD$

DISTNAME= lrzip-0.616
CATEGORIES= archivers
MASTER_SITES= http://ck.kolivas.org/apps/lrzip/
EXTRACT_SUFX= .tar.bz2

MAINTAINER= tm@core.io
HOMEPAGE= http://ck.kolivas.org/apps/lrzip/
COMMENT= Long Range ZIP or Lzma RZIP
LICENSE= gnu-gpl-v2

GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++

PKGCONFIG_OVERRIDE+= lrzip.pc.in

.include "../../archivers/lzo/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
35 changes: 35 additions & 0 deletions archivers/lrzip/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@comment $NetBSD$
bin/lrunzip
bin/lrzcat
bin/lrzip
bin/lrztar
bin/lrzuntar
include/Lrzip.h
lib/liblrzip.la
lib/pkgconfig/lrzip.pc
man/man1/lrunzip.1
man/man1/lrzcat.1
man/man1/lrzip.1
man/man1/lrztar.1
man/man1/lrzuntar.1
man/man5/lrzip.conf.5
share/doc/lrzip/AUTHORS
share/doc/lrzip/BUGS
share/doc/lrzip/COPYING
share/doc/lrzip/ChangeLog
share/doc/lrzip/README
share/doc/lrzip/README-NOT-BACKWARD-COMPATIBLE
share/doc/lrzip/README.Assembler
share/doc/lrzip/README.benchmarks
share/doc/lrzip/README.lzo_compresses.test.txt
share/doc/lrzip/TODO
share/doc/lrzip/WHATS-NEW
share/doc/lrzip/lrzip.conf.example
share/doc/lrzip/lzma/7zC.txt
share/doc/lrzip/lzma/7zFormat.txt
share/doc/lrzip/lzma/Methods.txt
share/doc/lrzip/lzma/README
share/doc/lrzip/lzma/README-Alloc
share/doc/lrzip/lzma/history.txt
share/doc/lrzip/lzma/lzma.txt
share/doc/lrzip/magic.header.txt
7 changes: 7 additions & 0 deletions archivers/lrzip/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$NetBSD$

SHA1 (lrzip-0.616.tar.bz2) = 374a021ff087ee93b2d5894fd16aa3aef26dfa8f
RMD160 (lrzip-0.616.tar.bz2) = 6cc2a3f6fd13bfbaba93ae61bf0597383e0d98cd
Size (lrzip-0.616.tar.bz2) = 493886 bytes
SHA1 (patch-liblrzip.c) = 5e86ff0cd8ec22eed63cf8a33d86345e6ef060ae
SHA1 (patch-lrzip.h) = be7b2e5536cd579aa384c8171d29357945fe4213
15 changes: 15 additions & 0 deletions archivers/lrzip/patches/patch-liblrzip.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$NetBSD$

fmemopen is also not available on Sun Solaris machines

--- liblrzip.c.orig 2013-09-01 14:41:11.000000000 +0000
+++ liblrzip.c
@@ -36,7 +36,7 @@
#include "lrzip_core.h"
#include "rzip.h"

-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun)
# define fmemopen(s, len, modes) fake_fmemopen((s), (len), (modes))
static FILE *fake_fmemopen(void *buf, size_t buflen, const char *mode)
{
17 changes: 17 additions & 0 deletions archivers/lrzip/patches/patch-lrzip.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$NetBSD$

stdarg.h is required to build on Solaris/SmartOS because of va_list

--- Lrzip.h.orig 2012-05-10 12:45:41.000000000 +0000
+++ Lrzip.h
@@ -28,6 +28,10 @@
# include <inttypes.h>
#endif

+#if defined(__sun)
+#include <stdarg.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif