]>
Commit | Line | Data |
---|---|---|
9ce00d2f WL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | ||
a19ae07b | 3 | SRC=libproxmox-acme |
9ce00d2f | 4 | |
a19ae07b | 5 | BUILDDIR ?= ${SRC}-${DEB_VERSION_UPSTREAM} |
9ce00d2f WL |
6 | GITVERSION:=$(shell git rev-parse HEAD) |
7 | ||
a19ae07b TL |
8 | DEB_PERL=libproxmox-acme-perl_${DEB_VERSION_UPSTREAM_REVISION}_all.deb |
9 | DEB_ACME_PLUGS=libproxmox-acme-plugins_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
10 | DEBS=${DEB_PERL} ${DEB_ACME_PLUGS} | |
11 | ||
12 | DSC=${SRC}_${DEB_VERSION_UPSTREAM_REVISION}.dsc | |
9ce00d2f | 13 | |
9bd9d7a7 | 14 | ACME_SUBMODULE="src/acme.sh" |
20569605 | 15 | |
9ce00d2f WL |
16 | all: $(DEB) |
17 | ||
20569605 WL |
18 | .PHONY: submodule |
19 | submodule: | |
9bd9d7a7 | 20 | test -d ${ACME_SUBMODULE}/README.md || git submodule update --init --recursive |
92b88a9e | 21 | |
9bd9d7a7 TL |
22 | ${BUILDDIR}: src debian submodule |
23 | rm -rf ${BUILDDIR}.tmp | |
24 | cp -a src ${BUILDDIR}.tmp | |
25 | cp -a debian ${BUILDDIR}.tmp/ | |
26 | echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout ${GITVERSION}" > ${BUILDDIR}.tmp/debian/SOURCE | |
27 | mv ${BUILDDIR}.tmp ${BUILDDIR} | |
9ce00d2f WL |
28 | |
29 | .PHONY: deb | |
a19ae07b TL |
30 | deb: ${DEBS} |
31 | ${DEBS}: ${BUILDDIR} | |
9bd9d7a7 | 32 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc |
a19ae07b | 33 | lintian ${DEBS} |
9ce00d2f WL |
34 | |
35 | .PHONY: dsc | |
36 | dsc: ${DSC} | |
37 | ${DSC}: ${BUILDDIR} | |
38 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d | |
39 | lintian ${DSC} | |
40 | ||
a19ae07b TL |
41 | dinstall: ${DEBS} |
42 | dpkg -i ${DEBS} | |
9ce00d2f WL |
43 | |
44 | .PHONY: clean | |
45 | clean: | |
a19ae07b | 46 | rm -rf ${SRC}-*/ ${BUILDDIR}.tmp *.deb *.buildinfo *.changes *.dsc *.tar.?z |
9ce00d2f WL |
47 | |
48 | .PHONY: upload | |
a19ae07b | 49 | upload: ${DEBS} |
085b9535 TL |
50 | tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye --arch ${DEB_BUILD_ARCH} |
51 | tar cf - ${DEB_ACME_PLUGS}|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist bullseye --arch ${DEB_BUILD_ARCH} |