summaryrefslogtreecommitdiff
path: root/devel/ptl2
diff options
context:
space:
mode:
authortron <tron>2000-06-21 08:57:04 +0000
committertron <tron>2000-06-21 08:57:04 +0000
commitafd6aabf91bbd61065341aa0b4d792ce489bdf20 (patch)
tree19ce97db728ea2b571f86131fcae4f0c2b2a8a74 /devel/ptl2
parentcef542c76af9f8f2fc8011f3fcb509ef3307180c (diff)
downloadpkgsrc-afd6aabf91bbd61065341aa0b4d792ce489bdf20.tar.gz
Fix automatical creation of package list to handle symbolic links to
directories properly.
Diffstat (limited to 'devel/ptl2')
-rw-r--r--devel/ptl2/Makefile8
1 files changed, 6 insertions, 2 deletions
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}; \