diff options
Diffstat (limited to 'mk/pkginstall/install')
-rw-r--r-- | mk/pkginstall/install | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/mk/pkginstall/install b/mk/pkginstall/install index 45c79319db4..598cec620c3 100644 --- a/mk/pkginstall/install +++ b/mk/pkginstall/install @@ -1,4 +1,4 @@ -# $NetBSD: install,v 1.2 2007/07/18 18:01:03 jlam Exp $ +# $NetBSD: install,v 1.3 2014/12/30 15:13:20 wiz Exp $ case ${STAGE} in PRE-INSTALL) @@ -17,23 +17,6 @@ PRE-INSTALL) else exit 1 fi; } - # - # Create package directories at pre-install time. - # - if [ "${PKG_INSTALLATION_TYPE}" = "pkgviews" -a \ - "${_PKG_CONFIG}" = "yes" -a -n "${CONF_DEPENDS}" ]; then - pkg=`${PKG_ADMIN} -b -d ${DEPOTBASE} -s "" lsbest "${CONF_DEPENDS}"` - sysconfdir=`${PKG_INFO} -B -K ${DEPOTBASE} $pkg | \ - ${AWK} '/^PKG_SYSCONFDIR=/ { \ - gsub("^PKG_SYSCONFDIR=[ ]*", ""); \ - print; \ - }' \ - ` - if [ -d $sysconfdir -a ! -d ${PKG_SYSCONFDIR} ]; then - ${MKDIR} -p `${DIRNAME} ${PKG_SYSCONFDIR}` - ${LN} -sf $sysconfdir ${PKG_SYSCONFDIR} - fi - fi ${TEST} ! -x ./+DIRS || ./+DIRS ADD ${PKG_METADATA_DIR} ${TEST} ! -x ./+DIRS || @@ -74,9 +57,7 @@ POST-INSTALL) ./+FILES CHECK-ADD ${PKG_METADATA_DIR} ${TEST} ! -x ./+FILES || ./+FILES CHECK-PERMS ${PKG_METADATA_DIR} - ;; -VIEW-INSTALL) # # Register shells in /etc/shells. # @@ -89,14 +70,6 @@ VIEW-INSTALL) # ${TEST} ! -x ./+INFO_FILES || ./+INFO_FILES ADD ${PKG_METADATA_DIR} - - # If ${PKG_SYSCONFBASE} points outside of ${PREFIX}, then add the - # package config files to the proper view. - # - if [ "${_PKG_CONFIG}" = "yes" -a -n "${PKG_SYSCONFDEPOTBASE}" ]; then - ${SETENV} PLIST_IGNORE_FILES="${CONF_IGNORE_FILES}" \ - ${LINKFARM} -t ${PKG_SYSCONFVIEWBASE} -d ${PKG_SYSCONFDEPOTBASE} ${PKGNAME} - fi ;; esac |