1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/Keywords/kld.ucl

25 lines
415 B
Plaintext
Raw Normal View History

# $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