pmg: load SslProbe in Proxmox/Lib/PMG.pm

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-12-07 09:42:16 +01:00
parent 62fc43fea9
commit 86706cc049
3 changed files with 10 additions and 3 deletions

4
pmg-rs/Fixup.pm Normal file
View File

@ -0,0 +1,4 @@
# BEGIN Fixup.pm
# This is prepended to the current PMG.pm to force-include the temporary `openssl-probe` fixup.
use Proxmox::Lib::SslProbe;
# END Fixup.pm

View File

@ -41,9 +41,10 @@ endif
all: PMG all: PMG
cargo build $(CARGO_BUILD_ARGS) cargo build $(CARGO_BUILD_ARGS)
PMG: Proxmox/Lib/PMG.pm Proxmox PMG: Proxmox/Lib/PMG.pm
Proxmox/Lib/PMG.pm: Proxmox/Lib/PMG.pm: Fixup.pm
$(PERLMOD_GENPACKAGE) $(PERLMOD_PACKAGES) $(PERLMOD_GENPACKAGE) $(PERLMOD_PACKAGES)
sed -i -e '/package Proxmox/rFixup.pm' Proxmox/Lib/PMG.pm
.PHONY: install .PHONY: install
install: target/release/libpmg_rs.so Proxmox/Lib/PMG.pm PMG install: target/release/libpmg_rs.so Proxmox/Lib/PMG.pm PMG
@ -56,6 +57,7 @@ install: target/release/libpmg_rs.so Proxmox/Lib/PMG.pm PMG
distclean: clean distclean: clean
clean: clean:
rm -rf PMG Proxmox
cargo clean cargo clean
rm -f *.deb *.dsc *.tar.* *.build *.buildinfo *.changes Cargo.lock rm -f *.deb *.dsc *.tar.* *.build *.buildinfo *.changes Cargo.lock
rm -rf $(PACKAGE)-[0-9]*/ rm -rf $(PACKAGE)-[0-9]*/
@ -75,7 +77,7 @@ $(BUILDDIR): src debian common/src Cargo.toml Makefile .cargo/config
rm -rf $(BUILDDIR) $(BUILDDIR).tmp rm -rf $(BUILDDIR) $(BUILDDIR).tmp
mkdir $(BUILDDIR).tmp mkdir $(BUILDDIR).tmp
mkdir $(BUILDDIR).tmp/common 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 cp -a -t $(BUILDDIR).tmp/common common/src
mv $(BUILDDIR).tmp $(BUILDDIR) mv $(BUILDDIR).tmp $(BUILDDIR)

View File

@ -45,6 +45,7 @@ Architecture: any
Depends: ${misc:Depends}, Depends: ${misc:Depends},
${perl:Depends}, ${perl:Depends},
${shlibs:Depends}, ${shlibs:Depends},
libproxmox-rs-perl (>= 0.3.3),
Description: Components of Proxmox Mail Gateway which have been ported to Rust. 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 Contains parts of Proxmox Mail Gateway which have been ported to, or newly
implemented in the Rust programming language. implemented in the Rust programming language.