diff options
author | tron <tron@pkgsrc.org> | 2000-06-21 08:57:04 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2000-06-21 08:57:04 +0000 |
commit | 9752bba3bce43265747c0ff84c08549fd9e4b1dd (patch) | |
tree | 19ce97db728ea2b571f86131fcae4f0c2b2a8a74 /devel/ptl2 | |
parent | dc2a3638c9c2452078be9e46c8210a8874ff719c (diff) | |
download | pkgsrc-9752bba3bce43265747c0ff84c08549fd9e4b1dd.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/Makefile | 8 |
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}; \ |