1 |
%define name smeserver-gitweb |
%define name smeserver-gitweb |
2 |
%define version 1.0.0 |
%define version 1.0.0 |
3 |
%define release 17 |
%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} |
13 |
Patch1: smeserver-gitweb-1.1.0-remove_unused_linefeed_from_auth_error.patch |
Patch1: smeserver-gitweb-1.1.0-remove_unused_linefeed_from_auth_error.patch |
14 |
Patch2: smeserver-gitweb-1.1.0-remove_runtime_access_to_networks_db.patch |
Patch2: smeserver-gitweb-1.1.0-remove_runtime_access_to_networks_db.patch |
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 |
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 |
44 |
|
- fix auth from remote IP [SME: 9202] |
45 |
|
- revert and improved URI patch for SME8 path |
46 |
|
|
47 |
|
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-18.sme |
48 |
|
- revert unecessary previous patch |
49 |
|
|
50 |
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-17.sme |
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-17.sme |
51 |
- fix short url to repo not working [SME: 9202] |
- fix short url to repo not working [SME: 9202] |
52 |
|
|
90 |
%patch2 -p1 |
%patch2 -p1 |
91 |
%patch3 -p1 |
%patch3 -p1 |
92 |
%patch4 -p1 |
%patch4 -p1 |
93 |
|
%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 ..." |