summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-11-01 12:47:39 +0000
committerjperkin <jperkin@pkgsrc.org>2013-11-01 12:47:39 +0000
commitf065688602542506fdae5a8ea0cc9cadf25cb2ab (patch)
tree752f261ae2363cdab2551d77898131ae332bb7ca
parentcbb1b01996adccb9be87a276ba717882d9b91b27 (diff)
downloadpkgsrc-f065688602542506fdae5a8ea0cc9cadf25cb2ab.tar.gz
Only create the rmt symlink if rmt is built.
-rw-r--r--archivers/gtar-base/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/archivers/gtar-base/Makefile b/archivers/gtar-base/Makefile
index 74e1ce62d13..159a17205c2 100644
--- a/archivers/gtar-base/Makefile
+++ b/archivers/gtar-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.78 2012/12/31 00:25:56 sbd Exp $
+# $NetBSD: Makefile,v 1.79 2013/11/01 12:47:39 jperkin Exp $
DISTNAME= tar-1.26
PKGNAME= ${DISTNAME:S/tar/gtar-base/}
@@ -49,9 +49,12 @@ PLIST.rmt= yes
CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
.endif
-SYMLINKS = bin/gtar ${PKGGNUDIR}bin/tar \
- ${PKGMANDIR}/man1/gtar.1 ${PKGGNUDIR}${PKGMANDIR}/man1/tar.1 \
- libexec/grmt ${PKGGNUDIR}libexec/rmt
+SYMLINKS= bin/gtar ${PKGGNUDIR}bin/tar \
+ ${PKGMANDIR}/man1/gtar.1 ${PKGGNUDIR}${PKGMANDIR}/man1/tar.1
+
+.if defined(PLIST.rmt) && ${PLIST.rmt} == "yes"
+SYMLINKS+= libexec/grmt ${PKGGNUDIR}libexec/rmt
+.endif
post-install:
${INSTALL_MAN} ${FILESDIR}/gtar.1 \