]>
Commit | Line | Data |
---|---|---|
eeb9acb5 | 1 | RELEASE=4.1 |
270f2667 DM |
2 | |
3 | PACKAGE=lxcfs | |
f32f1d02 FG |
4 | PKGVER=2.0.0 |
5 | DEBREL=pve1 | |
270f2667 DM |
6 | |
7 | SRCDIR=${PACKAGE} | |
8 | SRCTAR=${SRCDIR}.tgz | |
9 | ||
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
11 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
12 | ||
98fe0efe WB |
13 | DEB=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb \ |
14 | ${PACKAGE}-dbg_${PKGVER}-${DEBREL}_amd64.deb | |
270f2667 DM |
15 | |
16 | all: ${DEB} | |
17 | ||
18 | deb ${DEB}: ${SRCTAR} | |
19 | rm -rf ${SRCDIR} | |
20 | tar xf ${SRCTAR} | |
21 | cp -a debian ${SRCDIR}/debian | |
1c4b58b6 DM |
22 | echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE |
23 | echo "debian/SOURCE" >> ${SRCDIR}/debian/docs | |
270f2667 DM |
24 | cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc |
25 | #lintian ${DEB} | |
26 | ||
27 | ||
28 | .PHONY: download | |
29 | download ${SRCTAR}: | |
30 | rm -rf ${SRCDIR} ${SRCTAR} | |
31 | git clone git://github.com/lxc/lxcfs | |
4bcc26f9 | 32 | cd lxcfs; git reset --hard f0f8b8511938cc680150d782a3add0ee4d60fb01 |
270f2667 DM |
33 | tar czf ${SRCTAR}.tmp ${SRCDIR} |
34 | mv ${SRCTAR}.tmp ${SRCTAR} | |
35 | ||
36 | .PHONY: upload | |
37 | upload: ${DEB} | |
38 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
39 | mkdir -p /pve/${RELEASE}/extra | |
40 | rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb | |
98fe0efe | 41 | rm -f /pve/${RELEASE}/extra/${PACKAGE}-dbg_*.deb |
270f2667 DM |
42 | rm -f /pve/${RELEASE}/extra/Packages* |
43 | cp ${DEB} /pve/${RELEASE}/extra | |
44 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
45 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
46 | ||
47 | distclean: clean | |
48 | ||
49 | .PHONY: clean | |
50 | clean: | |
51 | rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc | |
52 | find . -name '*~' -exec rm {} ';' | |
53 | ||
54 | .PHONY: dinstall | |
55 | dinstall: ${DEB} | |
56 | dpkg -i ${DEB} |