25 |
Patch4: smeserver-gitweb-1.1.0-defineURI.patch |
Patch4: smeserver-gitweb-1.1.0-defineURI.patch |
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 |
29 |
|
|
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. |
34 |
%changelog |
%changelog |
35 |
* 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 |
36 |
- fix 500 error after auth on remote access [SME: 9614] |
- fix 500 error after auth on remote access [SME: 9614] |
37 |
|
- check all trusted networks [SME: 9578] |
38 |
|
- fix git db readable by everybody [SME: 9615] |
39 |
|
|
40 |
* 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 |
41 |
- fix auth from remote IP [SME: 9202] |
- fix auth from remote IP [SME: 9202] |
85 |
%patch4 -p1 |
%patch4 -p1 |
86 |
%patch5 -p1 |
%patch5 -p1 |
87 |
%patch6 -p1 |
%patch6 -p1 |
88 |
|
%patch7 -p1 |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
%build |
%build |
93 |
|
|
103 |
%post |
%post |
104 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
105 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
106 |
chmod 644 /home/e-smith/db/git |
chmod 640 /home/e-smith/db/git |
107 |
|
chown root:www /home/e-smith/db/git |
108 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
109 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
110 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |