Browse Source

Simplify Debian package building using cargo-deb tooling

timvisee 7 years ago
parent
commit
b20f7f2479
6 changed files with 19 additions and 12 deletions
  1. 19 0
      Cargo.toml
  2. 0 11
      pkg/deb/DEBIAN/control
  3. 0 1
      pkg/deb/blah.txt
  4. 0 0
      pkg/deb/postinst
  5. 0 0
      pkg/deb/prerm
  6. BIN
      pkg/deb/usr/bin/ffsend

+ 19 - 0
Cargo.toml

@@ -22,6 +22,25 @@ exclude = [
     "res/*",
 ]
 
+[package.metadata.deb]
+section = "utils"
+extended-description = """\
+Easily and securely share files and directories from the command line through
+a safe, private and encrypted link using a single simple command. \
+Files are shared using the Send service and may be up to 2GB. \
+Others are able to download these files with this tool, \
+or through their webbrowser.\n\
+\n\
+All files are always encrypted on the client, \
+and secrets are never shared with the remote host. \
+An optional password may be specified, and a default file lifetime of 1 \
+(up to 20) download or 24 hours is enforced to ensure your stuff does not \
+remain online forever. This provides a secure platform to share your files."""
+priority = "standard"
+license-file = ["LICENSE", "3"]
+depends = "$auto, xclip"
+maintainer-scripts = "pkg/deb"
+
 [badges]
 travis-ci = { repository = "timvisee/ffsend", branch = "master" }
 

+ 0 - 11
pkg/deb/DEBIAN/control

@@ -1,11 +0,0 @@
-Package: ffsend
-Version: TODO
-Section: utils
-Priority: standard
-Architecture: TODO
-Recommends: xclip
-Maintainer: Tim Visée <timvisee@gmail.com>
-Description: easily and securely share files from the CLI using Send
- Easily and securely share files from the command line.
- A fully featured Firefox Send client.
-Homepage: https://github.com/timvisee/ffsend

+ 0 - 1
pkg/deb/blah.txt

@@ -1 +0,0 @@
-Some file contents

+ 0 - 0
pkg/deb/DEBIAN/postinst → pkg/deb/postinst


+ 0 - 0
pkg/deb/DEBIAN/prerm → pkg/deb/prerm


BIN
pkg/deb/usr/bin/ffsend