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