1 |
%define name smeserver-gitweb |
%define name smeserver-gitweb |
2 |
%define version 1.0.0 |
%define version 1.0.0 |
3 |
%define release 15 |
%define release 18 |
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} |
10 |
URL: http://www.through-ip.com |
URL: http://www.through-ip.com |
11 |
Group: SMEserver/addon |
Group: SMEserver/addon |
12 |
Source: smeserver-gitweb-%{version}.tar.gz |
Source: smeserver-gitweb-%{version}.tar.gz |
13 |
|
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 |
15 |
|
Patch3: smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch |
16 |
Packager: Marco Hess <marco.hess@through-ip.com> |
Packager: Marco Hess <marco.hess@through-ip.com> |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
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 |
|
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-18.sme |
31 |
|
- revert unecessary previous patch |
32 |
|
|
33 |
|
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-17.sme |
34 |
|
- fix short url to repo not working [SME: 9202] |
35 |
|
|
36 |
|
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.0.0-16 |
37 |
|
- backport SME9 changes [SME: 9217] |
38 |
|
- Removed chmod 644 /home/e-smith/db/networks from spec file as |
39 |
|
it is no longer required for gitweb.conf |
40 |
|
- Changed the trypass function in 60ExportAuthHook to dynamically |
41 |
|
check for the location of pwauth so this becomes universal for |
42 |
|
SME8 and SME9. |
43 |
|
- Remove runtime access to NetworkDB [SME: 9217] |
44 |
|
- Some trailing whitespace cleanup |
45 |
|
|
46 |
* Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-15 |
* Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-15 |
47 |
- pwauth is in /usr/lib/httpd/modules/pwauth for this SME. |
- pwauth is in /usr/lib/httpd/modules/pwauth for this SME. |
48 |
|
|
69 |
|
|
70 |
%prep |
%prep |
71 |
%setup |
%setup |
72 |
|
%patch1 -p1 |
73 |
|
%patch2 -p1 |
74 |
|
%patch3 -p1 |
75 |
|
|
76 |
%build |
%build |
77 |
|
|
78 |
%install |
%install |
88 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
89 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
90 |
chmod 644 /home/e-smith/db/git |
chmod 644 /home/e-smith/db/git |
91 |
echo "Ensuring networks database is accessible to GitWeb ..." |
#echo "Ensuring networks database is accessible to GitWeb ..." |
92 |
chmod 644 /home/e-smith/db/networks |
#chmod 644 /home/e-smith/db/networks |
93 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
94 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
95 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |