mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-29 17:03:08 +00:00
move to proxmox-acme
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
6e1e835739
commit
a1b59c8a23
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
/target
|
|
||||||
Cargo.lock
|
|
45
Makefile
45
Makefile
@ -1,45 +0,0 @@
|
|||||||
.PHONY: all
|
|
||||||
all: check
|
|
||||||
|
|
||||||
.PHONY: check
|
|
||||||
check:
|
|
||||||
cargo test --all-features
|
|
||||||
|
|
||||||
.PHONY: dinstall
|
|
||||||
dinstall: deb
|
|
||||||
sudo -k dpkg -i build/librust-*.deb
|
|
||||||
|
|
||||||
.PHONY: build
|
|
||||||
build:
|
|
||||||
rm -rf build
|
|
||||||
rm -f debian/control
|
|
||||||
mkdir build
|
|
||||||
debcargo package \
|
|
||||||
--config "$(PWD)/debian/debcargo.toml" \
|
|
||||||
--changelog-ready \
|
|
||||||
--no-overlay-write-back \
|
|
||||||
--directory "$(PWD)/build/proxmox-acme-rs" \
|
|
||||||
"proxmox-acme-rs" \
|
|
||||||
"$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')"
|
|
||||||
echo system >build/rust-toolchain
|
|
||||||
rm -f build/proxmox-acme-rs/Cargo.lock
|
|
||||||
find build/proxmox-acme-rs/debian -name '*.hint' -delete
|
|
||||||
cp build/proxmox-acme-rs/debian/control debian/control
|
|
||||||
|
|
||||||
.PHONY: deb
|
|
||||||
deb: build
|
|
||||||
(cd build/proxmox-acme-rs && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us)
|
|
||||||
lintian build/*.deb
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
rm -rf build *.deb *.buildinfo *.changes *.orig.tar.gz
|
|
||||||
cargo clean
|
|
||||||
|
|
||||||
upload: deb
|
|
||||||
cd build; \
|
|
||||||
dcmd --deb rust-proxmox-acme-rs_*.changes \
|
|
||||||
| grep -v '.changes$$' \
|
|
||||||
| tar -cf "rust-proxmox-acme-rs-debs.tar" -T-; \
|
|
||||||
cat "rust-proxmox-acme-rs-debs.tar" | ssh -X repoman@repo.proxmox.com upload --product devel --dist bullseye; \
|
|
||||||
rm -f rust-proxmox-acme-rs-debs.tar
|
|
Loading…
Reference in New Issue
Block a user