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