1 include /usr
/share
/dpkg
/pkg-info.mk
3 DEB
=proxmox-installer_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
5 INSTALLER_SOURCES
=$(shell git ls-files
) country.dat
9 country.dat
: country.pl
10 .
/country.pl
> country.dat.tmp
11 mv country.dat.tmp country.dat
14 ${DEB}: ${INSTALLER_SOURCES}
15 rsync
--exclude
='test*.img' -a
* build
16 cd build
; dpkg-buildpackage
-b
-us
-uc
20 VARLIBDIR
=$(DESTDIR
)/var
/lib
/proxmox-installer
21 HTMLDIR
=$(VARLIBDIR
)/html
/common
24 install: ${INSTALLER_SOURCES}
25 $(MAKE
) -C banner
install
26 $(MAKE
) -C Proxmox
install
27 install -D
-m
644 interfaces
${DESTDIR}/etc
/network
/interfaces
28 install -D
-m
755 fake-start-stop-daemon
${VARLIBDIR}/fake-start-stop-daemon
29 install -D
-m
755 policy-disable-rc.d
$(VARLIBDIR
)/policy-disable-rc.d
30 install -D
-m
644 country.dat
$(VARLIBDIR
)/country.dat
31 install -D
-m
755 unconfigured.sh
${DESTDIR}/sbin
/unconfigured.sh
32 install -D
-m
755 proxinstall
${DESTDIR}/usr
/bin
/proxinstall
33 install -D
-m
755 checktime
${DESTDIR}/usr
/bin
/checktime
34 install -D
-m
644 xinitrc
${DESTDIR}/.xinitrc
35 install -D
-m
755 spice-vdagent.sh
${DESTDIR}/.spice-vdagent.sh
36 install -D
-m
644 Xdefaults
${DESTDIR}/.Xdefaults
38 %-banner.png
: %-banner.svg
42 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
44 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
,pmg
,pbs
--dist $(UPLOAD_DIST
)
52 .PHONY
: prepare-check-env
53 prepare-check-env
: $(DEB
)
54 umount
-Rd testdir || true
56 dpkg
-X
$(DEB
) testdir
58 cd-info.
test: PRODUCT ?
= pve
60 printf
'%s\n' "PRODUCT='$(or $(PRODUCT), pve)'" >$@.tmp
61 printf
'%s\n' "PRODUCTLONG='$(or $(PRODUCTLONG), Proxmox VE)'" >>$@.tmp
62 printf
'%s\n' "RELEASE='$(or $(RELEASE), 42.1)'" >>$@.tmp
63 printf
'%s\n' "ISORELEASE='$(or $(ISORELEASE), 1)'" >>$@.tmp
64 printf
'%s\n' "ISONAME='$(or $(ISONAME), proxmox-ve)'" >>$@.tmp
67 check-pve
: prepare-check-env
test.img
68 rm -f cd-info.
test; $(MAKE
) cd-info.
test
69 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
71 check-pve-multidisks
: prepare-check-env
test.img test2.img test3.img test4.img test5.big.img
72 rm -f cd-info.
test; $(MAKE
) cd-info.
test
73 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
75 check-pmg
: prepare-check-env
test.img
76 rm -f cd-info.
test; $(MAKE
) \
78 PRODUCTLONG
="Proxmox Mail Gateway" \
79 ISONAME
='proxmox-mail-gateway' \
81 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
83 check-pbs
: prepare-check-env
test.img
84 rm -f cd-info.
test; $(MAKE
) \
86 PRODUCTLONG
='Proxmox Backup Server' \
87 ISONAME
='proxmox-backup-server' \
89 G_SLICE
=always-malloc perl
-I testdir
/usr
/share
/perl5 testdir
/usr
/bin
/proxinstall
-t
test.img
94 umount
-Rd testdir || true
95 rm -rf
*~
*.deb target build packages packages.tmp testdir
test*.img pve-final.pkglist \
96 *.buildinfo
*.changes country.dat final.pkglist cd-info.
test
97 find .
-name
'*~' -exec
rm {} ';'