]>
Commit | Line | Data |
---|---|---|
b03175e9 | 1 | RELEASE=5.1 |
e0bc0ec8 DM |
2 | |
3 | # source form https://github.com/zfsonlinux/ | |
4 | ||
cabb465d | 5 | ZFSVER=0.7.9 |
849c4677 | 6 | ZFSPKGREL=pve1~bpo9 |
b03175e9 | 7 | SPLPKGREL=pve1~bpo9 |
e479455e DM |
8 | ZFSPKGVER=${ZFSVER}-${ZFSPKGREL} |
9 | SPLPKGVER=${ZFSVER}-${SPLPKGREL} | |
e0bc0ec8 | 10 | |
8a19f2ad FG |
11 | SPLDIR=spl-build |
12 | SPLSRC=spl-debian | |
13 | ZFSDIR=zfs-build | |
14 | ZFSSRC=zfs-debian | |
e0bc0ec8 | 15 | |
47ae0e26 | 16 | SPL_DEB = \ |
479d451f | 17 | spl_${SPLPKGVER}_amd64.deb |
4da8cd3a | 18 | |
47ae0e26 WB |
19 | ZFS_DEB1= libnvpair1linux_${ZFSPKGVER}_amd64.deb |
20 | ZFS_DEB2= \ | |
23db3640 FG |
21 | libuutil1linux_${ZFSPKGVER}_amd64.deb \ |
22 | libzfs2linux_${ZFSPKGVER}_amd64.deb \ | |
23 | libzfslinux-dev_${ZFSPKGVER}_amd64.deb \ | |
24 | libzpool2linux_${ZFSPKGVER}_amd64.deb \ | |
e479455e | 25 | zfs-dbg_${ZFSPKGVER}_amd64.deb \ |
23db3640 FG |
26 | zfs-zed_${ZFSPKGVER}_amd64.deb \ |
27 | zfs-initramfs_${ZFSPKGVER}_all.deb \ | |
2ce263d2 | 28 | zfs-test_${ZFSPKGVER}_amd64.deb \ |
23db3640 | 29 | zfsutils-linux_${ZFSPKGVER}_amd64.deb |
47ae0e26 | 30 | ZFS_DEBS= $(ZFS_DEB1) $(ZFS_DEB2) |
e0bc0ec8 | 31 | |
47ae0e26 | 32 | DEBS=${SPL_DEB} ${ZFS_DEBS} |
e0bc0ec8 | 33 | |
58a974f8 FG |
34 | all: deb |
35 | deb: ${DEBS} | |
e0bc0ec8 DM |
36 | |
37 | .PHONY: dinstall | |
38 | dinstall: ${DEBS} | |
39 | dpkg -i ${DEBS} | |
40 | ||
8a19f2ad FG |
41 | .PHONY: submodule |
42 | submodule: | |
43 | test -f "${ZFSSRC}/debian/changelog" || git submodule update --init | |
44 | test -f "${SPLSRC}/debian/changelog" || git submodule update --init | |
45 | ||
4da8cd3a | 46 | .PHONY: spl |
47ae0e26 WB |
47 | spl: ${SPL_DEB} |
48 | ${SPL_DEB}: ${SPLSRC} | |
e0bc0ec8 | 49 | rm -rf ${SPLDIR} |
8a19f2ad FG |
50 | mkdir ${SPLDIR} |
51 | cp -a ${SPLSRC}/* ${SPLDIR}/ | |
e479455e DM |
52 | mv ${SPLDIR}/debian/changelog ${SPLDIR}/debian/changelog.org |
53 | cat spl-changelog.Debian ${SPLDIR}/debian/changelog.org > ${SPLDIR}/debian/changelog | |
54 | cd ${SPLDIR}; ln -s ../spl-patches patches | |
55 | cd ${SPLDIR}; quilt push -a | |
56 | cd ${SPLDIR}; rm -rf .pc ./patches | |
38b6b3a1 | 57 | cd ${SPLDIR}; dpkg-buildpackage -b -uc -us |
8d6c7ec5 | 58 | |
4da8cd3a | 59 | .PHONY: zfs |
47ae0e26 WB |
60 | zfs: $(ZFS_DEBS) |
61 | $(ZFS_DEB2): $(ZFS_DEB1) | |
62 | $(ZFS_DEB1): $(ZFSSRC) | |
8d6c7ec5 | 63 | rm -rf ${ZFSDIR} |
8a19f2ad FG |
64 | mkdir ${ZFSDIR} |
65 | cp -a ${ZFSSRC}/* ${ZFSDIR}/ | |
e479455e DM |
66 | mv ${ZFSDIR}/debian/changelog ${ZFSDIR}/debian/changelog.org |
67 | cat zfs-changelog.Debian ${ZFSDIR}/debian/changelog.org > ${ZFSDIR}/debian/changelog | |
68 | cd ${ZFSDIR}; ln -s ../zfs-patches patches | |
69 | cd ${ZFSDIR}; quilt push -a | |
70 | cd ${ZFSDIR}; rm -rf .pc ./patches | |
38b6b3a1 | 71 | cd ${ZFSDIR}; dpkg-buildpackage -b -uc -us |
8d6c7ec5 | 72 | |
e0bc0ec8 DM |
73 | .PHONY: clean |
74 | clean: | |
1e88a708 | 75 | rm -rf *~ *.deb *.changes *.buildinfo ${ZFSDIR} ${SPLDIR} |
e0bc0ec8 DM |
76 | |
77 | .PHONY: distclean | |
78 | distclean: clean | |
79 | ||
80 | ||
81 | .PHONY: upload | |
82 | upload: ${DEBS} | |
8a088a9e | 83 | tar -cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch --arch amd64 |