archivers/unalz: Update to 0.66

Port changes:
* Change MASTER_SITES and WWW to https
* Remove USES=dos2unix

PR:		226227
Submitted by:	Chris Hutchinson <portmaster@bsdforge.com> (maintainer)
This commit is contained in:
Yuri Victorovich 2018-03-18 23:35:36 +00:00
parent 419613c6ea
commit a296b84027
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464970
4 changed files with 29 additions and 11 deletions

View File

@ -2,10 +2,9 @@
# $FreeBSD$
PORTNAME= unalz
PORTVERSION= 0.65
PORTREVISION= 2
DISTVERSION= 0.66
CATEGORIES= archivers
MASTER_SITES= http://BSDforge.com/projects/source/archivers/unalz/
MASTER_SITES= https://BSDforge.com/projects/source/archivers/unalz/
MAINTAINER= portmaster@BSDforge.com
COMMENT= Extracts AlZip archives
@ -15,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/readme.txt
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= dos2unix iconv tar:tgz
USES= iconv tar:xz
MAKE_ARGS+= CPP="${CXX}" CC="${CC}" OBJ="${UNALZ_OBJS}" \
LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
ALL_TARGET= posix-utf8

View File

@ -1,2 +1,3 @@
SHA256 (unalz-0.65.tgz) = 4c26699eb7545072de2ef7de79b4fff1f01c4db09cebff2d8d50ec03d5d74db0
SIZE (unalz-0.65.tgz) = 137985
TIMESTAMP = 1521416109
SHA256 (unalz-0.66.tar.xz) = 90f449be70a9ea4d2421ae43eadaaf12a76f0eaaeb3ba62644837387d91a94b7
SIZE (unalz-0.66.tar.xz) = 102140

View File

@ -1,4 +1,4 @@
--- UnAlz.cpp.orig 2016-07-26 12:39:47 UTC
--- UnAlz.cpp.orig 2018-02-26 21:09:31 UTC
+++ UnAlz.cpp
@@ -37,7 +37,7 @@
# include <errno.h>
@ -7,9 +7,18 @@
-#if defined(__NetBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# include <sys/param.h> // __NetBSD_Version__
# include <errno.h> // iconv.h 때문에 필요
# include <errno.h> // iconv.h
#endif
@@ -455,7 +455,7 @@ BOOL CUnAlz::ReadLocalFileheader()
@@ -432,7 +432,7 @@ BOOL CUnAlz::ReadLocalFileheader()
FRead(zipHeader.fileName, zipHeader.head.fileNameLength);
if(zipHeader.head.fileNameLength > MAX_PATH - 5)
zipHeader.head.fileNameLength = MAX_PATH - 5;
- zipHeader.fileName[zipHeader.head.fileNameLength] = (CHAR)NULL;
+ zipHeader.fileName[zipHeader.head.fileNameLength] = (CHAR)0;
#ifdef _UNALZ_ICONV // codepage convert
@@ -447,7 +447,7 @@ BOOL CUnAlz::ReadLocalFileheader()
size_t size;
char inbuf[ICONV_BUF_SIZE];
char outbuf[ICONV_BUF_SIZE];
@ -18,7 +27,16 @@
const char *inptr = inbuf;
#else
char *inptr = inbuf;
@@ -1907,7 +1907,11 @@ void CUnAlz::DecryptingData(int nSize, B
@@ -937,7 +937,7 @@ BOOL CUnAlz::DigPath(const char* szPathN
{
if(*last=='/' || *last=='\\')
{
- *last = (char)NULL;
+ *last = (char)0;
break;
}
last --;
@@ -1870,7 +1870,11 @@ void CUnAlz::DecryptingData(int nSize, B
////////////////////////////////////////////////////////////////////////////////////////////////////
UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)
{

View File

@ -1,4 +1,4 @@
Unalz is a ZLIB-licensed unarchiver for AlZip format which requires
proprietary and Win32-only software but widely used in Korea.
WWW: http://BSDforge.com/projects/archivers/unalz/
WWW: https://bsdforge.com/projects/archivers/unalz/