diff --git a/Makefile b/Makefile index fb4f3b3..d40e206 100644 --- a/Makefile +++ b/Makefile @@ -7,22 +7,37 @@ check: .PHONY: dinstall dinstall: deb + sudo -k dpkg -i build/librust-*.deb -.PHONY: deb -deb: +.PHONY: build +build: rm -rf build + mkdir build debcargo package \ --config "$(PWD)/debian/debcargo.toml" \ --changelog-ready \ --no-overlay-write-back \ - --directory "$(PWD)/build" \ + --directory "$(PWD)/build/pathpatterns" \ "pathpatterns" \ "$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')" echo system >build/rust-toolchain - (cd build && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us) - lintian *.deb + rm -f build/pathpatterns/Cargo.lock + find build/pathpatterns/debian -name '*.hint' -delete + cp build/pathpatterns/debian/control debian/control + +.PHONY: deb +deb: build + (cd build/pathpatterns && 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-pathpatterns_*.changes \ + | grep -v '.changes$$' \ + | tar -cf- -T- \ + | ssh -X repoman@repo.proxmox.com upload --product devel --dist buster diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..eef1555 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: rust-pathpatterns +Section: rust +Priority: optional +Build-Depends: debhelper (>= 11), + dh-cargo (>= 18), + cargo:native , + rustc:native , + libstd-rust-dev , + librust-bitflags-1+default-dev (>= 1.2-~~) , + librust-libc-0.2+default-dev +Maintainer: Proxmox Support Team +Standards-Version: 4.4.1 +Vcs-Git: +Vcs-Browser: + +Package: librust-pathpatterns-dev +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + librust-bitflags-1+default-dev (>= 1.2-~~), + librust-libc-0.2+default-dev +Provides: + librust-pathpatterns+default-dev (= ${binary:Version}), + librust-pathpatterns-0-dev (= ${binary:Version}), + librust-pathpatterns-0+default-dev (= ${binary:Version}), + librust-pathpatterns-0.1-dev (= ${binary:Version}), + librust-pathpatterns-0.1+default-dev (= ${binary:Version}), + librust-pathpatterns-0.1.2-dev (= ${binary:Version}), + librust-pathpatterns-0.1.2+default-dev (= ${binary:Version}) +Description: Include/exclude path list implementation with git-like globbing support - Rust source code + This package contains the source for the Rust pathpatterns crate, packaged by + debcargo for use with cargo and dh-cargo.