]>
Commit | Line | Data |
---|---|---|
d5a80540 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | include /usr/share/dpkg/architecture.mk | |
3 | ||
1d278ebd | 4 | PACKAGE=omping |
d5a80540 TL |
5 | PKGDIR=${PACKAGE}-${DEB_VERSION_UPSTREAM} |
6 | PKGSRC=${PACKAGE}_${DEB_VERSION_UPSTREAM}.orig.tar.gz | |
1d278ebd | 7 | |
eb6f294f | 8 | GITVERSION:=$(shell cat .git/refs/heads/master) |
1d278ebd | 9 | |
adc45da4 TL |
10 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb |
11 | DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb | |
12 | ||
13 | DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc | |
14 | ||
15 | DEBS=${DEB} ${DBGDEB} | |
1d278ebd DM |
16 | |
17 | all: ${DEBS} | |
18 | ||
adc45da4 TL |
19 | .PHONY: ${PKGDIR} |
20 | ${PKGDIR}: ${PKGSRC} | |
1d278ebd | 21 | rm -rf ${PKGDIR} |
ff28c99d FG |
22 | tar xf ${PKGSRC} |
23 | rm -rf ${PKGDIR}/debian | |
1d278ebd | 24 | cp -a debian ${PKGDIR}/debian |
eb6f294f | 25 | echo "git clone git://git.proxmox.com/git/pve-omping.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE |
adc45da4 TL |
26 | |
27 | .PHONY: deb | |
28 | deb: ${DEBS} | |
29 | ${DBGDEB}: ${DEB} | |
30 | ${DEB}: ${PKGDIR} | |
14ad0275 | 31 | cd ${PKGDIR}; dpkg-buildpackage -b -us -uc |
adc45da4 TL |
32 | lintian ${DEB} |
33 | ||
34 | .PHONY: dsc | |
35 | dsc: ${DSC} | |
36 | ${DSC}: ${PKGDIR} | |
37 | cd ${PKGDIR}; dpkg-buildpackage -S -us -uc -d | |
38 | lintian ${DSC} | |
1d278ebd DM |
39 | |
40 | .PHONY: upload | |
41 | upload: ${DEBS} | |
d5a80540 | 42 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH} |
1d278ebd DM |
43 | |
44 | distclean: clean | |
45 | ||
46 | .PHONY: clean | |
47 | clean: | |
d5a80540 | 48 | rm -rf *~ *_${DEB_BUILD_ARCH}.deb *.changes *.dsc *.buildinfo ${PKGDIR} |
1d278ebd DM |
49 | |
50 | .PHONY: dinstall | |
adc45da4 TL |
51 | dinstall: ${DEB} |
52 | dpkg -i ${DEB} |