PKGREL=8
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: ${PVE_DEB}
-${PVE_DEB}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
+deb: ${DEBS}
+${DEBS}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
lintian -X man ${PVE_DEB}
+ lintian -X man ${PMG_DEB}
.phony: install
install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
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 {} ';'
+pve-installer (5.0-8) unstable; urgency=medium
+
+ * add support for multiple products (pve, pmg)
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 20 Nov 2017 12:47:44 +0100
+
pve-installer (5.0-7) unstable; urgency=medium
* kill dhclient before rebooting
--- /dev/null
+proxlogo.png /var/lib/pve-installer
+html-pmg/page1.htm /var/lib/pve-installer/html
+html-pmg/passwd.htm /var/lib/pve-installer/html
+html-pmg/extract1-license.htm /var/lib/pve-installer/html
+html-pmg/extract2-rulesystem.htm /var/lib/pve-installer/html
+html-pmg/extract3-spam.htm /var/lib/pve-installer/html
+html-pmg/extract4-virus.htm /var/lib/pve-installer/html
+html-pmg/fail.htm /var/lib/pve-installer/html
+html-pmg/success.htm /var/lib/pve-installer/html
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
-PACKAGE = $(shell dh_listpackages)
-SETUPFN = "unknown"
-
-ifeq (${PACKAGE},pve-installer)
-SETUPFN = "ProxmoxInstallerSetup-pve.pm"
-endif
-
-ifeq (${PACKAGE},pmg-installer)
-SETUPFN = "ProxmoxInstallerSetup-pmg.pm"
-endif
+SETUPFN = "/usr/share/perl5/ProxmoxInstallerSetup.pm"
%:
dh $@
override_dh_auto_install:
- install -D -m 0644 ${SETUPFN} $(CURDIR)/debian/${PACKAGE}/usr/share/perl5/ProxmoxInstallerSetup.pm
- dh_auto_install $@
+ install -D -m 0644 ProxmoxInstallerSetup-pve.pm $(CURDIR)/debian/pve-installer/${SETUPFN}
+ install -D -m 0644 ProxmoxInstallerSetup-pmg.pm $(CURDIR)/debian/pmg-installer/${SETUPFN}
+ dh_auto_install --destdir debian/pve-installer
+ dh_auto_install --destdir debian/pmg-installer
override_dh_auto_test:
# do nothing here