1 Commits

Author SHA1 Message Date
Jay Larson
23bea2b413 Added usher to run depmod after install 2017-05-30 21:51:48 +00:00
2 changed files with 23 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ export DEPENDS = glibc
export ARCH = x86_64 export ARCH = x86_64
export URL = http://zfsonlinux.org/ export URL = http://zfsonlinux.org/
DESC = A shim layer which adds the core interfaces required for OpenZFS DESC = A shim layer which adds the core interfaces required for OpenZFS
SNAPVER = 2 SNAPVER = 3
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')

22
SNAP/usher Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [[ ${TARGET} ]]; then
chroot ${TARGET} depmod
else
depmod
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac