Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 00:40:39 +0200 (CEST)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Gabor Kovesdan <gabor@FreeBSD.org>
Subject:   ports/101788: [patch] archivers/unarj
Message-ID:  <20060810224039.109FE289C26@catv-50635cb6.catv.broadband.hu>
Resent-Message-ID: <200608102250.k7AMoGM8001217@freefall.freebsd.org>

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

>Number:         101788
>Category:       ports
>Synopsis:       [patch] archivers/unarj
>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:   Thu Aug 10 22:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gabor Kovesdan
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD spitfire 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jul 29 18:31:18 CEST 2006 gabor@spitfire:/usr/src/sys/i386/compile/SPITFIRE i386

>Description:

- Respect DESTDIR
- Respect NOPORTDOCS
- Bump PORTREVISION
- Eliminate plist

>How-To-Repeat:
>Fix:

--- archivers-unarj.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/archivers/unarj/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile	29 Nov 2004 21:28:13 -0000	1.20
+++ Makefile	10 Aug 2006 22:36:40 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	unarj
 PORTVERSION=	2.65
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	archivers
 MASTER_SITES=	${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	ache
@@ -16,14 +16,19 @@
 MAINTAINER=	ache@FreeBSD.org
 COMMENT=	Allows files to be extracted from ARJ archives
 
+PLIST_FILES=	bin/unarj
+PORTDOCS=	unarj.txt technote.txt
+
 post-patch:
 	${CP} ${FILESDIR}/sanitize.c ${WRKSRC}
 
 do-install:
-	${INSTALL} -d -m 755 -o ${SHAREOWN} -g ${SHAREGRP} \
-		${PREFIX}/share/doc/unarj
-	cd ${WRKSRC}; ${INSTALL_PROGRAM} unarj ${PREFIX}/bin
-	cd ${WRKSRC}; ${INSTALL_DATA} unarj.txt technote.txt \
-		${PREFIX}/share/doc/unarj
+	${INSTALL_PROGRAM} ${WRKSRC}/unarj ${TARGETDIR}/bin
+.if !defined(NOPORTDOCS)
+	${INSTALL} -d -m 755 -o ${SHAREOWN} -g ${SHAREGRP} ${DOCSDIR}
+.for i in ${PORTDOCS}	
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
 
 .include <bsd.port.mk>
Index: pkg-plist
===================================================================
RCS file: pkg-plist
diff -N pkg-plist
--- pkg-plist	29 Nov 2004 15:03:09 -0000	1.5
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,4 +0,0 @@
-bin/unarj
-%%DOCSDIR%%/unarj.txt
-%%DOCSDIR%%/technote.txt
-@dirrm %%DOCSDIR%%
--- archivers-unarj.diff ends here ---


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



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