1 # $NetBSD: shlibs,v 1.1 2007/07/23 15:23:48 jlam Exp $
3 # Generate a +SHLIBS script that updates the system run-time library
4 # search paths database for the package.
7 UNPACK,|UNPACK,+SHLIBS)
8 ${CAT} > ./+SHLIBS << 'EOF'
11 # +SHLIBS - system run-time library search paths database management script
13 # Usage: ./+SHLIBS ADD|REMOVE [metadatadir]
15 # This scripts rebuilds the system database of run-time library search
16 # paths so that the system can find the shared libraries of the package
17 # associated with <metadatadir>.
28 PKG_METADATA_DIR="${2-${CURDIR}}"
29 : ${PKGNAME=${PKG_METADATA_DIR##*/}}
30 : ${PKG_PREFIX=@PREFIX@}
35 ${ECHO} "${PKGNAME}: rebuilding run-time library search paths database"
36 ( @LDCONFIG_ADD_CMD@ ) >/dev/null 2>&1 || ${TRUE}
40 ${ECHO} "${PKGNAME}: rebuilding run-time library search paths database"
41 ( @LDCONFIG_REMOVE_CMD@ ) >/dev/null 2>&1 || ${TRUE}
47 ${SED} -n "/^\# SHLIBS: /p" ${SELF} >> ./+SHLIBS