-RELEASE=2.0
-
-VERSION=1.0
-PKGREL=5
+VERSION=5.0
+PKGREL=19
PACKAGE=libpve-common-perl
PERLDIR=${PREFIX}/share/perl5
ARCH=all
+GITVERSION:=$(shell git rev-parse HEAD)
+
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
all: ${DEB}
.PHONY: deb
-deb ${DEB}:
+deb ${DEB}:
+ $(MAKE) -C test check
rm -rf build
- rsync -a data/ build
+ rsync -a src/ build
rsync -a debian/ build/debian
- cd build; dpkg-buildpackage -rfakeroot -b -us -uc
+ echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
+ cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
.PHONY: clean
clean:
- rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz
+ rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
.PHONY: distclean
distclean: clean
+.PHONY: check
+check:
+ $(MAKE) -C test check
.PHONY: upload
upload: ${DEB}
- umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
- mkdir -p /pve/${RELEASE}/extra
- rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
- rm -f /pve/${RELEASE}/extra/Packages*
- cp ${DEB} /pve/${RELEASE}/extra
- cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
- umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+ tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch