]> git.proxmox.com Git - pve-http-server.git/blob - Makefile
pass through streaming: only allow from privileged local pvedaemon
[pve-http-server.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=libpve-http-server-perl
4
5 GITVERSION:=$(shell git rev-parse HEAD)
6 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
7
8 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9
10 all:
11
12 .PHONY: deb
13 deb: ${DEB}
14 ${DEB}:
15 rm -rf ${BUILDDIR}
16 cp -a src ${BUILDDIR}
17 cp -a debian ${BUILDDIR}/
18 echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
19 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
20 lintian ${DEB}
21
22 .PHONY: upload
23 upload: ${DEB}
24 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye
25
26 .PHONY: clean distclean
27 distclean: clean
28 ${MAKE} -C src $@
29
30 clean:
31 ${MAKE} -C src $@
32 rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck
33 find . -name '*~' -exec rm {} ';'
34
35 .PHONY: dinstall
36 dinstall: ${DEB}
37 dpkg -i ${DEB}