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