Split off separate spl-dev package
This commit is contained in:
23
Makefile
23
Makefile
@@ -8,17 +8,22 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = glibc
|
export SRCPKG = spl
|
||||||
ARCH = x86_64
|
export DEPENDS = glibc
|
||||||
URL = http://zfsonlinux.org/
|
export ARCH = x86_64
|
||||||
|
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 = sr1
|
SNAPVER = 2
|
||||||
|
|
||||||
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')
|
||||||
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
||||||
PATCHDIR := $(PWD)/SRC/patches
|
PATCHDIR := $(PWD)/SRC/patches
|
||||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER)
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
||||||
|
sed 's/^-//')-$(SNAPVER)
|
||||||
|
|
||||||
|
DEV := $(PWD)/spl-dev
|
||||||
|
DEVROOT := $(DEV)/ROOT
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
@@ -46,6 +51,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
|
|||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--bindir=/bin \
|
--bindir=/bin \
|
||||||
|
--program-prefix='' \
|
||||||
--libdir=/lib \
|
--libdir=/lib \
|
||||||
--libexecdir=/usr/lib \
|
--libexecdir=/usr/lib \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
@@ -65,12 +71,19 @@ $(ROOT): $(SRCDIR)/module/spl/spl.ko
|
|||||||
|
|
||||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
|
||||||
|
|
||||||
|
@install -d -v $(DEV)/SNAP && \
|
||||||
|
install -d -v $(DEVROOT)/usr && \
|
||||||
|
mv -v $(ROOT)/usr/src $(DEVROOT)/usr/src && \
|
||||||
|
find $(ROOT) -type d -empty -delete && \
|
||||||
|
cd $(DEV) && make -f ../Makefile.spl-dev && mv *.snap ../
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
make check
|
make check
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
|
$(DEV) \
|
||||||
$(SNAPINFO) \
|
$(SNAPINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
|
|||||||
15
Makefile.spl-dev
Normal file
15
Makefile.spl-dev
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# This file is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
|
# published by the Free Software Foundation here:
|
||||||
|
# (http://www.gnu.org/licenses/gpl-2.0.html)
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
DEPENDS = spl
|
||||||
|
BRIEF = Development files for spl
|
||||||
|
DESC = Development files for spl
|
||||||
|
|
||||||
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
Reference in New Issue
Block a user