1 include /usr
/share
/dpkg
/pkg-info.mk
5 TUI_INSTALLER_BIN
:= proxmox-tui-installer
7 ifeq ($(BUILD_MODE
), release
)
8 CARGO_BUILD_ARGS
+= --release
9 CARGO_COMPILEDIR
:= target
/release
11 CARGO_COMPILEDIR
:= target
/debug
14 DEB
=proxmox-installer_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
16 INSTALLER_SOURCES
=$(shell git ls-files
) country.dat
20 country.dat
: country.pl
21 .
/country.pl
> country.dat.tmp
22 mv country.dat.tmp country.dat
25 ${DEB}: ${INSTALLER_SOURCES}
26 rsync
--exclude
='test*.img' -a
* build
27 cd build
; dpkg-buildpackage
-b
-us
-uc
31 VARLIBDIR
=$(DESTDIR
)/var
/lib
/proxmox-installer
32 HTMLDIR
=$(VARLIBDIR
)/html
/common
35 install: ${INSTALLER_SOURCES}
36 $(MAKE
) -C banner
install
37 $(MAKE
) -C Proxmox
install
38 install -D
-m
644 interfaces
${DESTDIR}/etc
/network
/interfaces
39 install -D
-m
755 fake-start-stop-daemon
${VARLIBDIR}/fake-start-stop-daemon
40 install -D
-m
755 policy-disable-rc.d
$(VARLIBDIR
)/policy-disable-rc.d
41 install -D
-m
644 country.dat
$(VARLIBDIR
)/country.dat
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
755 spice-vdagent.sh
${DESTDIR}/.spice-vdagent.sh
47 install -D
-m
644 Xdefaults
${DESTDIR}/.Xdefaults
49 %-banner.png
: %-banner.svg
53 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
55 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist $(UPLOAD_DIST
)
63 .PHONY
: prepare-check-env
64 prepare-check-env
: $(DEB
)
65 umount
-Rd testdir || true
67 dpkg
-X
$(DEB
) testdir
69 cd-info.
test: PRODUCT ?
= pve
71 printf
'%s\n' "PRODUCT='$(PRODUCT)'" >$@.tmp
74 check-pve
: prepare-check-env
test.img
75 rm -f cd-info.
test; $(MAKE
) PRODUCT
=pve cd-info.
test
76 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
78 check-pve-multidisks
: prepare-check-env
test.img test2.img test3.img test4.img test5.big.img
79 rm -f cd-info.
test; $(MAKE
) PRODUCT
=pve cd-info.
test
80 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
,test2.img
,test3.img
,test4.img
,test5.big.img
82 check-pmg
: prepare-check-env
test.img
83 rm -f cd-info.
test; $(MAKE
) PRODUCT
=pmg cd-info.
test
84 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
86 check-pbs
: prepare-check-env
test.img
87 rm -f cd-info.
test; $(MAKE
) PRODUCT
=pbs cd-info.
test
88 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
93 umount
-Rd testdir || true
94 rm -rf
*~
*.deb target build packages packages.tmp testdir
test*.img pve-final.pkglist \
95 *.buildinfo
*.changes country.dat final.pkglist cd-info.
test
96 find .
-name
'*~' -exec
rm {} ';'