]> git.proxmox.com Git - pve-installer.git/commitdiff
build pmg-installer package
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 20 Nov 2017 11:57:11 +0000 (12:57 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 20 Nov 2017 11:57:11 +0000 (12:57 +0100)
Makefile
debian/changelog
debian/pmg-installer.install [new file with mode: 0644]
debian/rules

index e04f829e3c37a3501cfff4961efc381aca9d15e8..a6f3517b6b5168827e154025e5d382674030e4d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@ PKGVER=5.0
 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         \
@@ -26,11 +29,12 @@ all: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
 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}
@@ -60,8 +64,13 @@ check-pve: ${PVE_DEB} test.img
        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 {} ';'
index 9055247389c0fc410eaab53dfd3202412c5e12b0..7c340ddb8f0f4b8eafbcb5df3d499679c9f93c62 100644 (file)
@@ -1,3 +1,9 @@
+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
diff --git a/debian/pmg-installer.install b/debian/pmg-installer.install
new file mode 100644 (file)
index 0000000..e70675f
--- /dev/null
@@ -0,0 +1,9 @@
+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
index 92a2f1afdfcd7c87fdc6d9f72702a4ed2e4c2e0c..382f2fc1149fe86f5ddbb6dc4d4d2fedb7afdbd3 100755 (executable)
@@ -3,24 +3,17 @@
 # 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