forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvesta-ioncube.spec
More file actions
51 lines (40 loc) · 1.12 KB
/
Copy pathvesta-ioncube.spec
File metadata and controls
51 lines (40 loc) · 1.12 KB
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
Name: vesta-ioncube
Version: 0.9.8
Release: 18
Summary: ionCube Loader
Group: System Environment/Base
License: "Freely redistributable without restriction"
URL: https://www.ioncube.com
Vendor: ioncube.com
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: vesta-php
Provides: vesta-ioncube
%define _vestadir /usr/local/vesta/ioncube
%description
This package contains ionCube loader for Vesta
%prep
%setup -q -n %{name}-%{version}
%build
%install
install -d %{buildroot}%{_vestadir}
%{__cp} -ad ./* %{buildroot}%{_vestadir}
%clean
rm -rf %{buildroot}
%post
if [ $1 -eq 1 ]; then
if [ -e /usr/local/vesta/ioncube/ioncube.sh ]; then
/usr/local/vesta/ioncube/ioncube.sh add
fi
fi
%preun
if [ $1 -eq 0 ]; then
if [ -e /usr/local/vesta/ioncube/ioncube.sh ]; then
/usr/local/vesta/ioncube/ioncube.sh delete
fi
fi
%files
%{_vestadir}
%changelog
* Fri Jun 16 2017 Serghey Rodin <builder@vestacp.com> - 0.9.8-18
- Initial package for ionCube 6.1.0