]> git.proxmox.com Git - corosync-pve.git/blob - Makefile
bump version to 2.4.4-pve1
[corosync-pve.git] / Makefile
1 RELEASE=5.0
2
3 # source from http://www.corosync.org
4
5 CSVERSION=2.4.4
6 CSRELEASE=pve1
7 DEBRELEASE=3
8 CSDIR=corosync-${CSVERSION}
9 CSSRC=corosync_${CSVERSION}.orig.tar.gz
10
11 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
12 GITVERSION:=$(shell git rev-parse HEAD)
13
14 MAIN_DEB=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb
15
16 OTHER_DEBS=\
17 libcorosync4-pve_${CSVERSION}-${CSRELEASE}_all.deb \
18 corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
19 corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
20 corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
21 corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
22 corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \
23 corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \
24 libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
25 libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
26 libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
27 libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
28 libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
29 libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
30 libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
31 libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
32 libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
33 libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
34 libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
35 libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
36 libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
37 libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
38 libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
39 libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
40
41 DBG_DEBS=\
42 corosync-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
43 corosync-notifyd-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
44 corosync-qdevice-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
45 corosync-qnetd-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
46 libcfg6-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
47 libcmap4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
48 libcorosync-common4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
49 libcpg4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
50 libquorum5-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
51 libsam4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
52 libtotem-pg5-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
53 libvotequorum8-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
54
55 DEBS=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS}
56
57 DSC=corosync-pve_${CSVERSION}-${CSRELEASE}.dsc
58
59 all: ${DEBS}
60 echo ${DEBS}
61
62 ${CSDIR}: ${CSSRC} patches changelog.Debian
63 rm -rf $@ $@.tmp
64 mkdir $@.tmp
65 tar -C $@.tmp --strip-components=1 -xf ${CSSRC}
66 mv $@.tmp/debian/changelog $@.tmp/debian/changelog.org
67 cat changelog.Debian $@.tmp/debian/changelog.org > $@.tmp/debian/changelog
68 cd $@.tmp; ln -s ../patches patches
69 cd $@.tmp; quilt push -a
70 cd $@.tmp; rm -rf .pc ./patches
71 mv $@.tmp $@
72
73 .PHONY: deb
74 deb: ${DEBS}
75 ${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB}
76 ${MAIN_DEB}: ${CSDIR}
77 cd ${CSDIR}; dpkg-buildpackage -b -us -uc
78
79 .PHONY: dsc
80 dsc: ${DSC}
81 ${DSC}: ${CSDIR}
82 cd ${CSDIR}; dpkg-buildpackage -S -us -uc -d -nc
83
84 .PHONY: download
85 download:
86 rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR}
87 git clone https://salsa.debian.org/ha-team/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR}
88 tar czf ${CSSRC}.tmp ${CSDIR}
89 mv ${CSSRC}.tmp ${CSSRC}
90
91 .PHONY: upload
92 upload: ${DEBS}
93 tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
94
95 distclean: clean
96
97 .PHONY: clean
98 clean:
99 rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} *.debian.tar.xz
100 find . -name '*~' -exec rm {} ';'
101
102 .PHONY: dinstall
103 dinstall: ${DEBS}
104 dpkg -i ${DEBS}