1 |
%define name smeserver-gitweb |
%define name smeserver-gitweb |
2 |
%define version 1.1.0 |
%define version 1.1.0 |
3 |
%define release 0 |
%define release 7 |
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} |
19 |
Requires: gitweb |
Requires: gitweb |
20 |
Requires: highlight |
Requires: highlight |
21 |
AutoReqProv: no |
AutoReqProv: no |
22 |
|
Patch1: smeserver-gitweb-1.1.0-remove_unused_linefeed_from_auth_error.patch |
23 |
|
Patch2: smeserver-gitweb-1.1.0-remove_runtime_access_to_networks_db.patch |
24 |
|
Patch3: smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch |
25 |
|
Patch4: smeserver-gitweb-1.1.0-defineURI.patch |
26 |
|
Patch5: smeserver-gitweb-1.1.0-fix_remote_auth.patch |
27 |
|
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. |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
|
* 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] |
37 |
|
- check all trusted networks [SME: 9578] |
38 |
|
|
39 |
|
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme |
40 |
|
- fix auth from remote IP [SME: 9202] |
41 |
|
|
42 |
|
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-5.sme |
43 |
|
- fix short url to repo not working [SME: 9202] |
44 |
|
|
45 |
|
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-4 |
46 |
|
- Removed chmod 644 /home/e-smith/db/networks from spec file as |
47 |
|
it is no longer required for gitweb.conf |
48 |
|
|
49 |
|
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3 |
50 |
|
- Changed the trypass function in 60ExportAuthHook to dynamically |
51 |
|
check for the location of pwauth so this becomes universal for |
52 |
|
SME8 and SME9. |
53 |
|
|
54 |
|
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-2 |
55 |
|
- Remove runtime access to NetworkDB [SME: 9217] |
56 |
|
- Some trailing whitespace cleanup |
57 |
|
|
58 |
|
* Thu Feb 11 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-1 |
59 |
|
- Remove unused line feeds from auth_error messages [SME: 9217] |
60 |
|
|
61 |
* Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0 |
* Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0 |
62 |
- Split spec package to version 1.1 for SME9 |
- Split spec package to version 1.1 for SME9 |
63 |
- Fixed user authorisation for repositories viewable from internet |
- Fixed user authorisation for repositories viewable from internet |
78 |
|
|
79 |
%prep |
%prep |
80 |
%setup |
%setup |
81 |
|
%patch1 -p1 |
82 |
|
%patch2 -p1 |
83 |
|
%patch3 -p1 |
84 |
|
%patch4 -p1 |
85 |
|
%patch5 -p1 |
86 |
|
%patch6 -p1 |
87 |
|
%patch7 -p1 |
88 |
|
|
89 |
|
|
90 |
|
|
91 |
%build |
%build |
92 |
|
|
93 |
%install |
%install |
103 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
104 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
105 |
chmod 644 /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 |
|
106 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
107 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
108 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |