1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
5 export PVERELEASE
=$(DEB_VERSION_UPSTREAM
)
6 export VERSION
=$(DEB_VERSION_UPSTREAM_REVISION
)
10 SUBDIRS
= aplinfo PVE bin www services configs network-hooks
test
12 GITVERSION
:=$(shell git rev-parse
--short
=16 HEAD
)
15 BUILDDIR
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
17 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb
20 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i; done
36 echo
"git clone git://git.proxmox.com/git/pve-manager.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
37 echo
"REPOID_GENERATED=$(GITVERSION)" > $@.tmp
/debian
/rules.env
43 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
48 # check if working directory is clean
49 git diff
--exit-code
--stat
&& git diff
--exit-code
--stat
--staged
50 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com upload
--product pve
--dist bullseye
53 install: vzdump-hook-script.pl
54 install -d
-m
0700 -o www-data
-g www-data
$(DESTDIR
)/var
/log
/pveproxy
55 install -d
$(DOCDIR
)/examples
56 install -d
$(DESTDIR
)/var
/lib
/$(PACKAGE
)
57 install -d
$(DESTDIR
)/var
/lib
/vz
/images
58 install -d
$(DESTDIR
)/var
/lib
/vz
/template
/cache
59 install -d
$(DESTDIR
)/var
/lib
/vz
/template
/iso
60 install -m
0644 vzdump-hook-script.pl
$(DOCDIR
)/examples
/vzdump-hook-script.pl
61 install -m
0644 spice-example-sh
$(DOCDIR
)/examples
/spice-example-sh
62 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
69 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
70 rm -f country.dat
*.deb
*.buildinfo
*.changes
71 rm -rf dest
$(PACKAGE
)-[0-9]*/