]>
Commit | Line | Data |
---|---|---|
dad62fce | 1 | include /usr/share/dpkg/pkg-info.mk |
6db9b06a | 2 | |
dad62fce TL |
3 | PVE_DEB=pve-installer_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
4 | PMG_DEB=pmg-installer_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
53748662 | 5 | PBS_DEB=pbs-installer_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
a8213c0e | 6 | |
53748662 | 7 | DEBS = ${PVE_DEB} ${PMG_DEB} ${PBS_DEB} |
89a12446 DM |
8 | |
9 | INSTALLER_SOURCES= \ | |
10 | unconfigured.sh \ | |
89a12446 | 11 | fake-start-stop-daemon \ |
c1cfbb1c | 12 | policy-disable-rc.d \ |
89a12446 | 13 | interfaces \ |
782b4acd DM |
14 | pmg-banner.png \ |
15 | pve-banner.png \ | |
53748662 | 16 | pbs-banner.png \ |
89a12446 | 17 | checktime \ |
f6ba5aa4 DM |
18 | xinitrc \ |
19 | Xdefaults \ | |
f0583fd4 | 20 | country.dat \ |
89a12446 DM |
21 | proxinstall |
22 | ||
44610685 DM |
23 | HTML_SOURCES=$(wildcard html/*.htm) |
24 | HTML_COMMON_SOURCES=$(wildcard html-common/*.htm) $(wildcard html-common/*.css) $(wildcard html-common/*.png) | |
89a12446 | 25 | |
f0583fd4 DM |
26 | all: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} |
27 | ||
28 | country.dat: country.pl | |
29 | ./country.pl > country.dat | |
780479c5 | 30 | |
53748662 | 31 | deb: ${DEBS} |
a8213c0e | 32 | ${DEBS}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} |
bf1de878 | 33 | rsync --exclude='test*.img' -a * build |
c5582ca4 | 34 | cd build; dpkg-buildpackage -b -us -uc |
6db9b06a | 35 | lintian -X man ${PVE_DEB} |
a8213c0e | 36 | lintian -X man ${PMG_DEB} |
53748662 | 37 | lintian -X man ${PBS_DEB} |
89a12446 DM |
38 | |
39 | .phony: install | |
44610685 DM |
40 | install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} |
41 | make -C html-common install | |
89a12446 | 42 | install -D -m 644 interfaces ${DESTDIR}/etc/network/interfaces |
89a12446 | 43 | install -D -m 755 fake-start-stop-daemon ${DESTDIR}/var/lib/pve-installer/fake-start-stop-daemon |
c1cfbb1c | 44 | install -D -m 755 policy-disable-rc.d ${DESTDIR}/var/lib/pve-installer/policy-disable-rc.d |
790a4be9 | 45 | install -D -m 644 country.dat ${DESTDIR}/var/lib/pve-installer/country.dat |
89a12446 DM |
46 | install -D -m 755 unconfigured.sh ${DESTDIR}/sbin/unconfigured.sh |
47 | install -D -m 755 proxinstall ${DESTDIR}/usr/bin/proxinstall | |
48 | install -D -m 755 checktime ${DESTDIR}/usr/bin/checktime | |
49 | install -D -m 644 xinitrc ${DESTDIR}/.xinitrc | |
50 | install -D -m 644 Xdefaults ${DESTDIR}/.Xdefaults | |
89a12446 | 51 | |
782b4acd | 52 | pmg-banner.png: pmg-banner.svg |
9b9ddfce | 53 | rsvg-convert -o $@ $< |
782b4acd DM |
54 | |
55 | pve-banner.png: pve-banner.svg | |
9b9ddfce | 56 | rsvg-convert -o $@ $< |
782b4acd | 57 | |
53748662 OB |
58 | pbs-banner.png: pbs-banner.svg |
59 | rsvg-convert -o $@ $< | |
60 | ||
27533adb DM |
61 | .phony: upload-pmg |
62 | upload-pmg: ${PMG_DEB} | |
63 | tar cf - ${PMG_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch | |
64 | ||
65 | .phony: upload-pve | |
66 | upload-pve: ${PVE_DEB} | |
292dd984 | 67 | tar cf - ${PVE_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster |
89a12446 | 68 | |
76960140 TL |
69 | %.img: |
70 | truncate -s 2G $@ | |
89a12446 | 71 | |
6db9b06a | 72 | check-pve: ${PVE_DEB} test.img |
56510a19 | 73 | umount -Rd testdir || true |
92cbd446 | 74 | rm -rf testdir |
6db9b06a | 75 | dpkg -X ${PVE_DEB} testdir |
92cbd446 | 76 | G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img |
89a12446 | 77 | |
76960140 | 78 | check-pve-multidisks: ${PVE_DEB} test.img test2.img test3.img test4.img |
56510a19 | 79 | umount -Rd testdir || true |
76960140 TL |
80 | rm -rf testdir |
81 | dpkg -X ${PVE_DEB} testdir | |
82 | G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img,test2.img,test3.img,test4.img | |
83 | ||
a8213c0e | 84 | check-pmg: ${PMG_DEB} test.img |
56510a19 | 85 | umount -Rd testdir || true |
a8213c0e DM |
86 | rm -rf testdir |
87 | dpkg -X ${PMG_DEB} testdir | |
88 | G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img | |
89 | ||
53748662 OB |
90 | check-pbs: ${PBS_DEB} test.img |
91 | umount -Rd testdir || true | |
92 | rm -rf testdir | |
93 | dpkg -X ${PBS_DEB} testdir | |
94 | G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img | |
95 | ||
96 | ||
89a12446 DM |
97 | .phony: clean |
98 | clean: | |
56510a19 | 99 | umount -Rd testdir || true |
44610685 | 100 | make -C html-common clean |
76960140 | 101 | rm -rf *~ *.deb target build packages packages.tmp testdir test*.img pve-final.pkglist *.buildinfo *.changes country.dat final.pkglist |
b1e23923 | 102 | find . -name '*~' -exec rm {} ';' |