1 |
%define name smeserver-gitweb |
%define name smeserver-gitweb |
2 |
%define version 1.0.0 |
%define version 1.0.0 |
3 |
%define release 19 |
%define release 21 |
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} |
15 |
Patch3: smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch |
Patch3: smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch |
16 |
Patch4: smeserver-gitweb-1.0.0-defineURI.patch |
Patch4: smeserver-gitweb-1.0.0-defineURI.patch |
17 |
Patch5: smeserver-gitweb-1.0.0-fix_remote_auth.patch |
Patch5: smeserver-gitweb-1.0.0-fix_remote_auth.patch |
18 |
|
Patch6: smeserver-gitweb-1.0.0-checktrusted_networks.patch |
19 |
|
Patch7: smeserver-gitweb-1.0.0-fix_group_check.patch |
20 |
Packager: Marco Hess <marco.hess@through-ip.com> |
Packager: Marco Hess <marco.hess@through-ip.com> |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
22 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
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 |
|
* Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-21.sme |
35 |
|
- fix one more linefeed [SME: 9217] |
36 |
|
|
37 |
|
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-20.sme |
38 |
|
- port to SME8 SME9 fixes |
39 |
|
- fix 500 error after auth on remote access [SME: 9614] |
40 |
|
- 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.0.0-19.sme |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-19.sme |
44 |
- fix auth from remote IP [SME: 9202] |
- fix auth from remote IP [SME: 9202] |
45 |
- revert and improved URI patch for SME8 path |
- revert and improved URI patch for SME8 path |
91 |
%patch3 -p1 |
%patch3 -p1 |
92 |
%patch4 -p1 |
%patch4 -p1 |
93 |
%patch5 -p1 |
%patch5 -p1 |
94 |
|
%patch6 -p1 |
95 |
|
%patch7 -p1 |
96 |
|
|
97 |
%build |
%build |
98 |
|
|
106 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
107 |
|
|
108 |
%post |
%post |
|
echo "Ensuring git database is accessible to GitWeb ..." |
|
|
touch /home/e-smith/db/git |
|
|
chmod 644 /home/e-smith/db/git |
|
|
#echo "Ensuring networks database is accessible to GitWeb ..." |
|
|
#chmod 644 /home/e-smith/db/networks |
|
109 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
110 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
111 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |