summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2004-04-05 18:38:43 +0000
committerreed <reed@pkgsrc.org>2004-04-05 18:38:43 +0000
commit348636d7b9065b369b8ca6f8c12ccb98919320b8 (patch)
tree1857a705a94ab82a665c592bed5f7d685c3437c7 /archivers
parent61df96420c929bcb8d0d8b9b59bcb6119553fbc9 (diff)
downloadpkgsrc-348636d7b9065b369b8ca6f8c12ccb98919320b8.tar.gz
If GNU_PROGRAM_PREFIX is not "g" or not set, then still install
with "g" prefix. Allow this to be optionally forced by defining GTAR_PROGRAM_PREFIX. If GTAR_PROGRAM_PREFIX is set to nothing, then conflict with pax, because both install a "tar". So now the default is to install as "gtar" even if GNU_PROGRAM_PREFIX is set to "". Bump package revision for this. This is for part of my PR #22693.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/gtar-base/Makefile29
-rw-r--r--archivers/gtar-base/PLIST6
-rw-r--r--archivers/gtar-base/PLIST.Darwin6
3 files changed, 26 insertions, 15 deletions
diff --git a/archivers/gtar-base/Makefile b/archivers/gtar-base/Makefile
index 6dc29870afd..70438f33e53 100644
--- a/archivers/gtar-base/Makefile
+++ b/archivers/gtar-base/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.33 2004/03/11 18:03:49 xtraeme Exp $
+# $NetBSD: Makefile,v 1.34 2004/04/05 18:38:43 reed Exp $
#
DISTNAME= tar-1.13.25
PKGNAME= gtar-base-1.13.25
-PKGREVISION= 1
+PKGREVISION= 2
SVR4_PKGNAME= gtarb
CATEGORIES= archivers
MASTER_SITES= ftp://alpha.gnu.org/gnu/tar/ \
@@ -22,14 +22,25 @@ GNU_CONFIGURE= YES
.include "../../mk/bsd.prefs.mk"
-.if defined(GNU_PROGRAM_PREFIX)
-CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX}
+.if defined(GNU_PROGRAM_PREFIX) && ${GNU_PROGRAM_PREFIX} != ""
+GTAR_PROGRAM_PREFIX?= ${GNU_PROGRAM_PREFIX}
+.else
+GTAR_PROGRAM_PREFIX?= g
.endif
+
+.if ${GTAR_PROGRAM_PREFIX} == ""
+# pax installs a "tar" also
+CONFLICTS+= pax-[0-9]*
+.else
+CONFIGURE_ARGS+= --program-prefix=${GTAR_PROGRAM_PREFIX}
+.endif
+
CONFIGURE_ARGS+= --with-catgets
-PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
+PLIST_SUBST+= GTAR_PROGRAM_PREFIX=${GTAR_PROGRAM_PREFIX}
BUILD_DEFS+= GNU_PROGRAM_PREFIX
+BUILD_DEFS+= GTAR_PROGRAM_PREFIX
-.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
+.if ${GTAR_PROGRAM_PREFIX} != "g"
PLIST_SUBST+= GTAR_LINK=""
.else
PLIST_SUBST+= GTAR_LINK="@comment "
@@ -40,9 +51,9 @@ post-patch:
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} -sf ${GNU_PROGRAM_PREFIX}tar ${PREFIX}/bin/gtar
+ ${PREFIX}/man/man1/${GTAR_PROGRAM_PREFIX}tar.1
+.if ${GTAR_PROGRAM_PREFIX} != "g"
+ ${LN} -sf ${GTAR_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 0efcfcc70e9..0a6cc36fa77 100644
--- a/archivers/gtar-base/PLIST
+++ b/archivers/gtar-base/PLIST
@@ -1,7 +1,7 @@
-@comment $NetBSD: PLIST,v 1.5 2003/01/20 23:23:57 jschauma Exp $
-bin/${GNU_PROGRAM_PREFIX}tar
+@comment $NetBSD: PLIST,v 1.6 2004/04/05 18:38:43 reed Exp $
+bin/${GTAR_PROGRAM_PREFIX}tar
${GTAR_LINK}bin/gtar
-man/man1/${GNU_PROGRAM_PREFIX}tar.1
+man/man1/${GTAR_PROGRAM_PREFIX}tar.1
${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/tar.mo
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/tar.mo
diff --git a/archivers/gtar-base/PLIST.Darwin b/archivers/gtar-base/PLIST.Darwin
index dd1a04bfb32..503bc388995 100644
--- a/archivers/gtar-base/PLIST.Darwin
+++ b/archivers/gtar-base/PLIST.Darwin
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST.Darwin,v 1.2 2002/12/22 01:34:38 wiz Exp $
-bin/${GNU_PROGRAM_PREFIX}tar
-man/man1/${GNU_PROGRAM_PREFIX}tar.1
+@comment $NetBSD: PLIST.Darwin,v 1.3 2004/04/05 18:38:43 reed Exp $
+bin/${GTAR_PROGRAM_PREFIX}tar
+man/man1/${GTAR_PROGRAM_PREFIX}tar.1