]>
Commit | Line | Data |
---|---|---|
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 | DESTDIR= | |
11 | ||
12 | PERL5DIR=${DESTDIR}/usr/share/perl5 | |
13 | DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} | |
14 | ||
15 | all: | |
16 | ||
17 | .PHONY: deb | |
18 | deb: ${DEB} | |
19 | ${DEB}: | |
20 | rm -rf ${BUILDDIR} | |
21 | rsync -a * ${BUILDDIR} | |
22 | echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE | |
23 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc | |
24 | lintian ${DEB} | |
25 | ||
26 | install: PVE | |
27 | install -d -m 755 ${PERL5DIR}/PVE/APIServer | |
28 | install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer | |
29 | install -m 0644 PVE/APIServer/Formatter.pm ${PERL5DIR}/PVE/APIServer | |
30 | install -m 0644 PVE/APIServer/Utils.pm ${PERL5DIR}/PVE/APIServer | |
31 | install -d -m 755 ${PERL5DIR}/PVE/APIServer/Formatter | |
32 | install -m 0644 PVE/APIServer/Formatter/Standard.pm ${PERL5DIR}/PVE/APIServer/Formatter | |
33 | install -m 0644 PVE/APIServer/Formatter/Bootstrap.pm ${PERL5DIR}/PVE/APIServer/Formatter | |
34 | install -m 0644 PVE/APIServer/Formatter/HTML.pm ${PERL5DIR}/PVE/APIServer/Formatter | |
35 | ||
36 | .PHONY: upload | |
37 | upload: ${DEB} | |
38 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster | |
39 | ||
40 | .PHONY: clean distclean | |
41 | distclean: clean | |
42 | rm -f examples/simple-demo.pem | |
43 | ||
44 | clean: | |
45 | rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck | |
46 | find . -name '*~' -exec rm {} ';' | |
47 | ||
48 | .PHONY: dinstall | |
49 | dinstall: ${DEB} | |
50 | dpkg -i ${DEB} |