1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
6 GITVERSION
:=$(shell git rev-parse HEAD
)
8 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_BUILD_ARCH
).deb
9 LIB_DEB
= libpve-cluster-perl_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
10 LIB_DEB
+= libpve-cluster-api-perl_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
11 DBG_DEB
=$(PACKAGE
)-dbgsym_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_BUILD_ARCH
).deb
13 DEBS
= $(DEB
) $(DBG_DEB
) $(LIB_DEB
)
15 PERL_APIVER
:= `perl -MConfig -e 'print $$Config(debian_abi)//$$Config(version);'`
17 all: $(DEB
) $(DBG_DEB
)
20 gcc
-Wall cpgtest.c
$(shell pkg-config
--cflags --libs libcpg libqb
) -o cpgtest
23 dinstall
: $(DEB
) $(LIB_DEB
)
27 deb
$(DBG_DEB
) $(LIB_DEB
): $(DEB
)
32 cp
-a debian build
/debian
33 echo
"git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout $(GITVERSION)" > build
/debian
/SOURCE
34 cd build
; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
40 tar cf
- $(DEBS
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist bullseye
--arch
$(DEB_BUILD_ARCH
)
44 rm -rf
*~ build
*.deb
*.changes
*.dsc
*.buildinfo