pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/pax Add workaround of lack of hard link supp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f15842242b8b
branches:  trunk
changeset: 577309:f15842242b8b
user:      obache <obache%pkgsrc.org@localhost>
date:      Tue Jul 06 23:36:51 2010 +0000

description:
Add workaround of lack of hard link support on BFS of Haiku.
Use symbolic link instead.

diffstat:

 archivers/pax/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 87ccd62371fe -r f15842242b8b archivers/pax/Makefile
--- a/archivers/pax/Makefile    Tue Jul 06 23:35:01 2010 +0000
+++ b/archivers/pax/Makefile    Tue Jul 06 23:36:51 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2010/03/21 16:50:41 joerg Exp $
+# $NetBSD: Makefile,v 1.43 2010/07/06 23:36:51 obache Exp $
 
 DISTNAME=              pax-20080110
 CATEGORIES=            archivers
@@ -41,4 +41,12 @@
 do-extract:
        ${CP} -R ${FILESDIR} ${WRKSRC}
 
+# Haiku (BeFS) cannot support hard link
+.if ${OPSYS} == "Haiku"
+SUBST_CLASSES+=                symlink
+SUBST_STAGE.symlink=   pre-configure
+SUBST_FILES.symlink=   Makefile.in
+SUBST_SED.symlink=     -e 's,ln -f ,ln -sf ,g'
+.endif
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index