Welcome to mirror list, hosted at ThFree Co, Russian Federation.

kld.ucl « Keywords - github.com/freebsd/freebsd-ports.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae95026cdfccf097353849044a44506bd2999ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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