Github messages for voidlinux
 help / color / mirror / Atom feed
From: flupe <flupe@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: soju-0.2.1
Date: Sun, 21 Nov 2021 09:42:08 +0100	[thread overview]
Message-ID: <20211121084208.ujdNAfluR2AbldbRCeDzMQ59pWCK8JZWyvbaVjeNkZc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33302@inbox.vuxu.org>

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

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

https://github.com/flupe/void-packages master
https://github.com/void-linux/void-packages/pull/33302

New package: soju-0.2.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)


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

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

From 9386ca06e0a38a017ab252cc867870d332d15d07 Mon Sep 17 00:00:00 2001
From: flupe <lucas@escot.me>
Date: Sun, 3 Oct 2021 23:37:05 +0200
Subject: [PATCH] New package: soju-0.2.1

---
 srcpkgs/soju/files/README.voidlinux |  8 ++++++++
 srcpkgs/soju/files/config           |  2 ++
 srcpkgs/soju/files/soju/run         |  3 +++
 srcpkgs/soju/template               | 28 ++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/soju/files/README.voidlinux
 create mode 100644 srcpkgs/soju/files/config
 create mode 100755 srcpkgs/soju/files/soju/run
 create mode 100644 srcpkgs/soju/template

diff --git a/srcpkgs/soju/files/README.voidlinux b/srcpkgs/soju/files/README.voidlinux
new file mode 100644
index 000000000000..2d93e22a3903
--- /dev/null
+++ b/srcpkgs/soju/files/README.voidlinux
@@ -0,0 +1,8 @@
+The system service /etc/sv/soju runs soju as system user _soju.
+
+By default, the database will be stored in /var/db/soju/ and logs will be in
+/var/log/soju/. Both directories are owned by user _soju.
+
+To initialize the database, make sure you run sojuctl as the _soju user:
+
+$ sudo -u _soju sojuctl -config /etc/soju/config create-user <username> -admin
diff --git a/srcpkgs/soju/files/config b/srcpkgs/soju/files/config
new file mode 100644
index 000000000000..55781d839402
--- /dev/null
+++ b/srcpkgs/soju/files/config
@@ -0,0 +1,2 @@
+db sqlite3 /var/db/soju/main.db
+log fs /var/log/soju/
diff --git a/srcpkgs/soju/files/soju/run b/srcpkgs/soju/files/soju/run
new file mode 100755
index 000000000000..3b00ad02fb07
--- /dev/null
+++ b/srcpkgs/soju/files/soju/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec chpst -u _soju soju ${OPTS:- -config /etc/soju/config}
diff --git a/srcpkgs/soju/template b/srcpkgs/soju/template
new file mode 100644
index 000000000000..ecc69f842612
--- /dev/null
+++ b/srcpkgs/soju/template
@@ -0,0 +1,28 @@
+# Template file for 'soju'
+pkgname=soju
+version=0.2.1
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~emersion/soju"
+go_package="./cmd/soju ./cmd/sojuctl"
+hostmakedepends="scdoc"
+short_desc="User-friendly IRC bouncer"
+maintainer="flupe <lucas@escot.me>"
+license="AGPL-3.0-or-later"
+homepage="https://soju.im"
+changelog="https://git.sr.ht/~emersion/soju/refs/v${version}"
+distfiles="https://git.sr.ht/~emersion/soju/refs/download/v${version}/soju-${version}.tar.gz"
+checksum=3558db9f78da3d0311b45e42307ef01af3218156b0370d85a1d7eef4d2811559
+conf_files="/etc/soju/config"
+system_accounts="_soju"
+make_dirs="/var/db/soju 0750 _soju _soju
+ /var/log/soju 0750 _soju _soju"
+
+post_install() {
+	scdoc <doc/soju.1.scd >doc/soju.1
+	vman doc/soju.1
+	vlicense LICENSE
+	vinstall $FILESDIR/config 644 etc/soju
+	vdoc $FILESDIR/README.voidlinux
+	vsv soju
+}

  parent reply	other threads:[~2021-11-21  8:42 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-03 21:43 [PR PATCH] " flupe
2021-10-03 22:52 ` Vaelatern
2021-10-04  8:12 ` [PR PATCH] [Updated] " flupe
2021-10-04  8:14 ` flupe
2021-10-04 11:14 ` [PR REVIEW] " flupe
2021-10-04 11:24 ` paper42
2021-10-04 11:27 ` paper42
2021-10-04 12:41 ` [PR PATCH] [Updated] " flupe
2021-10-04 12:47 ` flupe
2021-10-04 16:31 ` Duncaen
2021-10-04 16:32 ` Duncaen
2021-10-04 18:13 ` flupe
2021-10-04 18:49 ` flupe
2021-10-04 19:28 ` [PR PATCH] [Updated] " flupe
2021-10-04 19:30 ` flupe
2021-10-04 19:39 ` Duncaen
2021-10-04 21:25 ` [PR PATCH] [Updated] " flupe
2021-10-04 21:26 ` flupe
2021-10-04 21:50 ` [PR REVIEW] " Duncaen
2021-10-04 22:52 ` flupe
2021-10-04 22:58 ` [PR PATCH] [Updated] " flupe
2021-10-04 23:33 ` [PR REVIEW] " Duncaen
2021-10-04 23:35 ` Duncaen
2021-10-04 23:35 ` Duncaen
2021-10-05 10:26 ` [PR PATCH] [Updated] " flupe
2021-11-20 22:57 ` Duncaen
2021-11-20 22:58 ` Duncaen
2021-11-21  8:42 ` flupe [this message]
2021-11-21  8:48 ` [PR PATCH] [Updated] " flupe
2021-11-21  8:53 ` New package: soju-0.3.0 flupe
2021-11-21 17:35 ` [PR PATCH] [Merged]: " Vaelatern

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=20211121084208.ujdNAfluR2AbldbRCeDzMQ59pWCK8JZWyvbaVjeNkZc@z \
    --to=flupe@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).