]>
Commit | Line | Data |
---|---|---|
1 | PACKAGE=libpve-guest-common-perl | |
2 | PKGVER=2.0 | |
3 | PKGREL=4 | |
4 | ||
5 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb | |
6 | ||
7 | DESTDIR= | |
8 | ||
9 | PERL5DIR=${DESTDIR}/usr/share/perl5 | |
10 | DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} | |
11 | ||
12 | all: | |
13 | ||
14 | .PHONY: deb | |
15 | deb: ${DEB} | |
16 | ${DEB}: | |
17 | rm -rf build | |
18 | rsync -a * build | |
19 | cd build; dpkg-buildpackage -b -us -uc | |
20 | lintian ${DEB} | |
21 | ||
22 | install: PVE | |
23 | install -d ${PERL5DIR}/PVE | |
24 | install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/ | |
25 | install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/ | |
26 | install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/ | |
27 | install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/ | |
28 | install -m 0644 PVE/ReplicationState.pm ${PERL5DIR}/PVE/ | |
29 | install -d ${PERL5DIR}/PVE/VZDump | |
30 | install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/ | |
31 | ||
32 | .PHONY: upload | |
33 | upload: ${DEB} | |
34 | tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch | |
35 | ||
36 | distclean: clean | |
37 | ||
38 | clean: | |
39 | rm -rf ./build *.deb *.changes *.buildinfo | |
40 | ||
41 | .PHONY: dinstall | |
42 | dinstall: ${DEB} | |
43 | dpkg -i ${DEB} |