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