/[smecontribs]/rpms/smeserver-gitweb/contribs8/smeserver-gitweb.spec
ViewVC logotype

Contents of /rpms/smeserver-gitweb/contribs8/smeserver-gitweb.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Fri Jun 10 07:19:52 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
Changes since 1.1: +15 -2 lines
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-4
- backport SME9 changes [SME: 9217]
- Removed chmod 644 /home/e-smith/db/networks from spec file as
  it is no longer required for gitweb.conf
- Changed the trypass function in 60ExportAuthHook to dynamically
  check for the location of pwauth so this becomes universal for
  SME8 and SME9.
- Remove runtime access to NetworkDB [SME: 9217]
- Some trailing whitespace cleanup

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 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>
17 BuildArchitectures: noarch
18 BuildRoot: /var/tmp/%{name}-%{version}
19 BuildRequires: e-smith-devtools
20 Requires: e-smith-release >= 8.0
21 Requires: smeserver-git
22 Requires: gitweb
23 Requires: highlight
24 AutoReqProv: no
25
26 %description
27 HTTP access to https://git.host.com provides a gitweb view of the repositories.
28
29 %changelog
30 * Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-4
31 - backport SME9 changes [SME: 9217]
32 - Removed chmod 644 /home/e-smith/db/networks from spec file as
33 it is no longer required for gitweb.conf
34 - Changed the trypass function in 60ExportAuthHook to dynamically
35 check for the location of pwauth so this becomes universal for
36 SME8 and SME9.
37 - Remove runtime access to NetworkDB [SME: 9217]
38 - Some trailing whitespace cleanup
39
40 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-15
41 - pwauth is in /usr/lib/httpd/modules/pwauth for this SME.
42
43 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-14
44 - Fixed test in user authorisation check for perl 5.8.
45
46 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-13
47 - Backport changes from 1.1.
48 - Fixed user authorisation for repositories viewable from internet
49
50 * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-12
51 - Added support for displaying a clone URL.
52
53 * Mon Jul 23 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3
54 - Setup default config parameters for gitweb as a service
55 - Removed HTTP template as this is shared with smeserver-git
56 - Added require on gitweb rpm
57
58 * Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2
59 - Remove all smeserver-git related files in order to split the packages
60
61 * Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1
62 - initial release
63
64 %prep
65 %setup
66 %build
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
71 rm -f %{name}-%{version}-filelist
72 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post
78 echo "Ensuring git database is accessible to GitWeb ..."
79 touch /home/e-smith/db/git
80 chmod 644 /home/e-smith/db/git
81 #echo "Ensuring networks database is accessible to GitWeb ..."
82 #chmod 644 /home/e-smith/db/networks
83 echo "Expanding gitweb.conf template ..."
84 /sbin/e-smith/expand-template /etc/gitweb.conf
85 echo "Expanding GitWeb home page text template ..."
86 /sbin/e-smith/expand-template /etc/e-smith/web/common/gitweb/home_text.html
87 echo "Expanding web server template ..."
88 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
89 /etc/rc7.d/S86httpd-e-smith sighup
90
91 %files -f %{name}-%{version}-filelist
92 %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed