]>
Commit | Line | Data |
---|---|---|
270f2667 | 1 | PACKAGE=lxcfs |
975b5018 | 2 | PKGVER=2.0.6 |
6d9f43e0 | 3 | DEBREL=pve500 |
270f2667 DM |
4 | |
5 | SRCDIR=${PACKAGE} | |
6 | SRCTAR=${SRCDIR}.tgz | |
7 | ||
8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
9 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
10 | ||
fde1adc6 WB |
11 | DEB1=${PACKAGE}_${PKGVER}-${DEBREL}_${ARCH}.deb |
12 | DEB2=${PACKAGE}-dbg_${PKGVER}-${DEBREL}_${ARCH}.deb | |
13 | DEBS=$(DEB1) $(DEB2) | |
270f2667 DM |
14 | |
15 | all: ${DEB} | |
16 | ||
261830cd | 17 | .PHONY: deb |
fde1adc6 WB |
18 | deb: $(DEBS) |
19 | $(DEB2): $(DEB1) | |
20 | $(DEB1): $(SRCTAR) | |
270f2667 DM |
21 | rm -rf ${SRCDIR} |
22 | tar xf ${SRCTAR} | |
23 | cp -a debian ${SRCDIR}/debian | |
1c4b58b6 DM |
24 | echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE |
25 | echo "debian/SOURCE" >> ${SRCDIR}/debian/docs | |
270f2667 | 26 | cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc |
fde1adc6 | 27 | #lintian $(DEB) |
270f2667 DM |
28 | |
29 | ||
30 | .PHONY: download | |
31 | download ${SRCTAR}: | |
32 | rm -rf ${SRCDIR} ${SRCTAR} | |
71d1a2c8 | 33 | git clone --depth=1 -b lxcfs-${PKGVER} git://github.com/lxc/lxcfs |
270f2667 DM |
34 | tar czf ${SRCTAR}.tmp ${SRCDIR} |
35 | mv ${SRCTAR}.tmp ${SRCTAR} | |
36 | ||
37 | .PHONY: upload | |
fde1adc6 | 38 | upload: $(DEBS) |
6d9f43e0 | 39 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload --product pve --dist stretch |
270f2667 DM |
40 | |
41 | distclean: clean | |
42 | ||
43 | .PHONY: clean | |
44 | clean: | |
6d9f43e0 | 45 | rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc *.buildinfo |
270f2667 DM |
46 | find . -name '*~' -exec rm {} ';' |
47 | ||
48 | .PHONY: dinstall | |
fde1adc6 WB |
49 | dinstall: $(DEBS) |
50 | dpkg -i $(DEBS) |