]>
Commit | Line | Data |
---|---|---|
a9fc6893 | 1 | include /usr/share/dpkg/pkg-info.mk |
a9fc6893 | 2 | |
d8218001 | 3 | PACKAGE=libpve-http-server-perl |
d8218001 | 4 | |
a9fc6893 TL |
5 | GITVERSION:=$(shell git rev-parse HEAD) |
6 | BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} | |
7 | ||
8 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
d8218001 DM |
9 | |
10 | DESTDIR= | |
11 | ||
12 | PERL5DIR=${DESTDIR}/usr/share/perl5 | |
13 | DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} | |
14 | ||
5a554403 | 15 | all: |
d8218001 DM |
16 | |
17 | .PHONY: deb | |
e4bce23e WB |
18 | deb: ${DEB} |
19 | ${DEB}: | |
a9fc6893 TL |
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 | |
d8218001 DM |
24 | lintian ${DEB} |
25 | ||
88628fd1 | 26 | install: PVE |
d08808bc DM |
27 | install -d -m 755 ${PERL5DIR}/PVE/APIServer |
28 | install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer | |
63307beb | 29 | install -m 0644 PVE/APIServer/Formatter.pm ${PERL5DIR}/PVE/APIServer |
c610c859 | 30 | install -m 0644 PVE/APIServer/Utils.pm ${PERL5DIR}/PVE/APIServer |
63307beb DM |
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 | |
d8218001 DM |
35 | |
36 | .PHONY: upload | |
37 | upload: ${DEB} | |
3396e081 | 38 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster |
d8218001 | 39 | |
584d34a7 | 40 | .PHONY: clean distclean |
d8218001 | 41 | distclean: clean |
fc75d786 | 42 | rm -f examples/simple-demo.pem |
d8218001 DM |
43 | |
44 | clean: | |
8a29f1fc | 45 | rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck |
d8218001 DM |
46 | find . -name '*~' -exec rm {} ';' |
47 | ||
48 | .PHONY: dinstall | |
49 | dinstall: ${DEB} | |
50 | dpkg -i ${DEB} |