8d8d775b8b
and work nicer with automatic directly support from pkg Differential Revision: https://reviews.freebsd.org/D1377 Reviewed by: rene, antoine Approved by: rene
24 lines
415 B
Text
24 lines
415 B
Text
# $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
|