]> git.proxmox.com Git - zfs-grub.git/blob - Makefile
bump version to 2.02-pve3
[zfs-grub.git] / Makefile
1 RELEASE=4.0
2
3 GRUB_DIR=grub
4 GRUB_SRC=${GRUB_DIR}.tar.gz
5 SNAPVER=2.02-beta2.9-ZOL11-7aa9f6
6
7 # update/sync changelog.pve
8 DEBVER=2.02-pve3
9
10 PC_DEBS= \
11 grub2-common_${DEBVER}_amd64.deb \
12 grub-common_${DEBVER}_amd64.deb \
13 grub-efi-amd64-bin_${DEBVER}_amd64.deb \
14 grub-pc_${DEBVER}_amd64.deb \
15 grub-pc-bin_${DEBVER}_amd64.deb \
16 grub-pc-dbg_${DEBVER}_amd64.deb \
17 grub-rescue-pc_${DEBVER}_amd64.deb \
18 grub-theme-starfield_${DEBVER}_amd64.deb
19
20 EFI_DEBS= \
21 grub-efi_${DEBVER}_amd64.deb \
22 grub-efi-amd64_${DEBVER}_amd64.deb \
23 grub-efi-ia32_${DEBVER}_amd64.deb \
24 grub-efi-ia32-bin_${DEBVER}_amd64.deb \
25
26 DEBS=${PC_DEBS} ${EFI_DEBS}
27
28 all: ${DEBS}
29
30 .PHONY: dinstall
31 dinstall: ${DEBS}
32 dpkg -i ${PC_DEBS}
33
34 .PHONY: grub
35 grub ${DEBS}:
36 rm -rf ${GRUB_DIR}
37 tar xf ${GRUB_SRC}
38 mv ${GRUB_DIR}/debian/changelog ${GRUB_DIR}/debian/changelog.org
39 cat changelog.pve ${GRUB_DIR}/debian/changelog.org > ${GRUB_DIR}/debian/changelog
40 cd ${GRUB_DIR}; ln -s ../pvepatches patches
41 cd ${GRUB_DIR}; quilt push -a
42 # hack: remove quilt dir, so that dpkg-buildpackage correctly apply
43 # all debian patches
44 rm -rf ${GRUB_DIR}/.pc ${GRUB_DIR}/patches
45 cd ${GRUB_DIR}; dpkg-buildpackage -b -uc -us
46
47 .PHONY: download
48 download:
49 rm -rf grub ${GRUB_SRC} ${GRUB_SRC}.tmp
50 git clone https://github.com/zfsonlinux/grub
51 cd grub; git checkout snapshot/debian/jessie/${SNAPVER}
52 tar czf ${GRUB_SRC}.tmp grub
53 mv ${GRUB_SRC}.tmp ${GRUB_SRC}
54
55 .PHONY: upload
56 upload: ${DEBS}
57 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
58 mkdir -p /pve/${RELEASE}/extra
59 rm -f /pve/${RELEASE}/extra/grub2-*.deb
60 rm -f /pve/${RELEASE}/extra/grub-*.deb
61 cp ${DEBS} /pve/${RELEASE}/extra
62 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
63 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
64
65 .PHONY: distclean
66 distclean: clean
67
68 clean:
69 rm -rf *~ *.deb *.udeb *.changes ${GRUB_DIR}