summaryrefslogtreecommitdiff
path: root/archivers/gcpio
diff options
context:
space:
mode:
authorjperkin <jperkin>2012-11-20 17:07:05 +0000
committerjperkin <jperkin>2012-11-20 17:07:05 +0000
commit506376e892b69ca6e342d846c6d29042667aba99 (patch)
treef825c64dc715dabeddc0fa708b07ff48ea886360 /archivers/gcpio
parent41e4139ef529f7a177db441bc62d82a1430acdf3 (diff)
downloadpkgsrc-506376e892b69ca6e342d846c6d29042667aba99.tar.gz
Copy rmt handling from archivers/gtar-base, fixes packaging on Interix
and Darwin.
Diffstat (limited to 'archivers/gcpio')
-rw-r--r--archivers/gcpio/Makefile11
-rw-r--r--archivers/gcpio/PLIST4
2 files changed, 12 insertions, 3 deletions
diff --git a/archivers/gcpio/Makefile b/archivers/gcpio/Makefile
index 0992a78dd30..1153fa1fc16 100644
--- a/archivers/gcpio/Makefile
+++ b/archivers/gcpio/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2012/09/11 19:46:54 asau Exp $
+# $NetBSD: Makefile,v 1.44 2012/11/20 17:07:05 jperkin Exp $
#
DISTNAME= cpio-2.6
@@ -28,6 +28,15 @@ CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl=yes
CONFIGURE_ARGS+= --program-prefix=g
+PLIST_VARS+= rmt
+
+.include "../../mk/bsd.prefs.mk"
+
+# don't include rmt if gtar won't build it
+.if ${OPSYS} != "Interix" && ${OPSYS} != "Darwin"
+PLIST.rmt= yes
+.endif
+
post-install:
${LN} -sf ${PREFIX}/bin/gcpio ${DESTDIR}${PREFIX}/gnu/bin/cpio
${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/gcpio.1 ${DESTDIR}${PREFIX}/gnu/man/man1/cpio.1
diff --git a/archivers/gcpio/PLIST b/archivers/gcpio/PLIST
index 0b20898259e..2a50df373af 100644
--- a/archivers/gcpio/PLIST
+++ b/archivers/gcpio/PLIST
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.10 2012/06/02 08:38:13 cheusov Exp $
+@comment $NetBSD: PLIST,v 1.11 2012/11/20 17:07:05 jperkin Exp $
bin/gcpio
gnu/bin/cpio
gnu/man/man1/cpio.1
gnu/man/man1/mt.1
info/cpio.info
-libexec/grmt
+${PLIST.rmt}libexec/grmt
man/man1/gcpio.1
man/man1/gmt.1
share/locale/da/LC_MESSAGES/cpio.mo