Index: share/mk/bsd.lib.mk =================================================================== --- share/mk/bsd.lib.mk +++ share/mk/bsd.lib.mk @@ -411,6 +411,11 @@ .include .endif +LINKOWN= ${LIBOWN} +LINKGRP= ${LIBGRP} +LINKMODE= ${LIBMODE} +SYMLINKOWN= ${LIBOWN} +SYMLINKGRP= ${LIBGRP} .include .if ${MK_MAN} != "no" && !defined(LIBRARIES_ONLY) Index: share/mk/bsd.man.mk =================================================================== --- share/mk/bsd.man.mk +++ share/mk/bsd.man.mk @@ -51,6 +51,7 @@ .endif MINSTALL?= ${INSTALL} ${TAG_ARGS} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} +LINKMODE= ${MANMODE} CATDIR= ${MANDIR:H:S/$/\/cat/} CATEXT= .cat Index: share/mk/bsd.own.mk =================================================================== --- share/mk/bsd.own.mk +++ share/mk/bsd.own.mk @@ -202,9 +202,15 @@ # # install(1) parameters. # -HRDLINK?= -l h -SYMLINK?= -l s -RSYMLINK?= -l rs +LINKOWN?= ${BINOWN} +LINKGRP?= ${BINGRP} +LINKMODE?= ${NOBINMODE} +SYMLINKOWN?= ${BINOWN} +SYMLINKGRP?= ${BINGRP} +SYMLINKMODE?= 755 +HRDLINK?= -l h -o ${LINKOWN} -g ${LINKGRP} -m ${LINKMODE} +SYMLINK?= -l s -o ${SYMLINKOWN} -g ${SYMLINKGRP} -m ${SYMLINKMODE} +RSYMLINK?= -l rs -o ${SYMLINKOWN} -g ${SYMLINKGRP} -m ${SYMLINKMODE} INSTALL_LINK?= ${INSTALL} ${HRDLINK} INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} Index: share/mk/bsd.prog.mk =================================================================== --- share/mk/bsd.prog.mk +++ share/mk/bsd.prog.mk @@ -281,6 +281,8 @@ .include .include .include + +LINKMODE= ${BINMODE} .include .if ${MK_MAN} != "no" Index: usr.bin/calendar/Makefile =================================================================== --- usr.bin/calendar/Makefile +++ usr.bin/calendar/Makefile @@ -24,12 +24,12 @@ .endfor .for link in ${DE_LINKS} rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link} - ${INSTALL} ${TAG_ARGS} -l s de_DE.ISO8859-1 \ + ${INSTALL_SYMLINK} ${TAG_ARGS} de_DE.ISO8859-1 \ ${DESTDIR}${SHAREDIR}/calendar/${link} .endfor .for link in ${FR_LINKS} rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link} - ${INSTALL} ${TAG_ARGS} -l s fr_FR.ISO8859-1 \ + ${INSTALL_SYMLINK} ${TAG_ARGS} fr_FR.ISO8859-1 \ ${DESTDIR}${SHAREDIR}/calendar/${link} .endfor