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