[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
update: unrar
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: update: unrar
- From: Nikolay Sturm <sturm_(_at_)_sec_(_dot_)_informatik_(_dot_)_tu-darmstadt_(_dot_)_de>
- Date: Tue, 15 Apr 2003 22:20:01 +0200
- Mail-followup-to: ports_(_at_)_openbsd_(_dot_)_org
- Organization: Fnord!
Hi!
Attached you find a simple update to current unrar. It just makes it
work with my test rars on i386 and sparc64, nothing more.
This is mainly naddy's diff from february, with updated version numbers.
Please test and comment,
Nikolay
--
OpenPGP: 0x5C0878D2 - BB55 EDCF A1F6 8057 B953 4C66 EFBD BA73 5C08 78D2
Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/unrar/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- Makefile 29 Dec 2002 15:15:18 -0000 1.18
+++ Makefile 15 Apr 2003 20:16:42 -0000
@@ -1,25 +1,33 @@
# $OpenBSD: Makefile,v 1.18 2002/12/29 15:15:18 fgsch Exp $
-COMMENT= "extract, list & test RAR archives"
+COMMENT= "extract, list, and test RAR archives"
-DISTNAME= unrar-2.50
+DISTNAME= unrarsrc-3.2.1
+PKGNAME= unrar-3.20beta3
CATEGORIES= archivers
-MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/arcers/
PERMIT_PACKAGE_CDROM= "no fee"
PERMIT_PACKAGE_FTP= "may not modify"
PERMIT_DISTFILES_CDROM= "no fee"
PERMIT_DISTFILES_FTP= Yes
-WRKDIST= ${WRKDIR}
+MASTER_SITES= http://www.rarlab.com/rar/
-do-build:
- cd ${WRKSRC}; ${CC} ${CFLAGS} -D_UNIX unrar.c -o unrar
+# work around optimizer bug in gcc 2.95
+.if ${MACHINE_ARCH} == "sparc64"
+PATCH_LIST= patch-* gcc-patch-*
+.endif
+
+WRKDIST= ${WRKDIR}/unrar
+
+MAKE_FILE= makefile.unix
+MAKE_FLAGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" DEFINES=""
do-install:
+ ${INSTALL_PROGRAM} ${WRKBUILD}/unrar ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unrar
- cd ${WRKSRC}; ${INSTALL_PROGRAM} unrar ${PREFIX}/bin
- cd ${WRKSRC}; ${INSTALL_MAN} readme.txt license.txt ${PREFIX}/share/doc/unrar
+ ${INSTALL_MAN} ${WRKSRC}/readme.txt ${WRKSRC}/license.txt \
+ ${PREFIX}/share/doc/unrar
NO_REGRESS= Yes
Index: distinfo
===================================================================
RCS file: /cvs/ports/archivers/unrar/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- distinfo 21 Mar 2002 20:20:42 -0000 1.1
+++ distinfo 15 Apr 2003 20:16:42 -0000
@@ -1,3 +1,3 @@
-MD5 (unrar-2.50.tar.gz) = ac92453b6e1c3bd1d0a8fb36b1eb371f
-RMD160 (unrar-2.50.tar.gz) = 517bddfae2bb9c1eab41184f2f585424b840933b
-SHA1 (unrar-2.50.tar.gz) = 0a8343d335ea6777aae3233784c78f974bacc781
+MD5 (unrarsrc-3.2.1.tar.gz) = f0a55e2666061f315aec04994f79ff45
+RMD160 (unrarsrc-3.2.1.tar.gz) = c1c1ef31c6e97fa001551e059b596efd3492d1bb
+SHA1 (unrarsrc-3.2.1.tar.gz) = 8d5fc4791dd777b90e9ddf7616b352751614b144
Index: patches/gcc-patch-makefile_unix
===================================================================
RCS file: patches/gcc-patch-makefile_unix
diff -N patches/gcc-patch-makefile_unix
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/gcc-patch-makefile_unix 15 Apr 2003 20:16:42 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- makefile.unix.orig Sat Dec 14 16:09:01 2002
++++ makefile.unix Sat Dec 14 16:09:44 2002
+@@ -41,6 +41,8 @@ OBJECTS=rar.o strlist.o strfn.o pathfn.o
+
+ .cpp.o:
+ $(COMPILE) -D$(WHAT) -c $<
++sha1.o: sha1.cpp
++ $(COMPILE) -O0 -c $?
+
+ all: unrar
+
Index: patches/patch-makefile_unix
===================================================================
RCS file: patches/patch-makefile_unix
diff -N patches/patch-makefile_unix
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-makefile_unix 15 Apr 2003 20:16:42 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- makefile.unix.orig Fri Jan 3 19:14:22 2003
++++ makefile.unix Mon Apr 14 21:50:54 2003
+@@ -48,6 +48,8 @@ OBJECTS=rar.o strlist.o strfn.o pathfn.o
+ resource.o match.o timefn.o rdwrfn.o consio.o options.o ulinks.o errhnd.o rarvm.o \
+ rijndael.o getbits.o sha1.o extinfo.o extract.o volume.o list.o find.o unpack.o cmddata.o
+
++.SUFFIXES: .cpp
++
+ .cpp.o:
+ $(COMPILE) -D$(WHAT) -c $<
+
+@@ -56,7 +58,7 @@ all: unrar
+ clean:
+ @rm -f *.o *.bak *~
+
+-unrar: WHAT=UNRAR
++WHAT=UNRAR
+ unrar: $(OBJECTS) $(UNRAR_OBJ)
+ @rm -f makeunrar
+ $(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
Index: patches/patch-os_c
===================================================================
RCS file: patches/patch-os_c
diff -N patches/patch-os_c
--- patches/patch-os_c 29 Mar 2001 11:41:50 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,52 +0,0 @@
---- os.c.orig Sat Apr 17 10:53:01 1999
-+++ os.c Sun Mar 26 17:40:24 2000
-@@ -82,7 +82,10 @@
- SetConsoleMode(hConIn,ConInMode);
- SetConsoleMode(hConOut,ConOutMode);
- #else
-+ char *s;
- fgets(Str,sizeof(Password)-1,stdin);
-+ if ((s = strchr(Str, '\n')) != NULL)
-+ *s = '\0';
- #endif
- }
-
-@@ -408,26 +411,33 @@
- }
- #endif
- #ifdef _UNIX
-+ static mode_t mask = -1;
-+
-+ if (mask == (mode_t) -1)
-+ {
-+ mask = umask(022);
-+ (void) umask(mask);
-+ }
- switch(NewLhd.HostOS)
- {
- case MS_DOS:
- case OS2:
- case WIN_32:
- if (NewLhd.FileAttr & 0x10)
-- NewLhd.FileAttr=0x41ff;
-+ NewLhd.FileAttr=0x41ff & ~mask;
- else
- if (NewLhd.FileAttr & 1)
-- NewLhd.FileAttr=0x816d;
-+ NewLhd.FileAttr=0x8124 & ~mask;
- else
-- NewLhd.FileAttr=0x81ff;
-+ NewLhd.FileAttr=0x81b6 & ~mask;
- break;
- case UNIX:
- break;
- default:
- if ((NewLhd.Flags & LHD_WINDOWMASK)==LHD_DIRECTORY)
-- NewLhd.FileAttr=0x41ff;
-+ NewLhd.FileAttr=0x41ff & ~mask;
- else
-- NewLhd.FileAttr=0x81ff;
-+ NewLhd.FileAttr=0x81b6 & ~mask;
- break;
- }
- #endif
Index: patches/patch-smallfn_c
===================================================================
RCS file: patches/patch-smallfn_c
diff -N patches/patch-smallfn_c
--- patches/patch-smallfn_c 29 Mar 2001 11:41:50 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,28 +0,0 @@
---- smallfn.c.orig Sat Apr 17 10:53:02 1999
-+++ smallfn.c Sun Mar 26 17:40:24 2000
-@@ -92,8 +92,12 @@
- }
- if (Choice==4)
- {
-+ char *s;
- mprintf(MAskNewName);
-- gets(Name);
-+ *Name = '\0';
-+ fgets(Name, NM, stdin);
-+ if ((s = strchr(Name, '\n')) != NULL)
-+ *s = '\0';
- continue;
- }
- if (Choice==5)
-@@ -110,7 +114,10 @@
- int GetKey(void)
- {
- char Str[80];
-- gets(Str);
-+ *Str = '\0';
-+ fgets(Str, 80, stdin);
-+ if (*Str == '\n')
-+ *Str = '\0';
- return(Str[0]);
- }
-
Visit your host, monkey.org