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