/[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.8 - (show annotations) (download)
Mon Aug 1 02:40:00 2022 UTC (21 months, 2 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-git-1_2_0-7_el7_sme
Changes since 1.7: +4 -3 lines
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-7.sme
- update to httpd 2.4 syntax [SME: 12048]

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

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