* [bug#44423] [PATCH 0/3] Update gmnisrv.
@ 2020-11-03 19:17 Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Alexandru-Sergiu Marton
2020-11-14 11:40 ` bug#44423: [PATCH 0/3] Update gmnisrv Christopher Baines
0 siblings, 2 replies; 7+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-11-03 19:17 UTC (permalink / raw)
To: 44423; +Cc: Alexandru-Sergiu Marton
These patches add the mailcap package and update the gmnisrv Gemini
server. They also export the types needed to actually use the server,
something which I forgot to do when I wrote the service for gmnisrv.
Alexandru-Sergiu Marton (3):
gnu: Add mailcap.
services: gmnisrv: Export types.
gnu: Update gmnisrv.
gnu/packages/mail.scm | 37 +++++++++++++++++++++++++++++++++++++
gnu/packages/web.scm | 19 ++++++++-----------
gnu/services/web.scm | 9 ++++++++-
3 files changed, 53 insertions(+), 12 deletions(-)
--
2.29.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#44423] [PATCH 1/3] gnu: Add mailcap.
2020-11-03 19:17 [bug#44423] [PATCH 0/3] Update gmnisrv Alexandru-Sergiu Marton
@ 2020-11-03 19:19 ` Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 2/3] services: gmnisrv: Export types Alexandru-Sergiu Marton
` (2 more replies)
2020-11-14 11:40 ` bug#44423: [PATCH 0/3] Update gmnisrv Christopher Baines
1 sibling, 3 replies; 7+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-11-03 19:19 UTC (permalink / raw)
To: 44423; +Cc: Alexandru-Sergiu Marton
* gnu/packages/mail.scm (mailcap): New variable.
---
gnu/packages/mail.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 44a156fd99..2f4173dc92 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -747,6 +747,43 @@ MIME-encoded email package.")
(home-page "https://github.com/inflex/ripMIME")
(license license:bsd-3))))
+(define-public mailcap
+ (let* ((version "2.1.49")
+ (tag ;; mailcap tags their releases like this: rMajor-minor-patch
+ (string-append "r" (string-join (string-split version #\.) "-"))))
+ (package
+ (name "mailcap")
+ (version version)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://pagure.io/mailcap.git")
+ (commit tag)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ck1fw6gqn51phcfakhfpfq1yziv3gnmgjvswzhj9x0p162n6alj"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'install 'set-dest-dir
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "DESTDIR" out)
+ (substitute* "Makefile"
+ (("/usr") "")) ;; This allows the man page to install.
+ #t))))))
+ (native-inputs `(("python" ,python-3.8))) ;; for tests
+ (synopsis "MIME type associations for file types")
+ (description "This package provides MIME type associations for file
+types.")
+ (home-page "https://pagure.io/mailcap")
+ (license (list license:expat ;; mailcap.5
+ license:public-domain))))) ;; mailcap and mime.types
+
(define-public bogofilter
(package
(name "bogofilter")
--
2.29.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#44423] [PATCH 2/3] services: gmnisrv: Export types.
2020-11-03 19:19 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Alexandru-Sergiu Marton
@ 2020-11-03 19:19 ` Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 3/3] gnu: Update gmnisrv Alexandru-Sergiu Marton
2020-11-14 11:42 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Christopher Baines
2 siblings, 0 replies; 7+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-11-03 19:19 UTC (permalink / raw)
To: 44423; +Cc: Alexandru-Sergiu Marton
* gnu/services/web.scm: Export gmnisrv-configuration, gmnisrv-configuration?,
gmnisrv-configuration-package, gmnisrv-configuration-config-file,
gmnisrv-service-type.
---
gnu/services/web.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index 7e17dac6e2..0f8f09d919 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -256,7 +256,14 @@
mumi-configuration-sender
mumi-configuration-smtp
- mumi-service-type))
+ mumi-service-type
+
+ gmnisrv-configuration
+ gmnisrv-configuration?
+ gmnisrv-configuration-package
+ gmnisrv-configuration-config-file
+
+ gmnisrv-service-type))
;;; Commentary:
;;;
--
2.29.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [bug#44423] [PATCH 3/3] gnu: Update gmnisrv.
2020-11-03 19:19 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 2/3] services: gmnisrv: Export types Alexandru-Sergiu Marton
@ 2020-11-03 19:19 ` Alexandru-Sergiu Marton
2020-11-14 11:43 ` Christopher Baines
2020-11-14 11:42 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Christopher Baines
2 siblings, 1 reply; 7+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-11-03 19:19 UTC (permalink / raw)
To: 44423; +Cc: Alexandru-Sergiu Marton
* gnu/packages/web.scm (gmnisrv): Update to commit
d484ba0ab0020866535a44be5948c9482b8f2b8d.
---
gnu/packages/web.scm | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 93399b3459..0f7c5fe2e9 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -129,6 +129,7 @@
#:use-module (gnu packages lisp-xyz)
#:use-module (gnu packages lsof)
#:use-module (gnu packages lua)
+ #:use-module (gnu packages mail)
#:use-module (gnu packages man)
#:use-module (gnu packages markup)
#:use-module (gnu packages ncurses)
@@ -7706,10 +7707,11 @@ solution for any project's interface needs:
(license license:expat)))
(define-public gmnisrv
- (let ((commit "a22bec51494a50c044416d469cc33e043480e7fd"))
+ (let ((commit "d484ba0ab0020866535a44be5948c9482b8f2b8d")
+ (revision "1"))
(package
(name "gmnisrv")
- (version (git-version "0" "0" commit))
+ (version (git-version "0" revision commit))
(home-page "https://git.sr.ht/~sircmpwn/gmnisrv")
(source (origin
(method git-fetch)
@@ -7718,7 +7720,7 @@ solution for any project's interface needs:
(commit commit)))
(sha256
(base32
- "1k1n7cqd37jgbhxyh231bagdxdxqwpr6n5pk3gax2516w6xbzlb9"))
+ "11phipixsxx1jgm42agp76p5s68l0zj65kgb41vzaymgwcq79ivn"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(arguments
@@ -7728,19 +7730,14 @@ solution for any project's interface needs:
(lambda _
(setenv "CC" "gcc")
#t))
- (delete 'check)
- (add-after 'install 'install-config
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((etc (string-append (assoc-ref outputs "out")
- "/etc")))
- (mkdir-p etc)
- (copy-file "config.ini" (string-append etc "/gmnisrv.ini"))
- #t))))))
+ (delete 'check))))
(inputs
`(("openssl" ,openssl)))
(native-inputs
`(("pkg-config" ,pkg-config)
("scdoc" ,scdoc)))
+ (propagated-inputs
+ `(("mailcap" ,mailcap)))
(synopsis "Simple Gemini protocol server")
(description "gmnisrv is a simple Gemini protocol server written in C.")
(license (list license:gpl3+
--
2.29.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* bug#44423: [PATCH 0/3] Update gmnisrv.
2020-11-03 19:17 [bug#44423] [PATCH 0/3] Update gmnisrv Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Alexandru-Sergiu Marton
@ 2020-11-14 11:40 ` Christopher Baines
1 sibling, 0 replies; 7+ messages in thread
From: Christopher Baines @ 2020-11-14 11:40 UTC (permalink / raw)
To: Alexandru-Sergiu Marton; +Cc: 44423-done
[-- Attachment #1: Type: text/plain, Size: 698 bytes --]
Alexandru-Sergiu Marton <brown121407@posteo.ro> writes:
> These patches add the mailcap package and update the gmnisrv Gemini
> server. They also export the types needed to actually use the server,
> something which I forgot to do when I wrote the service for gmnisrv.
>
> Alexandru-Sergiu Marton (3):
> gnu: Add mailcap.
> services: gmnisrv: Export types.
> gnu: Update gmnisrv.
>
> gnu/packages/mail.scm | 37 +++++++++++++++++++++++++++++++++++++
> gnu/packages/web.scm | 19 ++++++++-----------
> gnu/services/web.scm | 9 ++++++++-
> 3 files changed, 53 insertions(+), 12 deletions(-)
Thanks, I've pushed this as 870d74ab6883196b269382b86b6e48a1cc7ac8ae
with a few tweaks.
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#44423] [PATCH 1/3] gnu: Add mailcap.
2020-11-03 19:19 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 2/3] services: gmnisrv: Export types Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 3/3] gnu: Update gmnisrv Alexandru-Sergiu Marton
@ 2020-11-14 11:42 ` Christopher Baines
2 siblings, 0 replies; 7+ messages in thread
From: Christopher Baines @ 2020-11-14 11:42 UTC (permalink / raw)
To: Alexandru-Sergiu Marton; +Cc: 44423
[-- Attachment #1: Type: text/plain, Size: 2431 bytes --]
Alexandru-Sergiu Marton <brown121407@posteo.ro> writes:
> * gnu/packages/mail.scm (mailcap): New variable.
> ---
> gnu/packages/mail.scm | 37 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
> index 44a156fd99..2f4173dc92 100644
> --- a/gnu/packages/mail.scm
> +++ b/gnu/packages/mail.scm
> @@ -747,6 +747,43 @@ MIME-encoded email package.")
> (home-page "https://github.com/inflex/ripMIME")
> (license license:bsd-3))))
>
> +(define-public mailcap
> + (let* ((version "2.1.49")
> + (tag ;; mailcap tags their releases like this: rMajor-minor-patch
> + (string-append "r" (string-join (string-split version #\.) "-"))))
> + (package
> + (name "mailcap")
> + (version version)
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://pagure.io/mailcap.git")
> + (commit tag)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "0ck1fw6gqn51phcfakhfpfq1yziv3gnmgjvswzhj9x0p162n6alj"))))
> + (build-system gnu-build-system)
> + (arguments
> + '(#:phases
> + (modify-phases %standard-phases
> + (delete 'configure)
> + (add-before 'install 'set-dest-dir
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let ((out (assoc-ref outputs "out")))
> + (setenv "DESTDIR" out)
> + (substitute* "Makefile"
> + (("/usr") "")) ;; This allows the man page to install.
> + #t))))))
> + (native-inputs `(("python" ,python-3.8))) ;; for tests
> + (synopsis "MIME type associations for file types")
> + (description "This package provides MIME type associations for file
> +types.")
> + (home-page "https://pagure.io/mailcap")
> + (license (list license:expat ;; mailcap.5
> + license:public-domain))))) ;; mailcap and mime.types
This looks fine to me, although looking again at the description now,
it's a bit lacking in context.
I tweaked the indentation in places, and switched the end of line
comments to just use a single ;
> +
> (define-public bogofilter
> (package
> (name "bogofilter")
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [bug#44423] [PATCH 3/3] gnu: Update gmnisrv.
2020-11-03 19:19 ` [bug#44423] [PATCH 3/3] gnu: Update gmnisrv Alexandru-Sergiu Marton
@ 2020-11-14 11:43 ` Christopher Baines
0 siblings, 0 replies; 7+ messages in thread
From: Christopher Baines @ 2020-11-14 11:43 UTC (permalink / raw)
To: Alexandru-Sergiu Marton; +Cc: 44423
[-- Attachment #1: Type: text/plain, Size: 2980 bytes --]
Alexandru-Sergiu Marton <brown121407@posteo.ro> writes:
> * gnu/packages/web.scm (gmnisrv): Update to commit
> d484ba0ab0020866535a44be5948c9482b8f2b8d.
I changed the commit message to:
gnu: gmnisrv: Update to 0-1.d484ba0.
* gnu/packages/web.scm (gmnisrv): Update to 0-1.d484ba0.
[arguments]: Remove the install-config phase.
[propagated-inputs]: Add mailcap.
> ---
> gnu/packages/web.scm | 19 ++++++++-----------
> 1 file changed, 8 insertions(+), 11 deletions(-)
>
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index 93399b3459..0f7c5fe2e9 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -129,6 +129,7 @@
> #:use-module (gnu packages lisp-xyz)
> #:use-module (gnu packages lsof)
> #:use-module (gnu packages lua)
> + #:use-module (gnu packages mail)
> #:use-module (gnu packages man)
> #:use-module (gnu packages markup)
> #:use-module (gnu packages ncurses)
> @@ -7706,10 +7707,11 @@ solution for any project's interface needs:
> (license license:expat)))
>
> (define-public gmnisrv
> - (let ((commit "a22bec51494a50c044416d469cc33e043480e7fd"))
> + (let ((commit "d484ba0ab0020866535a44be5948c9482b8f2b8d")
> + (revision "1"))
> (package
> (name "gmnisrv")
> - (version (git-version "0" "0" commit))
> + (version (git-version "0" revision commit))
> (home-page "https://git.sr.ht/~sircmpwn/gmnisrv")
> (source (origin
> (method git-fetch)
> @@ -7718,7 +7720,7 @@ solution for any project's interface needs:
> (commit commit)))
> (sha256
> (base32
> - "1k1n7cqd37jgbhxyh231bagdxdxqwpr6n5pk3gax2516w6xbzlb9"))
> + "11phipixsxx1jgm42agp76p5s68l0zj65kgb41vzaymgwcq79ivn"))
> (file-name (git-file-name name version))))
> (build-system gnu-build-system)
> (arguments
> @@ -7728,19 +7730,14 @@ solution for any project's interface needs:
> (lambda _
> (setenv "CC" "gcc")
> #t))
> - (delete 'check)
> - (add-after 'install 'install-config
> - (lambda* (#:key outputs #:allow-other-keys)
> - (let ((etc (string-append (assoc-ref outputs "out")
> - "/etc")))
> - (mkdir-p etc)
> - (copy-file "config.ini" (string-append etc "/gmnisrv.ini"))
> - #t))))))
> + (delete 'check))))
> (inputs
> `(("openssl" ,openssl)))
> (native-inputs
> `(("pkg-config" ,pkg-config)
> ("scdoc" ,scdoc)))
> + (propagated-inputs
> + `(("mailcap" ,mailcap)))
> (synopsis "Simple Gemini protocol server")
> (description "gmnisrv is a simple Gemini protocol server written in C.")
> (license (list license:gpl3+
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-11-14 11:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 19:17 [bug#44423] [PATCH 0/3] Update gmnisrv Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 2/3] services: gmnisrv: Export types Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 3/3] gnu: Update gmnisrv Alexandru-Sergiu Marton
2020-11-14 11:43 ` Christopher Baines
2020-11-14 11:42 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Christopher Baines
2020-11-14 11:40 ` bug#44423: [PATCH 0/3] Update gmnisrv Christopher Baines
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).