FreeBSD Bugzilla – Attachment 234729 Details for
Bug 264715
[NEW PORT] mail/listmonk: self-hosted newsletter and mailing list manager
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-mail-listmonk-initial-import.patch
0001-mail-listmonk-initial-import.patch (text/plain), 6.32 KB, created by
Bryan Frimin
on 2022-06-16 15:04:05 UTC
(
hide
)
Description:
0001-mail-listmonk-initial-import.patch
Filename:
MIME Type:
Creator:
Bryan Frimin
Created:
2022-06-16 15:04:05 UTC
Size:
6.32 KB
patch
obsolete
>From 9450c2b159b2378d9b6b4e4f8fa5eb46583c0d6d Mon Sep 17 00:00:00 2001 >From: gearnode <bryan@frimin.fr> >Date: Thu, 16 Jun 2022 16:53:43 +0200 >Subject: [PATCH] mail/listmonk: initial import > >--- > GIDs | 2 +- > UIDs | 2 +- > mail/listmonk/Makefile | 32 ++++++++++++++ > mail/listmonk/distinfo | 3 ++ > mail/listmonk/files/listmonk.in | 54 ++++++++++++++++++++++++ > mail/listmonk/files/listmonk.toml.sample | 25 +++++++++++ > mail/listmonk/pkg-descr | 4 ++ > mail/listmonk/pkg-plist | 2 + > 8 files changed, 122 insertions(+), 2 deletions(-) > create mode 100644 mail/listmonk/Makefile > create mode 100644 mail/listmonk/distinfo > create mode 100644 mail/listmonk/files/listmonk.in > create mode 100644 mail/listmonk/files/listmonk.toml.sample > create mode 100644 mail/listmonk/pkg-descr > create mode 100644 mail/listmonk/pkg-plist > >diff --git a/GIDs b/GIDs >index 171823bb501f..56a688ffb54a 100644 >--- a/GIDs >+++ b/GIDs >@@ -249,7 +249,7 @@ nats:*:305: > jitsi:*:306: > jicofo:*:307:jitsi > jvb:*:308:jitsi >-# free: 309 >+listmonk:*:309: > # free: 310 > # free: 311 > _sphinx:*:312: >diff --git a/UIDs b/UIDs >index 6cf2fbe047a6..2d88414f43c6 100644 >--- a/UIDs >+++ b/UIDs >@@ -254,7 +254,7 @@ nats:*:305:305::0:0:NATS Daemon:/nonexistent:/usr/sbin/nologin > jitsi:*:306:306::0:0:Jitsi Meet Owner:/nonexistent:/usr/sbin/nologin > jicofo:*:307:307::0:0:Jitsi Conference Focus Owner:/nonexistent:/usr/sbin/nologin > jvb:*:308:308::0:0:Jitsi VideoBridge Owner:/nonexistent:/usr/sbin/nologin >-# free: 309 >+listmonk:*:309:309::0:0:listmonk user:/nonexistent:/usr/sbin/nologin > # free: 310 > # free: 311 > _sphinx:*:312:312::0:0:Sphinxsearch Owner:/nonexistent:/usr/sbin/nologin >diff --git a/mail/listmonk/Makefile b/mail/listmonk/Makefile >new file mode 100644 >index 000000000000..8cbf98fb9681 >--- /dev/null >+++ b/mail/listmonk/Makefile >@@ -0,0 +1,32 @@ >+PORTNAME= listmonk >+DISTVERSION= 2.1.0 >+CATEGORIES= mail >+MASTER_SITES= https://github.com/knadh/${PORTNAME}/releases/download/v${DISTVERSION}/ >+DISTNAME= ${PORTNAME}_${DISTVERSION}_freebsd_amd64 >+ >+MAINTAINER= bryan@frimin.fr >+COMMENT= Self-hosted newsletter and mailing list manager >+ >+LICENSE= AGPLv3 >+ >+ONLY_FOR_ARCHS= amd64 >+NO_BUILD= yes >+ >+USE_RC_SUBR= listmonk >+ >+SUB_FILES= listmonk >+SUB_LIST= LISTMONK_USER=${LISTMONK_USER} >+ >+LISTMONK_USER= listmonk >+LISTMONK_GROUP= listmonk >+ >+USERS= ${LISTMONK_USER} >+GROUPS= ${LISTMONK_GROUP} >+ >+NO_WRKSUBDIR= yes >+ >+do-install: >+ ${INSTALL_PROGRAM} ${WRKSRC}/listmonk ${STAGEDIR}${PREFIX}/bin/listmonk >+ ${INSTALL_DATA} ${FILESDIR}/listmonk.toml.sample ${STAGEDIR}${PREFIX}/etc/ >+ >+.include <bsd.port.mk> >diff --git a/mail/listmonk/distinfo b/mail/listmonk/distinfo >new file mode 100644 >index 000000000000..e2828f7054dd >--- /dev/null >+++ b/mail/listmonk/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1655378469 >+SHA256 (listmonk_2.1.0_freebsd_amd64.tar.gz) = eef3cdc51e7ed3c6af0ba57972858ddfccf9afe1877ef7a62be1162e1ae8a66c >+SIZE (listmonk_2.1.0_freebsd_amd64.tar.gz) = 6780124 >diff --git a/mail/listmonk/files/listmonk.in b/mail/listmonk/files/listmonk.in >new file mode 100644 >index 000000000000..fda7bbcdb160 >--- /dev/null >+++ b/mail/listmonk/files/listmonk.in >@@ -0,0 +1,54 @@ >+#!/bin/sh >+ >+# PROVIDE: listmonk >+# REQUIRE: DAEMON >+# KEYWORD: shutdown >+# >+# Add the following lines to /etc/rc.conf to enable listmonk: >+# listmonk_enable (bool): Set it to "YES" to enable listmonk. >+# Default is "NO". >+# listmonk_user (str): listmonk daemon user. >+# Default is "%%LISTMONK_USER%%" >+# listmonk_conf (path): listmonk configuration file. >+# Default is "${PREFIX}/etc/listmonk.toml" >+# listmonk_flags (str): extra flags passed to listmonk. >+# Default is "--yes --upgrade" >+ >+. /etc/rc.subr >+ >+name="listmonk" >+rcvar="listmonk_enable" >+load_rc_config $name >+ >+: ${listmonk_enable:="NO"} >+: ${listmonk_user:="%%LISTMONK_USER%%"} >+: ${listmonk_flags:="--yes --upgrade"} >+: ${listmonk_conf:="%%PREFIX%%/etc/${name}.conf"} >+: ${listmonk_options:="${listmonk_flags} --config=${listmonk_conf}"} >+ >+command="/usr/sbin/daemon" >+pidfile="/var/run/${name}.pid" >+logfile="/var/log/${name}.log" >+ >+start_cmd="${name}_start" >+stop_cmd="${name}_stop" >+ >+listmonk_start() { >+ echo "Starting listmonk..." >+ /usr/sbin/daemon -fc -P ${pidfile} -u ${listmonk_user} -o ${logfile} \ >+ %%PREFIX%%/bin/${name} ${listmonk_options} >+ >+} >+ >+listmonk_stop() { >+ pid=$(check_pidfile $pidfile $command) >+ if [ -n "${pid}" ]; then >+ echo "Stopping ${name} (pid=${pid})" >+ kill -- -${pid} >+ wait_for_pids ${pid} >+ else >+ echo "${name} isn't running" >+ fi >+} >+ >+run_rc_command "$1" >diff --git a/mail/listmonk/files/listmonk.toml.sample b/mail/listmonk/files/listmonk.toml.sample >new file mode 100644 >index 000000000000..4b178e202c10 >--- /dev/null >+++ b/mail/listmonk/files/listmonk.toml.sample >@@ -0,0 +1,25 @@ >+[app] >+# Interface and port where the app will run its webserver. The default value >+# of localhost will only listen to connections from the current machine. To >+# listen on all interfaces use '0.0.0.0'. To listen on the default web address >+# port, use port 80 (this will require running with elevated permissions). >+address = "localhost:9000" >+ >+# BasicAuth authentication for the admin dashboard. This will eventually >+# be replaced with a better multi-user, role-based authentication system. >+# IMPORTANT: Leave both values empty to disable authentication on admin >+# only where an external authentication is already setup. >+admin_username = "listmonk" >+admin_password = "listmonk" >+ >+# Database. >+[db] >+host = "localhost" >+port = 5432 >+user = "listmonk" >+password = "listmonk" >+database = "listmonk" >+ssl_mode = "disable" >+max_open = 25 >+max_idle = 25 >+max_lifetime = "300s" >diff --git a/mail/listmonk/pkg-descr b/mail/listmonk/pkg-descr >new file mode 100644 >index 000000000000..9355172af3cf >--- /dev/null >+++ b/mail/listmonk/pkg-descr >@@ -0,0 +1,4 @@ >+High performance, self-hosted, newsletter and mailing list manager with >+a modern dashboard. Single binary app. >+ >+WWW: https://listmonk.app/ >diff --git a/mail/listmonk/pkg-plist b/mail/listmonk/pkg-plist >new file mode 100644 >index 000000000000..97c1991c7af1 >--- /dev/null >+++ b/mail/listmonk/pkg-plist >@@ -0,0 +1,2 @@ >+bin/listmonk >+@sample etc/listmonk.toml.sample >-- >2.36.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264715
: 234729