]>
Commit | Line | Data |
---|---|---|
1d458e36 | 1 | RELEASE=3.0 |
930e051d | 2 | |
07d9b3a0 | 3 | # source from http://www.corosync.org |
aeb347a9 | 4 | |
728d91c3 | 5 | CSVERSION=1.4.6 |
1d458e36 | 6 | CSRELEASE=1 |
930e051d DM |
7 | CSDIR=corosync-${CSVERSION} |
8 | CSSRC=corosync-${CSVERSION}.orig.tar.gz | |
9 | ||
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
5aa0e5ba | 11 | GITVERSION:=$(shell cat .git/refs/heads/master) |
930e051d DM |
12 | |
13 | DEBS= \ | |
14 | corosync-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
15 | libcorosync4-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
16 | libcorosync-pve-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb | |
17 | ||
18 | all: ${DEBS} | |
19 | echo ${DEBS} | |
20 | ||
21 | ${DEBS}: ${CSSRC} | |
22 | echo ${DEBS} | |
23 | rm -rf ${CSDIR} | |
24 | tar xf ${CSSRC} | |
25 | cp -a debian ${CSDIR}/debian | |
5aa0e5ba DM |
26 | echo "git clone git://git.proxmox.com/git/corosync-pve.git\\ngit checkout ${GITVERSION}" > ${CSDIR}/debian/SOURCE |
27 | ||
930e051d DM |
28 | cd ${CSDIR}; dpkg-buildpackage -rfakeroot -b -us -uc |
29 | ||
930e051d DM |
30 | .PHONY: upload |
31 | upload: ${DEBS} | |
32 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw | |
33 | mkdir -p /pve/${RELEASE}/extra | |
34 | rm -f /pve/${RELEASE}/extra/corosync*.deb | |
35 | rm -f /pve/${RELEASE}/extra/libcorosync*.deb | |
36 | rm -f /pve/${RELEASE}/extra/Packages* | |
37 | cp ${DEBS} /pve/${RELEASE}/extra | |
38 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz | |
39 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
40 | ||
01f3ad04 DM |
41 | distclean: clean |
42 | ||
930e051d DM |
43 | .PHONY: clean |
44 | clean: | |
45 | rm -rf *_${ARCH}.deb *.changes *.dsc ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz | |
46 | ||
47 | .PHONY: dinstall | |
48 | dinstall: ${DEBS} | |
49 | dpkg -i ${DEBS} |