diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ldconfig_compat/Makefile | 3 | ||||
-rw-r--r-- | misc/ldconfig_compat/bsd.ldconfig.mk | 2 | ||||
-rw-r--r-- | misc/ldconfig_compat/files/ldconfig_compat.sh.in | 12 |
3 files changed, 14 insertions, 3 deletions
diff --git a/misc/ldconfig_compat/Makefile b/misc/ldconfig_compat/Makefile index 888b598..c6d0cc0 100644 --- a/misc/ldconfig_compat/Makefile +++ b/misc/ldconfig_compat/Makefile @@ -7,7 +7,7 @@ PORTNAME= ldconfig_compat PORTVERSION= 1.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= misc MASTER_SITES= # none DISTFILES= # none @@ -61,6 +61,7 @@ do-install: .for prefix in ${LOCAL_PREFIXES} @${ECHO_CMD} "@cwd ${prefix}" >> ${TMPPLIST} .for dir in ${LOCAL_DIRS} + echo creating ${prefix}/${dir} @${MKDIR} -p ${prefix}/${dir} @${ECHO_CMD} "@exec mkdir -p %D/${dir}" >> ${TMPPLIST} @${ECHO_CMD} "@unexec rmdir %D/${dir} 2>/dev/null || true" >> ${TMPPLIST} diff --git a/misc/ldconfig_compat/bsd.ldconfig.mk b/misc/ldconfig_compat/bsd.ldconfig.mk index e69de29..416f4c5 100644 --- a/misc/ldconfig_compat/bsd.ldconfig.mk +++ b/misc/ldconfig_compat/bsd.ldconfig.mk @@ -0,0 +1,2 @@ +LDCONFIG_DIR= libdata/ldconfig +LDCONFIG32_DIR= libdata/ldconfig32 diff --git a/misc/ldconfig_compat/files/ldconfig_compat.sh.in b/misc/ldconfig_compat/files/ldconfig_compat.sh.in index 1c6f4a4..a489903 100644 --- a/misc/ldconfig_compat/files/ldconfig_compat.sh.in +++ b/misc/ldconfig_compat/files/ldconfig_compat.sh.in @@ -20,6 +20,8 @@ load_rc_config $name ldconfig_start() { + local _files + _ins= ldconfig=${ldconfig_command} checkyesno ldconfig_insecure && _ins="-i" @@ -27,7 +29,10 @@ ldconfig_start() ldconfig_paths="" for i in ${ldconfig_local_dirs}; do if [ -d "${i}" ]; then - ldconfig_paths="${ldconfig_paths} `find ${i} -type f`" + _files=`find ${i} -type f` + if [ -n "${_files}" ]; then + ldconfig_paths="${ldconfig_paths} `cat ${_files} | sort -u`" + fi fi done echo 'Local ldconfig path:' ${ldconfig_paths} @@ -38,7 +43,10 @@ ldconfig_start() ldconfig32_paths="" for i in ${ldconfig_local32_dirs}; do if [ -d "${i}" ]; then - ldconfig32_paths="${ldconfig32_paths} `find ${i} -type f`" + _files=`find ${i} -type f` + if [ -n "${_files}" ]; then + ldconfig32_paths="${ldconfig32_paths} `cat ${_files} | sort -u`" + fi fi done echo 'Local 32-bits ldconfig path:' ${ldconfig32_paths} |