2 Commits

Author SHA1 Message Date
Jay Larson
0b8e66fec4 The following changes were made:
* Added REPO
  * usher now uses /bin/sh
  * Removed TARGET from usher
2018-04-06 13:25:49 -05:00
Jay Larson
23bea2b413 Added usher to run depmod after install 2017-05-30 21:51:48 +00:00
3 changed files with 26 additions and 2 deletions

View File

@@ -10,10 +10,13 @@
export SRCPKG = spl export SRCPKG = spl
export DEPENDS = glibc export DEPENDS = glibc
export BUILDDEPS = gcc
export ARCH = x86_64 export ARCH = x86_64
export URL = http://zfsonlinux.org/ export URL = http://zfsonlinux.org/
REPO = main
BRIEF = Interface for OpenZFS
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 = 4
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')
@@ -69,7 +72,9 @@ $(ROOT): $(SRCDIR)/module/spl/spl.ko
mkdir -v $(ROOT); \ mkdir -v $(ROOT); \
fi fi
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
install -v -d -m 755 $(ROOT)/lib/modules/$(PACKAGE) && \
mv $(ROOT)/lib/modules/*/* $(ROOT)/lib/modules/$(PACKAGE)
@install -d -v $(DEV)/SNAP && \ @install -d -v $(DEV)/SNAP && \
install -d -v $(DEVROOT)/usr && \ install -d -v $(DEVROOT)/usr && \

View File

@@ -9,6 +9,7 @@
# GNU General Public License for more details. # GNU General Public License for more details.
DEPENDS = spl DEPENDS = spl
REPO = dev
BRIEF = Development files for spl BRIEF = Development files for spl
DESC = Development files for spl DESC = Development files for spl

18
SNAP/usher Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
set -e
case $1 in
preinst)
exit 0
;;
postinst)
depmod
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac