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