]>
Commit | Line | Data |
---|---|---|
270f2667 DM |
1 | RELEASE=4.0 |
2 | ||
3 | PACKAGE=lxcfs | |
4 | PKGVER=0.7 | |
5 | DEBREL=pve1 | |
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 | ||
13 | DEB=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb | |
14 | ||
15 | all: ${DEB} | |
16 | ||
17 | deb ${DEB}: ${SRCTAR} | |
18 | rm -rf ${SRCDIR} | |
19 | tar xf ${SRCTAR} | |
20 | cp -a debian ${SRCDIR}/debian | |
21 | echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE | |
22 | cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc | |
23 | #lintian ${DEB} | |
24 | ||
25 | ||
26 | .PHONY: download | |
27 | download ${SRCTAR}: | |
28 | rm -rf ${SRCDIR} ${SRCTAR} | |
29 | git clone git://github.com/lxc/lxcfs | |
30 | tar czf ${SRCTAR}.tmp ${SRCDIR} | |
31 | mv ${SRCTAR}.tmp ${SRCTAR} | |
32 | ||
33 | .PHONY: upload | |
34 | upload: ${DEB} | |
35 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
36 | mkdir -p /pve/${RELEASE}/extra | |
37 | rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb | |
38 | rm -f /pve/${RELEASE}/extra/Packages* | |
39 | cp ${DEB} /pve/${RELEASE}/extra | |
40 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
41 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
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: ${DEB} | |
52 | dpkg -i ${DEB} |