Thomas Renninger
2b18cffcc3
- Update to latest git HEAD revision of 1.8.18 version commit 6f336d04f14b420822902dca7ef595cd49847d21 Date: Mon Sep 24 15:41:00 2018 +0200 - Change git repo and URL in spec from sourceforge to github - Add download of iana pen list via _service from www.iana.org which is used to create a C include file at build time (lib/ipmi_pen_list.inc.c) Downloaded file added: A enterprise-numbers - Add possiblity to create the include file from an already downloaded, local file A create_pen_list_from_local_file.patch OBS-URL: https://build.opensuse.org/request/show/639393 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=49
25 lines
873 B
Diff
25 lines
873 B
Diff
Author: Thomas Renninger <trenn@suse.de>
|
|
|
|
Create pen list include file from already downloaded iana file
|
|
|
|
This is needed for build services where you typically cannot download.
|
|
|
|
|
|
Index: ipmitool-1.8.18/lib/create_pen_list
|
|
===================================================================
|
|
--- ipmitool-1.8.18.orig/lib/create_pen_list 2018-09-25 13:32:46.000000000 +0200
|
|
+++ ipmitool-1.8.18/lib/create_pen_list 2018-09-26 09:09:10.543717017 +0200
|
|
@@ -71,5 +71,10 @@ parse_pen_list() {
|
|
}'
|
|
}
|
|
|
|
-echo "Generating IANA PEN list..."
|
|
-curl -# "$PENLIST_URL" | parse_pen_list > "$OUTFILE"
|
|
+if [ -r enterprise-numbers ];then
|
|
+ echo "Generating IANA PEN list from local file..."
|
|
+ cat enterprise-numbers | parse_pen_list > "$OUTFILE"
|
|
+else
|
|
+ echo "Generating IANA PEN list from iana downloaded file..."
|
|
+ curl -# "$PENLIST_URL" | parse_pen_list > "$OUTFILE"
|
|
+fi
|