Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package request: 
@ 2023-01-22 22:16 tranzystorek-io
  2023-08-11  7:33 ` Package request: forgejo BlitDev
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tranzystorek-io @ 2023-01-22 22:16 UTC (permalink / raw)
  To: ml

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

New issue by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/issues/41815

Description:
### Package name

forgejo

### Package homepage

https://forgejo.org/

### Description

Forgejo is a community-driven soft fork of Gitea.

I have previously attempted to package it (#41410), but since there's no consensus on whether this is different enough from Gitea itself, I wanted to post my template here so that anyone interested can use it: https://github.com/tranzystorek-io/void-packages/blob/forgejo/srcpkgs/forgejo/template

### Does the requested package meet the package requirements?

System, Compiled

### Is the requested package released?

Yes

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Package request: forgejo
  2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
@ 2023-08-11  7:33 ` BlitDev
  2023-08-11  7:33 ` BlitDev
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: BlitDev @ 2023-08-11  7:33 UTC (permalink / raw)
  To: ml

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

New comment by BlitDev on void-packages repository

https://github.com/void-linux/void-packages/issues/41815#issuecomment-1674324200

Comment:
When it will be merged, who knows?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Package request: forgejo
  2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
  2023-08-11  7:33 ` Package request: forgejo BlitDev
@ 2023-08-11  7:33 ` BlitDev
  2023-08-11  7:36 ` tranzystorek-io
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: BlitDev @ 2023-08-11  7:33 UTC (permalink / raw)
  To: ml

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

New comment by BlitDev on void-packages repository

https://github.com/void-linux/void-packages/issues/41815#issuecomment-1674324200

Comment:
When will it be merged, who knows?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Package request: forgejo
  2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
  2023-08-11  7:33 ` Package request: forgejo BlitDev
  2023-08-11  7:33 ` BlitDev
@ 2023-08-11  7:36 ` tranzystorek-io
  2023-08-11  7:36 ` tranzystorek-io
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tranzystorek-io @ 2023-08-11  7:36 UTC (permalink / raw)
  To: ml

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

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/issues/41815#issuecomment-1674327845

Comment:
@BlitDev not likely in the foreseeable future:

> since there's no consensus on whether this is different enough from Gitea itself,

This part hasn't changed, and it is reasonable that maintaining two almost identical project at the same time is an effort no maintainer will accept lightly.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Package request: forgejo
  2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
                   ` (2 preceding siblings ...)
  2023-08-11  7:36 ` tranzystorek-io
@ 2023-08-11  7:36 ` tranzystorek-io
  2023-11-26 17:47 ` tranzystorekk
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tranzystorek-io @ 2023-08-11  7:36 UTC (permalink / raw)
  To: ml

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

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/issues/41815#issuecomment-1674327845

Comment:
@BlitDev not likely in the foreseeable future:

> since there's no consensus on whether this is different enough from Gitea itself,

This part hasn't changed, and it is reasonable that maintaining two almost identical projects at the same time is an effort no maintainer will accept lightly.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Package request: forgejo
  2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
                   ` (3 preceding siblings ...)
  2023-08-11  7:36 ` tranzystorek-io
@ 2023-11-26 17:47 ` tranzystorekk
  2024-07-05 13:17 ` Vinfall
  2024-07-10  8:21 ` Vinfall
  6 siblings, 0 replies; 8+ messages in thread
From: tranzystorekk @ 2023-11-26 17:47 UTC (permalink / raw)
  To: ml

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

New comment by tranzystorekk on void-packages repository

https://github.com/void-linux/void-packages/issues/41815#issuecomment-1826845791

Comment:
https://forgejo.org/2023-11-release-v1211-0/#what-is-unique-to-forgejo

Recent contribution licensing frictions between Gitea and Forgejo will result in divergent changes in Forgejo starting from v1.21. This might start warranting another package.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Package request: forgejo
  2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
                   ` (4 preceding siblings ...)
  2023-11-26 17:47 ` tranzystorekk
@ 2024-07-05 13:17 ` Vinfall
  2024-07-10  8:21 ` Vinfall
  6 siblings, 0 replies; 8+ messages in thread
From: Vinfall @ 2024-07-05 13:17 UTC (permalink / raw)
  To: ml

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

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/issues/41815#issuecomment-2210863429

Comment:
Forgejo announced to be a hard fork back in February in [Forgejo forks its own path forward](https://forgejo.org/2024-02-forking-forward/) and following semver it is a crazy v7.0.5. It should be acceptable now I guess?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Package request: forgejo
  2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
                   ` (5 preceding siblings ...)
  2024-07-05 13:17 ` Vinfall
@ 2024-07-10  8:21 ` Vinfall
  6 siblings, 0 replies; 8+ messages in thread
From: Vinfall @ 2024-07-10  8:21 UTC (permalink / raw)
  To: ml

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

New comment by Vinfall on void-packages repository

https://github.com/void-linux/void-packages/issues/41815#issuecomment-2219862670

Comment:
Cannot make runit service running, maybe I messed up. Here is the updated patch in case anyone wanna do it. 

<details><summary>Patch</summary>
<p>

```diff
Subject: [PATCH] New package: forgejo-7.0.5

---
 srcpkgs/forgejo/INSTALL           |  5 +++++
 srcpkgs/forgejo/files/forgejo/run | 13 ++++++++++++
 srcpkgs/forgejo/template          | 34 +++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+)
 create mode 100644 srcpkgs/forgejo/INSTALL
 create mode 100755 srcpkgs/forgejo/files/forgejo/run
 create mode 100644 srcpkgs/forgejo/template

diff --git a/srcpkgs/forgejo/INSTALL b/srcpkgs/forgejo/INSTALL
new file mode 100644
index 00000000..fadddd89
--- /dev/null
+++ b/srcpkgs/forgejo/INSTALL
@@ -0,0 +1,5 @@
+case "${ACTION}" in
+post)
+	chown _forgejo:_forgejo etc/forgejo/app.ini
+	;;
+esac
diff --git a/srcpkgs/forgejo/files/forgejo/run b/srcpkgs/forgejo/files/forgejo/run
new file mode 100755
index 00000000..84c7167d
--- /dev/null
+++ b/srcpkgs/forgejo/files/forgejo/run
@@ -0,0 +1,13 @@
+#!/bin/sh
+exec 2>&1
+
+# USER and HOME are needed because gitea doesn't actually check the user it
+# runs as, but instead just grabs the variables from the variables.
+export USER=_forgejo
+export HOME=/var/lib/forgejo
+
+# forgejo needs to run from its home for SSH to work properly
+export FORGEJO_WORK_DIR="${HOME}"
+
+cd "${HOME}"
+exec chpst -u _forgejo:_forgejo forgejo web --config /etc/forgejo/app.ini 2>&1
diff --git a/srcpkgs/forgejo/template b/srcpkgs/forgejo/template
new file mode 100644
index 00000000..851e49d7
--- /dev/null
+++ b/srcpkgs/forgejo/template
@@ -0,0 +1,34 @@
+# Template file for 'forgejo'
+pkgname=forgejo
+version=7.0.5
+revision=1
+_forgejo_tag="7-0-5"
+build_style=go
+go_import_path=code.gitea.io/gitea
+go_ldflags=" -X main.Version=${version}"
+# Follow forgejo default release build and enable pam support additionally
+go_build_tags="bindata timetzdata sqlite sqlite_unlock_notify pam"
+hostmakedepends="go-bindata"
+makedepends="sqlite-devel pam-devel"
+depends="git git-lfs bash"
+short_desc="Self-hosted lightweight software forge"
+maintainer=""
+license="MIT"
+homepage="https://forgejo.org"
+changelog="https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#${_forgejo_tag}"
+distfiles="https://codeberg.org/forgejo/forgejo/releases/download/v${version}/forgejo-src-${version}.tar.gz"
+checksum=647efd8b70e312e1d8aa349a535bae1c9cce5c095a7a2ebe0d0b0ec84ff1e198
+
+system_accounts="_forgejo"
+_forgejo_homedir="/var/lib/forgejo"
+_forgejo_shell="/bin/bash" # Proper shell needed for ssh support
+make_dirs="/var/lib/forgejo 0750 _forgejo _forgejo
+ /var/log/forgejo 0755 _forgejo root"
+conf_files="/etc/forgejo/app.ini"
+
+
+post_install() {
+	vlicense LICENSE
+	vsv forgejo
+	vinstall custom/conf/app.example.ini 0640 /etc/forgejo app.ini
+}
-- 
2.45.2
```

</p>
</details> 

I think tests should also be added following [Compiling from source](https://forgejo.org/docs/latest/developer/from-source/#build) and `go_import_path` is definitely wrong. Anyway I'd just use prebuild binary instead.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-10  8:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-22 22:16 [ISSUE] Package request: tranzystorek-io
2023-08-11  7:33 ` Package request: forgejo BlitDev
2023-08-11  7:33 ` BlitDev
2023-08-11  7:36 ` tranzystorek-io
2023-08-11  7:36 ` tranzystorek-io
2023-11-26 17:47 ` tranzystorekk
2024-07-05 13:17 ` Vinfall
2024-07-10  8:21 ` Vinfall

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).