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