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