forked from rocknsm/rock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrock.spec
55 lines (40 loc) · 1.27 KB
/
rock.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
%global _rockdir /opt/rocknsm/rock
Name: rock
Version: 2.0.5
Release: 1%{?dist}
Summary: Network Security Monitoring collections platform
License: BSD
URL: http://rocknsm.io/
Source0: https://github.com/rocknsm/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch
Requires: ansible
Requires: git
%description
ROCK is a collections platform, in the spirit of Network Security Monitoring.
%prep
%setup -q
%build
%install
rm -rf %{buildroot}
DESTDIR=%{buildroot}
#make directories
mkdir -p %{buildroot}/%{_rockdir}
mkdir -p %{buildroot}/%{_rockdir}/bin
mkdir -p %{buildroot}/%{_rockdir}/playbooks
# Install ansible files
install -p -m 755 bin/deploy_rock.sh %{buildroot}/%{_rockdir}/bin/
install -p -m 755 bin/generate_defaults.sh %{buildroot}/%{_rockdir}/bin/
cp -a playbooks/. %{buildroot}/%{_rockdir}/playbooks
%files
%defattr(0644, root, root, 0755)
%{_rockdir}/playbooks/*
%doc README.md LICENSE
%config %{_rockdir}/playbooks/ansible.cfg
%attr(0755, root, root) %{_rockdir}/bin/deploy_rock.sh
%attr(0755, root, root) %{_rockdir}/bin/generate_defaults.sh
%changelog
* Thu Jun 08 2017 spartan782 <john.hall7688@hotmail.com> 2.0.5-1
-
Tito files added.
rock.spec added.
sign_rpm.sh added.