4 PVE_DEB
=pve-installer_
${PKGVER}-${PKGREL}_all.deb
5 PMG_DEB
=pmg-installer_
${PKGVER}-${PKGREL}_all.deb
7 DEBS
= ${PVE_DEB} ${PMG_DEB}
11 fake-start-stop-daemon \
22 HTML_SOURCES
=$(wildcard html
/*.htm
)
23 HTML_COMMON_SOURCES
=$(wildcard html-common
/*.htm
) $(wildcard html-common
/*.css
) $(wildcard html-common
/*.png
)
25 all: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
27 country.dat
: country.pl
28 .
/country.pl
> country.dat
31 ${DEBS}: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
33 cd build
; dpkg-buildpackage
-b
-us
-uc
34 lintian
-X man
${PVE_DEB}
35 lintian
-X man
${PMG_DEB}
38 install: ${INSTALLER_SOURCES} ${HTML_COMMON_SOURCES} ${HTML_SOURCES}
39 make
-C html-common
install
40 install -D
-m
644 interfaces
${DESTDIR}/etc
/network
/interfaces
41 mkdir
-p
${DESTDIR}/var
/lib
/dhcp3
/
42 ln
-s
/tmp
/resolv.conf.dhclient-new
${DESTDIR}/etc
/resolv.conf
43 ln
-s
/tmp
/resolv.conf.dhclient-new
${DESTDIR}/etc
/resolv.conf.dhclient-new
44 install -D
-m
755 fake-start-stop-daemon
${DESTDIR}/var
/lib
/pve-installer
/fake-start-stop-daemon
45 install -D
-m
755 policy-disable-rc.d
${DESTDIR}/var
/lib
/pve-installer
/policy-disable-rc.d
46 install -D
-m
644 country.dat
${DESTDIR}/var
/lib
/pve-installer
/country.dat
47 install -D
-m
755 unconfigured.sh
${DESTDIR}/sbin
/unconfigured.sh
48 install -D
-m
755 proxinstall
${DESTDIR}/usr
/bin
/proxinstall
49 install -D
-m
755 checktime
${DESTDIR}/usr
/bin
/checktime
50 install -D
-m
644 xinitrc
${DESTDIR}/.xinitrc
51 install -D
-m
644 Xdefaults
${DESTDIR}/.Xdefaults
53 pmg-banner.png
: pmg-banner.svg
54 inkscape
$< --export-png
=$@
56 pve-banner.png
: pve-banner.svg
57 inkscape
$< --export-png
=$@
60 upload-pmg
: ${PMG_DEB}
61 tar cf
- ${PMG_DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist stretch
64 upload-pve
: ${PVE_DEB}
65 tar cf
- ${PVE_DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
68 dd if
=/dev
/zero of
=test.img bs
=2048 count
=1M
70 check-pve
: ${PVE_DEB} test.img
72 dpkg
-X
${PVE_DEB} testdir
73 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
75 check-pmg
: ${PMG_DEB} test.img
77 dpkg
-X
${PMG_DEB} testdir
78 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
82 make
-C html-common
clean
83 rm -rf
*~
*.deb target build packages packages.tmp testdir
test.img pve-final.pkglist
*.buildinfo
*.changes country.dat final.pkglist
84 find .
-name
'*~' -exec
rm {} ';'