Browse code

Add nfs-server.service to rpm. (Bug 1638082)

Change-Id: I62bc05a9d054be2993ee667f06632e050ec84bff
Reviewed-on: http://photon-jenkins.eng.vmware.com/773
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George

xiaolin-vmware authored on 2016/04/29 10:28:01
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	NFS client utils
2 2
 Name:		nfs-utils
3 3
 Version:	1.3.3
4
-Release:	1%{?dist}
4
+Release:	2%{?dist}
5 5
 License:	GPLv2+
6 6
 URL:		http://sourceforge.net/projects/nfs
7 7
 Group:		Applications/Nfs-utils-client
... ...
@@ -41,11 +41,18 @@ install -v -m644 utils/mount/nfsmount.conf /etc/nfsmount.conf
41 41
 
42 42
 mkdir -p %{buildroot}/lib/systemd/system/
43 43
 mkdir -p %{buildroot}/etc/default
44
+mkdir -p %{buildroot}/etc/export.d
45
+mkdir -p %{buildroot}/var/lib/nfs/v4recovery
46
+touch %{buildroot}/etc/exports
47
+
44 48
 install -m644 %{SOURCE1} %{buildroot}/lib/systemd/system/
45 49
 install -m644 %{SOURCE2} %{buildroot}/lib/systemd/system/
46 50
 install -m644 %{SOURCE3} %{buildroot}/lib/systemd/system/
47 51
 install -m644 %{SOURCE4} %{buildroot}/lib/systemd/system/
48 52
 install -m644 %{SOURCE5} %{buildroot}/etc/default/nfs-utils
53
+install -m644 systemd/nfs-server.service %{buildroot}/lib/systemd/system/
54
+install -m644 systemd/proc-fs-nfsd.mount %{buildroot}/lib/systemd/system/
55
+install -m644 systemd/nfs-mountd.service %{buildroot}/lib/systemd/system/
49 56
 
50 57
 %files
51 58
 %defattr(-,root,root)
... ...
@@ -55,9 +62,12 @@ install -m644 %{SOURCE5} %{buildroot}/etc/default/nfs-utils
55 55
 %{_sbindir}/*
56 56
 %{_sharedstatedir}/*
57 57
 /etc/default/nfs-utils
58
+/etc/exports
58 59
 /lib/systemd/system/*
59 60
 
60 61
 %changelog
62
+*   Thu Apr 28 2016 Xiaolin Li <xiaolinl@vmware.com> 1.3.3-2
63
+-   Add nfs-server.service to rpm.
61 64
 * 	Thu Jan 21 2016 Xiaolin Li <xiaolinl@vmware.com> 1.3.3-1
62 65
 - 	Updated to version 1.3.3
63 66
 *	Tue Dec 8 2015 Divya Thaluru <dthaluru@vmware.com> 1.3.2-2