diff --git a/Cargo.toml b/Cargo.toml index 39dcf95..245310c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,11 @@ name = "pxar" version = "0.1.0" authors = ["Wolfgang Bumiller "] edition = "2018" +license = "AGPL-3" +description = "Proxmox Archive format support library" exclude = [ + "build", + "debian", "testdir", ] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..769f40d --- /dev/null +++ b/Makefile @@ -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" \ + "pxar" \ + "$$(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 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d19ff4b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rust-pxar (0.1.0-1) pve; urgency=medium + + * initial release + + -- Proxmox Support Team Wed, 03 Jun 2020 12:34:49 +0200 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2c91d38 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +Copyright (C) 2019,2020 Proxmox Server Solutions GmbH + +This software is written by Proxmox Server Solutions GmbH + +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 . diff --git a/debian/debcargo.toml b/debian/debcargo.toml new file mode 100644 index 0000000..4ac0cfb --- /dev/null +++ b/debian/debcargo.toml @@ -0,0 +1,8 @@ +overlay = "." +crate_src_path = ".." + +[source] +# TODO: update once public +vcs_git = "" +vcs_browser = "" +maintainer = "Proxmox Support Team "