-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmeserver-git.spec
58 lines (49 loc) · 1.71 KB
/
smeserver-git.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%define name smeserver-git
%define version 1.0.0
%define release 1
Summary: smeserver-git provides integration for centralised git respositories on an smeserver
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Distribution: SME Server
License: GNU GPL version 2
URL: http://www.through-ip.com
Group: SMEserver/addon
#wget http://www.fooweb.com/downloads/foo-3.6.431.tar.gz
Source: smeserver-git-1.0.0.tar.gz
Packager: Marco Hess <[email protected]>
BuildArchitectures: noarch
BuildRoot: /var/tmp/%{name}-%{version}
BuildRequires: e-smith-devtools
Requires: e-smith-release >= 8.0
AutoReqProv: no
%description
smeserver-git enables centralised git repositories on an SME server and enables
access to these repositories through HTTP/HTTPS. Repositories are created and
managed through a server-manager panel that also configures the access permissions
to the repositories based on the existing SME users and groups. The package
installes and enables a virtual server 'git' on the current host like in
git.host.com. Repositories are then available as https://git.host.com/gitrepo.git.
HTTP access to https://git.host.com provides a gitweb view of the repositories.
%changelog
* Sun Apr 29 2012 Marco Hess <[email protected]> 1.0.0-1
- initial release
%prep
%setup
%build
perl createlinks
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
true
%postun
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
true
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)