Hi, This diff updates unrar to the latest release 4.02. Tested on amd64.
No response from maintainer. Comments ? OK ? Cheers, benoit
Index: Makefile =================================================================== RCS file: /cvs/ports/archivers/unrar/Makefile,v retrieving revision 1.49 diff -u -r1.49 Makefile --- Makefile 11 Jul 2010 15:57:47 -0000 1.49 +++ Makefile 29 Dec 2010 15:46:18 -0000 @@ -2,8 +2,8 @@ COMMENT= extract, list, and test RAR archives -DISTNAME= unrarsrc-3.9.7 -PKGNAME= unrar-3.97 +DISTNAME= unrarsrc-4.0.2 +PKGNAME= unrar-4.02 CATEGORIES= archivers HOMEPAGE= http://www.rarlab.com/ @@ -16,7 +16,6 @@ PERMIT_DISTFILES_CDROM= no fee PERMIT_DISTFILES_FTP= Yes -REVISION = 0 WANTLIB= c m stdc++ MASTER_SITES= ${HOMEPAGE}rar/ Index: distinfo =================================================================== RCS file: /cvs/ports/archivers/unrar/distinfo,v retrieving revision 1.19 diff -u -r1.19 distinfo --- distinfo 19 Dec 2009 22:34:58 -0000 1.19 +++ distinfo 29 Dec 2010 15:46:18 -0000 @@ -1,5 +1,5 @@ -MD5 (unrarsrc-3.9.7.tar.gz) = MiLz5qjBt5tPYAhtKvNyeg== -RMD160 (unrarsrc-3.9.7.tar.gz) = exMhV3jfU4FDVz8e1p9FMymZty8= -SHA1 (unrarsrc-3.9.7.tar.gz) = uR3WTIJ0a7kJPwV1Hsf106iBIAk= -SHA256 (unrarsrc-3.9.7.tar.gz) = ZPEUrlzobQx6BkoROGNDspOIVakTyIdY9HGV7J47PIA= -SIZE (unrarsrc-3.9.7.tar.gz) = 141081 +MD5 (unrarsrc-4.0.2.tar.gz) = bb1VqFNo54TGk/Qv8yc1TQ== +RMD160 (unrarsrc-4.0.2.tar.gz) = QwxlCBoqgWDL5EsPm1LroVeeoxo= +SHA1 (unrarsrc-4.0.2.tar.gz) = fxUuUuZQ2Q5OSAAo8siICQ6aSjU= +SHA256 (unrarsrc-4.0.2.tar.gz) = c94TIrNm4bWcHXD8+7HzIekdqztFkCyldvtFZVCdmCo= +SIZE (unrarsrc-4.0.2.tar.gz) = 151009 Index: patches/patch-os_hpp =================================================================== RCS file: /cvs/ports/archivers/unrar/patches/patch-os_hpp,v retrieving revision 1.5 diff -u -r1.5 patch-os_hpp --- patches/patch-os_hpp 11 Sep 2009 16:14:01 -0000 1.5 +++ patches/patch-os_hpp 29 Dec 2010 15:46:18 -0000 @@ -1,11 +1,11 @@ -$OpenBSD: patch-os_hpp,v 1.5 2009/09/11 16:14:01 naddy Exp $ ---- os.hpp.orig Sun Aug 16 13:09:36 2009 -+++ os.hpp Mon Sep 7 17:50:51 2009 -@@ -245,12 +245,12 @@ +$OpenBSD$ +--- os.hpp.orig Fri Nov 26 08:20:01 2010 ++++ os.hpp Mon Dec 6 07:49:22 2010 +@@ -262,12 +262,12 @@ #endif #endif --#if !defined(BIG_ENDIAN) && !defined(_WIN_CE) && defined(_WIN_32) +-#if !defined(BIG_ENDIAN) && !defined(_WIN_CE) && defined(_WIN_ALL) +#if defined(ALLOW_NOT_ALIGNED_INT) /* allow not aligned integer access, increases speed in some operations */ -#define ALLOW_NOT_ALIGNED_INT Index: patches/patch-unicode_hpp =================================================================== RCS file: patches/patch-unicode_hpp diff -N patches/patch-unicode_hpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-unicode_hpp 29 Dec 2010 15:46:18 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- unicode.hpp.orig Mon Dec 6 07:56:08 2010 ++++ unicode.hpp Mon Dec 6 07:56:19 2010 +@@ -29,6 +29,8 @@ + // Borland C++ Builder 5 uses the old style swprintf without the buffer size, + // so we replace it with snwprintf in our custom sprintfw definition. + #define sprintfw snwprintf ++#elif defined (__OpenBSD__) ++#define sprintfw(s,...) *(s)=0 + #else + #define sprintfw swprintf + #endif