1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
5 export PVERELEASE
= $(shell echo
$(DEB_VERSION_UPSTREAM
) | cut
-c
1-3)
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
=8 HEAD
)
15 BUILDDIR
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
17 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
18 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb
21 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i; done
37 echo
"git clone git://git.proxmox.com/git/pve-manager.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
38 echo
"REPOID_GENERATED=$(GITVERSION)" > $@.tmp
/debian
/rules.env
44 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
48 rm -rf
$(BUILDDIR
) $(DSC
)
52 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
58 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
60 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com upload
--product pve
--dist $(UPLOAD_DIST
)
63 install: vzdump-hook-script.pl
64 install -d
-m
0700 -o www-data
-g www-data
$(DESTDIR
)/var
/log
/pveproxy
65 install -d
$(DOCDIR
)/examples
66 install -d
$(DESTDIR
)/var
/lib
/$(PACKAGE
)
67 install -d
$(DESTDIR
)/var
/lib
/vz
/images
68 install -d
$(DESTDIR
)/var
/lib
/vz
/template
/cache
69 install -d
$(DESTDIR
)/var
/lib
/vz
/template
/iso
70 install -m
0644 vzdump-hook-script.pl
$(DOCDIR
)/examples
/vzdump-hook-script.pl
71 install -m
0644 spice-example-sh
$(DOCDIR
)/examples
/spice-example-sh
72 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
79 set
-e
&& for i in
$(SUBDIRS
); do
$(MAKE
) -C
$$i $@
; done
80 rm -f
$(PACKAGE
)*.
tar* country.dat
*.deb
*.dsc
*.build
*.buildinfo
*.changes
81 rm -rf dest
$(PACKAGE
)-[0-9]*/