use custom chroma repository for rpm spec support
gitea.service: don't set ProtectSystem=strict to fix usage of sendmail [release 1.21.3-3mamba;Tue Jan 02 2024]
This commit is contained in:
parent
02f794df79
commit
4f1a14e372
@ -38,7 +38,7 @@ ProtectKernelLogs=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectProc=invisible
|
||||
ProtectSystem=strict
|
||||
#ProtectSystem=strict
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
||||
RestrictNamespaces=true
|
||||
RestrictRealtime=true
|
||||
|
13
gitea.spec
13
gitea.spec
@ -1,6 +1,6 @@
|
||||
Name: gitea
|
||||
Version: 1.21.3
|
||||
Release: 2mamba
|
||||
Release: 3mamba
|
||||
Summary: Painless self-hosted Git service, community managed
|
||||
Group: System/Servers
|
||||
Vendor: openmamba
|
||||
@ -26,6 +26,7 @@ Painless self-hosted all-in-one software development service, including Git host
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
#-D -T
|
||||
#:<< _EOF
|
||||
# Workaround for poetry stuck in infinite processes
|
||||
@ -40,6 +41,10 @@ export LDFLAGS="-linkmode=external -compressdwarf=false -X \
|
||||
-X 'code.gitea.io/gitea/modules/setting.CustomConf=%{_sysconfdir}/gitea/app.ini'"
|
||||
export TAGS="bindata sqlite sqlite_unlock_notify pam"
|
||||
|
||||
# Replace chroma with custom fork adding RPM Spec support for syntax highlighting
|
||||
go mod edit -replace github.com/alecthomas/chroma/v2="github.com/mambasoft/chroma/v2@v2.0.0-20240102115650-6fed1b9b0d99"
|
||||
go mod tidy
|
||||
|
||||
%make -j1
|
||||
|
||||
%install
|
||||
@ -47,8 +52,8 @@ export TAGS="bindata sqlite sqlite_unlock_notify pam"
|
||||
#% makeinstall
|
||||
install -D -m755 gitea %{buildroot}%{_bindir}/gitea
|
||||
install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/gitea.service
|
||||
install -D -m644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/gitea.conf
|
||||
install -D -m644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gitea.conf
|
||||
install -D -m644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/gitea.conf
|
||||
install -D -m644 custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/gitea/app.ini
|
||||
|
||||
%clean
|
||||
@ -81,6 +86,10 @@ install -D -m644 custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/gitea/ap
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Tue Jan 02 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.3-3mamba
|
||||
- use custom chroma repository for rpm spec support
|
||||
- gitea.service: don't set ProtectSystem=strict to fix usage of sendmail
|
||||
|
||||
* Thu Dec 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.3-2mamba
|
||||
- fixed service file name
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user