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

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

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


Revision 1.12 - (hide annotations) (download)
Sat Mar 25 03:20:13 2023 UTC (13 months, 3 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-git-1_2_0-11_el7_sme, HEAD
Changes since 1.11: +6 -1 lines
* Fri Mar 24 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-11.sme
- fix system and domaine name not taken into account in manager [SME: 9629]

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

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