]>
Commit | Line | Data |
---|---|---|
eeb9acb5 | 1 | RELEASE=4.1 |
270f2667 DM |
2 | |
3 | PACKAGE=lxcfs | |
eeb9acb5 DM |
4 | PKGVER=0.13 |
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 | ||
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 | |
1c4b58b6 DM |
21 | echo "git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE |
22 | echo "debian/SOURCE" >> ${SRCDIR}/debian/docs | |
270f2667 DM |
23 | cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc |
24 | #lintian ${DEB} | |
25 | ||
26 | ||
27 | .PHONY: download | |
28 | download ${SRCTAR}: | |
29 | rm -rf ${SRCDIR} ${SRCTAR} | |
30 | git clone git://github.com/lxc/lxcfs | |
31 | tar czf ${SRCTAR}.tmp ${SRCDIR} | |
32 | mv ${SRCTAR}.tmp ${SRCTAR} | |
33 | ||
34 | .PHONY: upload | |
35 | upload: ${DEB} | |
36 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
37 | mkdir -p /pve/${RELEASE}/extra | |
38 | rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb | |
39 | rm -f /pve/${RELEASE}/extra/Packages* | |
40 | cp ${DEB} /pve/${RELEASE}/extra | |
41 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
42 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
43 | ||
44 | distclean: clean | |
45 | ||
46 | .PHONY: clean | |
47 | clean: | |
48 | rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc | |
49 | find . -name '*~' -exec rm {} ';' | |
50 | ||
51 | .PHONY: dinstall | |
52 | dinstall: ${DEB} | |
53 | dpkg -i ${DEB} |