]>
Commit | Line | Data |
---|---|---|
be1d76f4 | 1 | RELEASE=5.0 |
bee2aa9a DM |
2 | |
3 | PACKAGE=criu | |
f254e41c | 4 | PKGVER=2.10 |
bee2aa9a DM |
5 | DEBREL=1 |
6 | ||
7 | SRCDIR=criu | |
8 | SRCTAR=${SRCDIR}.tgz | |
9 | ||
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
11 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
12 | ||
7c5715a9 | 13 | DEB1=${PACKAGE}_${PKGVER}-${DEBREL}_$(ARCH).deb |
d21a1d1d | 14 | DEB_DBG=${PACKAGE}-dbgsym_${PKGVER}-${DEBREL}_$(ARCH).deb |
4bd1b0d3 | 15 | DEBS=$(DEB1) $(DEB_DBG) |
bee2aa9a DM |
16 | |
17 | all: ${DEBS} | |
18 | echo ${DEBS} | |
19 | ||
4bd1b0d3 WB |
20 | .PHONY: deb |
21 | deb $(DEB_DBG): $(DEB1) | |
22 | $(DEB1): $(SRCTAR) | |
bee2aa9a DM |
23 | rm -rf ${SRCDIR} |
24 | tar xf ${SRCTAR} | |
d21a1d1d FG |
25 | mv ${SRCDIR}/debian/changelog ${SRCDIR}/debian/changelog.org |
26 | cat changelog.Debian ${SRCDIR}/debian/changelog.org > ${SRCDIR}/debian/changelog | |
bee2aa9a DM |
27 | echo "git clone git://git.proxmox.com/git/criu.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE |
28 | cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc | |
29 | lintian ${DEBS} | |
30 | ||
31 | ||
32 | .PHONY: download | |
f254e41c WB |
33 | download: |
34 | rm -rf ${SRCDIR} ${SRCTAR} | |
95e621ad | 35 | git clone -b debian/2.11.1-1 https://anonscm.debian.org/git/collab-maint/criu.git ${SRCDIR} |
f254e41c | 36 | tar czf ${SRCTAR}.tmp --exclude=.git ${SRCDIR} |
bee2aa9a | 37 | mv ${SRCTAR}.tmp ${SRCTAR} |
2074ce66 | 38 | |
bee2aa9a DM |
39 | .PHONY: upload |
40 | upload: ${DEBS} | |
8e5147c9 | 41 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
bee2aa9a DM |
42 | |
43 | distclean: clean | |
44 | ||
45 | .PHONY: clean | |
46 | clean: | |
47 | rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc | |
48 | find . -name '*~' -exec rm {} ';' | |
49 | ||
50 | .PHONY: dinstall | |
51 | dinstall: ${DEBS} | |
52 | dpkg -i ${DEBS} |