Github messages for voidlinux
 help / color / mirror / Atom feed
From: pbui <pbui@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: oragono-2.0.0.
Date: Mon, 25 May 2020 02:28:46 +0200	[thread overview]
Message-ID: <20200525002846.QP3kdBjOAF40yz9HiHUC3FzIazYqfxT-B9u6SL32jWM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21774@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

There is an updated pull request by pbui against master on the void-packages repository

https://github.com/pbui/void-packages oragono
https://github.com/void-linux/void-packages/pull/21774

New package: oragono-2.0.0.


A patch file from https://github.com/void-linux/void-packages/pull/21774.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-oragono-21774.patch --]
[-- Type: text/x-diff, Size: 4002 bytes --]

From 5b7bfe2dca91160b13a6b3803355d7b3e9c0e13b Mon Sep 17 00:00:00 2001
From: Peter Bui <pbui@github.bx612.space>
Date: Fri, 8 May 2020 20:20:51 -0400
Subject: [PATCH] New package: oragono-2.0.0.

---
 srcpkgs/oragono/files/oragono/log/run |  2 ++
 srcpkgs/oragono/files/oragono/run     |  6 ++++
 srcpkgs/oragono/patches/paths.patch   | 40 +++++++++++++++++++++++++++
 srcpkgs/oragono/template              | 32 +++++++++++++++++++++
 4 files changed, 80 insertions(+)
 create mode 100644 srcpkgs/oragono/files/oragono/log/run
 create mode 100644 srcpkgs/oragono/files/oragono/run
 create mode 100644 srcpkgs/oragono/patches/paths.patch
 create mode 100644 srcpkgs/oragono/template

diff --git a/srcpkgs/oragono/files/oragono/log/run b/srcpkgs/oragono/files/oragono/log/run
new file mode 100644
index 00000000000..0308e8a7512
--- /dev/null
+++ b/srcpkgs/oragono/files/oragono/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -t oragono
diff --git a/srcpkgs/oragono/files/oragono/run b/srcpkgs/oragono/files/oragono/run
new file mode 100644
index 00000000000..22e850aa395
--- /dev/null
+++ b/srcpkgs/oragono/files/oragono/run
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+[ -r ./conf ] && . ./conf
+
+exec 2>&1
+exec chpst -u _oragono:_oragono oragono run --conf /etc/oragono.conf
diff --git a/srcpkgs/oragono/patches/paths.patch b/srcpkgs/oragono/patches/paths.patch
new file mode 100644
index 00000000000..ec3ca339f48
--- /dev/null
+++ b/srcpkgs/oragono/patches/paths.patch
@@ -0,0 +1,40 @@
+--- oragono.yaml	2020-05-08 19:12:48.553961721 -0400
++++ oragono.yaml	2020-05-08 19:15:15.970211218 -0400
+@@ -45,8 +45,8 @@
+         # The standard SSL/TLS port for IRC is 6697. This will listen on all interfaces:
+         ":6697":
+             tls:
+-                key: tls.key
+-                cert: tls.crt
++                key: /var/lib/oragono/tls.key
++                cert: /var/lib/oragono/tls.crt
+                 # 'proxy' should typically be false. It's only for Kubernetes-style load
+                 # balancing that does not terminate TLS, but sends an initial PROXY line
+                 # in plaintext.
+@@ -149,7 +149,7 @@
+ 
+     # motd filename
+     # if you change the motd, you should move it to ircd.motd
+-    motd: oragono.motd
++    motd: /var/lib/oragono/motd
+ 
+     # motd formatting codes
+     # if this is true, the motd is escaped using formatting codes like $c, $b, and $i
+@@ -668,7 +668,7 @@
+ # datastore configuration
+ datastore:
+     # path to the datastore
+-    path: ircd.db
++    path: /var/lib/oragono/db
+ 
+     # if the database schema requires an upgrade, `autoupgrade` will attempt to
+     # perform it automatically on startup. the database will be backed
+@@ -696,7 +696,7 @@
+     default: en
+ 
+     # which directory contains our language files
+-    path: languages
++    path: /usr/share/oragono/i18n/
+ 
+ # limits - these need to be the same across the network
+ limits:
diff --git a/srcpkgs/oragono/template b/srcpkgs/oragono/template
new file mode 100644
index 00000000000..1505453f1f9
--- /dev/null
+++ b/srcpkgs/oragono/template
@@ -0,0 +1,32 @@
+# Template file for 'oragono'
+pkgname=oragono
+version=2.0.0
+revision=1
+build_style=go
+go_import_path="github.com/oragono/oragono"
+hostmakedepends="git"
+short_desc="Modern IRC server (daemon/ircd) written in Go"
+maintainer="Peter Bui <pbui@github.bx612.space>"
+license="MIT"
+homepage="https://oragono.io/"
+distfiles="https://github.com/oragono/oragono/archive/v${version}.tar.gz"
+checksum=b86094a9383c029f5a1328be097a028ea9a15343c109f55f0c91cca9f5236df4
+conf_files="/etc/oragono.conf"
+system_accounts="_oragono"
+_oragono_homedir="/var/lib/oragono"
+make_dirs="
+ /var/lib/oragono 0755 _oragono _oragono"
+
+ post_install() {
+	vlicense LICENSE
+
+	vinstall oragono.yaml 644 etc oragono.conf
+
+	vmkdir usr/share/${pkgname}
+	vcopy oragono.motd usr/share/${pkgname}/default.motd
+
+	vmkdir usr/share/${pkgname}/i18n
+	vcopy "languages/*" usr/share/${pkgname}/i18n/
+
+	vsv oragono
+ }

  reply	other threads:[~2020-05-25  0:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-09  2:35 [PR PATCH] " pbui
2020-05-25  0:28 ` pbui [this message]
2020-05-25 22:30 ` [PR PATCH] [Merged]: " Piraty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200525002846.QP3kdBjOAF40yz9HiHUC3FzIazYqfxT-B9u6SL32jWM@z \
    --to=pbui@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).