1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/Keywords/kld.ucl
Mathieu Arnold 5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00

23 lines
443 B
Plaintext

# 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