Skip to content

Commit f303738

Browse files
Priyesh PadmavilasomSharath George
authored andcommitted
update pmd to 0.0.5
Change-Id: I782795985e09aa554f24b7d0baa70d0acbaee103 Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3898 Reviewed-by: Sharath George Tested-by: Sharath George
1 parent c9535d0 commit f303738

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

SPECS/pmd/pmd.spec

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Summary: Photon Management Daemon
1010
Name: pmd
11-
Version: 0.0.4
11+
Version: 0.0.5
1212
Release: 1%{?dist}
1313
Vendor: VMware, Inc.
1414
Distribution: Photon
@@ -37,7 +37,7 @@ BuildRequires: netmgmt-devel
3737
BuildRequires: tdnf-devel >= 1.2.0
3838
BuildRequires: lightwave-devel
3939
Source0: %{name}-%{version}.tar.gz
40-
%define sha1 pmd=e623169975219751d944c9bd925134949548e2d4
40+
%define sha1 pmd=b49e8ab237da29010ebcd2728a3b767a9e0a633e
4141

4242
%description
4343
Photon Management Daemon
@@ -51,6 +51,7 @@ photon management daemon libs used by server and clients
5151

5252
%package cli
5353
Summary: photon management daemon cmd line cli
54+
Requires: %{name}-libs = %{version}-%{release}
5455
Requires: likewise-open >= 6.2.0
5556
Requires: lightwave-client-libs
5657

@@ -88,7 +89,7 @@ Python3 bindings for photon management daemon
8889
%setup -q
8990

9091
%build
91-
sed -i 's/pmd, 0.0.1/pmd, 0.0.4/' configure.ac
92+
sed -i 's/pmd, 0.0.1/pmd, 0.0.5/' configure.ac
9293
sed -i 's,-lcrypto,-lcrypto -lgssapi_krb5 @top_builddir@/client/libpmdclient.la,' server/Makefile.am
9394
autoreconf -mif
9495
./configure \
@@ -124,6 +125,8 @@ install -D -m 444 pmdprivsepd.service %{buildroot}%{_unitdir}
124125
install -D -m 444 conf/restapispec.json %{buildroot}/etc/pmd/restapispec.json
125126
install -D -m 444 conf/api_sddl.conf %{buildroot}/etc/pmd/api_sddl.conf
126127
install -D -m 444 conf/restconfig.txt %{buildroot}/etc/pmd/restconfig.txt
128+
install -d -m 0755 %{buildroot}/usr/lib/tmpfiles.d/
129+
install -m 0644 conf/pmd-tmpfiles.conf %{buildroot}/usr/lib/tmpfiles.d/%{name}.conf
127130

128131
# Pre-install
129132
%pre
@@ -158,7 +161,6 @@ fi
158161
echo "unix %{_mech_id} libgssapi_unix.so" >> "%{_mech_file}"
159162
fi
160163
fi
161-
chown %{name} /var/lib/likewise/rpc
162164

163165
if [ "$1" = 1 ]; then
164166
openssl req \
@@ -177,6 +179,7 @@ fi
177179
chmod 0400 /etc/pmd/privsep*.key
178180
chown %{name} /etc/pmd/privsep_pub.key
179181
fi
182+
%tmpfiles_create %_tmpfilesdir/%{name}.conf
180183

181184
# Pre-uninstall
182185
%preun
@@ -216,7 +219,6 @@ fi
216219
# First argument is 1 => Upgrade
217220
if [ $1 -eq 0 ] ; then
218221
if getent passwd %{name} >/dev/null; then
219-
chown root /var/lib/likewise/rpc
220222
/sbin/userdel %{name}
221223
fi
222224
if getent group %{name} >/dev/null; then
@@ -282,6 +284,7 @@ rm -rf %{buildroot}/*
282284
/etc/pmd/restapispec.json
283285
/etc/pmd/restconfig.txt
284286
%attr(0766, %{name}, %{name}) %dir /var/log/%{name}
287+
%_tmpfilesdir/%{name}.conf
285288

286289
%files libs
287290
%{_libdir}/libpmdclient.so*
@@ -302,6 +305,8 @@ rm -rf %{buildroot}/*
302305
%{_python3_sitearch}/%{name}_python-*.egg-info
303306

304307
%changelog
308+
* Thu Sep 28 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.0.5-1
309+
- Update to version 0.0.5
305310
* Sat Sep 23 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.0.4-1
306311
- Add privilege separation
307312
* Tue Aug 01 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.0.3-1

0 commit comments

Comments
 (0)