works for FHS, fix debian dependency and still this package needs improvements

* LDFLAGS here cd7cdf06ed/Makefile (L107)
* pam auth is not documented, so not enabled yet
* sqlite separate pacakge is unuseless but leave as is until we decided
This commit is contained in:
mckaygerhard 2024-03-14 16:07:10 -04:00
parent 3fbe6853d8
commit 8b525d2826
4 changed files with 18 additions and 3 deletions

View file

@ -8,6 +8,11 @@ CI_VERIFY_RETRY_COUNT=30 # How many times to retry before giving up if the pipel
case "$1" in case "$1" in
"submodule-build") "submodule-build")
cd "$2" cd "$2"
LDFLAGS="$LDFLAGS -X code.gitea.io/gitea/cmd.PIDFile=/run/forgejo.pid"
LDFLAGS="$LDFLAGS -X code.gitea.io/gitea/modules/setting.CustomConf=/etc/forgejo/app.ini"
LDFLAGS="$LDFLAGS -X code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/forgejo/"
LDFLAGS="$LDFLAGS -X code.gitea.io/gitea/modules/setting.StaticRootPath=/usr/share/forgejo/" # this is necesary to be HFS by example opensuse raise error if you install files nonarch outside of sahred dir
export LDFLAGS
make build make build
EXIT_STATUS=$? EXIT_STATUS=$?
mv gitea ../"$3" mv gitea ../"$3"

View file

@ -2,7 +2,8 @@ Package: forgejo-bin
Architecture: amd64 Architecture: amd64
Priority: optional Priority: optional
Provides: forgejo,gitea Provides: forgejo,gitea
Depends: adduser (>= 3.11) Depends: adduser (>= 3.11), git, file-rc | sysv-rc | init-system-helpers | systemd
Recommends: postgresql | mysql-server | sqlite3, libcap2-bin
Conflicts: forgejo,forgejo-bin Conflicts: forgejo,forgejo-bin
Description: Forgejo: Beyond Coding. We Forge. (binary) Description: Forgejo: Beyond Coding. We Forge. (binary)
The official Forgejo release binary in a Debian package The official Forgejo release binary in a Debian package

View file

@ -1,3 +1,10 @@
forgejo (1.21.7.0-2) unstable; urgency=medium
* Forgejo version 1.21.7-0
* See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#1-21-7-0
-- PICCORO Lenz McKAY <mckaygerhard@gmail.com> Wed, 13 Mar 2024 23:14:00 -0400
forgejo (1.21.7.0-1) unstable; urgency=medium forgejo (1.21.7.0-1) unstable; urgency=medium
* Forgejo version 1.21.7-0 * Forgejo version 1.21.7-0

View file

@ -8,7 +8,8 @@ Package: forgejo
Architecture: amd64 Architecture: amd64
Priority: optional Priority: optional
Provides: gitea Provides: gitea
Depends: adduser (>= 3.11) Depends: adduser (>= 3.11), git, file-rc | sysv-rc | init-system-helpers | systemd
Recommends: postgresql | mysql-server, libcap2-bin
Conflicts: forgejo-sqlite,forgejo-bin Conflicts: forgejo-sqlite,forgejo-bin
Description: Forgejo: Beyond Coding. We Forge. Description: Forgejo: Beyond Coding. We Forge.
Forgejo with bindata ONLY - Use this package for MySQL or PostgreSQL setup Forgejo with bindata ONLY - Use this package for MySQL or PostgreSQL setup
@ -17,7 +18,8 @@ Package: forgejo-sqlite
Architecture: amd64 Architecture: amd64
Priority: optional Priority: optional
Provides: forgejo,gitea Provides: forgejo,gitea
Depends: adduser (>= 3.11) Depends: adduser (>= 3.11), git, file-rc | sysv-rc | init-system-helpers | systemd
Recommends: postgresql | mysql-server | sqlite3, libcap2-bin
Conflicts: forgejo,forgejo-bin Conflicts: forgejo,forgejo-bin
Description: Forgejo: Beyond Coding. We Forge. (SQLite) Description: Forgejo: Beyond Coding. We Forge. (SQLite)
Forgejo with bindata and SQLite support - Use this package to get started immediately Forgejo with bindata and SQLite support - Use this package to get started immediately