/[smecontribs]/rpms/smeserver-git/contribs9/smeserver-git.spec
ViewVC logotype

Contents of /rpms/smeserver-git/contribs9/smeserver-git.spec

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


Revision 1.12 - (show annotations) (download)
Tue Nov 28 23:58:34 2017 UTC (6 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-git-1_2_0-2_el6_sme, HEAD
Changes since 1.11: +2 -2 lines
* Tue Nov 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2.0-2.sme
- fix smeserver-git prevents httpd.conf template expansion  [SME: 10464]
- now if gitweb is enabled but smeserver-gitweb is not installed a warning is issued
instead of an error and template consider it disabled. Same thing if gitweb_theme is enabled
but smeserver-gitweb-theme is missing.

1 %define name smeserver-git
2 %define version 1.2.0
3 %define release 2
4 Summary: Centralised Git repositories with setup and configuration through SME Server admin panels.
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-git-%{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 >= 9.0
18 Requires: git
19 AutoReqProv: no
20 Patch1: smeserver-git-1.2.0.bz10464-warn-on-missing-files.patch
21
22 %description
23 smeserver-git enables centralised git repositories on an SME server and enables
24 access to these repositories through HTTP/HTTPS. Repositories are created and
25 managed through a server-manager panel that also configures the access permissions
26 to the repositories based on the existing SME users and groups. The package
27 installs and enables the git server on the current host like in
28 host.com/git. Repositories are then available as https://host.com/git/gitrepo.git.
29
30 %changelog
31 * Tue Nov 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2.0-2.sme
32 - fix smeserver-git prevents httpd.conf template expansion [SME: 10464]
33 - now if gitweb is enabled but smeserver-gitweb is not installed a warning is issued
34 instead of an error and template consider it disabled. Same thing if gitweb_theme is enabled
35 but smeserver-gitweb-theme is missing.
36
37 * Tue Nov 28 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2.0-0.sme
38 - new sources with unix formated line returns
39
40 * Wed Feb 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-9.sme
41 - apply locale 2017-02-02.patch
42
43 * Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-8.sme
44 - reverting git db to 644 as default-initialize_database will chown it root:admin
45
46 * Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-7.sme
47 - removing fragment migrate as it should not be used for that [SME: 9619]
48
49 * Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme
50 - fix missing ; in migrate fragment 80git to revert db permissions [SME: 9619]
51
52 * Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-5.sme
53 - fix too permissive permissions on db accounts networks and git [SME: 9615] [SME: 9616]
54
55 * Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-4.sme
56 - commented out back the rewrite rule on HEAD etc to allow CLI git
57 - fix auth not asked with Location after RewriteRule [SME: 9202]
58 - add trailing slash to root git url if omited
59 - only using git/repo.git or git/gitweb.cgi/repo.git will ask for auth
60
61 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-3.sme
62 - fix allow to see .git short url with gitweb [SME: 9202]
63
64 * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.1.0-2.sme
65 - apply locale 2016-03-09 patch
66
67 * Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3
68 - Fixed erronous error message when updating a group due to
69 missing check for 'group-modify' in git user access list handling [SME: 9133]
70
71 * Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0
72 - Require >= SME9.
73 - Moved /usr/lib/perl5/site_perl to /usr/share/perl5/vendor_perl.
74 - Fixed pwauth setup.
75 - Added AuthBasicProvider external in authentication setup.
76 - Fixed GitWebRoot variable scope.
77 - Allow adjustment of gitweb static path for git 1.7 vs. git 1.8
78
79 * Fri May 30 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-37
80 - Fixed the HTTPS redirection loop. HTTPS redirection is now only done on the HTTP part of of
81 the web server configuration and the full Git configuration part is only done in the HTTPS
82 section.
83
84 * Tue May 27 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-36
85 - Changed how git update-server-info is run as the location of the executable changed in git 1.8.
86
87 * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-35
88 - Systax error in 29GitRepositories that I though I fixed.
89
90 * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-34
91 - git version 1.8 has shifted the location of some executables. Modified the scripts
92 to test on these locations so we generate the right paths.
93
94 * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-33
95 - Set permissions on git repository databaase for GitWeb access also on upgrade install.
96
97 * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-32
98 - Fixed a problem in the repository delete script where File::Path is needed
99 to reference rmtree.
100 - Also cleanup the entry from the database so that repositories of the same
101 name can be created again.
102
103 * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-31
104 - Changed the repository-delete script to ensure the SME Git database
105 permissions are Ok for use by GitWeb after a delete.
106 - Ensure that on 64-bit systems we use /usr/lib64/httpd/modules/pwauth
107
108 * Sat Jul 21 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3
109 - Ensure git database is present in /home/e-smith/db
110 - Create default config database entries for 'git'
111 - Moved retrieving maxNameLength for panel validations from config 'git'
112 - In the user and group list boxes, added support to the special group admin
113 and shared to allow either the admin or everybody to be included in the access lists.
114 - Updated the HTTP config db error messages to be more clear as to which property needs
115 to be configured.
116
117 * Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2
118 - Rip out gitweb and create tgz file
119
120 * Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1
121 - initial release
122
123 %prep
124 %setup
125 %patch1 -p1
126
127
128 mkdir -p root/home/e-smith/files/git/
129 %build
130 perl createlinks
131
132 %install
133 rm -rf $RPM_BUILD_ROOT
134 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
135 rm -f %{name}-%{version}-filelist
136 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
137
138 %clean
139 rm -rf $RPM_BUILD_ROOT
140
141 %post
142 echo "---------------------------------------------------------"
143 if [ $1 -eq 1 ] ; then
144 echo "Initial installation:"
145 echo " - Ensuring git repositories configuration database exist ..."
146 touch /home/e-smith/db/git
147 echo " - Ensuring git repositories root directory exist with the right permissions ..."
148 mkdir -p /home/e-smith/files/git
149 chmod 770 /home/e-smith/files/git
150 chmod g+s /home/e-smith/files/git
151 echo " - Rebuilding server-manager ..."
152 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
153 /etc/e-smith/events/actions/navigation-conf
154 fi
155 chown admin:www /home/e-smith/files/git
156 /etc/rc7.d/S86httpd-e-smith sighup
157
158 # fixing needed permissions
159 # fixing previous mess
160 chmod 644 /home/e-smith/db/git
161 chmod 640 /home/e-smith/db/accounts
162 chmod 640 /home/e-smith/db/networks
163
164 %postun
165 if [ $1 -eq 0 ] ; then
166 echo "---------------------------------------------------------"
167 echo " - Rebuilding server-manager ..."
168 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
169 /etc/e-smith/events/actions/navigation-conf
170 echo " - Final Uninstall:"
171 echo " smeserver-git has been removed but the git repositories and the git config database are left in place ..."
172 echo " To manually remove the git repositories, use: 'rm -rf /home/e-smith/files/git'"
173 echo " To manually remove the git config database, use: 'rm -rf /home/e-smith/db/git'"
174 echo "---------------------------------------------------------"
175 fi
176
177 %files -f %{name}-%{version}-filelist
178 %defattr(-,root,root)

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