]>
Commit | Line | Data |
---|---|---|
f76a2828 DM |
1 | RELEASE=4.0 |
2 | ||
2410127c | 3 | VERSION=0.9 |
f76a2828 | 4 | PACKAGE=pve-container |
af4b00a1 | 5 | PKGREL=21 |
f76a2828 DM |
6 | |
7 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
8 | ||
9 | ARCH:=all | |
10 | ||
11 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
12 | ||
13 | all: ${DEB} | |
14 | ||
15 | .PHONY: dinstall | |
16 | dinstall: ${DEB} | |
17 | dpkg -i ${DEB} | |
18 | ||
9c2d4ce9 | 19 | .PHONY: deb ${DEB} |
f76a2828 DM |
20 | deb ${DEB}: |
21 | rm -rf build | |
22 | mkdir build | |
23 | rsync -a src/ build | |
24 | rsync -a debian/ build/debian | |
25 | echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
26 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
27 | lintian ${DEB} | |
28 | ||
29 | .PHONY: clean | |
30 | clean: | |
31 | make -C src clean | |
32 | rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes | |
33 | find . -name '*~' -exec rm {} ';' | |
34 | ||
35 | .PHONY: distclean | |
36 | distclean: clean | |
37 | ||
38 | .PHONY: upload | |
39 | upload: ${DEB} | |
40 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
41 | mkdir -p /pve/${RELEASE}/extra | |
42 | rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb | |
43 | rm -f /pve/${RELEASE}/extra/Packages* | |
44 | cp ${DEB} /pve/${RELEASE}/extra | |
45 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
46 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
47 |