-RELEASE=2.2
+RELEASE=3.4
PACKAGE=pve-sheepdog
PKGREL=1
-SDVER=0.5.4
+SDVER=0.9.2
-DEB=${PACKAGE}_${SDVER}-${PKGREL}_amd64.deb
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
+DEB=${PACKAGE}_${SDVER}-${PKGREL}_${ARCH}.deb
SDDIR=sheepdog-${SDVER}
SDSRC=${SDDIR}.tar.gz
${DEB} deb: ${SDSRC}
rm -rf ${SDDIR}
tar xf ${SDSRC}
+ mv ${SDDIR}/debian ${SDDIR}/debian.org
cp -av debian ${SDDIR}/debian
+ echo "git clone git://git.proxmox.com/git/pve-sheepdog.git\\ngit checkout ${GITVERSION}" > ${SDDIR}/debian/SOURCE
cd ${SDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
- lintian ${DEB}
+ lintian -X copyright-file ${DEB}
.PHONY: download
${SDSRC} download:
rm -rf ${SDDIR} sheepdog.git
- git clone git://github.com/collie/sheepdog.git sheepdog.git
- #cd sheepdog.git; git checkout -b local v${SDVER}
- rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR}
+ git clone git://github.com/sheepdog/sheepdog.git sheepdog.git
+ cd sheepdog.git; git checkout -b local v${SDVER}_rc0
+ rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR}
tar czf ${SDSRC}.tmp ${SDDIR}
rm -rf ${SDDIR}
mv ${SDSRC}.tmp ${SDSRC}