Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Sep 2005 16:00:36 +0300
From:      "Alex Samorukov" <samm@os2.kiev.ua>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        samm@os2.kiev.ua
Subject:   ports/86508: New port: devel/libunrar Library to work with RAR archivies
Message-ID:  <1127480436.0@samm.loc>
Resent-Message-ID: <200509231300.j8ND0Knj091635@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86508
>Category:       ports
>Synopsis:       New port: devel/libunrar Library to work with RAR archivies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 23 13:00:19 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alex Samorukov
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
Shevchenko Didkovskiy and Partners 
>Environment:


System: FreeBSD 5.4-STABLE #15: Mon Aug  8 10:59:05 EEST 2005
    root@samm.loc:/usr/obj/usr/src/sys/SAMMKRNL



>Description:


  The UnRAR library is a minor part of the RAR archiver and contains
    RAR uncompression algorithm. UnRAR requires very small volume of
    memory to operate.
    UnRAR library can be used by other programs to extract RAR archives.
    This package containe small fixes from the http://mcmcc.bat.ru/clamav/.

    P.S. I need this library to make PR for the clamav-unrar3 patch.

WWW: http://www.rarsoft.com/



>How-To-Repeat:





>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/devel/libunrar/
#	/usr/ports/devel/libunrar/Makefile
#	/usr/ports/devel/libunrar/distinfo
#	/usr/ports/devel/libunrar/pkg-descr
#	/usr/ports/devel/libunrar/files
#	/usr/ports/devel/libunrar/files/patch-aa
#	/usr/ports/devel/libunrar/pkg-plist
#
echo c - /usr/ports/devel/libunrar/
mkdir -p /usr/ports/devel/libunrar/ > /dev/null 2>&1
echo x - /usr/ports/devel/libunrar/Makefile
sed 's/^X//' >/usr/ports/devel/libunrar/Makefile << 'END-of-/usr/ports/devel/libunrar/Makefile'
X# New ports collection makefile for:    unrar
X# Date created:         23 Sep 2005
X# Whom:                 samm
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libunrar
XPORTVERSION=	3.53
XCATEGORIES+=	devel
XMASTER_SITES=	http://files1.rarlab.com/rar/ \
X		http://files2.rarlab.com/rar/ \
X		http://files3.rarlab.com/rar/ \
X		http://files4.rarlab.com/rar/ \
X		http://files5.rarlab.com/rar/ \
X		http://files6.rarlab.com/rar/
XDISTNAME=	unrarsrc-3.5.3
X
XMAINTAINER?=	samm@os2.kiev.ua
XCOMMENT=	Library to work with RAR archivies
X
XWRKSRC=		${WRKDIR}/unrar
X
XUSE_GMAKE=	yes
XMAKEFILE=       makefile.unix
XALL_TARGET=	lib
XINSTALLS_SHLIB= yes
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/libunrar.so.3 ${PREFIX}/lib/
X	cd ${PREFIX}/lib && ${LN} -sf libunrar.so.3 libunrar.so
X	${MKDIR} ${PREFIX}/include/libunrar3
X	${INSTALL_DATA} ${WRKSRC}/dll.hpp ${PREFIX}/include/libunrar3/dll.hpp
X
X.include <bsd.port.mk>
END-of-/usr/ports/devel/libunrar/Makefile
echo x - /usr/ports/devel/libunrar/distinfo
sed 's/^X//' >/usr/ports/devel/libunrar/distinfo << 'END-of-/usr/ports/devel/libunrar/distinfo'
XMD5 (unrarsrc-3.5.3.tar.gz) = 4e8b975374064b774ea80067e11ccf13
XSIZE (unrarsrc-3.5.3.tar.gz) = 122678
END-of-/usr/ports/devel/libunrar/distinfo
echo x - /usr/ports/devel/libunrar/pkg-descr
sed 's/^X//' >/usr/ports/devel/libunrar/pkg-descr << 'END-of-/usr/ports/devel/libunrar/pkg-descr'
X    The UnRAR library is a minor part of the RAR archiver and contains
X    RAR uncompression algorithm. UnRAR requires very small volume of
X    memory to operate.
X    UnRAR library can be used by other programs to extract RAR archives.
X    This package containe small fixes from the http://mcmcc.bat.ru/clamav/.
X
XWWW: http://www.rarsoft.com/
END-of-/usr/ports/devel/libunrar/pkg-descr
echo c - /usr/ports/devel/libunrar/files
mkdir -p /usr/ports/devel/libunrar/files > /dev/null 2>&1
echo x - /usr/ports/devel/libunrar/files/patch-aa
sed 's/^X//' >/usr/ports/devel/libunrar/files/patch-aa << 'END-of-/usr/ports/devel/libunrar/files/patch-aa'
Xdiff -ruN unrar.orig/makefile.unix unrar/makefile.unix
X--- makefile.unix	2005-04-30 11:00:12.000000000 +0400
X+++ makefile.unix	2005-05-19 16:13:53.000000000 +0400
X@@ -7,9 +7,10 @@
X 
X # Linux using GCC
X CXX=g++
X-CXXFLAGS=-O2
X-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
X+CXXFLAGS=-O2 -fPIC -DPIC
X+DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGUI -DSILENT
X STRIP=strip
X+RANLIB=ranlib
X 
X # Linux using LCC
X #CXX=lcc
X@@ -86,7 +87,7 @@
X LINK=$(CXX)
X 
X UNRAR_OBJ=filestr.o recvol.o rs.o scantree.o
X-LIB_OBJ=filestr.o scantree.o dll.o
X+LIB_OBJ=dll.o
X 
X OBJECTS=rar.o strlist.o strfn.o pathfn.o int64.o savepos.o global.o file.o filefn.o filcreat.o \
X 	archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \
X@@ -114,6 +115,12 @@
X 	$(STRIP) default.sfx
X 
X lib:	WHAT=RARDLL
X-lib:	$(OBJECTS) $(LIB_OBJ)
X-	@rm -f libunrar.so
X-	$(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
X+lib:	$(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+	@rm -f libunrar.so.3
X+	$(LINK) -shared -o libunrar.so.3 $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+
X+liba:	WHAT=RARDLL
X+liba:	$(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+	@rm -f libunrar.a
X+	$(AR) rc libunrar.a $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+	$(RANLIB) libunrar.a
Xdiff -ruN unrar.orig/dll.hpp unrar/dll.hpp
X--- dll.hpp	2004-09-08 17:57:20.000000000 +0400
X+++ dll.hpp	2004-10-22 10:43:08.000000000 +0400
X@@ -26,13 +26,13 @@
X 
X #define RAR_DLL_VERSION       4
X 
X-#ifdef _UNIX
X+//#ifdef _UNIX
X #define CALLBACK
X #define PASCAL
X #define LONG long
X #define HANDLE void *
X #define UINT unsigned int
X-#endif
X+//#endif
X 
X struct RARHeaderData
X {
END-of-/usr/ports/devel/libunrar/files/patch-aa
echo x - /usr/ports/devel/libunrar/pkg-plist
sed 's/^X//' >/usr/ports/devel/libunrar/pkg-plist << 'END-of-/usr/ports/devel/libunrar/pkg-plist'
Xlib/libunrar.so
Xlib/libunrar.so.3
Xinclude/libunrar3/dll.hpp
X@dirrm  include/libunrar3
END-of-/usr/ports/devel/libunrar/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1127480436.0>