all: PMG
cargo build $(CARGO_BUILD_ARGS)
-PMG: Proxmox/Lib/PMG.pm
-Proxmox/Lib/PMG.pm:
+Proxmox PMG: Proxmox/Lib/PMG.pm
+Proxmox/Lib/PMG.pm: Fixup.pm
$(PERLMOD_GENPACKAGE) $(PERLMOD_PACKAGES)
+ sed -i -e '/package Proxmox/rFixup.pm' Proxmox/Lib/PMG.pm
.PHONY: install
install: target/release/libpmg_rs.so Proxmox/Lib/PMG.pm PMG
distclean: clean
clean:
+ rm -rf PMG Proxmox
cargo clean
rm -f *.deb *.dsc *.tar.* *.build *.buildinfo *.changes Cargo.lock
rm -rf $(PACKAGE)-[0-9]*/
rm -rf $(BUILDDIR) $(BUILDDIR).tmp
mkdir $(BUILDDIR).tmp
mkdir $(BUILDDIR).tmp/common
- cp -a -t $(BUILDDIR).tmp src debian Cargo.toml Makefile .cargo
+ cp -a -t $(BUILDDIR).tmp src debian Cargo.toml Makefile .cargo Fixup.pm
cp -a -t $(BUILDDIR).tmp/common common/src
mv $(BUILDDIR).tmp $(BUILDDIR)
Depends: ${misc:Depends},
${perl:Depends},
${shlibs:Depends},
+ libproxmox-rs-perl (>= 0.3.3),
Description: Components of Proxmox Mail Gateway which have been ported to Rust.
Contains parts of Proxmox Mail Gateway which have been ported to, or newly
implemented in the Rust programming language.