freebsd-ports/Keywords/kld.ucl
2016-05-29 23:08:43 +00:00

24 lines
457 B
Text

# $FreeBSD$
#
# MAINTAINER: rene@FreeBSD.org
actions: []
post-install: <<EOD
case "%@" in
/*) kmoddir="%@" ;;
*) kmoddir="%D/%@" ;;
esac
/usr/sbin/kldxref ${PKG_ROOTDIR}${kmoddir}
EOD
post-deinstall: <<EOD
case "%@" in
/*) kmoddir="%@" ;;
*) kmoddir="%D/%@" ;;
esac
/usr/sbin/kldxref ${PKG_ROOTDIR}${kmoddir}
case "${kmoddir}" in
%D/*) ;;
/boot/modules) ;;
*) rmdir -p ${PKG_ROOTDIR}${kmoddir} 2>/dev/null || true ;;
esac
EOD