-# achtung: also set release in proxinstall!
-RELEASE=5.0
+PKGVER=5.0
+PKGREL=10
-DEB=pve-installer_5.0-7_all.deb
+PVE_DEB=pve-installer_${PKGVER}-${PKGREL}_all.deb
+PMG_DEB=pmg-installer_${PKGVER}-${PKGREL}_all.deb
+
+DEBS = ${PVE_DEB} ${PMG_DEB}
INSTALLER_SOURCES= \
unconfigured.sh \
country.dat: country.pl
./country.pl > country.dat
-deb: ${DEB}
-${DEB}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} Makefile html/Makefile
+deb: ${DEBS}
+${DEBS}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
- lintian -X man ${DEB}
+ lintian -X man ${PVE_DEB}
+ lintian -X man ${PMG_DEB}
.phony: install
install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
install -D -m 644 Xdefaults ${DESTDIR}/.Xdefaults
.phony: upload
-upload: ${DEB}
- tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
-
-packages: /pve/${RELEASE}/install/pve.files
- rm -rf packages packages.tmp; mkdir packages.tmp
- for i in `cat $<`; do install -m 644 $$i packages.tmp/; done
- mv packages.tmp packages
+upload: ${PVE_DEB}
+ tar cf - ${PVE_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
test.img:
dd if=/dev/zero of=test.img bs=2048 count=1M
-check: packages test.img
- G_SLICE=always-malloc ./proxinstall -t test.img
+check-pve: ${PVE_DEB} test.img
+ rm -rf testdir
+ dpkg -X ${PVE_DEB} testdir
+ G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
+
+check-pmg: ${PMG_DEB} test.img
+ rm -rf testdir
+ dpkg -X ${PMG_DEB} testdir
+ G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img
.phony: clean
clean:
make -C html-common clean
- rm -rf *~ *.deb target build packages packages.tmp test.img pve-final.pkglist *.buildinfo *.changes country.dat
+ rm -rf *~ *.deb target build packages packages.tmp testdir test.img pve-final.pkglist *.buildinfo *.changes country.dat
find . -name '*~' -exec rm {} ';'