]> git.proxmox.com Git - zfs-grub.git/blobdiff - Makefile
bump version to 2.02-pve3
[zfs-grub.git] / Makefile
index 21a63cd296e5b9df75bce6c0fa89de54302757e4..fe3818d8407267a524b156ac1ea5d897efa3f260 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-RELEASE=3.3
+RELEASE=4.0
 
-GRUB_DIR=grub-2.02~beta2
-GRUB_SRC=grub2_2.02~beta2.orig.tar.xz
-GRUB_DEB_SRC=grub2_2.02~beta2-19.debian.tar.xz
+GRUB_DIR=grub
+GRUB_SRC=${GRUB_DIR}.tar.gz
+SNAPVER=2.02-beta2.9-ZOL11-7aa9f6
 
 # update/sync changelog.pve
-DEBVER=2.02~bpo70+2
+DEBVER=2.02-pve3
 
 PC_DEBS=                                       \
 grub2-common_${DEBVER}_amd64.deb               \
@@ -25,22 +25,6 @@ grub-efi-ia32-bin_${DEBVER}_amd64.deb                \
 
 DEBS=${PC_DEBS} ${EFI_DEBS}
 
-
-#grub2_${DEBVER}_amd64.deb
-#grub-coreboot_${DEBVER}_amd64.deb
-#grub-coreboot-bin_${DEBVER}_amd64.deb
-#grub-coreboot-dbg_${DEBVER}_amd64.deb
-#grub-efi-amd64-dbg_${DEBVER}_amd64.deb
-#grub-efi-ia32-dbg_${DEBVER}_amd64.deb
-#grub-emu_${DEBVER}_amd64.deb
-#grub-emu-dbg_${DEBVER}_amd64.deb
-#grub-firmware-qemu_${DEBVER}_amd64.deb
-#grub-ieee1275_${DEBVER}_amd64.deb
-#grub-ieee1275-bin_${DEBVER}_amd64.deb
-#grub-ieee1275-dbg_${DEBVER}_amd64.deb
-#grub-linuxbios_${DEBVER}_amd64.deb
-
-
 all: ${DEBS}
 
 .PHONY: dinstall
@@ -51,17 +35,22 @@ dinstall: ${DEBS}
 grub ${DEBS}:
        rm -rf ${GRUB_DIR}
        tar xf ${GRUB_SRC}
-       cd ${GRUB_DIR}; tar xf ../${GRUB_DEB_SRC}
        mv ${GRUB_DIR}/debian/changelog ${GRUB_DIR}/debian/changelog.org
        cat changelog.pve ${GRUB_DIR}/debian/changelog.org > ${GRUB_DIR}/debian/changelog
        cd ${GRUB_DIR}; ln -s ../pvepatches patches
        cd ${GRUB_DIR}; quilt push -a
+       # hack: remove quilt dir, so that dpkg-buildpackage correctly apply
+       # all debian patches
+       rm -rf ${GRUB_DIR}/.pc ${GRUB_DIR}/patches
        cd ${GRUB_DIR}; dpkg-buildpackage -b -uc -us 
 
 .PHONY: download
 download:
-       wget http://ftp.de.debian.org/debian/pool/main/g/grub2/grub2_2.02~beta2-19.debian.tar.xz
-       wget http://ftp.de.debian.org/debian/pool/main/g/grub2/grub2_2.02~beta2.orig.tar.xz
+       rm -rf grub ${GRUB_SRC} ${GRUB_SRC}.tmp
+       git clone https://github.com/zfsonlinux/grub
+       cd grub; git checkout snapshot/debian/jessie/${SNAPVER}
+       tar czf ${GRUB_SRC}.tmp grub
+       mv ${GRUB_SRC}.tmp ${GRUB_SRC}
 
 .PHONY: upload
 upload: ${DEBS}