1 |
%define name smeserver-gitweb |
%define name smeserver-gitweb |
2 |
%define version 1.1.0 |
%define version 1.1.0 |
3 |
%define release 7 |
%define release 8 |
4 |
Summary: GitWeb is a web based Git repository viewer on SME Server |
Summary: GitWeb is a web based Git repository viewer on SME Server |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
26 |
Patch5: smeserver-gitweb-1.1.0-fix_remote_auth.patch |
Patch5: smeserver-gitweb-1.1.0-fix_remote_auth.patch |
27 |
Patch6: smeserver-gitweb-1.1.0-fix_group_check.patch |
Patch6: smeserver-gitweb-1.1.0-fix_group_check.patch |
28 |
Patch7: smeserver-gitweb-1.1.0-checktrusted_networks.patch |
Patch7: smeserver-gitweb-1.1.0-checktrusted_networks.patch |
29 |
|
Patch8: smeserver-git-1.1.0-locale-2016-06-22.patch |
30 |
|
|
31 |
%description |
%description |
32 |
HTTP access to https://git.host.com provides a gitweb view of the repositories. |
HTTP access to https://git.host.com provides a gitweb view of the repositories. |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
|
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-8.sme |
36 |
|
- smeserver-git-1.1.0-locale-2016-06-22.patch |
37 |
|
|
38 |
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-7.sme |
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-7.sme |
39 |
- fix 500 error after auth on remote access [SME: 9614] |
- fix 500 error after auth on remote access [SME: 9614] |
40 |
- check all trusted networks [SME: 9578] |
- check all trusted networks [SME: 9578] |
41 |
|
- fix git db readable by everybody [SME: 9615] |
42 |
|
|
43 |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme |
44 |
- fix auth from remote IP [SME: 9202] |
- fix auth from remote IP [SME: 9202] |
89 |
%patch5 -p1 |
%patch5 -p1 |
90 |
%patch6 -p1 |
%patch6 -p1 |
91 |
%patch7 -p1 |
%patch7 -p1 |
92 |
|
%patch8 -p1 |
93 |
|
|
94 |
|
|
95 |
%build |
%build |
106 |
%post |
%post |
107 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
108 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
109 |
chmod 644 /home/e-smith/db/git |
chmod 640 /home/e-smith/db/git |
110 |
|
chown root:www /home/e-smith/db/git |
111 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
112 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
113 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |