add debian build files

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-06-03 13:32:09 +02:00
parent 6d54e32c59
commit 7ffe482dd5
5 changed files with 61 additions and 0 deletions

View File

@ -3,6 +3,10 @@ name = "pathpatterns"
version = "0.1.0" version = "0.1.0"
authors = ["Wolfgang Bumiller <w.bumiller@errno.eu>"] authors = ["Wolfgang Bumiller <w.bumiller@errno.eu>"]
edition = "2018" edition = "2018"
license = "AGPL-3"
description = "Expose fuse requests as async streams."
exclude = [ "build", "debian" ]
[dependencies] [dependencies]
bitflags = "1.2" bitflags = "1.2"

28
Makefile Normal file
View File

@ -0,0 +1,28 @@
.PHONY: all
all: check
.PHONY: check
check:
cargo test
.PHONY: dinstall
dinstall: deb
.PHONY: deb
deb:
rm -rf build
debcargo package \
--config "$(PWD)/debian/debcargo.toml" \
--changelog-ready \
--no-overlay-write-back \
--directory "$(PWD)/build" \
"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
.PHONY: clean
clean:
rm -rf build
cargo clean

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
rust-pathpatterns (0.1.0-1) pve; urgency=medium
* initial release
-- Proxmox Support Team <support@proxmox.com> Wed, 03 Jun 2020 12:34:49 +0200

16
debian/copyright vendored Normal file
View File

@ -0,0 +1,16 @@
Copyright (C) 2019,2020 Proxmox Server Solutions GmbH
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

8
debian/debcargo.toml vendored Normal file
View File

@ -0,0 +1,8 @@
overlay = "."
crate_src_path = ".."
[source]
# TODO: update once public
vcs_git = ""
vcs_browser = ""
maintainer = "Proxmox Support Team <support@proxmox.com>"