debian: update debian package metadata

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/323/head
Manos Pitsidianakis 2023-12-10 19:00:53 +02:00
parent 5f8d7c8039
commit 59c99fdc79
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
12 changed files with 70 additions and 8 deletions

View File

@ -130,8 +130,9 @@ clean:
-rm -rf ./${CARGO_TARGET_DIR}/
.PHONY: distclean
distclean: clean
distclean:
@rm -f meli-${VERSION}.tar.gz
@rm -rf .pc # rm debian stuff
.PHONY: uninstall
uninstall:

1
debian/compat vendored
View File

@ -1 +0,0 @@
11

14
debian/control vendored
View File

@ -2,13 +2,19 @@ Source: meli
Section: mail
Priority: optional
Maintainer: Manos Pitsidianakis <manos@pitsidianak.is>
Build-Depends: debhelper (>=11~), mandoc (>=1.14.4-1), quilt, libsqlite3-dev
Build-Depends: debhelper-compat (=13), mandoc (>=1.14.4-1), quilt, libsqlite3-dev
Standards-Version: 4.1.4
Rules-Requires-Root: no
Vcs-Git: https://git.meliemail.org/meli/meli.git
Vcs-Browser: https://git.meliemail.org/meli/meli
Homepage: https://meliemail.org
Package: meli
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Recommends: libnotmuch, xdg-utils (>=1.1.3-1)
Description: terminal mail client
Recommends: xdg-utils (>=1.1.3-1), w3m, mailcap
Suggests: libnotmuch5, notmuch, rss2email, xterm, neovim, msmtp
Provides: mail-reader, imap-client
Description: terminal mail client.
meli supports mbox, maildir, IMAP, JMAP, notmuch and NNTP (Usernet) with
TLS/SSL, SASL, GPG features.

2
debian/copyright vendored
View File

@ -1,6 +1,6 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: meli
Source: <https://git.meliemail.org/meli/meli>
Source: https://git.meliemail.org/meli/meli
#
# Please double check copyright with the licensecheck(1) command.

8
debian/extra/meli.desktop vendored 100644
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=meli
Exec=meli
Categories=Office;Network;Email;
Comment=Terminal mail client
NoDisplay=false
Terminal=true
Type=Application

7
debian/meli.bug-presubj vendored 100644
View File

@ -0,0 +1,7 @@
WARNING: This package is not distributed by debian, it was generated from the source repository of meli.
Please do not report bugs to debian, but to the appropriate issue tracker for meli:
- https://git.meliemail.org/meli/meli/issues
- Send e-mail to the mailing list, "meli general" <meli-general@meliemail.org>
https://lists.meliemail.org/list/meli-general/

9
debian/meli.bug-script vendored 100755
View File

@ -0,0 +1,9 @@
#!/bin/sh
echo "Including output of \`meli -v\` and \`meli compiled-with\`..."
LC_ALL=C meli -v >&3
echo "\nEnabled compile-time features"
echo "-----------------------------"
LC_ALL=C meli compiled-with >&3 || true

5
debian/meli.doc-base vendored 100644
View File

@ -0,0 +1,5 @@
Document: meli
Title: meli E-mail Client Manual
Author: Various
Abstract: Manual for meli the terminal e-mail client.
Section: Network/Communication

2
debian/meli.examples vendored 100644
View File

@ -0,0 +1,2 @@
meli/docs/samples/sample-config.toml
meli/docs/samples/themes

View File

@ -1 +1,2 @@
fix-prefix-for-debian.patch
usr_bin_editor.patch

View File

@ -0,0 +1,23 @@
From: Manos Pitsidianakis <manos@pitsidianak.is>
Date: Thu, 27 Feb 2014 16:06:15 +0100
Subject: usr_bin_editor
If EDITOR or VISUAL is not set, fall back to /usr/bin/editor,
which is set by update-alternatives.
---
meli/src/subcommands.rs | 1 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- a/meli/src/subcommands.rs
+++ b/meli/src/subcommands.rs
@@ -52,9 +52,7 @@
pub fn edit_config() -> Result<()> {
let editor = std::env::var("EDITOR")
.or_else(|_| std::env::var("VISUAL"))
- .map_err(|err| {
- format!("Could not find any value in environment variables EDITOR and VISUAL. {err}")
- })?;
+ .unwrap_or_else(|_| "/usr/bin/editor".into());
let config_path = crate::conf::get_config_file()?;
let mut cmd = Command::new(editor);

3
debian/rules vendored
View File

@ -1,6 +1,7 @@
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
export RUSTUP_HOME=${HOME}/.rustup
export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed