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

Contents of /rpms/smeserver-git/contribs8/smeserver-git.spec

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


Revision 1.6 - (show annotations) (download)
Fri Jun 10 14:58:00 2016 UTC (7 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-git-1_0_0-44_el5_sme
Changes since 1.5: +6 -1 lines
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-44.sme
- fix allow to see .git short url with gitweb [SME: 9202]

1 %define name smeserver-git
2 %define version 1.0.0
3 %define release 44
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 Patch0: smeserver-git-1.0.0-locale-2016-03-09.patch
14 Patch1: smeserver-git-1.0.0-fix_missing_group_modify_event_check.patch
15 Patch2: smeserver-git-1.0.0-rewriterules_for_dot_git.patch
16 Packager: Marco Hess <marco.hess@through-ip.com>
17 BuildArchitectures: noarch
18 BuildRoot: /var/tmp/%{name}-%{version}
19 BuildRequires: e-smith-devtools
20 Requires: e-smith-release >= 8.0
21 Requires: git
22 AutoReqProv: no
23
24 %description
25 smeserver-git enables centralised git repositories on an SME server and enables
26 access to these repositories through HTTP/HTTPS. Repositories are created and
27 managed through a server-manager panel that also configures the access permissions
28 to the repositories based on the existing SME users and groups. The package
29 installs and enables the git server on the current host like in
30 host.com/git. Repositories are then available as https://host.com/git/gitrepo.git.
31
32 %changelog
33 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-44.sme
34 - fix allow to see .git short url with gitweb [SME: 9202]
35
36 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-43.sme
37 - fix group-modify invalid event [SME: 9251]
38 - patch by Marco Hess
39
40 * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.0.0-42.sme
41 - apply locale 2016-03-09 patch
42
43 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-40
44 - Fixups of 1.1 incompatibilities with older apache.
45 - Allow adjustment of gitweb static path for git 1.7 vs. git 1.8
46
47 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-40
48 - Fixup of GitWeb CSS/JS files under 'static' in this version.
49
50 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-38
51 - Backport changes from 1.1.
52
53 * Fri May 30 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-37
54 - Fixed the HTTPS redirection loop. HTTPS redirection is now only done on the HTTP part of of
55 the web server configuration and the full Git configuration part is only done in the HTTPS
56 section.
57
58 * Tue May 27 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-36
59 - Changed how git update-server-info is run as the location of the executable changed in git 1.8.
60
61 * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-35
62 - Systax error in 29GitRepositories that I though I fixed.
63
64 * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-34
65 - git version 1.8 has shifted the location of some executables. Modified the scripts
66 to test on these locations so we generate the right paths.
67
68 * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-33
69 - Set permissions on git repository databaase for GitWeb access also on upgrade install.
70
71 * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-32
72 - Fixed a problem in the repository delete script where File::Path is needed
73 to reference rmtree.
74 - Also cleanup the entry from the database so that repositories of the same
75 name can be created again.
76
77 * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-31
78 - Changed the repository-delete script to ensure the SME Git database
79 permissions are Ok for use by GitWeb after a delete.
80 - Ensure that on 64-bit systems we use /usr/lib64/httpd/modules/pwauth
81
82 * Sat Jul 21 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3
83 - Ensure git database is present in /home/e-smith/db
84 - Create default config database entries for 'git'
85 - Moved retrieving maxNameLength for panel validations from config 'git'
86 - In the user and group list boxes, added support to the special group admin
87 and shared to allow either the admin or everybody to be included in the access lists.
88 - Updated the HTTP config db error messages to be more clear as to which property needs
89 to be configured.
90
91 * Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2
92 - Rip out gitweb and create tgz file
93
94 * Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1
95 - initial release
96
97 %prep
98 %setup
99 mkdir -p root/home/e-smith/files/git/
100 %patch0 -p1
101 %patch1 -p1
102 %patch2 -p1
103
104 %build
105 perl createlinks
106
107 %install
108 rm -rf $RPM_BUILD_ROOT
109 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
110 rm -f %{name}-%{version}-filelist
111 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post
117 echo "---------------------------------------------------------"
118 if [ $1 -eq 1 ] ; then
119 echo "Initial installation:"
120 echo " - Ensuring git repositories configuration database exist ..."
121 touch /home/e-smith/db/git
122 echo " - Ensuring git repositories root directory exist with the right permissions ..."
123 mkdir -p /home/e-smith/files/git
124 chmod 770 /home/e-smith/files/git
125 chmod g+s /home/e-smith/files/git
126 echo " - Rebuilding server-manager ..."
127 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
128 /etc/e-smith/events/actions/navigation-conf
129 fi
130 echo " - Ensuring git repositories configuration database has the right permissions ..."
131 chmod 664 /home/e-smith/db/git
132 chown admin:www /home/e-smith/files/git
133 /etc/rc7.d/S86httpd-e-smith sighup
134 echo "---------------------------------------------------------"
135
136 %postun
137 if [ $1 -eq 0 ] ; then
138 echo "---------------------------------------------------------"
139 echo " - Rebuilding server-manager ..."
140 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
141 /etc/e-smith/events/actions/navigation-conf
142 echo " - Final Uninstall:"
143 echo " smeserver-git has been removed but the git repositories and the git config database are left in place ..."
144 echo " To manually remove the git repositories, use: 'rm -rf /home/e-smith/files/git'"
145 echo " To manually remove the git config database, use: 'rm -rf /home/e-smith/db/git'"
146 echo "---------------------------------------------------------"
147 fi
148
149 %files -f %{name}-%{version}-filelist
150 %defattr(-,root,root)

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