forked from Proxmox/proxmox
move to proxmox-apt/
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
8a7a719aec
commit
0ff81719ad
@ -1,5 +0,0 @@
|
||||
[source]
|
||||
[source.debian-packages]
|
||||
directory = "/usr/share/cargo/registry"
|
||||
[source.crates-io]
|
||||
replace-with = "debian-packages"
|
9
.gitignore
vendored
9
.gitignore
vendored
@ -1,9 +0,0 @@
|
||||
Cargo.lock
|
||||
target/
|
||||
tests/sources.list.d.actual
|
||||
tests/sources.list.d.digest
|
||||
proxmox-apt-*/
|
||||
*proxmox-apt*.buildinfo
|
||||
*proxmox-apt*.tar.?z
|
||||
*proxmox-apt*.changes
|
||||
*proxmox-apt*.deb
|
67
Makefile
67
Makefile
@ -1,67 +0,0 @@
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
include /usr/share/dpkg/architecture.mk
|
||||
|
||||
PACKAGE=proxmox-apt
|
||||
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||
BUILDDIR_TMP ?= $(BUILDDIR).tmp
|
||||
|
||||
DEB=librust-$(PACKAGE)-dev_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
|
||||
DSC=rust-$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||
|
||||
ifeq ($(BUILD_MODE), release)
|
||||
CARGO_BUILD_ARGS += --release
|
||||
COMPILEDIR := target/release
|
||||
else
|
||||
COMPILEDIR := target/debug
|
||||
endif
|
||||
|
||||
all: cargo-build $(SUBDIRS)
|
||||
|
||||
.PHONY: cargo-build
|
||||
cargo-build:
|
||||
cargo build $(CARGO_BUILD_ARGS)
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
rm -rf $(BUILDDIR) $(BUILDDIR_TMP); mkdir $(BUILDDIR_TMP)
|
||||
rm -f debian/control
|
||||
debcargo package \
|
||||
--config debian/debcargo.toml \
|
||||
--changelog-ready \
|
||||
--no-overlay-write-back \
|
||||
--directory $(BUILDDIR_TMP) \
|
||||
$(PACKAGE) \
|
||||
$(shell dpkg-parsechangelog -l debian/changelog -SVersion | sed -e 's/-.*//')
|
||||
cp $(BUILDDIR_TMP)/debian/control debian/control
|
||||
rm -f $(BUILDDIR_TMP)/Cargo.lock
|
||||
find $(BUILDDIR_TMP)/debian -name "*.hint" -delete
|
||||
mv $(BUILDDIR_TMP) $(BUILDDIR)
|
||||
|
||||
.PHONY: deb
|
||||
deb: $(DEB)
|
||||
$(DEB): build
|
||||
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc --no-pre-clean
|
||||
lintian $(DEB)
|
||||
|
||||
.PHONY: dsc
|
||||
dsc: $(DSC)
|
||||
$(DSC): build
|
||||
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d -nc
|
||||
lintian $(DSC)
|
||||
|
||||
.PHONY: dinstall
|
||||
dinstall: $(DEB)
|
||||
dpkg -i $(DEB)
|
||||
|
||||
.PHONY: upload
|
||||
upload: $(DEB)
|
||||
tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist bullseye --arch $(DEB_BUILD_ARCH)
|
||||
|
||||
.PHONY: distclean
|
||||
distclean: clean
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
cargo clean
|
||||
rm -rf *.deb *.buildinfo *.changes *.dsc rust-$(PACKAGE)_*.tar.?z $(BUILDDIR) $(BUILDDIR_TMP)
|
||||
find . -name '*~' -exec rm {} ';'
|
@ -1 +0,0 @@
|
||||
edition = "2021"
|
Loading…
Reference in New Issue
Block a user