diff options
author | richard <richard@pkgsrc.org> | 2015-10-03 07:45:26 +0000 |
---|---|---|
committer | richard <richard@pkgsrc.org> | 2015-10-03 07:45:26 +0000 |
commit | 739c98f64526639d23ff8fd57bc389e3fc3433d2 (patch) | |
tree | 25cfed0c9425d8677ea005709266e2898b1366a6 /textproc | |
parent | 79a51232d357a9f601973a24c37ff1611a770fb2 (diff) | |
download | pkgsrc-739c98f64526639d23ff8fd57bc389e3fc3433d2.tar.gz |
Fix symlinks to not be relative and ride last PKGREVISION bump
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/groff/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/textproc/groff/Makefile b/textproc/groff/Makefile index 54ce92251ad..86873888ba7 100644 --- a/textproc/groff/Makefile +++ b/textproc/groff/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.80 2015/10/02 11:33:14 richard Exp $ +# $NetBSD: Makefile,v 1.81 2015/10/03 07:45:26 richard Exp $ DISTNAME= groff-1.22.3 PKGREVISION= 2 @@ -94,19 +94,19 @@ post-install: done .for f in ${SYMLINK_FILES} if [ -f ${DESTDIR}${PREFIX}/bin/g${f} ]; then \ - ${LN} -sf ../../bin/g${f} \ + ${LN} -sf ${PREFIX}/bin/g${f} \ ${DESTDIR}${PREFIX}/${PKGGNUDIR}bin/${f}; \ fi .endfor # fixup where necessary and symlink man pages .for f in ${SYMLINK_MANFILES} - if [ -f ${DESTDIR}${PREFIX}/man/man1/g${f} ]; then \ - ${LN} -sf ../../../man/man1/g${f} \ + if [ -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/g${f} ]; then \ + ${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f} \ ${DESTDIR}${PREFIX}/${PKGGNUDIR}man/man1/${f}; \ - elif [ -f ${DESTDIR}${PREFIX}/man/man1/${f} ]; then \ - ${MV} -f ${DESTDIR}${PREFIX}/man/man1/${f} \ - ${DESTDIR}${PREFIX}/man/man1/g${f}; \ - ${LN} -sf ../../../man/man1/g${f} \ + elif [ -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${f} ]; then \ + ${MV} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${f} \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/g${f}; \ + ${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f} \ ${DESTDIR}${PREFIX}/${PKGGNUDIR}man/man1/${f}; \ fi .endfor |