diff options
| -rw-r--r-- | misc/ldconfig_compat/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/ldconfig_compat/Makefile b/misc/ldconfig_compat/Makefile index 51ae1b719ac8..888b5987a359 100644 --- a/misc/ldconfig_compat/Makefile +++ b/misc/ldconfig_compat/Makefile @@ -7,7 +7,7 @@ PORTNAME= ldconfig_compat PORTVERSION= 1.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= misc MASTER_SITES= # none DISTFILES= # none @@ -55,6 +55,9 @@ do-install: @${INSTALL_SCRIPT} ${WRKDIR}/ldconfig_compat.sh ${PREFIX}/etc/rc.d/000.ldconfig_compat.sh @${ECHO_CMD} "etc/rc.d/000.ldconfig_compat.sh" >> ${TMPPLIST} .endif +# Special case, recent RELENG_4 versions have no /etc/rc.d/ldconfig script, but directories +# are present in BSD.{x11,local}.dist. +.if !( ${OSVERSION} >= 492101 && ${OSVERSION} < 500000 ) .for prefix in ${LOCAL_PREFIXES} @${ECHO_CMD} "@cwd ${prefix}" >> ${TMPPLIST} .for dir in ${LOCAL_DIRS} @@ -63,5 +66,6 @@ do-install: @${ECHO_CMD} "@unexec rmdir %D/${dir} 2>/dev/null || true" >> ${TMPPLIST} .endfor .endfor +.endif .include <bsd.port.post.mk> |
