]>
Commit | Line | Data |
---|---|---|
89a12446 | 1 | # achtung: also set release in proxinstall! |
64c46db3 | 2 | RELEASE=5.0 |
89a12446 | 3 | |
971d9294 | 4 | DEB=pve-installer_5.0-7_all.deb |
89a12446 DM |
5 | |
6 | INSTALLER_SOURCES= \ | |
7 | unconfigured.sh \ | |
89a12446 DM |
8 | fake-start-stop-daemon \ |
9 | policy-disable-rc.d \ | |
10 | interfaces \ | |
709d22e0 | 11 | proxlogo.png \ |
89a12446 | 12 | checktime \ |
f6ba5aa4 DM |
13 | xinitrc \ |
14 | Xdefaults \ | |
f0583fd4 | 15 | country.dat \ |
89a12446 DM |
16 | proxinstall |
17 | ||
44610685 DM |
18 | HTML_SOURCES=$(wildcard html/*.htm) |
19 | HTML_COMMON_SOURCES=$(wildcard html-common/*.htm) $(wildcard html-common/*.css) $(wildcard html-common/*.png) | |
89a12446 | 20 | |
f0583fd4 DM |
21 | all: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} |
22 | ||
23 | country.dat: country.pl | |
24 | ./country.pl > country.dat | |
780479c5 | 25 | |
f0452293 | 26 | deb: ${DEB} |
b64abf04 | 27 | ${DEB}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} |
c5582ca4 DM |
28 | rsync -a * build |
29 | cd build; dpkg-buildpackage -b -us -uc | |
89a12446 DM |
30 | lintian -X man ${DEB} |
31 | ||
32 | .phony: install | |
44610685 DM |
33 | install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES} |
34 | make -C html-common install | |
89a12446 DM |
35 | install -D -m 644 interfaces ${DESTDIR}/etc/network/interfaces |
36 | mkdir -p ${DESTDIR}/var/lib/dhcp3/ | |
89a12446 DM |
37 | ln -s /tmp/resolv.conf.dhclient-new ${DESTDIR}/etc/resolv.conf |
38 | ln -s /tmp/resolv.conf.dhclient-new ${DESTDIR}/etc/resolv.conf.dhclient-new | |
39 | install -D -m 755 fake-start-stop-daemon ${DESTDIR}/var/lib/pve-installer/fake-start-stop-daemon | |
40 | install -D -m 755 policy-disable-rc.d ${DESTDIR}/var/lib/pve-installer/policy-disable-rc.d | |
f0583fd4 | 41 | install -D -m 755 country.dat ${DESTDIR}/var/lib/pve-installer/country.dat |
89a12446 DM |
42 | install -D -m 755 unconfigured.sh ${DESTDIR}/sbin/unconfigured.sh |
43 | install -D -m 755 proxinstall ${DESTDIR}/usr/bin/proxinstall | |
44 | install -D -m 755 checktime ${DESTDIR}/usr/bin/checktime | |
45 | install -D -m 644 xinitrc ${DESTDIR}/.xinitrc | |
46 | install -D -m 644 Xdefaults ${DESTDIR}/.Xdefaults | |
89a12446 DM |
47 | |
48 | .phony: upload | |
49 | upload: ${DEB} | |
e98eb874 | 50 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch |
89a12446 | 51 | |
89a12446 | 52 | test.img: |
c2657b8b | 53 | dd if=/dev/zero of=test.img bs=2048 count=1M |
89a12446 | 54 | |
92cbd446 DM |
55 | check: ${DEB} test.img |
56 | rm -rf testdir | |
57 | dpkg -X ${DEB} testdir | |
58 | G_SLICE=always-malloc perl -I testdir/usr/share/perl5 testdir/usr/bin/proxinstall -t test.img | |
89a12446 DM |
59 | |
60 | .phony: clean | |
61 | clean: | |
44610685 | 62 | make -C html-common clean |
f0583fd4 | 63 | rm -rf *~ *.deb target build packages packages.tmp test.img pve-final.pkglist *.buildinfo *.changes country.dat |
b1e23923 | 64 | find . -name '*~' -exec rm {} ';' |