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 9 |
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 |
|
* Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-9.sme |
36 |
|
- removed one missed linefeed |
37 |
|
|
38 |
|
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-8.sme |
39 |
|
- smeserver-git-1.1.0-locale-2016-06-22.patch |
40 |
|
|
41 |
* 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 |
42 |
- fix 500 error after auth on remote access [SME: 9614] |
- fix 500 error after auth on remote access [SME: 9614] |
43 |
- check all trusted networks [SME: 9578] |
- check all trusted networks [SME: 9578] |
44 |
|
- fix git db readable by everybody [SME: 9615] |
45 |
|
|
46 |
* 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 |
47 |
- fix auth from remote IP [SME: 9202] |
- fix auth from remote IP [SME: 9202] |
92 |
%patch5 -p1 |
%patch5 -p1 |
93 |
%patch6 -p1 |
%patch6 -p1 |
94 |
%patch7 -p1 |
%patch7 -p1 |
95 |
|
%patch8 -p1 |
96 |
|
|
97 |
|
|
98 |
%build |
%build |
109 |
%post |
%post |
110 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
111 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
112 |
chmod 644 /home/e-smith/db/git |
chmod 640 /home/e-smith/db/git |
113 |
|
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 ..." |