gitea: add CAP_NET_BIND_SERVICE
This commit is contained in:
parent
f4c2fd5c67
commit
65474ced29
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,3 +14,5 @@ temp/*
|
|||||||
*_old
|
*_old
|
||||||
*.bak
|
*.bak
|
||||||
*.old
|
*.old
|
||||||
|
/a/*
|
||||||
|
/b/*
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: gitea
|
Name: gitea
|
||||||
Version: 1.21.5
|
Version: 1.21.5
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Git with a cup of tea, painless self-hosted git service
|
Summary: Git with a cup of tea, painless self-hosted git service
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Other
|
Group: Development/Other
|
||||||
@ -11,6 +11,7 @@ URL: https://gitea.io/
|
|||||||
Source0: https://github.com/go-gitea/gitea/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/go-gitea/gitea/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source6: gitea.sysusers
|
Source6: gitea.sysusers
|
||||||
Source10: gitea.service
|
Source10: gitea.service
|
||||||
|
Source11: gitea.service.d.conf
|
||||||
Source12: app-gitea.ini
|
Source12: app-gitea.ini
|
||||||
Patch0: make-version.patch
|
Patch0: make-version.patch
|
||||||
Requires: git-core
|
Requires: git-core
|
||||||
@ -41,8 +42,10 @@ TAGS="bindata tidb sqlite sqlite_unlock_notify pam" make VERSION=%{version} gene
|
|||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
|
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d/
|
||||||
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
|
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||||
install -Dm 0640 %{SOURCE10} %{buildroot}%{_unitdir}/%{name}.service
|
install -Dm 0640 %{SOURCE10} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
install -Dm 0640 %{SOURCE10} %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d/port.conf
|
||||||
install -Dm 0660 %{SOURCE12} %{buildroot}%{_sysconfdir}/%{name}/app.ini
|
install -Dm 0660 %{SOURCE12} %{buildroot}%{_sysconfdir}/%{name}/app.ini
|
||||||
|
|
||||||
install -p -D -m 0644 %{SOURCE6} \
|
install -p -D -m 0644 %{SOURCE6} \
|
||||||
@ -73,12 +76,16 @@ userdel gitea
|
|||||||
%dir %attr(0700,%name,%name) %{_localstatedir}/log/%{name}
|
%dir %attr(0700,%name,%name) %{_localstatedir}/log/%{name}
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
%config(noreplace) %attr(0660,root,%name) %{_sysconfdir}/%{name}/app.ini
|
%config(noreplace) %attr(0660,root,%name) %{_sysconfdir}/%{name}/app.ini
|
||||||
|
%{_sysconfdir}/systemd/system/%{name}.service.d/port.conf
|
||||||
%{_datadir}/%{name}/web
|
%{_datadir}/%{name}/web
|
||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%{_sysusersdir}/%{name}.conf
|
%{_sysusersdir}/%{name}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 21 2024 Raven <raven@sysadmins.ws> - 1.21.5-4
|
||||||
|
- add CAP_NET_BIND_SERVICE
|
||||||
|
|
||||||
* Tue Feb 20 2024 Raven <raven@sysadmins.ws> - 1.21.5-3
|
* Tue Feb 20 2024 Raven <raven@sysadmins.ws> - 1.21.5-3
|
||||||
- package static assets
|
- package static assets
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user