1 include /usr
/share
/dpkg
/default.mk
3 PACKAGE
=libpve-apiclient-perl
5 BUILDSRC
:= $(PACKAGE
)-$(DEB_VERSION
)
6 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_all.deb
7 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
10 PERL5DIR
=$(DESTDIR
)/usr
/share
/perl5
11 DOCDIR
=$(DESTDIR
)/usr
/share
/doc
/$(PACKAGE
)
13 GITVERSION
:=$(shell git rev-parse HEAD
)
20 rsync
-a debian
$(BUILDSRC
)
21 make DESTDIR
=.
/$(BUILDSRC
) install
22 echo
"git clone git://git.proxmox.com/git/pve-apiclient.git\\ngit checkout $(GITVERSION)" > $(BUILDSRC
)/debian
/SOURCE
25 deb
$(DEB
): $(BUILDSRC
)
26 cd
$(BUILDSRC
); dpkg-buildpackage
-rfakeroot
-b
-us
-uc
31 cd
$(BUILDSRC
); dpkg-buildpackage
-S
-us
-uc
-d
-nc
34 install: PVE
/APIClient
/Exception.pm PVE
/APIClient
/LWP.pm examples
/*.pl
35 install -D
-m
0644 PVE
/APIClient
/LWP.pm
$(PERL5DIR
)/PVE
/APIClient
/LWP.pm
36 install -m
0644 PVE
/APIClient
/Exception.pm
$(PERL5DIR
)/PVE
/APIClient
/Exception.pm
37 install -d
-m
755 $(DOCDIR
)/examples
38 install -m
0755 examples
/example1.pl
$(DOCDIR
)/examples
39 install -m
0755 examples
/example2.pl
$(DOCDIR
)/examples
40 install -m
0755 examples
/perftest1.pl
$(DOCDIR
)/examples
44 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com upload
--product pmg
,pve
--dist bullseye
48 rm -rf
$(PACKAGE
)-[0-9]*/ *.deb
*.changes
*.buildinfo
*.build
*.dsc
*.
tar.
*