]> git.proxmox.com Git - drbd-utils.git/blobdiff - Makefile
update sources to 8.9.8-1
[drbd-utils.git] / Makefile
index 4b7ef43b62c2817e6a9daae4f65cd17ae37c230c..4aa411b784e21d94736d9047914bb68825e3dee6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
-RELEASE=4.0
+RELEASE=4.2
 
 PACKAGE=drbd-utils
 PKGREL=1
 
-DRBDVER=8.9.2~rc3
+DRBDVER=8.9.8
 DRBDDIR=${PACKAGE}
 DRBDSRC=${DRBDDIR}.tgz
 
@@ -21,25 +21,18 @@ deb ${DEBS}: ${DRBDSRC}
        mv ${DRBDDIR}/debian ${DRBDDIR}/debian.old
        rsync -a debian ${DRBDDIR}
        cd ${DRBDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
-       lintian ${DEBS}
+       -lintian ${DEBS}
 
 .PHONY: download
 download ${DRBDSRC}:
        rm -rf ${DRBDDIR} ${DRBDSRC}
-       git clone --recursive git://git.drbd.org/drbd-utils
+       git clone --recursive -b v${DRBDVER} git://git.drbd.org/drbd-utils
        cd ${DRBDDIR}; ./autogen.sh
        tar czf ${DRBDSRC} ${DRBDDIR}
 
 .PHONY: upload
 upload: ${DEBS}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/drbd8-utils_*.deb
-       rm -f /pve/${RELEASE}/extra/drbd-utils_*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEBS} /pve/${RELEASE}/extra
-       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+       tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
 
 distclean: clean