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