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 12 |
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} |
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 |
|
|
|
|
|
30 |
%description |
%description |
31 |
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. |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Mon Feb 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-12.sme |
35 |
|
- revert local patch wrongly applied [SME: 10077] |
36 |
|
|
37 |
|
* Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-11.sme |
38 |
|
- removed one missed linefeed |
39 |
|
|
40 |
|
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-8.sme |
41 |
|
- smeserver-git-1.1.0-locale-2016-06-22.patch |
42 |
|
|
43 |
* 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 |
44 |
- fix 500 error after auth on remote access [SME: 9614] |
- fix 500 error after auth on remote access [SME: 9614] |
45 |
- check all trusted networks [SME: 9578] |
- check all trusted networks [SME: 9578] |
96 |
%patch7 -p1 |
%patch7 -p1 |
97 |
|
|
98 |
|
|
|
|
|
99 |
%build |
%build |
100 |
|
|
101 |
%install |
%install |
110 |
%post |
%post |
111 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
112 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
113 |
chmod 640 /home/e-smith/db/git |
chmod 644 /home/e-smith/db/git |
|
chown root:www /home/e-smith/db/git |
|
114 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
115 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
116 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |