-
Notifications
You must be signed in to change notification settings - Fork 3
/
engine-appliance-console.spec
162 lines (116 loc) · 4.75 KB
/
engine-appliance-console.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
Name: engine-appliance-console
Version: 0.8
Release: 13%{?dist}
Summary: Management Tool
Group: Application
License: GPL
URL: http://www.ocselected.org
Source0: engine-appliance-console-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: /bin/bash
Requires: ovirt-engine
Requires: engine-reports-config-passwd
%description
Engine Appliance Management Tool.
%prep
%setup -q
%build
%install
rm -rf %{buildroot}
rm -rf .git
mkdir -p %{buildroot}/usr/libexec/
mkdir -p %{buildroot}/usr/share/doc/engine-appliance-console/
mkdir -p %{buildroot}/usr/share/engine-appliance-console/bin/
cp engine-appliance-console %{buildroot}/usr/libexec/
cp README.md %{buildroot}/usr/share/doc/engine-appliance-console/
cp HELP.md %{buildroot}/usr/share/doc/engine-appliance-console/
cp bin/ovirt-reset-db-password %{buildroot}/usr/share/engine-appliance-console/bin/
%post
useradd engineadm &> /dev/null
passwd -d engineadm &> /dev/null
passwd -e engineadm &> /dev/null
sed -i "/engineadm/ s/\/bin\/bash/\/usr\/libexec\/engine-appliance-console/g" /etc/passwd
echo 'engineadm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
cat >> /etc/rsyslog.conf <<EOF
# Save engine-appliance-console messages
local3.* /var/log/engine-appliance-console.log
EOF
service rsyslog restart &> /dev/null
ln -s /usr/share/engine-appliance-console/bin/ovirt-reset-db-password /usr/bin/ovirt-reset-db-password
%postun
rm -rf /usr/bin/ovirt-reset-db-password
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%attr(0755,root,root)/usr/libexec/engine-appliance-console
%attr(0755,root,root)/usr/share/engine-appliance-console/bin/ovirt-reset-db-password
%doc /usr/share/doc/engine-appliance-console/README.md
%doc /usr/share/doc/engine-appliance-console/HELP.md
%changelog
* Fri Dec 26 2014 MaZhe <[email protected]> 0.8-13
- Remove symbolic links when uninstall the package
* Fri Dec 26 2014 MaZhe <[email protected]> 0.8-12
- Fixed bug
* Fri Dec 26 2014 MaZhe <[email protected]> 0.8-11
- Fixed issue #24
* Tue Dec 23 2014 MaZhe <[email protected]> 0.8-10
- Fixed issue #23
* Tue Dec 23 2014 MaZhe <[email protected]> 0.8-9
- Code optimization
* Tue Dec 23 2014 MaZhe <[email protected]> 0.8-8
- Code optimization
* Wed Dec 17 2014 MaZhe <[email protected]> 0.8-7
- Fix isodomain "WGT_DOMAIN" initialization failed bug
Bug fix [issue #23]
* Fri Dec 12 2014 MaZhe <[email protected]> 0.8-6
- Update README & HELP Docment
* Fri Dec 12 2014 MaZhe <[email protected]> 0.8-5
- Add update reports service configuration files function
Resolve [issue #21]
* Thu Dec 11 2014 MaZhe <[email protected]> 0.8-4
- Bug fix
* Thu Dec 11 2014 MaZhe <[email protected]> 0.8-3
- Add update reports configuration file function
* Thu Dec 11 2014 MaZhe <[email protected]> 0.8-2
- Update README & HELP
* Wed Dec 10 2014 MaZhe <[email protected]> 0.8-1
- Add reset database user's password function
* Wed Dec 10 2014 MaZhe <[email protected]> 0.7-2
- Code optimization
* Wed Dec 10 2014 MaZhe <[email protected]> 0.7-1
- Update engine-manage-domains/ovirt-optimizer/engine-vm-backup configuration
when reset IP/HOSTNAME/admin user's password
Resolve [issue #19]
* Tue Dec 9 2014 MaZhe <[email protected]> 0.6-6
- Resolve the garbled problem [issue #17]
Code optimization
Add update ovirt-optimizer.properties file function [issue #18]
* Thu Dec 4 2014 MaZhe <[email protected]> 0.6-5
- Resolve issue [issue #16]
* Thu Dec 4 2014 MaZhe <[email protected]> 0.6-4
- Modify misspelled words
Fix issue [issue #14]
* Mon Dec 1 2014 MaZhe <[email protected]> 0.6-3
- Modify rename parameter "confirmForceOverwrite" to True
- Resolve issue [issue #13]
* Mon Dec 1 2014 MaZhe <[email protected]> 0.6-2
- Modify ENGINE_REPORTS_BASE_URL by rename function
* Fri Nov 28 2014 MaZhe <[email protected]> 0.6-1
- Added a function to display HELP information
* Fri Nov 28 2014 MaZhe <[email protected]> 0.5-6
- Added a function to display the password of the admin user of the reports portal [issue #12]
* Fri Nov 27 2014 MaZhe <[email protected]> 0.5-5
- Fix string compare bug [issue #8]
* Fri Nov 27 2014 MaZhe <[email protected]> 0.5-4
- Resolve hostname revert to "localhost" issue [issue #3]
* Fri Nov 26 2014 MaZhe <[email protected]> 0.5-3
- Resolve hostname configuration issue [issue #5]
* Fri Nov 26 2014 MaZhe <[email protected]> 0.5-2
- Fix network configuration bug [issue #6]
* Fri Nov 26 2014 MaZhe <[email protected]> 0.5-1
- Add oVirt Engine Reports Portal user password configuration function
* Fri Nov 21 2014 MaZhe <[email protected]> 0.4-6
- fix interactive infomation (issues #2)
* Fri Oct 17 2014 MaZhe <[email protected]> 0.1-1
- Initial package tagging.