]>
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 | ||
11 | all: $(DEB) | |
12 | ||
13 | $(BUILDDIR): src debian | |
14 | rm -rf $(BUILDDIR) | |
15 | rsync -a src/ debian $(BUILDDIR) | |
16 | # remove if repository exists | |
17 | # echo "git clone git://git.proxmox.com/git/proxmox-acme\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE | |
18 | ||
19 | .PHONY: deb | |
20 | deb: $(DEB) | |
21 | $(DEB): $(BUILDDIR) | |
22 | cd $(BUILDDIR); dpkg-buildpackage -b -us -uc | |
23 | lintian $(DEB) | |
24 | ||
25 | .PHONY: dsc | |
26 | dsc: ${DSC} | |
27 | ${DSC}: ${BUILDDIR} | |
28 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d | |
29 | lintian ${DSC} | |
30 | ||
31 | dinstall: $(DEB) | |
32 | dpkg -i $(DEB) | |
33 | ||
34 | .PHONY: clean | |
35 | clean: | |
36 | rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz | |
37 | ||
38 | .PHONY: upload | |
39 | upload: ${DEB} | |
40 | tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster --arch ${DEB_BUILD_ARCH} |