]> git.proxmox.com Git - pve-sheepdog.git/blob - Makefile
use new repoman for upload target
[pve-sheepdog.git] / Makefile
1 RELEASE=4.2
2
3 PACKAGE=pve-sheepdog
4 PKGREL=1
5 SDVER=1.0.0
6
7 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
8 GITVERSION:=$(shell cat .git/refs/heads/master)
9
10 DEB=${PACKAGE}_${SDVER}-${PKGREL}_${ARCH}.deb
11
12 SDDIR=sheepdog-${SDVER}
13 SDSRC=${SDDIR}.tar.gz
14
15 all: ${DEB}
16
17 ${DEB} deb: ${SDSRC}
18 rm -rf ${SDDIR}
19 tar xf ${SDSRC}
20 mv ${SDDIR}/debian ${SDDIR}/debian.org
21 cp -av debian ${SDDIR}/debian
22 echo "git clone git://git.proxmox.com/git/pve-sheepdog.git\\ngit checkout ${GITVERSION}" > ${SDDIR}/debian/SOURCE
23 cd ${SDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
24 lintian -X copyright-file ${DEB}
25
26 .PHONY: download
27 ${SDSRC} download:
28 rm -rf ${SDDIR} sheepdog.git
29 git clone git://github.com/sheepdog/sheepdog.git -b v1.0 sheepdog.git
30 rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR}
31 tar czf ${SDSRC}.tmp ${SDDIR}
32 rm -rf ${SDDIR}
33 mv ${SDSRC}.tmp ${SDSRC}
34
35 .PHONY: upload
36 upload: ${DEB}
37 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
38
39 clean:
40 distclean: clean
41 rm -rf sheepdog.git
42
43 .PHONY: clean
44 clean:
45 rm -rf *~ debian/*~ *.deb *.changes *.dsc ${SDDIR} ${SDSRC}.tmp
46
47 .PHONY: dinstall
48 dinstall: ${DEB}
49 dpkg -i ${DEB}
50