1 |
%define name smeserver-gitweb |
2 |
%define version 1.0.0 |
3 |
%define release 15 |
4 |
Summary: GitWeb is a web based Git repository viewer on SME Server |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
Distribution: SME Server |
9 |
License: GNU GPL version 2 |
10 |
URL: http://www.through-ip.com |
11 |
Group: SMEserver/addon |
12 |
Source: smeserver-gitweb-%{version}.tar.gz |
13 |
Packager: Marco Hess <marco.hess@through-ip.com> |
14 |
BuildArchitectures: noarch |
15 |
BuildRoot: /var/tmp/%{name}-%{version} |
16 |
BuildRequires: e-smith-devtools |
17 |
Requires: e-smith-release >= 8.0 |
18 |
Requires: smeserver-git |
19 |
Requires: gitweb |
20 |
Requires: highlight |
21 |
AutoReqProv: no |
22 |
|
23 |
%description |
24 |
HTTP access to https://git.host.com provides a gitweb view of the repositories. |
25 |
|
26 |
%changelog |
27 |
* Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-15 |
28 |
- pwauth is in /usr/lib/httpd/modules/pwauth for this SME. |
29 |
|
30 |
* Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-14 |
31 |
- Fixed test in user authorisation check for perl 5.8. |
32 |
|
33 |
* Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-13 |
34 |
- Backport changes from 1.1. |
35 |
- Fixed user authorisation for repositories viewable from internet |
36 |
|
37 |
* Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-12 |
38 |
- Added support for displaying a clone URL. |
39 |
|
40 |
* Mon Jul 23 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3 |
41 |
- Setup default config parameters for gitweb as a service |
42 |
- Removed HTTP template as this is shared with smeserver-git |
43 |
- Added require on gitweb rpm |
44 |
|
45 |
* Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2 |
46 |
- Remove all smeserver-git related files in order to split the packages |
47 |
|
48 |
* Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1 |
49 |
- initial release |
50 |
|
51 |
%prep |
52 |
%setup |
53 |
%build |
54 |
|
55 |
%install |
56 |
rm -rf $RPM_BUILD_ROOT |
57 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
58 |
rm -f %{name}-%{version}-filelist |
59 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
60 |
|
61 |
%clean |
62 |
rm -rf $RPM_BUILD_ROOT |
63 |
|
64 |
%post |
65 |
echo "Ensuring git database is accessible to GitWeb ..." |
66 |
touch /home/e-smith/db/git |
67 |
chmod 644 /home/e-smith/db/git |
68 |
echo "Ensuring networks database is accessible to GitWeb ..." |
69 |
chmod 644 /home/e-smith/db/networks |
70 |
echo "Expanding gitweb.conf template ..." |
71 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
72 |
echo "Expanding GitWeb home page text template ..." |
73 |
/sbin/e-smith/expand-template /etc/e-smith/web/common/gitweb/home_text.html |
74 |
echo "Expanding web server template ..." |
75 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
76 |
/etc/rc7.d/S86httpd-e-smith sighup |
77 |
|
78 |
%files -f %{name}-%{version}-filelist |
79 |
%defattr(-,root,root) |