5 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
6 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
8 DEB
=${PACKAGE}_
${PKGVER}-${PKGREL}_
${ARCH}.deb
9 DBG_DEB
=${PACKAGE}-dbg_
${PKGVER}-${PKGREL}_
${ARCH}.deb
11 PERL_APIVER
:= `perl -MConfig -e 'print $$Config{debian_abi}//$$Config{version};'`
13 all: ${DEB} ${DBG_DEB}
16 gcc
-Wall cpgtest.c
$(shell pkg-config
--cflags --libs libcpg libqb
) -o cpgtest
23 deb
${DBG_DEB}: ${DEB}
28 cp
-a debian build
/debian
29 sed
-e
"s|@PERLAPI@|perlapi-$(PERL_APIVER)|g" debian
/control.in
> build
/debian
/control
30 echo
"git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout ${GITVERSION}" > build
/debian
/SOURCE
31 cd build
; .
/autogen.sh
32 cd build
; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
37 upload
: ${DEB} ${DBG_DEB}
38 tar cf
- ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${ARCH}
42 rm -rf
*~ build
*_
${ARCH}.deb
*.changes
*.dsc
${CSDIR} *.buildinfo