PACKAGE=libpve-guest-common-perl
-PKGVER=2.0
-PKGREL=3
+PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
+PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
+DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
DESTDIR=
cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}:
+ rm -rf build
+ rsync -a * build
+ cd build; dpkg-buildpackage -S -us -uc -d -nc
+ lintian ${DSC}
+
install: PVE
install -d ${PERL5DIR}/PVE
install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/
+ install -m 0644 PVE/ReplicationState.pm ${PERL5DIR}/PVE/
+ install -m 0644 PVE/Replication.pm ${PERL5DIR}/PVE/
install -d ${PERL5DIR}/PVE/VZDump
install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
distclean: clean
clean:
- rm -rf ./build *.deb *.changes *.buildinfo
+ rm -rf ./build *.deb *.dsc *.changes *.buildinfo *.tar.gz
.PHONY: dinstall
dinstall: ${DEB}