Browse code

Add kexec-tools

Change-Id: I1d154d9a0e50266542bc15ac83109d99d966c757
Reviewed-on: http://photon-jenkins.eng.vmware.com/585
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>

suezzelur authored on 2016/02/27 19:54:15
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,13 @@
0
+diff -ru kexec-tools-2.0.11/kexec_test/Makefile kexec-tools-2.0.11-1/kexec_test/Makefile
1
+--- kexec-tools-2.0.11/kexec_test/Makefile	2010-07-29 02:22:16.000000000 -0700
2
+@@ -11,9 +11,6 @@
3
+ ifeq ($(ARCH),i386)
4
+ BUILD_KEXEC_TEST = yes
5
+ endif
6
+-ifeq ($(ARCH),x86_64)
7
+-BUILD_KEXEC_TEST = yes
8
+-endif
9
+ 
10
+ ifeq ($(BUILD_KEXEC_TEST),yes)
11
+ 
0 12
new file mode 100644
... ...
@@ -0,0 +1,41 @@
0
+Name:           kexec-tools
1
+Summary:        The kexec kdump tools
2
+Version:        2.0.11
3
+Release:        1%{?dist}
4
+License:        GPLv2
5
+Group:          Applications/System
6
+Url:            https://www.kernel.org/doc/Documentation/kdump/kdump.txt
7
+Source0:        https://www.kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
8
+%define sha1 kexec-tools=6160be260ab1ac28d32cdbb751302600cf664691
9
+Patch0:		kexec-tools-disable-test.patch
10
+Vendor:		VMware, Inc.
11
+Distribution:	Photon
12
+
13
+BuildRequires:  zlib-devel
14
+BuildRequires:  zlib
15
+Requires:	zlib
16
+
17
+%description
18
+kexec-tools allows booting of a linux kernel from the context of a running kernel using kernel's kexec feature
19
+
20
+%prep
21
+%setup -q
22
+%patch0 -p1
23
+
24
+%build
25
+%configure
26
+make
27
+
28
+%install
29
+make install DESTDIR=%{buildroot}
30
+
31
+%files
32
+%{_sbindir}/*
33
+%{_mandir}/man8/*
34
+%doc News
35
+%doc COPYING
36
+%doc TODO
37
+
38
+%changelog
39
+* 	Fri Feb 26 2016 Anish Swaminathan <anishs@vmware.com>  2.0.11-1
40
+- 	Initial version
... ...
@@ -93,27 +93,28 @@
93 93
         "dstat",
94 94
         "libconfig",
95 95
         "iptraf",
96
-		"linux-tools",
96
+	"linux-tools",
97 97
         "nicstat",
98 98
         "lldpad",
99
-	    "mingetty",
99
+        "mingetty",
100 100
         "msr-tools",
101
-		"zip",
101
+	"zip",
102 102
         "ntpstat",
103 103
         "linux-oprofile",
104
-		"netcat",
104
+	"netcat",
105 105
         "cgroup-utils",
106 106
         "sysstat",
107
-		"blktrace",
108
-		"ethtool",
109
-		"ltrace",
110
-		"net-snmp",
111
-		"pcstat",
112
-    "libseccomp",
113
-		"sysdig",
114
-		"iotop",
107
+	"blktrace",
108
+	"ethtool",
109
+	"ltrace",
110
+	"net-snmp",
111
+	"pcstat",
112
+        "libseccomp",
113
+	"sysdig",
114
+	"iotop",
115 115
         "rsync",
116 116
         "paramiko",
117
-        "ecdsa"
117
+        "ecdsa",
118
+        "kexec-tools"
118 119
             ]
119 120
 }