From nobody@FreeBSD.org  Mon May 30 10:42:11 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0D1E5106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 10:42:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id F1B428FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 10:42:09 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4UAg9Ob071081
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2011 10:42:09 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4UAg94x071080;
	Mon, 30 May 2011 10:42:09 GMT
	(envelope-from nobody)
Message-Id: <201105301042.p4UAg94x071080@red.freebsd.org>
Date: Mon, 30 May 2011 10:42:09 GMT
From: Joris Vandalon <joris@vandalon.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: archivers/libunrar4 Version 4 of libunrar
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157421
>Category:       ports
>Synopsis:       New port: archivers/libunrar4 Version 4 of libunrar
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 30 10:50:07 UTC 2011
>Closed-Date:    Sun Jun 05 07:06:15 UTC 2011
>Last-Modified:  Sun Jun 05 07:06:15 UTC 2011
>Originator:     Joris Vandalon
>Release:        Freebsd 8.2
>Organization:
>Environment:
FreeBSD collected.vandalon.nl 8.2-RELEASE FreeBSD 8.2-RELEASE #7: Thu Mar 31 13:58:26 CEST 2011     root@Collected.local:/usr/obj/usr/src/sys/COLLECTED  amd64
>Description:
Since there is only a libunrar3 port in freebsd and it does not seem to get an update any time soon, I created libunrar4. Mainly because I also want to make a port for rar2fs (http://code.google.com/p/rar2fs/) which depends on libunrar 4.0.7 among others.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	libunrar4
#	libunrar4/pkg-descr
#	libunrar4/pkg-plist
#	libunrar4/files
#	libunrar4/files/patch-makefile.unix
#	libunrar4/Makefile
#	libunrar4/distinfo
#
echo c - libunrar4
mkdir -p libunrar4 > /dev/null 2>&1
echo x - libunrar4/pkg-descr
sed 's/^X//' >libunrar4/pkg-descr << 'accc5a455cdf546073ad56ef34b54266'
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 contains small fixes from the http://mcmcc.bat.ru/clamav/.
X
XWWW: http://www.rarsoft.com/
accc5a455cdf546073ad56ef34b54266
echo x - libunrar4/pkg-plist
sed 's/^X//' >libunrar4/pkg-plist << 'c432de07141839a6080327ce6b14b968'
Xlib/libunrar.so
Xlib/libunrar.so.3
Xinclude/libunrar4/dll.hpp
X@dirrm  include/libunrar4
c432de07141839a6080327ce6b14b968
echo c - libunrar4/files
mkdir -p libunrar4/files > /dev/null 2>&1
echo x - libunrar4/files/patch-makefile.unix
sed 's/^X//' >libunrar4/files/patch-makefile.unix << 'f0082f18c7c536d111ec49bd377f50ab'
X--- makefile.unix.orig	2008-10-09 15:43:06.000000000 +0200
X+++ makefile.unix	2008-11-06 01:43:52.000000000 +0100
X@@ -7,10 +7,11 @@
X 
X # Linux using GCC
X #CXX=g++
X-#CXXFLAGS=-O2
X-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
X+CXXFLAGS=$(CFLAGS) -fPIC -DPIC
X+DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGUI -DSILENT
X STRIP=strip
X DESTDIR=/usr
X+RANLIB=ranlib
X 
X # Linux using LCC
X #CXX=lcc
X@@ -100,7 +101,7 @@
X WHAT=UNRAR
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@@ -131,9 +132,15 @@
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
X 
X install-unrar:
X 			install unrar $(DESTDIR)/bin
f0082f18c7c536d111ec49bd377f50ab
echo x - libunrar4/Makefile
sed 's/^X//' >libunrar4/Makefile << '1703f0413ef7cf36bb0cb698e51e44c1'
X# New ports collection makefile for:    unrar4
X# Date created:				30 May 2011
X# Whom:					Joris Vandalon
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libunrar4
XPORTVERSION=	4.0.7
XPORTEPOCH=	1
XCATEGORIES=	archivers
XMASTER_SITES=	http://www.rarlab.com/rar/
XDISTNAME=	unrarsrc-${PORTVERSION}
X
XMAINTAINER=	joris@vandalon.nl
XCOMMENT=	Library to work with RAR archivies
X
XWRKSRC=		${WRKDIR}/unrar
X
XUSE_GMAKE=	yes
XMAKEFILE=	makefile.unix
XMAKE_ENV=	LDFLAGS="${LDFLAGS}"
XALL_TARGET=	lib
XUSE_LDCONFIG=	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/libunrar4
X	${INSTALL_DATA} ${WRKSRC}/dll.hpp ${PREFIX}/include/libunrar4/dll.hpp
X
X.include <bsd.port.mk>
1703f0413ef7cf36bb0cb698e51e44c1
echo x - libunrar4/distinfo
sed 's/^X//' >libunrar4/distinfo << '749eb8cba8e695f567034246b52ef7ad'
XSHA256 (unrarsrc-4.0.7.tar.gz) = eac9ed7493870ca7f67b23e9208aef1db701c381123ac462e97f703777a33071
XSIZE (unrarsrc-4.0.7.tar.gz) = 152853
749eb8cba8e695f567034246b52ef7ad
exit



>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/157421: commit references a PR
Date: Tue, 31 May 2011 03:53:42 +0000 (UTC)

 miwi        2011-05-31 03:53:29 UTC
 
   FreeBSD ports repository
 
   Modified files:
     archivers            Makefile 
   Added files:
     archivers/libunrar4  Makefile distinfo pkg-descr pkg-plist 
     archivers/libunrar4/files patch-makefile.unix 
   Log:
       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 contains small fixes from the http://mcmcc.bat.ru/clamav/.
   
   WWW: http://www.rarsoft.com/
   
   PR:             ports/157421
   Submitted by:   Joris Vandalon <joris@vandalon.nl>
   
   Revision  Changes    Path
   1.259     +1 -0      ports/archivers/Makefile
   1.1       +31 -0     ports/archivers/libunrar4/Makefile (new)
   1.1       +2 -0      ports/archivers/libunrar4/distinfo (new)
   1.1       +44 -0     ports/archivers/libunrar4/files/patch-makefile.unix (new)
   1.1       +7 -0      ports/archivers/libunrar4/pkg-descr (new)
   1.1       +4 -0      ports/archivers/libunrar4/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Jun 5 05:54:53 UTC 2011 
State-Changed-Why:  
Already committed by swills 20110531. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157421 
>Unformatted:
