1 |
%define name smeserver-gitweb |
%define name smeserver-gitweb |
2 |
%define version 1.1.0 |
%define version 1.1.0 |
3 |
%define release 2 |
%define release 4 |
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} |
21 |
AutoReqProv: no |
AutoReqProv: no |
22 |
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 |
23 |
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 |
24 |
|
patch3: smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch |
25 |
|
|
26 |
%description |
%description |
27 |
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. |
28 |
|
|
29 |
%changelog |
%changelog |
30 |
|
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3 |
31 |
|
- Removed chmod 644 /home/e-smith/db/networks from spec file as |
32 |
|
it is no longer required for gitweb.conf |
33 |
|
|
34 |
|
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3 |
35 |
|
- Changed the trypass function in 60ExportAuthHook to dynamically |
36 |
|
check for the location of pwauth so this becomes universal for |
37 |
|
SME8 and SME9. |
38 |
|
|
39 |
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-2 |
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-2 |
40 |
- Remove runtime access to NetworkDB [SME: 9217] |
- Remove runtime access to NetworkDB [SME: 9217] |
41 |
- Some trailing whitespace cleanup |
- Some trailing whitespace cleanup |
65 |
%setup |
%setup |
66 |
%patch1 -p1 |
%patch1 -p1 |
67 |
%patch2 -p1 |
%patch2 -p1 |
68 |
|
%patch3 -p1 |
69 |
%build |
%build |
70 |
|
|
71 |
%install |
%install |
81 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
82 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
83 |
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 |
|
84 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
85 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
86 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |