Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 13:47:59 +0200 (CEST)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Gabor Kovesdan <gabor@FreeBSD.org>
Subject:   ports/101816: [patch] archivers/unzip
Message-ID:  <20060811114759.16383289C2E@catv-50635cb6.catv.broadband.hu>
Resent-Message-ID: <200608111150.k7BBoHLR074325@freefall.freebsd.org>

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

>Number:         101816
>Category:       ports
>Synopsis:       [patch] archivers/unzip
>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 Aug 11 11:50:17 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
- Eliminate plist

>How-To-Repeat:
>Fix:

--- archivers-unzip.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/archivers/unzip/Makefile,v
retrieving revision 1.53
diff -u -r1.53 Makefile
--- Makefile	28 Jul 2006 14:42:52 -0000	1.53
+++ Makefile	11 Aug 2006 11:29:57 -0000
@@ -19,6 +19,8 @@
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 MAKEFILE=	unix/Makefile
 MAKE_ENV=	LOCAL_UNZIP="${CFLAGS} -DUSE_UNSHRINK"
+PLIST_FILES=	bin/unzip bin/funzip bin/unzipsfx bin/zipgrep bin/zipinfo
+PORTDOCS=	README WHERE
 MAN1=		funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1
 
 .if defined(WITH_UNZIP_UNREDUCE)
@@ -50,17 +52,17 @@
 
 do-install:
 .for file in funzip unzip unzipsfx
-	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${TARGETDIR}/bin
 .endfor
-	${LN} -sf unzip ${PREFIX}/bin/zipinfo
-	${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${PREFIX}/bin
+	${LN} -sf unzip ${TARGETDIR}/bin/zipinfo
+	${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${TARGETDIR}/bin
 .for f in ${MAN1}
-	${INSTALL_MAN} ${WRKSRC}/man/${f} ${PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/man/${f} ${MAN1PREFIX}/man/man1
 .endfor
 .if !defined(NOPORTDOCS)
-	@${MKDIR} ${PREFIX}/share/doc/unzip
-.for f in README WHERE
-	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/unzip
+	@${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
 .endfor
 .endif
 
Index: pkg-plist
===================================================================
RCS file: pkg-plist
diff -N pkg-plist
--- pkg-plist	16 Jan 2004 01:30:59 -0000	1.15
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,8 +0,0 @@
-bin/unzip
-bin/funzip
-bin/unzipsfx
-bin/zipgrep
-bin/zipinfo
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/WHERE
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- archivers-unzip.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?20060811114759.16383289C2E>