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

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

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


Revision 1.11 - (show annotations) (download)
Sat Mar 25 03:08:42 2023 UTC (20 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-git-1_2_0-10_el7_sme
Changes since 1.10: +6 -1 lines
* Fri Mar 24 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-10.sme
- fix not allowing dot in repo name [SME: 12163]

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

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