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 19 |
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 |
|
Patch5: smeserver-gitweb-1.0.0-fix_remote_auth.patch |
18 |
Packager: Marco Hess <marco.hess@through-ip.com> |
Packager: Marco Hess <marco.hess@through-ip.com> |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
29 |
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. |
30 |
|
|
31 |
%changelog |
%changelog |
32 |
|
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-19.sme |
33 |
|
- fix auth from remote IP [SME: 9202] |
34 |
|
- revert and improved URI patch for SME8 path |
35 |
|
|
36 |
|
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-18.sme |
37 |
|
- revert unecessary previous patch |
38 |
|
|
39 |
|
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-17.sme |
40 |
|
- fix short url to repo not working [SME: 9202] |
41 |
|
|
42 |
|
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.0.0-16 |
43 |
|
- backport SME9 changes [SME: 9217] |
44 |
|
- Removed chmod 644 /home/e-smith/db/networks from spec file as |
45 |
|
it is no longer required for gitweb.conf |
46 |
|
- Changed the trypass function in 60ExportAuthHook to dynamically |
47 |
|
check for the location of pwauth so this becomes universal for |
48 |
|
SME8 and SME9. |
49 |
|
- Remove runtime access to NetworkDB [SME: 9217] |
50 |
|
- Some trailing whitespace cleanup |
51 |
|
|
52 |
* 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 |
53 |
- pwauth is in /usr/lib/httpd/modules/pwauth for this SME. |
- pwauth is in /usr/lib/httpd/modules/pwauth for this SME. |
54 |
|
|
75 |
|
|
76 |
%prep |
%prep |
77 |
%setup |
%setup |
78 |
|
%patch1 -p1 |
79 |
|
%patch2 -p1 |
80 |
|
%patch3 -p1 |
81 |
|
%patch4 -p1 |
82 |
|
%patch5 -p1 |
83 |
|
|
84 |
%build |
%build |
85 |
|
|
86 |
%install |
%install |
96 |
echo "Ensuring git database is accessible to GitWeb ..." |
echo "Ensuring git database is accessible to GitWeb ..." |
97 |
touch /home/e-smith/db/git |
touch /home/e-smith/db/git |
98 |
chmod 644 /home/e-smith/db/git |
chmod 644 /home/e-smith/db/git |
99 |
echo "Ensuring networks database is accessible to GitWeb ..." |
#echo "Ensuring networks database is accessible to GitWeb ..." |
100 |
chmod 644 /home/e-smith/db/networks |
#chmod 644 /home/e-smith/db/networks |
101 |
echo "Expanding gitweb.conf template ..." |
echo "Expanding gitweb.conf template ..." |
102 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
/sbin/e-smith/expand-template /etc/gitweb.conf |
103 |
echo "Expanding GitWeb home page text template ..." |
echo "Expanding GitWeb home page text template ..." |