From 1cb4388ba7992564dde8a6567235f443f3b9c4d5 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 21 Jun 2000 08:57:04 +0000 Subject: Fix automatical creation of package list to handle symbolic links to directories properly. --- devel/ptl2/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/ptl2/Makefile b/devel/ptl2/Makefile index 5ab09a0769f..96c196535d2 100644 --- a/devel/ptl2/Makefile +++ b/devel/ptl2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2000/06/07 04:28:20 msaitoh Exp $ +# $NetBSD: Makefile,v 1.21 2000/06/21 08:57:04 tron Exp $ DISTNAME= PTL-2.1.3 PKGNAME= ptl-2.1.3 @@ -25,7 +25,11 @@ post-install: @${CP} ${PKGDIR}/PLIST ${PLIST_SRC} @cd ${PREFIX}; \ ${FIND} PTL -type f >>${PLIST_SRC}; \ - ${FIND} PTL -type l >>${PLIST_SRC}; \ + for LINK in `${FIND} PTL -type l`; do \ + set - X `${FILE} $$LINK`; \ + echo "@exec ln -s $$6 %D/$$LINK" >>${PLIST_SRC}; \ + echo "@unexec rm -f %D/$$LINK" >>${PLIST_SRC}; \ + done; \ for DIR in `${FIND} PTL -type d | sort -r`; do \ if [ -z "`ls $$DIR`" ]; then \ ${ECHO} "@exec ${MKDIR} %D/$$DIR" >>${PLIST_SRC}; \ -- cgit v1.2.3