/[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.6 - (hide annotations) (download)
Sun Aug 22 04:53:07 2021 UTC (2 years, 8 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-git-1_2_0-5_el7_sme
Changes since 1.5: +8 -4 lines
* Sun Aug 22 2021 Terry Fage <terry.fage@gmail.com> 1.2.0-5.sme
- apply locale 2021-08-22.patch

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

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