diff options
author | bapt <bapt@FreeBSD.org> | 2014-12-26 20:43:44 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-12-26 20:43:44 +0800 |
commit | 8583a634691cf4f3f3a7528c6a0a7a1bc92de839 (patch) | |
tree | 441699559e408c095c00525e4626070ae8422c40 /Keywords | |
parent | f75f09910cec22ece8dcc5856786255f0808f97d (diff) | |
download | freebsd-ports-gnome-8583a634691cf4f3f3a7528c6a0a7a1bc92de839.tar.gz freebsd-ports-gnome-8583a634691cf4f3f3a7528c6a0a7a1bc92de839.tar.zst freebsd-ports-gnome-8583a634691cf4f3f3a7528c6a0a7a1bc92de839.zip |
Use a custom keyword for kldxref, that allows to control exactly when it is run
and work nicer with automatic directly support from pkg
Differential Revision: https://reviews.freebsd.org/D1377
Reviewed by: rene, antoine
Approved by: rene
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/kld.ucl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Keywords/kld.ucl b/Keywords/kld.ucl new file mode 100644 index 000000000000..d13a0a86f5b3 --- /dev/null +++ b/Keywords/kld.ucl @@ -0,0 +1,24 @@ +# $FreeBSD$ +# +# MAINTAINER: rene@FreeBSD.org + +actions: [] +post-install: <<EOD + case "%@" in + /*) kmoddir="%@" ;; + *) kmoddir="%D/%@" ;; + esac + /usr/sbin/kldxref ${kmoddir} +EOD +post-deinstall: <<EOD + case "%@" in + /*) kmoddir="%@" ;; + *) kmoddir="%D/%@" ;; + esac + /usr/sbin/kldxref ${kmoddir} + case "${kmoddir}" in + %D/*) ;; + /boot/modules) ;; + *) rmdir -p ${kmoddir} 2>/dev/null || true ;; + esac +EOD |