From dd2c2b7d0eea3ddc6c34be0ca79fc5d9cd82a49c Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Tue, 12 Mar 2019 21:41:29 +0100 Subject: Initial Debian packaging --- debian/changelog | 5 +++++ debian/control | 19 +++++++++++++++++++ debian/copyright | 23 +++++++++++++++++++++++ debian/docs | 1 + debian/install | 2 ++ debian/rules | 21 +++++++++++++++++++++ debian/source/format | 1 + 7 files changed, 72 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3ebc0dd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rtftp (1.0.0-1) UNRELEASED; urgency=low + + * Initial release. + + -- Reiner Herrmann Tue, 12 Mar 2019 21:41:05 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..82acad0 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: rtftp +Section: net +Priority: optional +Maintainer: Reiner Herrmann +Build-Depends: debhelper-compat (= 12), + cargo, + rustc, + librust-getopts-dev (>= 0.2.18), + librust-nix-dev (>= 0.13.0), + librust-threadpool-dev (>= 1.7.1) +Standards-Version: 4.3.0 +Rules-Requires-Root: no + +Package: rtftp +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: a rusty TFTP client/server + RustFTP provides a server and a client for the Trivial File Transfer + Protocol (TFTP). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0e0022d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: RusTFTP + +Files: * +Copyright: 2019 Reiner Herrmann +License: GPL-3+ + +License: GPL-3+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This package 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 General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..60c73bb --- /dev/null +++ b/debian/install @@ -0,0 +1,2 @@ +target/*/release/rtftpc usr/bin +target/*/release/rtftpd usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d0c4158 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +TARGET=x86_64-unknown-linux-musl + +%: + dh $@ + +override_dh_auto_build: + cargo build --release --target $(TARGET) + +override_dh_auto_clean: + cargo clean + dh_auto_clean + +override_dh_dwz: + dh_dwz --no-dwz-multifile + +override_dh_strip: + dh_strip --no-automatic-dbgsym diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v1.2.3