8
8
9
9
Summary: Photon Management Daemon
10
10
Name: pmd
11
- Version: 0.0.4
11
+ Version: 0.0.5
12
12
Release: 1%{?dist }
13
13
Vendor: VMware, Inc.
14
14
Distribution: Photon
@@ -37,7 +37,7 @@ BuildRequires: netmgmt-devel
37
37
BuildRequires: tdnf-devel >= 1.2.0
38
38
BuildRequires: lightwave-devel
39
39
Source0: %{name }-%{version }.tar.gz
40
- %define sha1 pmd= e623169975219751d944c9bd925134949548e2d4
40
+ %define sha1 pmd= b49e8ab237da29010ebcd2728a3b767a9e0a633e
41
41
42
42
%description
43
43
Photon Management Daemon
@@ -51,6 +51,7 @@ photon management daemon libs used by server and clients
51
51
52
52
%package cli
53
53
Summary: photon management daemon cmd line cli
54
+ Requires: %{name }-libs = %{version }-%{release }
54
55
Requires: likewise-open >= 6.2.0
55
56
Requires: lightwave-client-libs
56
57
@@ -88,7 +89,7 @@ Python3 bindings for photon management daemon
88
89
%setup -q
89
90
90
91
%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
92
93
sed -i ' s,-lcrypto,-lcrypto -lgssapi_krb5 @top_builddir@/client/libpmdclient.la,' server/Makefile.am
93
94
autoreconf -mif
94
95
./configure \
@@ -124,6 +125,8 @@ install -D -m 444 pmdprivsepd.service %{buildroot}%{_unitdir}
124
125
install -D -m 444 conf/restapispec.json %{buildroot }/etc/pmd/restapispec.json
125
126
install -D -m 444 conf/api_sddl.conf %{buildroot }/etc/pmd/api_sddl.conf
126
127
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
127
130
128
131
# Pre-install
129
132
%pre
158
161
echo "unix %{_mech_id } libgssapi_unix.so" >> "%{_mech_file }"
159
162
fi
160
163
fi
161
- chown %{name } /var/lib/likewise/rpc
162
164
163
165
if [ "$1" = 1 ]; then
164
166
openssl req \
177
179
chmod 0400 /etc/pmd/privsep*.key
178
180
chown %{name } /etc/pmd/privsep_pub.key
179
181
fi
182
+ %tmpfiles_create %_tmpfilesdir /%{name }.conf
180
183
181
184
# Pre-uninstall
182
185
%preun
216
219
# First argument is 1 => Upgrade
217
220
if [ $1 -eq 0 ] ; then
218
221
if getent passwd %{name } > /dev/null; then
219
- chown root /var/lib/likewise/rpc
220
222
/sbin/userdel %{name }
221
223
fi
222
224
if getent group %{name } > /dev/null; then
@@ -282,6 +284,7 @@ rm -rf %{buildroot}/*
282
284
/etc/pmd/restapispec.json
283
285
/etc/pmd/restconfig.txt
284
286
%attr(0766, %{name}, %{name}) %dir /var/log/%{name }
287
+ %_tmpfilesdir /%{name }.conf
285
288
286
289
%files libs
287
290
%{_libdir }/libpmdclient.so*
@@ -302,6 +305,8 @@ rm -rf %{buildroot}/*
302
305
%{_python3_sitearch }/%{name }_python-* .egg-info
303
306
304
307
%changelog
308
+ * Thu Sep 28 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.0.5-1
309
+ - Update to version 0.0.5
305
310
* Sat Sep 23 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.0.4-1
306
311
- Add privilege separation
307
312
* Tue Aug 01 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.0.3-1
0 commit comments