From baee51c780825dda308524ffd8584c980b5f1c2c Mon Sep 17 00:00:00 2001 From: jschauma Date: Mon, 20 Jan 2003 23:23:57 +0000 Subject: As suggested by wiz: Make sure a ${PREFIX}/bin/gtar exists independent of ${GNU_PROGRAM_PREFIX}, since it's needed for pkgsrc, and make pkgsrc use ${PREFIX}/bin/gtar. --- archivers/gtar-base/Makefile | 11 ++++++++++- archivers/gtar-base/PLIST | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'archivers/gtar-base') diff --git a/archivers/gtar-base/Makefile b/archivers/gtar-base/Makefile index 765e66aac2c..91346b7c31e 100644 --- a/archivers/gtar-base/Makefile +++ b/archivers/gtar-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2002/12/22 17:15:33 wiz Exp $ +# $NetBSD: Makefile,v 1.26 2003/01/20 23:23:57 jschauma Exp $ # DISTNAME= tar-1.13.25 @@ -31,11 +31,20 @@ PLIST_SRC= ${.CURDIR}/PLIST.Darwin EXTRACT_SUFX= .tar.gz .endif +.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" +PLIST_SUBST+= GTAR_LINK="" +.else +PLIST_SUBST+= GTAR_LINK="@comment " +.endif + post-patch: @${ECHO} '' >>${WRKSRC}/po/fr.po post-install: ${INSTALL_DATA} ${FILESDIR}/gtar.1 \ ${PREFIX}/man/man1/${GNU_PROGRAM_PREFIX}tar.1 +.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" + ${LN} -s ${GNU_PROGRAM_PREFIX}tar ${PREFIX}/bin/gtar +.endif .include "../../mk/bsd.pkg.mk" diff --git a/archivers/gtar-base/PLIST b/archivers/gtar-base/PLIST index 5058ac509a7..0efcfcc70e9 100644 --- a/archivers/gtar-base/PLIST +++ b/archivers/gtar-base/PLIST @@ -1,5 +1,6 @@ -@comment $NetBSD: PLIST,v 1.4 2002/12/22 01:34:38 wiz Exp $ +@comment $NetBSD: PLIST,v 1.5 2003/01/20 23:23:57 jschauma Exp $ bin/${GNU_PROGRAM_PREFIX}tar +${GTAR_LINK}bin/gtar man/man1/${GNU_PROGRAM_PREFIX}tar.1 ${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/tar.mo ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/tar.mo -- cgit v1.2.3