aboutsummaryrefslogtreecommitdiffstats
path: root/Keywords
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-05-30 07:08:43 +0800
committerbapt <bapt@FreeBSD.org>2016-05-30 07:08:43 +0800
commite3d0f7c333e99356a7dd4c4daf6c1e5d74cc4575 (patch)
tree88c594473bcd809525dc66da5c43e6f312e0656f /Keywords
parent176cb402e0bd62bd1a4239d8bf0a8bd46c755a89 (diff)
downloadfreebsd-ports-gnome-e3d0f7c333e99356a7dd4c4daf6c1e5d74cc4575.tar.gz
freebsd-ports-gnome-e3d0f7c333e99356a7dd4c4daf6c1e5d74cc4575.tar.zst
freebsd-ports-gnome-e3d0f7c333e99356a7dd4c4daf6c1e5d74cc4575.zip
Make @kld PKG_ROOTDIR friendly
Diffstat (limited to 'Keywords')
-rw-r--r--Keywords/kld.ucl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Keywords/kld.ucl b/Keywords/kld.ucl
index d13a0a86f5b3..b8038d16cef8 100644
--- a/Keywords/kld.ucl
+++ b/Keywords/kld.ucl
@@ -8,17 +8,17 @@ post-install: <<EOD
/*) kmoddir="%@" ;;
*) kmoddir="%D/%@" ;;
esac
- /usr/sbin/kldxref ${kmoddir}
+ /usr/sbin/kldxref ${PKG_ROOTDIR}${kmoddir}
EOD
post-deinstall: <<EOD
case "%@" in
/*) kmoddir="%@" ;;
*) kmoddir="%D/%@" ;;
esac
- /usr/sbin/kldxref ${kmoddir}
+ /usr/sbin/kldxref ${PKG_ROOTDIR}${kmoddir}
case "${kmoddir}" in
%D/*) ;;
/boot/modules) ;;
- *) rmdir -p ${kmoddir} 2>/dev/null || true ;;
+ *) rmdir -p ${PKG_ROOTDIR}${kmoddir} 2>/dev/null || true ;;
esac
EOD