Compare commits
2 Commits
v0.6.5.8-4
...
v0.6.5.8-7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9b9d9825b | ||
|
|
0c6f5455b8 |
10
Makefile
10
Makefile
@@ -9,13 +9,14 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
export SRCPKG = zfs
|
export SRCPKG = zfs
|
||||||
export DEPENDS = glibc,libzfs,util-linux,zlib
|
export DEPENDS = glibc,libzfs,util-linux,spl,zlib
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = http://zfsonlinux.org/
|
export URL = http://zfsonlinux.org/
|
||||||
|
REPO = main
|
||||||
BRIEF = Module and utilities for the ZFS file system
|
BRIEF = Module and utilities for the ZFS file system
|
||||||
DESC = ZFS is an advanced file system and volume manager which was originally \
|
DESC = ZFS is an advanced file system and volume manager which was originally \
|
||||||
developed for Solaris and is now maintained by the Illumos community.
|
developed for Solaris and is now maintained by the Illumos community.
|
||||||
SNAPVER = 4
|
SNAPVER = 7
|
||||||
|
|
||||||
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')
|
||||||
@@ -78,7 +79,10 @@ $(ROOT): $(SRCDIR)/module/zfs/zfs.ko
|
|||||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
||||||
mv $(ROOT)/etc/default/zfs $(ROOT)/usr/share/zfs/zfs.default && \
|
mv $(ROOT)/etc/default/zfs $(ROOT)/usr/share/zfs/zfs.default && \
|
||||||
rmdir $(ROOT)/etc/default && \
|
rmdir $(ROOT)/etc/default && \
|
||||||
install -v -d -m 755 $(ROOT)/etc/zfs
|
install -v -d -m 755 $(ROOT)/etc/zfs && \
|
||||||
|
install -v -d -m 755 $(ROOT)/lib/modules/$(PACKAGE) && \
|
||||||
|
mv -v $(ROOT)/lib/modules/*/* $(ROOT)/lib/modules/$(PACKAGE) && \
|
||||||
|
rm -vrf $(ROOT)/usr/share/initramfs-tools
|
||||||
|
|
||||||
@install -v -d $(LIB)/SNAP && \
|
@install -v -d $(LIB)/SNAP && \
|
||||||
install -v -d $(LIBROOT) && \
|
install -v -d $(LIBROOT) && \
|
||||||
|
|||||||
@@ -11,5 +11,6 @@
|
|||||||
DEPENDS = glibc,util-linux,zlib
|
DEPENDS = glibc,util-linux,zlib
|
||||||
BRIEF = Runtime library for ZFS
|
BRIEF = Runtime library for ZFS
|
||||||
DESC = Runtime library for ZFS
|
DESC = Runtime library for ZFS
|
||||||
|
REPO = main
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|||||||
@@ -11,5 +11,6 @@
|
|||||||
DEPENDS = libzfs
|
DEPENDS = libzfs
|
||||||
BRIEF = Development files for ZFS
|
BRIEF = Development files for ZFS
|
||||||
DESC = Development files for ZFS
|
DESC = Development files for ZFS
|
||||||
|
REPO = dev
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|||||||
15
SNAP/usher
15
SNAP/usher
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -7,9 +7,18 @@ case $1 in
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
postinst)
|
postinst)
|
||||||
if [ ! -f ${TARGET}/etc/default/zfs ]; then
|
if [ ! -f /etc/default/zfs ]; then
|
||||||
cp ${TARGET}/usr/share/zfs/zfs.default /etc/default/zfs
|
cp /usr/share/zfs/zfs.default /etc/default/zfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /usr/share/mkinitramfs/mods/zfs ]; then
|
||||||
|
cp /usr/share/zfs/zfs.mods /usr/share/mkinitramfs/mods/zfs
|
||||||
|
fi
|
||||||
|
if [ ! -f /usr/share/mkinitramfs/bins/zfs ]; then
|
||||||
|
cp /usr/share/zfs/zfs.bins /usr/share/mkinitramfs/bins/zfs
|
||||||
|
fi
|
||||||
|
|
||||||
|
depmod
|
||||||
;;
|
;;
|
||||||
prerm)
|
prerm)
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user