3 # source from http://www.corosync.org
7 CSDIR
=corosync-
${CSVERSION}
8 CSSRC
=corosync-
${CSVERSION}.
tar.gz
10 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
11 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
13 DEB1
:= corosync-pve_
${CSVERSION}-${CSRELEASE}_
${ARCH}.deb
15 DEB2
:= libcorosync4-pve_
${CSVERSION}-${CSRELEASE}_
${ARCH}.deb \
16 libcorosync-pve-dev_
${CSVERSION}-${CSRELEASE}_
${ARCH}.deb
18 DEBS
:= $(DEB1
) $(DEB2
)
29 cp
-a debian
${CSDIR}/debian
30 echo
"git clone git://git.proxmox.com/git/corosync-pve.git\\ngit checkout ${GITVERSION}" > ${CSDIR}/debian
/SOURCE
32 cd
${CSDIR}; dpkg-buildpackage
-b
-us
-uc
36 rm -rf
${CSSRC} ${CSSRC}.tmp
${CSDIR}
37 # wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
38 git clone https
://github.com
/corosync
/corosync.git
-b needle
${CSDIR}
39 cd
${CSDIR}; git checkout v
${CSVERSION}
40 cd
${CSDIR}; .
/autogen.sh
41 tar czf
${CSSRC}.tmp
${CSDIR}
42 mv
${CSSRC}.tmp
${CSSRC}
46 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist jessie
--arch
${ARCH}
52 rm -rf
*_
${ARCH}.deb
*.changes
*.dsc
${CSDIR} corosync_
${CSVERSION}-${CSRELEASE}.
tar.gz
53 find .
-name
'*~' -exec
rm {} ';'