Change-Id: Ieb273535a11c68c980c8a0e1b0e4d3e2a6cf7324
Reviewed-on: http://photon-jenkins.eng.vmware.com/806
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Rocket-fast system for log processing |
2 | 2 |
Name: rsyslog |
3 | 3 |
Version: 8.15.0 |
4 |
-Release: 2%{?dist} |
|
4 |
+Release: 3%{?dist} |
|
5 | 5 |
License: GPLv3+ and ASL 2.0 |
6 | 6 |
URL: http://www.rsyslog.com/ |
7 | 7 |
Source0: http://www.rsyslog.com/files/download/rsyslog/%{name}-%{version}.tar.gz |
... | ... |
@@ -54,11 +54,14 @@ find %{buildroot} -name '*.la' -delete |
54 | 54 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
55 | 55 |
%post |
56 | 56 |
/sbin/ldconfig |
57 |
-/bin/systemctl enable rsyslog.service |
|
57 |
+%systemd_post rsyslog.service |
|
58 |
+ |
|
59 |
+%preun |
|
60 |
+%systemd_preun rsyslog.service |
|
58 | 61 |
|
59 | 62 |
%postun |
60 | 63 |
/sbin/ldconfig |
61 |
-/bin/systemctl disable rsyslog.service |
|
64 |
+ |
|
62 | 65 |
|
63 | 66 |
%files |
64 | 67 |
%defattr(-,root,root) |
... | ... |
@@ -69,6 +72,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
69 | 69 |
%{_libdir}/systemd/system/rsyslog.service |
70 | 70 |
%{_sysconfdir}/systemd/journald.conf.d/* |
71 | 71 |
%changelog |
72 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.15.0-3 |
|
73 |
+- Use systemd macros for post, preun and postun to respect upgrades |
|
72 | 74 |
* Wed Feb 17 2016 Anish Swaminathan <anishs@vmware.com> 8.15.0-2 |
73 | 75 |
- Add journald conf and new service file. |
74 | 76 |
* Mon Jan 11 2016 Xiaolin Li <xiaolinl@vmware.com> 8.15.0-1 |
... | ... |
@@ -1,17 +1,19 @@ |
1 | 1 |
Summary: Commonly used Mail transport agent (MTA) |
2 | 2 |
Name: sendmail |
3 | 3 |
Version: 8.15.2 |
4 |
-Release: 2%{?dist} |
|
4 |
+Release: 3%{?dist} |
|
5 | 5 |
URL: http://www.sendmail.org/ |
6 | 6 |
License: GPLv2+ and GPLv3+ and LGPLv2+ |
7 | 7 |
Group: Email/Server/Library |
8 | 8 |
Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source0: http://ftp.vim.org/pub/mail/sendmail/sendmail-r8/sendmail.8.15.2.tar.gz |
11 |
+BuildRequires: systemd |
|
11 | 12 |
BuildRequires: openldap |
12 | 13 |
BuildRequires: openssl-devel |
13 | 14 |
BuildRequires: db-devel |
14 | 15 |
BuildRequires: shadow |
16 |
+Requires: systemd |
|
15 | 17 |
|
16 | 18 |
%define sha1 sendmail=5801d4b06f4e38ef228a5954a44d17636eaa5a16 |
17 | 19 |
|
... | ... |
@@ -121,32 +123,35 @@ install -v -m700 -d /var/spool/mqueue |
121 | 121 |
|
122 | 122 |
|
123 | 123 |
%post |
124 |
+if [ $1 -eq 1 ] ; then |
|
125 |
+ echo $(hostname) > /etc/mail/local-host-names |
|
126 |
+ cat > /etc/mail/aliases << "EOF" |
|
127 |
+ postmaster: root |
|
128 |
+ MAILER-DAEMON: root |
|
124 | 129 |
|
125 |
-echo $(hostname) > /etc/mail/local-host-names |
|
126 |
-cat > /etc/mail/aliases << "EOF" |
|
127 |
-postmaster: root |
|
128 |
-MAILER-DAEMON: root |
|
130 |
+ EOF |
|
131 |
+ /bin/newaliases |
|
129 | 132 |
|
130 |
-EOF |
|
131 |
-/bin/newaliases |
|
132 |
- |
|
133 |
-cd /etc/mail |
|
134 |
-m4 m4/cf.m4 sendmail.mc > sendmail.cf |
|
133 |
+ cd /etc/mail |
|
134 |
+ m4 m4/cf.m4 sendmail.mc > sendmail.cf |
|
135 | 135 |
|
136 |
-chmod 700 /var/spool/clientmqueue |
|
137 |
-chown smmsp:smmsp /var/spool/clientmqueue |
|
136 |
+ chmod 700 /var/spool/clientmqueue |
|
137 |
+ chown smmsp:smmsp /var/spool/clientmqueue |
|
138 |
+fi |
|
138 | 139 |
|
139 |
-/bin/systemctl enable sendmail |
|
140 |
+%systemd_post sendmail.service |
|
140 | 141 |
|
141 | 142 |
%preun |
142 |
-/bin/systemctl disable sendmail |
|
143 |
+%systemd_preun sendmail.service |
|
143 | 144 |
|
144 | 145 |
|
145 | 146 |
%postun |
146 |
-userdel smmsp |
|
147 |
-groupdel smmsp |
|
147 |
+if [ $1 -eq 0 ] ; then |
|
148 |
+ userdel smmsp |
|
149 |
+ groupdel smmsp |
|
148 | 150 |
|
149 |
-rm -rf /etc/mail |
|
151 |
+ rm -rf /etc/mail |
|
152 |
+fi |
|
150 | 153 |
|
151 | 154 |
%files |
152 | 155 |
%{_sysconfdir}/* |
... | ... |
@@ -161,6 +166,8 @@ rm -rf /etc/mail |
161 | 161 |
|
162 | 162 |
|
163 | 163 |
%changelog |
164 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.15.2-3 |
|
165 |
+- Fix for upgrade issues |
|
164 | 166 |
* Wed Feb 17 2016 Kumar Kaushik <kaushikk@vmware.com> 8.15.2-2 |
165 | 167 |
- Changing permission and owner of clientmqueue. |
166 | 168 |
* Tue Jan 05 2016 Kumar Kaushik <kaushikk@vmware.com> 8.15.2-1 |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Sudo |
2 | 2 |
Name: sudo |
3 | 3 |
Version: 1.8.15 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: ISC |
6 | 6 |
URL: https://www.kernel.org/pub/linux/libs/pam/ |
7 | 7 |
Group: System Environment/Security |
... | ... |
@@ -59,7 +59,9 @@ EOF |
59 | 59 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
60 | 60 |
%post |
61 | 61 |
/sbin/ldconfig |
62 |
-groupadd wheel |
|
62 |
+if [ $1 -eq 1 ] ; then |
|
63 |
+ groupadd wheel |
|
64 |
+fi |
|
63 | 65 |
%postun -p /sbin/ldconfig |
64 | 66 |
%clean |
65 | 67 |
rm -rf %{buildroot}/* |
... | ... |
@@ -78,6 +80,8 @@ rm -rf %{buildroot}/* |
78 | 78 |
%{_docdir}/%{name}-%{version}/* |
79 | 79 |
%{_datarootdir}/locale/* |
80 | 80 |
%changelog |
81 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.8.15-2 |
|
82 |
+- Fix for upgrade issues |
|
81 | 83 |
* Wed Jan 20 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.8.15-1 |
82 | 84 |
- Update to 1.8.15-1. |
83 | 85 |
* Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 1.8.11p1-5 |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Next generation system logger facilty |
2 | 2 |
Name: syslog-ng |
3 | 3 |
Version: 3.6.4 |
4 |
-Release: 2%{?dist} |
|
4 |
+Release: 3%{?dist} |
|
5 | 5 |
License: GPL + LGPL |
6 | 6 |
URL: https://www.balabit.com/network-security/syslog-ng/opensource-logging-system |
7 | 7 |
Group: System Environment/Daemons |
... | ... |
@@ -13,10 +13,12 @@ Source1: 60-syslog-ng-journald.conf |
13 | 13 |
Requires: glib |
14 | 14 |
Requires: eventlog |
15 | 15 |
Requires: python2 |
16 |
+Requires: systemd |
|
16 | 17 |
BuildRequires: eventlog |
17 | 18 |
BuildRequires: glib-devel |
18 | 19 |
BuildRequires: python2-libs |
19 | 20 |
BuildRequires: python2-devel |
21 |
+BuildRequires: systemd |
|
20 | 22 |
|
21 | 23 |
%description |
22 | 24 |
The syslog-ng application is a flexible and highly scalable |
... | ... |
@@ -73,11 +75,13 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/systemd/journald.conf.d/ |
73 | 73 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
74 | 74 |
|
75 | 75 |
%post |
76 |
-mkdir -p /usr/var/ |
|
77 |
-/bin/systemctl enable syslog-ng |
|
76 |
+if [ $1 -eq 1 ] ; then |
|
77 |
+ mkdir -p /usr/var/ |
|
78 |
+fi |
|
79 |
+%systemd_post syslog-ng.service |
|
78 | 80 |
|
79 | 81 |
%preun |
80 |
-/bin/systemctl disable syslog-ng |
|
82 |
+%systemd_preun syslog-ng.service |
|
81 | 83 |
|
82 | 84 |
%clean |
83 | 85 |
rm -rf %{buildroot}/* |
... | ... |
@@ -113,6 +117,8 @@ rm -rf %{buildroot}/* |
113 | 113 |
/usr/lib/pkgconfig/syslog-ng.pc |
114 | 114 |
|
115 | 115 |
%changelog |
116 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.6.4-3 |
|
117 |
+- Fix for upgrade issues |
|
116 | 118 |
* Wed Feb 17 2016 Anish Swaminathan <anishs@vmware.com> 3.6.4-2 |
117 | 119 |
- Add journald conf file. |
118 | 120 |
* Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 3.6.4-1 |
... | ... |
@@ -8,7 +8,7 @@ |
8 | 8 |
|
9 | 9 |
Name: systemtap |
10 | 10 |
Version: 2.9 |
11 |
-Release: 1%{?dist} |
|
11 |
+Release: 2%{?dist} |
|
12 | 12 |
Summary: Programmable system-wide instrumentation system |
13 | 13 |
Group: Development/System |
14 | 14 |
Vendor: VMware, Inc. |
... | ... |
@@ -188,20 +188,22 @@ test -e ~stap-server && chmod 755 ~stap-server |
188 | 188 |
exit 0 |
189 | 189 |
|
190 | 190 |
%post server |
191 |
-test -e %{_localstatedir}/log/stap-server/log || { |
|
192 |
-touch %{_localstatedir}/log/stap-server/log |
|
193 |
-chmod 664 %{_localstatedir}/log/stap-server/log |
|
194 |
-chown stap-server:stap-server %{_localstatedir}/log/stap-server/log |
|
195 |
-} |
|
196 |
- |
|
197 |
-if test ! -e ~stap-server/.systemtap/ssl/server/stap.cert; then |
|
191 |
+if [ $1 -eq 1 ] ; then |
|
192 |
+ test -e %{_localstatedir}/log/stap-server/log || { |
|
193 |
+ touch %{_localstatedir}/log/stap-server/log |
|
194 |
+ chmod 664 %{_localstatedir}/log/stap-server/log |
|
195 |
+ chown stap-server:stap-server %{_localstatedir}/log/stap-server/log |
|
196 |
+ } |
|
197 |
+ |
|
198 |
+ if test ! -e ~stap-server/.systemtap/ssl/server/stap.cert; then |
|
198 | 199 |
runuser -s /bin/sh - stap-server -c %{_libexecdir}/%{name}/stap-gen-cert >/dev/null |
199 | 200 |
|
200 | 201 |
%{_bindir}/stap-authorize-server-cert ~stap-server/.systemtap/ssl/server/stap.cert |
201 | 202 |
%{_bindir}/stap-authorize-signing-cert ~stap-server/.systemtap/ssl/server/stap.cert |
203 |
+ fi |
|
204 |
+ /sbin/chkconfig --add stap-server |
|
205 |
+ exit 0 |
|
202 | 206 |
fi |
203 |
-/sbin/chkconfig --add stap-server |
|
204 |
-exit 0 |
|
205 | 207 |
|
206 | 208 |
%preun server |
207 | 209 |
if [ $1 = 0 ] ; then |
... | ... |
@@ -217,8 +219,10 @@ fi |
217 | 217 |
exit 0 |
218 | 218 |
|
219 | 219 |
%post initscript |
220 |
-/sbin/chkconfig --add systemtap |
|
221 |
-exit 0 |
|
220 |
+if [ $1 -eq 1 ] ; then |
|
221 |
+ /sbin/chkconfig --add systemtap |
|
222 |
+ exit 0 |
|
223 |
+fi |
|
222 | 224 |
|
223 | 225 |
%preun initscript |
224 | 226 |
if [ $1 = 0 ] ; then |
... | ... |
@@ -234,12 +238,16 @@ fi |
234 | 234 |
exit 0 |
235 | 235 |
|
236 | 236 |
%post |
237 |
-(make -C %{_datadir}/systemtap/runtime/linux/uprobes clean) >/dev/null 3>&1 || true |
|
238 |
-(/sbin/rmmod uprobes) >/dev/null 2>&1 || true |
|
237 |
+if [ $1 -eq 1 ] ; then |
|
238 |
+ (make -C %{_datadir}/systemtap/runtime/linux/uprobes clean) >/dev/null 3>&1 || true |
|
239 |
+ (/sbin/rmmod uprobes) >/dev/null 2>&1 || true |
|
240 |
+fi |
|
239 | 241 |
|
240 | 242 |
%preun |
241 |
-(make -C %{_datadir}/systemtap/runtime/linux/uprobes clean) >/dev/null 3>&1 || true |
|
242 |
-(/sbin/rmmod uprobes) >/dev/null 2>&1 || true |
|
243 |
+if [ $1 -eq 0 ] ; then |
|
244 |
+ (make -C %{_datadir}/systemtap/runtime/linux/uprobes clean) >/dev/null 3>&1 || true |
|
245 |
+ (/sbin/rmmod uprobes) >/dev/null 2>&1 || true |
|
246 |
+fi |
|
243 | 247 |
|
244 | 248 |
%files -f %{name}.lang |
245 | 249 |
%defattr(-,root,root) |
... | ... |
@@ -318,6 +326,8 @@ exit 0 |
318 | 318 |
%{_mandir}/man8/stap-server.8* |
319 | 319 |
|
320 | 320 |
%changelog |
321 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.9-2 |
|
322 |
+- Fix for upgrade issues |
|
321 | 323 |
* Wed Dec 16 2015 Harish Udaiya Kumar <hudaiyakumar> 2.9-1 |
322 | 324 |
- Updated version to 2.9 |
323 | 325 |
* Fri Dec 11 2015 Xiaolin Li <xiaolinl@vmware.com> 2.7-2 |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: An enhanced version of csh, the C shell |
3 | 3 |
Name: tcsh |
4 | 4 |
Version: 6.19.00 |
5 |
-Release: 1%{?dist} |
|
5 |
+Release: 2%{?dist} |
|
6 | 6 |
License: BSD |
7 | 7 |
Group: System Environment/Shells |
8 | 8 |
Source: http://www.sfr-fresh.com/unix/misc/%{name}-%{version}.tar.gz |
... | ... |
@@ -71,21 +71,25 @@ make check |
71 | 71 |
rm -rf %{buildroot} |
72 | 72 |
|
73 | 73 |
%post |
74 |
-if [ ! -f /etc/shells ]; then |
|
75 |
- echo "%{_bindir}/tcsh" >> /etc/shells |
|
76 |
- echo "%{_bindir}/csh" >> /etc/shells |
|
77 |
-else |
|
78 |
- grep -q '^%{_bindir}/tcsh$' /etc/shells || \ |
|
79 |
- echo "%{_bindir}/tcsh" >> /etc/shells |
|
80 |
- grep -q '^%{_bindir}/csh$' /etc/shells || \ |
|
81 |
- echo "%{_bindir}/csh" >> /etc/shells |
|
74 |
+if [ $1 -eq 1 ] ; then |
|
75 |
+ if [ ! -f /etc/shells ]; then |
|
76 |
+ echo "%{_bindir}/tcsh" >> /etc/shells |
|
77 |
+ echo "%{_bindir}/csh" >> /etc/shells |
|
78 |
+ else |
|
79 |
+ grep -q '^%{_bindir}/tcsh$' /etc/shells || \ |
|
80 |
+ echo "%{_bindir}/tcsh" >> /etc/shells |
|
81 |
+ grep -q '^%{_bindir}/csh$' /etc/shells || \ |
|
82 |
+ echo "%{_bindir}/csh" >> /etc/shells |
|
83 |
+ fi |
|
82 | 84 |
fi |
83 | 85 |
|
84 | 86 |
%postun |
85 |
-if [ ! -x %{_bindir}/tcsh ]; then |
|
86 |
- grep -v '^%{_bindir}/tcsh$' /etc/shells | \ |
|
87 |
- grep -v '^%{_bindir}/csh$' > /etc/shells.rpm && \ |
|
88 |
- mv /etc/shells.rpm /etc/shells |
|
87 |
+if [ $1 -eq 0 ] ; then |
|
88 |
+ if [ ! -x %{_bindir}/tcsh ]; then |
|
89 |
+ grep -v '^%{_bindir}/tcsh$' /etc/shells | \ |
|
90 |
+ grep -v '^%{_bindir}/csh$' > /etc/shells.rpm && \ |
|
91 |
+ mv /etc/shells.rpm /etc/shells |
|
92 |
+ fi |
|
89 | 93 |
fi |
90 | 94 |
|
91 | 95 |
%files -f tcsh.lang |
... | ... |
@@ -95,6 +99,8 @@ fi |
95 | 95 |
%{_mandir}/man1/*.1* |
96 | 96 |
|
97 | 97 |
%changelog |
98 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 6.19.00-2 |
|
99 |
+- Fix for upgrade issues |
|
98 | 100 |
* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 6.19.00-1 |
99 | 101 |
- Upgrade version |
100 | 102 |
* Wed Apr 1 2015 Divya Thaluru <dthaluru@vmware.com> 6.18.01-1 |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
Summary: dnf/yum equivalent using C libs |
5 | 5 |
Name: tdnf |
6 | 6 |
Version: 1.0.8 |
7 |
-Release: 2%{?dist} |
|
7 |
+Release: 3%{?dist} |
|
8 | 8 |
Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
License: VMware |
... | ... |
@@ -44,6 +44,9 @@ make %{?_smp_mflags} |
44 | 44 |
%install |
45 | 45 |
make DESTDIR=%{buildroot} install |
46 | 46 |
mkdir -p %{buildroot}/var/cache/tdnf |
47 |
+ln -sf %{_bindir}/tdnf %{buildroot}%{_bindir}/tyum |
|
48 |
+mkdir -p %{buildroot}%{_includedir}/tdnf |
|
49 |
+mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/tdnf |
|
47 | 50 |
|
48 | 51 |
# Pre-install |
49 | 52 |
%pre |
... | ... |
@@ -58,7 +61,6 @@ mkdir -p %{buildroot}/var/cache/tdnf |
58 | 58 |
# First argument is 2 => Upgrade |
59 | 59 |
|
60 | 60 |
/sbin/ldconfig |
61 |
- ln -sf %{_bindir}/tdnf %{_bindir}/tyum |
|
62 | 61 |
|
63 | 62 |
# Pre-uninstall |
64 | 63 |
%preun |
... | ... |
@@ -70,7 +72,6 @@ mkdir -p %{buildroot}/var/cache/tdnf |
70 | 70 |
%postun |
71 | 71 |
|
72 | 72 |
/sbin/ldconfig |
73 |
- rm -f %{_bindir}/tyum |
|
74 | 73 |
|
75 | 74 |
# First argument is 0 => Uninstall |
76 | 75 |
# First argument is 1 => Upgrade |
... | ... |
@@ -78,18 +79,21 @@ mkdir -p %{buildroot}/var/cache/tdnf |
78 | 78 |
%files |
79 | 79 |
%defattr(-,root,root,0755) |
80 | 80 |
%{_bindir}/tdnf |
81 |
+ %{_bindir}/tyum |
|
81 | 82 |
%{_libdir}/*.so* |
82 | 83 |
%config(noreplace) %{_sysconfdir}/tdnf/tdnf.conf |
83 | 84 |
%dir /var/cache/tdnf |
84 | 85 |
|
85 | 86 |
%files devel |
86 | 87 |
%defattr(-,root,root) |
87 |
- %{_includedir}/* |
|
88 |
+ %{_includedir}/tdnf/*.h |
|
88 | 89 |
%{_libdir}/*.a |
89 | 90 |
%{_libdir}/*.la |
90 | 91 |
%exclude %{_libdir}/debug |
91 | 92 |
|
92 | 93 |
%changelog |
94 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.8-3 |
|
95 |
+- Fix link installs, fix devel header dir |
|
93 | 96 |
* Fri Apr 1 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.8-2 |
94 | 97 |
- Update version which was missed with 1.0.8-1, apply string limits |
95 | 98 |
* Fri Apr 1 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.8-1 |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: The client for the Trivial File Transfer Protocol (TFTP) |
2 | 2 |
Name: tftp |
3 | 3 |
Version: 5.2 |
4 |
-Release: 3%{?dist} |
|
4 |
+Release: 4%{?dist} |
|
5 | 5 |
License: BSD |
6 | 6 |
URL: http://www.kernel.org |
7 | 7 |
Group: Applications/Internet |
... | ... |
@@ -72,9 +72,10 @@ ListenDatagram=69 |
72 | 72 |
WantedBy=sockets.target |
73 | 73 |
EOF |
74 | 74 |
%preun |
75 |
-/bin/systemctl disable tftpd.socket |
|
75 |
+%systemd_preun tftpd.socket |
|
76 |
+ |
|
76 | 77 |
%post |
77 |
-/bin/systemctl enable tftpd.socket |
|
78 |
+%systemd_preun tftpd.socket |
|
78 | 79 |
|
79 | 80 |
%clean |
80 | 81 |
rm -rf %{buildroot} |
... | ... |
@@ -94,6 +95,8 @@ rm -rf %{buildroot} |
94 | 94 |
/lib/systemd/system/tftpd.socket |
95 | 95 |
|
96 | 96 |
%changelog |
97 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.2-4 |
|
98 |
+- Fix for upgrade issues |
|
97 | 99 |
* Thu Dec 10 2015 Xiaolin Li <xiaolinl@vmware.com> 5.2-3 |
98 | 100 |
- Add systemd to Requires and BuildRequires |
99 | 101 |
- Use systemctl to enable/disable service. |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Very secure and very small FTP daemon. |
2 | 2 |
Name: vsftpd |
3 | 3 |
Version: 3.0.2 |
4 |
-Release: 1 |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: GPLv2 with exceptions |
6 | 6 |
URL: https://security.appspot.com/vsftpd.html |
7 | 7 |
Group: System Environment/Daemons |
... | ... |
@@ -41,30 +41,34 @@ pasv_max_port=40100 |
41 | 41 |
EOF |
42 | 42 |
|
43 | 43 |
%post |
44 |
-install -v -d -m 0755 %{_datadir}/vsftpd/empty |
|
45 |
-install -v -d -m 0755 /home/ftp |
|
46 |
-if ! getent group vsftpd >/dev/null; then |
|
47 |
- groupadd -g 47 vsftpd |
|
48 |
-fi |
|
49 |
-if ! getent group ftp >/dev/null; then |
|
50 |
- groupadd -g 45 ftp |
|
51 |
-fi |
|
52 |
-if ! getent passwd vsftpd >/dev/null; then |
|
53 |
- useradd -c "vsftpd User" -d /dev/null -g vsftpd -s /bin/false -u 47 vsftpd |
|
54 |
-fi |
|
55 |
-if ! getent passwd ftp >/dev/null; then |
|
56 |
- useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false -u 45 ftp |
|
44 |
+if [ $1 -eq 1 ] ; then |
|
45 |
+ install -v -d -m 0755 %{_datadir}/vsftpd/empty |
|
46 |
+ install -v -d -m 0755 /home/ftp |
|
47 |
+ if ! getent group vsftpd >/dev/null; then |
|
48 |
+ groupadd -g 47 vsftpd |
|
49 |
+ fi |
|
50 |
+ if ! getent group ftp >/dev/null; then |
|
51 |
+ groupadd -g 45 ftp |
|
52 |
+ fi |
|
53 |
+ if ! getent passwd vsftpd >/dev/null; then |
|
54 |
+ useradd -c "vsftpd User" -d /dev/null -g vsftpd -s /bin/false -u 47 vsftpd |
|
55 |
+ fi |
|
56 |
+ if ! getent passwd ftp >/dev/null; then |
|
57 |
+ useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false -u 45 ftp |
|
58 |
+ fi |
|
57 | 59 |
fi |
58 | 60 |
|
59 | 61 |
%postun |
60 |
-if getent passwd vsftpd >/dev/null; then |
|
61 |
- userdel vsftpd |
|
62 |
-fi |
|
63 |
-if getent passwd ftp >/dev/null; then |
|
64 |
- userdel ftp |
|
65 |
-fi |
|
66 |
-if getent group vsftpd >/dev/null; then |
|
67 |
- groupdel vsftpd |
|
62 |
+if [ $1 -eq 0 ] ; then |
|
63 |
+ if getent passwd vsftpd >/dev/null; then |
|
64 |
+ userdel vsftpd |
|
65 |
+ fi |
|
66 |
+ if getent passwd ftp >/dev/null; then |
|
67 |
+ userdel ftp |
|
68 |
+ fi |
|
69 |
+ if getent group vsftpd >/dev/null; then |
|
70 |
+ groupdel vsftpd |
|
71 |
+ fi |
|
68 | 72 |
fi |
69 | 73 |
|
70 | 74 |
%files |
... | ... |
@@ -74,5 +78,7 @@ fi |
74 | 74 |
%{_datadir}/* |
75 | 75 |
%exclude %{_libdir}/debug |
76 | 76 |
%changelog |
77 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.0.2-2 |
|
78 |
+- Fix for upgrade issues |
|
77 | 79 |
* Mon Jul 6 2015 Alexey Makhalov <amakhalov@vmware.com> 3.0.2-1 |
78 | 80 |
- initial version |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: xinetd -- A better inetd. |
2 | 2 |
Name: xinetd |
3 | 3 |
Version: 2.3.15 |
4 |
-Release: 3%{?dist} |
|
4 |
+Release: 4%{?dist} |
|
5 | 5 |
License: BSD |
6 | 6 |
Group: System Environment/Daemons |
7 | 7 |
Vendor: VMware, Inc. |
... | ... |
@@ -54,7 +54,7 @@ if [ $1 -eq 1 ] ; then |
54 | 54 |
fi |
55 | 55 |
|
56 | 56 |
%preun |
57 |
-/bin/systemctl disable xinetd.service |
|
57 |
+%systemd_preun xinetd.service |
|
58 | 58 |
|
59 | 59 |
%files |
60 | 60 |
%defattr(-, root, root) |
... | ... |
@@ -66,6 +66,8 @@ fi |
66 | 66 |
/lib/systemd/system/xinetd.service |
67 | 67 |
|
68 | 68 |
%changelog |
69 |
+* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.3.15-4 |
|
70 |
+- Fix upgrade issues |
|
69 | 71 |
* Thu Dec 10 2015 Xiaolin Li <xiaolinl@vmware.com> 2.3.15-3 |
70 | 72 |
- Add systemd to Requires and BuildRequires. |
71 | 73 |
* Thu Dec 03 2015 Xiaolin Li <xiaolinl@vmware.com> 2.3.15-2 |