2 PACKAGE
=libpve-storage-perl
9 MANDIR
=${PREFIX}/share
/man
10 DOCDIR
=${PREFIX}/share
/doc
/${PACKAGE}
11 MAN1DIR
=${MANDIR}/man1
/
12 BASHCOMPLDIR
=${PREFIX}/share
/bash-completion
/completions
/
14 export PERLDIR
=${PREFIX}/share
/perl5
16 #ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
18 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
20 DEB
=${PACKAGE}_
${VERSION}-${PKGREL}_
${ARCH}.deb
22 # this require package pve-doc-generator
24 include /usr
/share
/pve-doc-generator
/pve-doc-generator.mk
32 pvesm.bash-completion
:
33 perl
-I.
-T
-e
"use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
36 pvesr.bash-completion
:
37 perl
-I.
-T
-e
"use PVE::CLI::pvesr; PVE::CLI::pvesr->generate_bash_completions();" >$@.tmp
41 install: pvesm
.1 pvesm.bash-completion pvesr.bash-completion
42 install -d
${DESTDIR}${SBINDIR}
43 install -m
0755 pvesm
${DESTDIR}${SBINDIR}
44 install -m
0755 pvesr
${DESTDIR}${SBINDIR}
46 install -d
${DESTDIR}/var
/lib
/pve-replica
47 install -d
${DESTDIR}/usr
/share
/man
/man1
48 install -m
0644 pvesm
.1 ${DESTDIR}/usr
/share
/man
/man1
/
49 gzip
-9 -n
${DESTDIR}/usr
/share
/man
/man1
/pvesm
.1
50 install -m
0644 -D pvesm.bash-completion
${DESTDIR}${BASHCOMPLDIR}/pvesm
51 install -m
0644 -D pvesr.bash-completion
${DESTDIR}${BASHCOMPLDIR}/pverepm
59 make DESTDIR
=${CURDIR}/debian
install
60 perl
-I.
-T
-e
"use PVE::CLI::pvesm; PVE::CLI::pvesm->verify_api();"
61 install -d
-m
0755 debian
/DEBIAN
62 sed
-e s
/@@VERSION@@
/${VERSION}/ -e s
/@@PKGRELEASE@@
/${PKGREL}/ -e s
/@@ARCH@@
/${ARCH}/ <control.in
>debian
/DEBIAN
/control
63 install -D
-m
0644 copyright debian
/${DOCDIR}/copyright
64 install -m
0644 changelog.Debian debian
/${DOCDIR}/
65 install -m
0644 triggers debian
/DEBIAN
66 gzip
-9 -n debian
/${DOCDIR}/changelog.Debian
67 echo
"git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" > debian
/${DOCDIR}/SOURCE
68 fakeroot dpkg-deb
--build debian
76 rm -rf debian
*.deb
${PACKAGE}-*.
tar.gz
dist *.1 *.tmp pvesm.bash-completion pvesr.bash-completion
77 find .
-name
'*~' -exec
rm {} ';'
85 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch