include /usr/share/dpkg/pkg-info.mk include /usr/share/dpkg/architecture.mk PACKAGE=omping PKGDIR=${PACKAGE}-${DEB_VERSION_UPSTREAM} PKGSRC=${PACKAGE}_${DEB_VERSION_UPSTREAM}.orig.tar.gz GITVERSION:=$(shell cat .git/refs/heads/master) DEBS= ${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb all: ${DEBS} ${DEBS}: ${PKGSRC} rm -rf ${PKGDIR} tar xf ${PKGSRC} rm -rf ${PKGDIR}/debian cp -a debian ${PKGDIR}/debian echo "git clone git://git.proxmox.com/git/pve-omping.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE cd ${PKGDIR}; dpkg-buildpackage -b -us -uc .PHONY: upload upload: ${DEBS} tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH} distclean: clean .PHONY: clean clean: rm -rf *~ *_${DEB_BUILD_ARCH}.deb *.changes *.dsc *.buildinfo ${PKGDIR} .PHONY: dinstall dinstall: ${DEBS} dpkg -i ${DEBS}