]> git.proxmox.com Git - pve-sheepdog.git/blame - Makefile
build: reformat debian/control
[pve-sheepdog.git] / Makefile
CommitLineData
ff62b221 1PACKAGE=pve-sheepdog
98e384f7 2PKGREL=1
e2acdc28 3SDVER=1.0.2
ff62b221 4
ebcf999a
DM
5ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
6GITVERSION:=$(shell cat .git/refs/heads/master)
7
8DEB=${PACKAGE}_${SDVER}-${PKGREL}_${ARCH}.deb
ff62b221
DM
9
10SDDIR=sheepdog-${SDVER}
11SDSRC=${SDDIR}.tar.gz
12
13all: ${DEB}
14
15${DEB} deb: ${SDSRC}
16 rm -rf ${SDDIR}
17 tar xf ${SDSRC}
b80d6fd3 18 mv ${SDDIR}/debian ${SDDIR}/debian.org
ff62b221 19 cp -av debian ${SDDIR}/debian
ebcf999a 20 echo "git clone git://git.proxmox.com/git/pve-sheepdog.git\\ngit checkout ${GITVERSION}" > ${SDDIR}/debian/SOURCE
ff62b221 21 cd ${SDDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
d219be83 22 lintian -X copyright-file ${DEB}
ff62b221
DM
23
24.PHONY: download
25${SDSRC} download:
26 rm -rf ${SDDIR} sheepdog.git
e2acdc28 27 git clone git://github.com/sheepdog/sheepdog.git -b v1.0.2_rc0 sheepdog.git
b2080a79 28 cd sheepdog.git; git archive --format=tar.gz -o ../${SDSRC}.tmp v1.0 --prefix=${SDDIR}/
ff62b221
DM
29 mv ${SDSRC}.tmp ${SDSRC}
30
35182cb4
DM
31.PHONY: upload
32upload: ${DEB}
d935125a 33 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
35182cb4 34
ff62b221
DM
35clean:
36distclean: clean
37 rm -rf sheepdog.git
38
39.PHONY: clean
40clean:
e2acdc28 41 rm -rf *~ debian/*~ *.deb *.changes *.buildinfo *.dsc ${SDDIR} ${SDSRC}.tmp
ff62b221
DM
42
43.PHONY: dinstall
44dinstall: ${DEB}
45 dpkg -i ${DEB}
46