2 PACKAGE
=libpve-access-control
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 export SOURCE_DATE_EPOCH ?
= $(shell dpkg-parsechangelog
-STimestamp
)
18 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
19 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
21 DEB
=${PACKAGE}_
${VERSION}-${PKGREL}_
${ARCH}.deb
23 # this requires package pve-doc-generator
25 include /usr
/share
/pve-doc-generator
/pve-doc-generator.mk
33 pveum.bash-completion
: PVE
/CLI
/pveum.pm
34 perl
-I.
-T
-e
"use PVE::CLI::pveum; PVE::CLI::pveum->generate_bash_completions();" >$@.tmp
38 install: pveum
.1 oathkeygen pveum.bash-completion
39 install -d
${DESTDIR}${BINDIR}
40 install -d
${DESTDIR}${SBINDIR}
41 install -m
0755 pveum
${DESTDIR}${SBINDIR}
42 install -m
0755 oathkeygen
${DESTDIR}${BINDIR}
44 install -d
${DESTDIR}/${MAN1DIR}
45 install -d
${DESTDIR}/${DOCDIR}
46 install -m
0644 pveum
.1 ${DESTDIR}/${MAN1DIR}
47 gzip
-9 -n
${DESTDIR}/${MAN1DIR}/pveum
.1
48 install -m
0644 -D pveum.bash-completion
${DESTDIR}${BASHCOMPLDIR}/pveum
52 perl
-I. .
/pveum verifyapi
53 perl
-I.
-T
-e
"use PVE::CLI::pveum; PVE::CLI::pveum->verify_api();"
60 echo
"git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout ${GITVERSION}" >build
/debian
/SOURCE
61 cd build
; dpkg-buildpackage
-b
-us
-uc
66 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${ARCH}
71 rm -rf build
*.deb
*.buildinfo
*.changes
72 find .
-name
'*~' -exec
rm {} ';'