Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions srcpkgs/forgejo/files/forgejo/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

exec 2>&1
export HOME=/var/lib/forgejo
exec chpst -u forgejo -C $HOME /usr/bin/forgejo -w $HOME
41 changes: 41 additions & 0 deletions srcpkgs/forgejo/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Template file for 'forgejo'
pkgname=forgejo
version=13.0.4
revision=1
build_style=go
go_import_path="forgejo.org"
go_build_tags="sqlite sqlite_unlock_notify bindata"
go_ldflags=" -X main.Version=${version}"
hostmakedepends="nodejs"
makedepends="sqlite-devel"
depends="git"
checkdepends="git nodejs openssh"
short_desc="Self-hosted lightweight software forge"
maintainer="Radek Olšák <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://forgejo.org"
changelog="https://codeberg.org/forgejo/forgejo/raw/branch/forgejo/release-notes-published/${version}.md"
distfiles="https://codeberg.org/forgejo/forgejo/archive/v${version}.tar.gz"
checksum=c755edfda0fb6bd2478da5ea64cf885be0c982d294610a4c7ae7b4d0f190281e
make_dirs="/var/lib/forgejo 0750 forgejo forgejo"
system_accounts="forgejo"
forgejo_homedir="/var/lib/forgejo"
# For SSH access.
forgejo_shell="/bin/bash"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As previously noted, this should probably not be enforced; however, if there is a real reason to demand bash, the package would have to depend on bash.

nopie_files="/usr/bin/forgejo"

do_build() {
make TAGS="${go_build_tags}" CGO_LDFLAGS="$LDFLAGS" LDFLAGS="$go_ldflags" FORGEJO_VERSION="${version}" build ${makejobs}
}

do_check() {
make test ${makejobs}
}

do_install() {
vbin gitea forgejo
}
Comment on lines +35 to +37
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A Void package should not arbitrarily rename the only executable provided by the project.

That said, unless and until upstream decides to differentiate its project enough to actually call the executable by its own name, I have a hard time considering this package suitable for inclusion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


post_install() {
vsv forgejo
}