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