]> git.proxmox.com Git - pve-omping.git/blob - Makefile
buildsys: switch upload dist over to buster
[pve-omping.git] / Makefile
1 PKGVERSION=0.0.5
2 PKGRELEASE=2
3 PACKAGE=omping
4 PKGDIR=${PACKAGE}-${PKGVERSION}
5 PKGSRC=${PACKAGE}_${PKGVERSION}.orig.tar.gz
6
7 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
8 GITVERSION:=$(shell cat .git/refs/heads/master)
9
10 DEBS= ${PACKAGE}_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
11
12 all: ${DEBS}
13
14 ${DEBS}: ${PKGSRC}
15 rm -rf ${PKGDIR}
16 tar xf ${PKGSRC}
17 rm -rf ${PKGDIR}/debian
18 cp -a debian ${PKGDIR}/debian
19 echo "git clone git://git.proxmox.com/git/pve-omping.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE
20 cd ${PKGDIR}; dpkg-buildpackage -b -us -uc
21
22 .PHONY: upload
23 upload: ${DEBS}
24 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${ARCH}
25
26 distclean: clean
27
28 .PHONY: clean
29 clean:
30 rm -rf *~ *_${ARCH}.deb *.changes *.dsc ${PKGDIR}
31
32 .PHONY: dinstall
33 dinstall: ${DEBS}
34 dpkg -i ${DEBS}