This repository has been archived by the owner on Mar 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcernboxcop.spec
82 lines (70 loc) · 2.79 KB
/
cernboxcop.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# cernboxcop spec file
#
Name: cernboxcop
Summary: CERNBox cop helps the ops team to be more efficient
Version: 1.0.12
Release: 1%{?dist}
License: AGPLv3
BuildRoot: %{_tmppath}/%{name}-buildroot
Group: CERN-IT/ST
BuildArch: x86_64
Source: %{name}-%{version}.tar.gz
%description
This RPM provides a binary CLI tool to perform various tasks for the CERNBox service.
# Don't do any post-install weirdness, especially compiling .py files
%define __os_install_post %{nil}
%prep
%setup -n %{name}-%{version}
%install
# server versioning
# installation
rm -rf %buildroot/
mkdir -p %buildroot/usr/local/bin
mkdir -p %buildroot/etc/cernboxcop
mkdir -p %buildroot/etc/logrotate.d
mkdir -p %buildroot/var/log/cernboxcop
install -m 755 cernboxcop %buildroot/usr/local/bin/cernboxcop
install -m 644 cernboxcop.toml %buildroot/etc/cernboxcop/cernboxcop.toml
install -m 644 cernboxcop.logrotate %buildroot/etc/logrotate.d/cernboxcop
%clean
rm -rf %buildroot/
%preun
%post
%files
%defattr(-,root,root,-)
/etc/
/etc/logrotate.d/cernboxcop
/var/log/cernboxcop
/usr/local/bin/*
%config(noreplace) /etc/cernboxcop/cernboxcop.toml
%changelog
* Mon Mar 15 2021 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.12
- Add option to stat EOS paths when listing project spaces
- Change in accounting group resolver
- Added impersonation commands
* Tue Nov 25 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.11
- Add OTG commands
* Fri Nov 20 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.10
- Add quota command from EOS
* Fri Nov 13 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.9
- Add io and stat command to fetch metrics from EOS
* Tue Oct 29 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.8
- Add metrics command to fetch eos ns stats
* Tue Oct 22 2020 Ishank Arora <ishank.arora@cern.ch> 1.0.7
- Add command to retrieve availability metric
* Tue Oct 14 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.6
- Move accounting to v3
* Tue Oct 6 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.5
- Fix FE name
* Tue Oct 6 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.4
- Change FE to CERNBox for accounting
* Wed Aug 5 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.3
- Dump path information when listing shares if --printpath flag is passed
- Added command to transfer ownership of shares belonging to a proeject space
* Tue Jul 21 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.2
- Add file source information to share dump commands
* Thu Apr 30 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.1
- Fix virtual cost reporting to use price per terabyte
* Wed Apr 29 2020 Hugo Gonzalez Labrador <hugo.gonzalez.labrador@cern.ch> 1.0.0
- First version with accounting support