ipmi/hpi/radius: add new recipes and related packages
v2 cover ipmi/hpi/radius: add new recipes and related packages
From: Jackie Huang <[email protected]>
v2 comments:
For PATCH 1/8: use BPN and BP instead and remove the definition for S.
---
The following changes since commit 444e1fb198076f34a0fa66e83f3eec76efba2e6c:
php: remove PNBLACKLIST (2017-04-18 14:21:53 +0200)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib.git jhuang0/r_upstream-perl-ipmi-hpi_170426-1
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/r_upstream-perl-ipmi-hpi_170426-1
Jackie Huang (8):
openhpi: add new recipe
freeradius: add new recipe
libnet-ldap-perl: add new recipe
libdata-hexdump-perl: add new recipe
libnet-telnet-perl: add new recipe
libauthen-radius-perl: add new recipe
openipmi: add new recipe
ipmitool: add new recipe
.../freeradius/files/freeradius | 110 +++++ .../freeradius-avoid-searching-host-dirs.patch | 194 ++++++++ ...radius-configure.ac-add-option-for-libcap.patch | 70 +++ ...dius-configure.ac-allow-cross-compilation.patch | 31 ++ .../files/freeradius-enble-user-in-conf.patch | 28 ++ ...eeradius-fix-error-for-expansion-of-macro.patch | 61 +++ ...ius-fix-issues-related-to-m4-include-path.patch | 236 ++++++++++ .../freeradius-fix-quoting-for-BUILT_WITH.patch | 55 +++ .../files/freeradius-libtool-detection.patch | 89 ++++ .../freeradius-libtool-do-not-use-jlibtool.patch | 160 +++++++ .../freeradius-rlm_python-add-PY_INC_DIR.patch | 33 ++ .../freeradius/files/radiusd-volatiles.conf | 2 + .../freeradius/files/radiusd.service | 16 + .../freeradius/files/volatiles.58_radiusd | 3 + .../freeradius/freeradius_3.0.12.bb | 223 +++++++++ .../files/openhpi-add-libnetsnmp-when-link.patch | 25 + .../files/openhpi-fix-alignment-issue.patch | 23 + .../openhpi/files/openhpi-fix-host-gcc.patch | 24 + .../files/openhpi-fix-testfail-errors.patch | 31 ++ .../openhpi/files/openhpi-glib-cross-compile.patch | 33 ++ .../files/openhpi-hpi-shell-thread-fix.patch | 29 ++ .../openhpi/files/openhpi-invalide-session.patch | 21 + .../files/openhpi-libxml2-cross-compile.patch | 21 + .../openhpi/files/openhpi-linkfix.patch | 33 ++ .../files/openhpi-netsnmp-cross-compile.patch | 48 ++ .../files/openhpi-sysfs-cross-compile.patch | 23 + ...i-use-serial-tests-config-needed-by-ptest.patch | 31 ++ .../recipes-daemons/openhpi/files/openhpi.init | 230 +++++++++ .../recipes-daemons/openhpi/files/openhpid.service | 11 + .../recipes-daemons/openhpi/files/run-ptest | 5 + .../recipes-daemons/openhpi/openhpi_3.6.1.bb | 109 +++++ .../recipes-support/ipmitool/ipmitool_1.8.18.bb | 36 ++ .../files/do-not-install-pyc-and-pyo.patch | 25 + .../fix-symlink-install-error-in-cmdlang.patch | 22 + .../files/ipmi-init-fix-the-arguments.patch | 41 ++ .../recipes-support/openipmi/files/ipmi.service | 12 + .../openipmi/files/makefile-add-ldflags.patch | 19 + .../openipmi/files/openipmi-don-t-rm-.libs.patch | 32 ++ .../recipes-support/openipmi/files/openipmi-helper | 512 +++++++++++++++++++++ .../files/openipmi-no-openipmigui-man.patch | 26 ++ ...openipmi-remove-host-path-from-la_LDFLAGS.patch | 85 ++++ .../recipes-support/openipmi/openipmi_2.0.22.bb | 111 +++++ .../libauthen/libauthen-radius-perl/run-ptest | 21 + .../test.pl-adjust-for-ptest.patch | 90 ++++ .../libauthen/libauthen-radius-perl_0.22.bb | 39 ++ meta-perl/recipes-perl/libdata/files/run-ptest | 16 + .../libdata/libdata-hexdump-perl_0.02.bb | 33 ++ .../recipes-perl/libnet/libnet-ldap-perl_0.65.bb | 29 ++ .../recipes-perl/libnet/libnet-telnet-perl_3.04.bb | 25 + 49 files changed, 3182 insertions(+) create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-enble-user-in-conf.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-error-for-expansion-of-macro.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-issues-related-to-m4-include-path.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-quoting-for-BUILT_WITH.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-do-not-use-jlibtool.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-rlm_python-add-PY_INC_DIR.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/radiusd-volatiles.conf create mode 100644 meta-networking/recipes-connectivity/freeradius/files/radiusd.service create mode 100644 meta-networking/recipes-connectivity/freeradius/files/volatiles.58_radiusd create mode 100644 meta-networking/recipes-connectivity/freeradius/freeradius_3.0.12.bb create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-add-libnetsnmp-when-link.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-host-gcc.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-glib-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-hpi-shell-thread-fix.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-invalide-session.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-libxml2-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-linkfix.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-netsnmp-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-use-serial-tests-config-needed-by-ptest.patch create mode 100755 meta-networking/recipes-daemons/openhpi/files/openhpi.init create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpid.service create mode 100755 meta-networking/recipes-daemons/openhpi/files/run-ptest create mode 100644 meta-networking/recipes-daemons/openhpi/openhpi_3.6.1.bb create mode 100644 meta-oe/recipes-support/ipmitool/ipmitool_1.8.18.bb create mode 100644 meta-oe/recipes-support/openipmi/files/do-not-install-pyc-and-pyo.patch create mode 100644 meta-oe/recipes-support/openipmi/files/fix-symlink-install-error-in-cmdlang.patch create mode 100644 meta-oe/recipes-support/openipmi/files/ipmi-init-fix-the-arguments.patch create mode 100644 meta-oe/recipes-support/openipmi/files/ipmi.service create mode 100644 meta-oe/recipes-support/openipmi/files/makefile-add-ldflags.patch create mode 100644 meta-oe/recipes-support/openipmi/files/openipmi-don-t-rm-.libs.patch create mode 100755 meta-oe/recipes-support/openipmi/files/openipmi-helper create mode 100644 meta-oe/recipes-support/openipmi/files/openipmi-no-openipmigui-man.patch create mode 100644 meta-oe/recipes-support/openipmi/files/openipmi-remove-host-path-from-la_LDFLAGS.patch create mode 100644 meta-oe/recipes-support/openipmi/openipmi_2.0.22.bb create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-radius-perl/run-ptest create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-radius-perl/test.pl-adjust-for-ptest.patch create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb create mode 100644 meta-perl/recipes-perl/libdata/files/run-ptest create mode 100644 meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb create mode 100644 meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.65.bb create mode 100644 meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.04.bb
Signature · 1 line
2.11.0
PATCH v2 1/8 openhpi: add new recipe
From: Jackie Huang <[email protected]>
OpenHPI is an open source project created with
the intent of providing an implementation of
the SA Forum's Hardware Platform Interface (HPI).
--- .../files/openhpi-add-libnetsnmp-when-link.patch | 25 +++ .../files/openhpi-fix-alignment-issue.patch | 23 +++ .../openhpi/files/openhpi-fix-host-gcc.patch | 24 +++ .../files/openhpi-fix-testfail-errors.patch | 31 +++ .../openhpi/files/openhpi-glib-cross-compile.patch | 33 +++ .../files/openhpi-hpi-shell-thread-fix.patch | 29 +++ .../openhpi/files/openhpi-invalide-session.patch | 21 ++ .../files/openhpi-libxml2-cross-compile.patch | 21 ++ .../openhpi/files/openhpi-linkfix.patch | 33 +++ .../files/openhpi-netsnmp-cross-compile.patch | 48 +++++ .../files/openhpi-sysfs-cross-compile.patch | 23 +++ ...i-use-serial-tests-config-needed-by-ptest.patch | 31 +++ .../recipes-daemons/openhpi/files/openhpi.init | 230 +++++++++++++++++++++ .../recipes-daemons/openhpi/files/openhpid.service | 11 + .../recipes-daemons/openhpi/files/run-ptest | 5 + .../recipes-daemons/openhpi/openhpi_3.6.1.bb | 109 ++++++++++ 16 files changed, 697 insertions(+) create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-add-libnetsnmp-when-link.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-host-gcc.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-glib-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-hpi-shell-thread-fix.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-invalide-session.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-libxml2-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-linkfix.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-netsnmp-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-use-serial-tests-config-needed-by-ptest.patch create mode 100755 meta-networking/recipes-daemons/openhpi/files/openhpi.init create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpid.service create mode 100755 meta-networking/recipes-daemons/openhpi/files/run-ptest create mode 100644 meta-networking/recipes-daemons/openhpi/openhpi_3.6.1.bb
meta-networking/recipes-daemons/openhpi/files/openhpi-add-libnetsnmp-when-link.patch new file +25 -0
@@ -0,0 +1,25 @@ +[PATCH] add libnetsnmp when link + +Upstream-Status: Pending + +Signed-off-by: Roy Li <[email protected]> +--- + plugins/snmp_bc/t/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/snmp_bc/t/Makefile.am b/plugins/snmp_bc/t/Makefile.am +index 57e77ac..9894620 100644 +--- a/plugins/snmp_bc/t/Makefile.am ++++ b/plugins/snmp_bc/t/Makefile.am +@@ -74,7 +74,7 @@ nodist_libsnmp_bc_la_SOURCES = $(GENERATED_EVENT_CODE) $(REMOTE_SIM_SOURCES) + # libopenhpi_la_LIBADD = $(top_builddir)/utils/libopenhpiutils.la + # libopenhpi_la_LDFLAGS = -L$(top_builddir)/utils -version-info @HPI_LIB_VERSION@ -export-symbols $(top_srcdir)/src/hpi.sym + +-libsnmp_bc_la_LIBADD = -luuid @SNMPLIBS@ $(top_builddir)/utils/libopenhpiutils.la ++libsnmp_bc_la_LIBADD = -luuid @SNMPLIBS@ $(top_builddir)/utils/libopenhpiutils.la -lnetsnmp + libsnmp_bc_la_LDFLAGS = -L$(top_builddir)/utils -module -version-info @HPI_LIB_VERSION@ + # libsnmp_bc_la_LDFLAGS = -version 0:0:0 + +-- +1.7.10.4 +
meta-networking/recipes-daemons/openhpi/files/openhpi-fix-alignment-issue.patch new file +23 -0
@@ -0,0 +1,23 @@ +Fix alignment issue in ipmi_inventory.c + +Upstream-Status: Pending + +Signed-of-by: Aws Ismail <[email protected]> + +diff --git a/plugins/ipmi/ipmi_inventory.c b/plugins/ipmi/ipmi_inventory.c +index 5382186..01655c6 100644 +--- a/plugins/ipmi/ipmi_inventory.c ++++ b/plugins/ipmi/ipmi_inventory.c +@@ -2546,8 +2546,11 @@ static SaErrorT modify_inventory(SaHpiIdrFieldT *field, + if (tb->DataLength == 0) { + rv = ipmi_fru_set_board_info_mfg_time(fru, 0); + } else { ++ time_t the_time; ++ /* tb->Data is not aligned -- copy to temp */ ++ memcpy(&the_time, tb->Data, sizeof(the_time)); + rv = ipmi_fru_set_board_info_mfg_time(fru, +- *(time_t *)tb->Data); ++ the_time); + } + break; + case SAHPI_IDR_FIELDTYPE_MANUFACTURER:
meta-networking/recipes-daemons/openhpi/files/openhpi-fix-host-gcc.patch new file +24 -0
@@ -0,0 +1,24 @@ +fix host gcc warnings + +Remove gcc warnings when gcc is v3.2 + +Upstream-Status: Pending + +Signed-of-by: Aws Ismail <[email protected]> + +diff --git a/configure.ac b/configure.ac +index f5a5b74..4a20154 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -605,11 +605,6 @@ AC_ARG_ENABLE([werror], + fi], + []) + +-if test -n "`gcc --version | grep ' 3.2'`" ; then +- CC_WARNINGS=`echo $CC_WARNINGS | sed -e 's/-Wno-strict-aliasing//g'` +- CXX_WARNINGS=`echo $CC_WARNINGS | sed -e 's/-Wno-strict-aliasing//g'` +-fi +- + case $host_os in + solaris*) + CC_WARNINGS=`echo $CC_WARNINGS | sed -e 's/-Wcast-qual//g'`
meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch new file +31 -0
@@ -0,0 +1,31 @@ +Fix for saftest failures. + +Upstream-Status: Pending + +Signed-off-by: yanjun.zhu <[email protected]> + +diff -urpN a/openhpid/safhpi.c b/openhpid/safhpi.c +--- a/openhpid/safhpi.c ++++ b/openhpid/safhpi.c +@@ -1976,7 +1976,7 @@ SaErrorT SAHPI_API saHpiSensorThresholds + oh_release_domain(d); /* Unlock domain */ + + OH_CALL_ABI(h, set_sensor_thresholds, SA_ERR_HPI_INVALID_CMD, rv, +- ResourceId, SensorNum, SensorThresholds); ++ ResourceId, SensorNum, &tmp); + oh_release_handler(h); + + return rv; +diff -urpN a/utils/sahpi_struct_utils.c b/utils/sahpi_struct_utils.c +--- a/utils/sahpi_struct_utils.c ++++ b/utils/sahpi_struct_utils.c +@@ -3855,6 +3855,9 @@ SaHpiBoolT oh_valid_textbuffer(SaHpiText + /* found a unpaired surrogate */ + return SAHPI_FALSE; + } ++ } else { ++ /*the first 2 bytes wrong*/ ++ return SAHPI_FALSE; + } + } + break;
meta-networking/recipes-daemons/openhpi/files/openhpi-glib-cross-compile.patch new file +33 -0
@@ -0,0 +1,33 @@ +Fix glib cross compile + +Uses proper PKG_CONFIG_PATH when cross-compiling + +Upstream-Status: Pending + +Signed-of-by: Aws Ismail <[email protected]> + +diff --git a/configure.ac b/configure.ac +index b5f5aad..f5a5b74 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -110,13 +110,13 @@ else + *** GLIB is always available from ftp://ftp.gtk.org/.]) + fi + +-exact_version=`pkg-config --modversion $GLIB`; +-GLIB_CFLAGS=`pkg-config --cflags $GLIB $GTHREAD` +-GLIB_LIBS=`pkg-config --libs $GLIB $GTHREAD` +-GLIB_ONLY_CFLAGS=`pkg-config --cflags $GLIB` +-GLIB_ONLY_LIBS=`pkg-config --libs $GLIB` +-GMODULE_ONLY_CFLAGS=`pkg-config --cflags $GMODULE` +-GMODULE_ONLY_LIBS=`pkg-config --libs $GMODULE` ++exact_version=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --modversion $GLIB`; ++GLIB_CFLAGS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags $GLIB $GTHREAD` ++GLIB_LIBS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs $GLIB $GTHREAD` ++GLIB_ONLY_CFLAGS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags $GLIB` ++GLIB_ONLY_LIBS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs $GLIB` ++GMODULE_ONLY_CFLAGS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags $GMODULE` ++GMODULE_ONLY_LIBS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs $GMODULE` + + # On some versions of Solaris the pkg-config file for gthread-2.0 contains a + # compiler option, '-mt', that is incompatible with gcc
meta-networking/recipes-daemons/openhpi/files/openhpi-hpi-shell-thread-fix.patch new file +29 -0
@@ -0,0 +1,29 @@ +commit e9f9a73c9dba8dd59f3d6c3acd9988ec8361d55a +Author: Aws Ismail <[email protected]> +Date: Mon Dec 17 16:23:45 2012 -0500 + + Correct dangling g_thread_exit in session.c + + hpi_shell's session.c has its progress_bar + thread created using pthread_create but + exited using g_thread_exit. Use pthread_exit + instead to avoid unpredictable GLIB thread + errors. + + Upstream-Status: Pending + + Signed-off-by: Aws Ismail <[email protected]> + +diff --git a/hpi_shell/session.c b/hpi_shell/session.c +index 85c31bf..187da4c 100644 +--- a/hpi_shell/session.c ++++ b/hpi_shell/session.c +@@ -66,7 +66,7 @@ static void* progress_bar(void *unused) + if (i < (PROGRESS_BUF_SIZE - mes_len - 1)) i++; + t++; + }; +- g_thread_exit(0); ++ pthread_exit(0); + return (void *)1; + } +
meta-networking/recipes-daemons/openhpi/files/openhpi-invalide-session.patch new file +21 -0
@@ -0,0 +1,21 @@ +Upstream-Status: Submitted + +Package saftest run a test case to pass invalid session id to function +saHpiResourceIdGet that expect return SA_ERR_HPI_INVALID_SESSION. But the check +for SA_ERR_HPI_INVALID_SESSION is missed somehow in function saHpiResourceIdGet. + +Add check for SA_ERR_HPI_INVALID_SESSION. + +Signed-off-by: Kai Kang <[email protected]> +----- +--- openhpi-3.4.0/baselib/safhpi.cpp.orig 2014-02-25 10:45:20.911734868 +0800 ++++ openhpi-3.4.0/baselib/safhpi.cpp 2014-02-25 10:46:05.366925389 +0800 +@@ -477,6 +477,8 @@ + &rpt_update_count ); + if ( rv == SA_ERR_HPI_NOT_PRESENT ) { + return SA_ERR_HPI_NOT_PRESENT; ++ } else if ( rv == SA_ERR_HPI_INVALID_SESSION) { ++ return SA_ERR_HPI_INVALID_SESSION; + } else if ( rv != SA_OK ) { + return SA_ERR_HPI_UNKNOWN; + }
meta-networking/recipes-daemons/openhpi/files/openhpi-libxml2-cross-compile.patch new file +21 -0
@@ -0,0 +1,21 @@ +Fix libxml2 for cross-compiling + +Use proper XML2_INCLUDE path when cross-compiling + +Upstream-Status: Pending + +Signed-of-by: Aws Ismail <[email protected]> + +diff --git a/configure.ac b/configure.ac +index 30a792c..b5f5aad 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -175,7 +175,7 @@ AC_CHECK_HEADERS([openssl/md2.h openssl/md5.h openssl/bio.h openssl/ssl.h openss + + dnl xml is used for XML-based communication in ilo2_ribcl and oa_soap + AC_CHECK_LIB([xml2],[xmlParseMemory],[XML2_LIB=-lxml2],[XML2_LIB=]) +-AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="-I/usr/include/libxml2"],[XML2_INCLUDE]) ++AC_CHECK_HEADERS([libxml2/libxml/xmlexports.h],[XML2_INCLUDE="$XML2_INCLUDE"],[XML2_INCLUDE]) + AC_SUBST(XML2_LIB) + AC_SUBST(XML2_INCLUDE) +
meta-networking/recipes-daemons/openhpi/files/openhpi-linkfix.patch new file +33 -0
@@ -0,0 +1,33 @@ +Fix ipmi plugin's test dir compilation + +The ipmi plugin's test dir is not included +in compilation since it does not compile +properly with SSL + +Signed-of-by: Aws Ismail <[email protected]> + +Upstream-Status: Pending + +Signed-off-by: Wenzong Fan <[email protected]> +--- + plugins/ipmi/Makefile.in | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/plugins/ipmi/Makefile.in b/plugins/ipmi/Makefile.in +index 7c6b0a4..6204dbe 100644 +--- a/plugins/ipmi/Makefile.in ++++ b/plugins/ipmi/Makefile.in +@@ -448,7 +448,9 @@ top_srcdir = @top_srcdir@ + MAINTAINERCLEANFILES = Makefile.in + AM_CPPFLAGS = -DG_LOG_DOMAIN=\"ipmi\" @OPENHPI_INCLUDES@ + EXTRA_DIST = ipmi.sym ekeyfru.h +-SUBDIRS = t ++#SUBDIRS = t ++#Tests don't compile wih SSL properly so comment them out ++SUBDIRS = + AM_CFLAGS = @OPENIPMI_CFLAGS@ + pkglib_LTLIBRARIES = libipmi.la + libipmi_la_SOURCES = ipmi.c \ +-- +1.9.1 +
meta-networking/recipes-daemons/openhpi/files/openhpi-netsnmp-cross-compile.patch new file +48 -0
48 lines not on this page · raw message
meta-networking/recipes-daemons/openhpi/files/openhpi-sysfs-cross-compile.patch new file +23 -0
@@ -0,0 +1,23 @@ +Fix sysfs when cross-compiling + +Use proper paths for sysfs plugins when cross-compiling + +Signed-of-by: Aws Ismail <[email protected]> + +Upstream-Status: Pending + +Signed-off-by: Wenzong Fan <[email protected]> + +diff --git a/plugins/sysfs/sysfs2hpi.c b/plugins/sysfs/sysfs2hpi.c +index a745214..3685598 100644 +--- a/plugins/sysfs/sysfs2hpi.c ++++ b/plugins/sysfs/sysfs2hpi.c +@@ -18,7 +18,7 @@ + + #include <stdlib.h> + #include <string.h> +-#include <libsysfs.h> ++#include <sysfs/libsysfs.h> + + #include <SaHpi.h> + #include <oh_utils.h>
meta-networking/recipes-daemons/openhpi/files/openhpi-use-serial-tests-config-needed-by-ptest.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 36fbaa27e7299f63c1324b0ad22b970e9365d6a7 Mon Sep 17 00:00:00 2001 +From: Jackie Huang <[email protected]> +Date: Wed, 24 Dec 2014 10:54:59 +0800 +Subject: [PATCH] openhpi: use serial-tests config needed by ptest + +ptest needs buildtest-TESTS and runtest-TESTS targets. +serial-tests is required to generate those targets. + +Upstream-Status: Inappropriate [default automake behavior incompatible with ptest] + +Signed-off-by: Jackie Huang <[email protected]> +--- + configure.ac | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 4b51971..16136b3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -7,7 +7,7 @@ dnl various hacks by Sean Dague <http://dague.net/sean> 4/23/03 + AC_PREREQ(2.57) + AC_INIT(openhpi, 3.5.0) + AC_CONFIG_SRCDIR(openhpi.spec.in) +-AM_INIT_AUTOMAKE([1.8]) ++AM_INIT_AUTOMAKE([1.8 serial-tests]) + + AM_CONFIG_HEADER(config.h) + AH_TOP([#ifndef __OPENHPI_CONFIG_H +-- +1.7.1 +
meta-networking/recipes-daemons/openhpi/files/openhpi.init new file +230 -0
230 lines not on this page · raw message
meta-networking/recipes-daemons/openhpi/files/openhpid.service new file +11 -0
@@ -0,0 +1,11 @@ +[Unit] +Description=Daemon providing access to the SAF Hardware Platform Interface +After=syslog.target + +[Service] +Type=forking +PIDFile=/var/run/openhpid.pid +ExecStart=@SBINDIR@/openhpid -c @SYSCONFDIR@/openhpi/openhpi.conf + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-daemons/openhpi/files/run-ptest new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh +for x in `find ./ -name Makefile`; +do + make -C `dirname ${x}` -k runtest-TESTS +done
meta-networking/recipes-daemons/openhpi/openhpi_3.6.1.bb new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH v2 2/8 freeradius: add new recipe
In reply to [email protected]From: Jackie Huang <[email protected]>
FreeRADIUS is an Internet authentication daemon,
which implements the RADIUS protocol, as defined
in RFC 2865 (and others).
--- .../freeradius/files/freeradius | 110 ++++++++++ .../freeradius-avoid-searching-host-dirs.patch | 194 +++++++++++++++++ ...radius-configure.ac-add-option-for-libcap.patch | 70 ++++++ ...dius-configure.ac-allow-cross-compilation.patch | 31 +++ .../files/freeradius-enble-user-in-conf.patch | 28 +++ ...eeradius-fix-error-for-expansion-of-macro.patch | 61 ++++++ ...ius-fix-issues-related-to-m4-include-path.patch | 236 +++++++++++++++++++++ .../freeradius-fix-quoting-for-BUILT_WITH.patch | 55 +++++ .../files/freeradius-libtool-detection.patch | 89 ++++++++ .../freeradius-libtool-do-not-use-jlibtool.patch | 160 ++++++++++++++ .../freeradius-rlm_python-add-PY_INC_DIR.patch | 33 +++ .../freeradius/files/radiusd-volatiles.conf | 2 + .../freeradius/files/radiusd.service | 16 ++ .../freeradius/files/volatiles.58_radiusd | 3 + .../freeradius/freeradius_3.0.12.bb | 223 +++++++++++++++++++ 15 files changed, 1311 insertions(+) create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-enble-user-in-conf.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-error-for-expansion-of-macro.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-issues-related-to-m4-include-path.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-quoting-for-BUILT_WITH.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-do-not-use-jlibtool.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/freeradius-rlm_python-add-PY_INC_DIR.patch create mode 100644 meta-networking/recipes-connectivity/freeradius/files/radiusd-volatiles.conf create mode 100644 meta-networking/recipes-connectivity/freeradius/files/radiusd.service create mode 100644 meta-networking/recipes-connectivity/freeradius/files/volatiles.58_radiusd create mode 100644 meta-networking/recipes-connectivity/freeradius/freeradius_3.0.12.bb
meta-networking/recipes-connectivity/freeradius/files/freeradius new file +110 -0
@@ -0,0 +1,110 @@ +#!/bin/sh +# Start/stop the FreeRADIUS daemon. + +### BEGIN INIT INFO +# Provides: freeradius +# Required-Start: $remote_fs $network $syslog +# Should-Start: $time mysql slapd postgresql samba krb5-kdc +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Radius Daemon +# Description: Extensible, configurable radius daemon +### END INIT INFO + +set -e + +# Source function library. +. /etc/init.d/functions + +if [ -f /lib/lsb/init-functions ]; then + . /lib/lsb/init-functions +fi + +PROG="radiusd" +PROGRAM="/usr/sbin/radiusd" +PIDFILE="/var/run/radiusd/radiusd.pid" +DESCR="FreeRADIUS daemon" + +if [ -r /etc/default/$PROG ]; then + . /etc/default/$PROG +fi + +test -f $PROGRAM || exit 0 + +check_certs() { + if [ ! -f /etc/raddb/certs/server.pem ]; then + echo -n "Creating certificates for freeradius..." + if sudo -u radiusd /etc/raddb/certs/bootstrap 1> /dev/null 2> /dev/null; then + echo "done" + else + echo "failed!" + fi + fi + +} + +# /var/run may be a tmpfs +if [ ! -d /var/run/radiusd ]; then + mkdir -p /var/run/radiusd + chown radiusd:radiusd /var/run/radiusd +fi + +if [ ! -d /var/log/radius ]; then + mkdir -p /var/log/radius + touch /var/log/radius/radius.log + chown radiusd:radiusd /var/run/radius +fi + +if [ ! -f ${PIDFILE} ]; then + touch ${PIDFILE} + chown radiusd:radiusd ${PIDFILE} +fi + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +ret=0 + +case "$1" in + start) + check_certs + echo -n "Starting $DESCR" "$PROG" + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $PROGRAM -- $FREERADIUS_OPTIONS || ret=$? + [ "$ret" == 0 ] && echo " Success" || echo " Failed" + exit $ret + ;; + stop) + echo -n "Stopping $DESCR" "$PROG" + if [ -f "$PIDFILE" ] ; then + start-stop-daemon --stop --retry=TERM/30/KILL/5 --quiet --pidfile $PIDFILE || ret=$? + else + echo -n "$PIDFILE not found" + ret=1 + fi + [ "$ret" == 0 ] && echo " Success" || echo " Failed" + ;; + status) + status $PROGRAM; + exit $? + ;; + restart) + $0 stop + $0 start + ;; + reload|force-reload) + echo -n "Reloading $DESCR" "$PROG" + if [ -f "$PIDFILE" ] ; then + start-stop-daemon --stop --signal HUP --quiet --pidfile $PIDFILE || ret=$? + else + echo -n "$PIDFILE not found" + ret=1 + fi + [ "$ret" == 0 ] && echo " Success" || echo " Failed" + ;; + *) + echo "Usage: $0 start|stop|status|restart|force-reload|reload" + exit 1 + ;; +esac + +exit 0
meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch new file +194 -0
194 lines not on this page · raw message
meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-add-option-for-libcap.patch new file +70 -0
70 lines not on this page · raw message
meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch new file +31 -0
@@ -0,0 +1,31 @@ +Subject: [PATCH] configure.ac: allow cross-compilation + +The checking OpenSSL library and header version consistency will +always fail in cross compiling, skip the check and give a warning +instead for cross compiling. + +Upstream-Status: Inappropriate[embedded specific] + +Signed-off-by: Jackie Huang <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + src/modules/rlm_krb5/configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac +index eb43534..113a079 100644 +--- a/src/modules/rlm_krb5/configure.ac ++++ b/src/modules/rlm_krb5/configure.ac +@@ -137,7 +137,8 @@ if test x$with_[]modname != xno; then + FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe) + if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" == xyes; then + AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])], +- [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])]) ++ [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])], ++ [AC_MSG_WARN(cross compiling: not checking)]) + fi + else + krb5threadsafe="" +-- +2.10.2 +
meta-networking/recipes-connectivity/freeradius/files/freeradius-enble-user-in-conf.patch new file +28 -0
@@ -0,0 +1,28 @@ +Enable and change user and group of freeradius server to radiusd + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Roy.Li <[email protected]> +Signed-off-by: Jackie Huang <[email protected]> +--- + raddb/radiusd.conf.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in +index c62f4ff..0b4a84e 100644 +--- a/raddb/radiusd.conf.in ++++ b/raddb/radiusd.conf.in +@@ -436,8 +436,8 @@ security { + # member. This can allow for some finer-grained access + # controls. + # +-# user = radius +-# group = radius ++ user = radiusd ++ group = radiusd + + # Core dumps are a bad thing. This should only be set to + # 'yes' if you're debugging a problem with the server. +-- +1.9.1 +
meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-error-for-expansion-of-macro.patch new file +61 -0
61 lines not on this page · raw message
meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-issues-related-to-m4-include-path.patch new file +236 -0
236 lines not on this page · raw message
meta-networking/recipes-connectivity/freeradius/files/freeradius-fix-quoting-for-BUILT_WITH.patch new file +55 -0
55 lines not on this page · raw message
meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-detection.patch new file +89 -0
89 lines not on this page · raw message
meta-networking/recipes-connectivity/freeradius/files/freeradius-libtool-do-not-use-jlibtool.patch new file +160 -0
160 lines not on this page · raw message
meta-networking/recipes-connectivity/freeradius/files/freeradius-rlm_python-add-PY_INC_DIR.patch new file +33 -0
@@ -0,0 +1,33 @@ +From a0bf65e04d2bbd3271cab94bd5ac93f8e877bfc5 Mon Sep 17 00:00:00 2001 +From: Jackie Huang <[email protected]> +Date: Wed, 27 Jan 2016 05:07:19 -0500 +Subject: [PATCH] rlm_python: add PY_INC_DIR in search dir + +Upstream-Status: Pending + +configure option --with-rlm-python-include-dir is used to set +PY_INC_DIR which is never used and it fails to find Python.h, +so add it into search dir to fix it. + +Signed-off-by: Jackie Huang <[email protected]> +Signed-off-by: Yi Zhao <[email protected]> +--- + src/modules/rlm_python/configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/modules/rlm_python/configure.ac b/src/modules/rlm_python/configure.ac +index 831a33a..c3792d8 100644 +--- a/src/modules/rlm_python/configure.ac ++++ b/src/modules/rlm_python/configure.ac +@@ -93,7 +93,7 @@ if test x$with_[]modname != xno; then + + old_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS $PY_CFLAGS" +- smart_try_dir="$PY_PREFIX/include/python$PY_SYS_VERSION" ++ smart_try_dir="$PY_PREFIX/include/python$PY_SYS_VERSION $PY_INC_DIR" + FR_SMART_CHECK_INCLUDE(Python.h) + CFLAGS=$old_CFLAGS + +-- +2.10.2 +
meta-networking/recipes-connectivity/freeradius/files/radiusd-volatiles.conf new file +2 -0
@@ -0,0 +1,2 @@ +d /var/log/radius 0755 radiusd radiusd - +d /var/run/radiusd 0755 radiusd radiusd -
meta-networking/recipes-connectivity/freeradius/files/radiusd.service new file +16 -0
@@ -0,0 +1,16 @@ +[Unit] +Description=FreeRADIUS high performance RADIUS server. +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=@STATEDIR@/run/radiusd/radiusd.pid +ExecStartPre=-@BASE_BINDIR@/chown -R radiusd.radiusd @STATEDIR@/run/radiusd +ExecStartPre=-@BASE_BINDIR@/sh -c "if [ ! -f @SYSCONFDIR@/raddb/certs/server.pem ]; then sudo -u radiusd @SYSCONFDIR@/raddb/certs/bootstrap; fi" +ExecStartPre=@SBINDIR@/radiusd -C +ExecStart=@SBINDIR@/radiusd -d @SYSCONFDIR@/raddb +ExecReload=@SBINDIR@/radiusd -C +ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target
meta-networking/recipes-connectivity/freeradius/files/volatiles.58_radiusd new file +3 -0
@@ -0,0 +1,3 @@ +# <type> <owner> <group> <mode> <path> <linksource> +d radiusd radiusd 0755 /var/run/radiusd none +d radiusd radiusd 0755 /var/log/radius none
meta-networking/recipes-connectivity/freeradius/freeradius_3.0.12.bb new file +223 -0
223 lines not on this page · raw message
Signature · 1 line
2.11.0
Re: [meta-networking][PATCH 2/8] freeradius: add new recipe
Sorry to resurrect a v1 patch but I've lost the v2 and the list seems to have eaten my original reply to that one. Here's my comments from it (and the reason why the current patch has been marked rejected in
patchwork: https://patchwork.openembedded.org/patch/139452/)
Quoted 7 lines · [[oe] [meta-networking][PATCH 2/8 v2] freeradius: add new recipe] On 17.04.26…
From: Jackie Huang <[email protected]>
FreeRADIUS is an Internet authentication daemon,
which implements the RADIUS protocol, as defined
in RFC 2865 (and others).Signed-off-by Jackie Huang <[email protected]>
Quoted 16 lines
--- .../freeradius/files/freeradius | 110 ++++++++++ .../freeradius-avoid-searching-host-dirs.patch | 194 +++++++++++++++++ ...radius-configure.ac-add-option-for-libcap.patch | 70 ++++++ ...dius-configure.ac-allow-cross-compilation.patch | 31 +++ .../files/freeradius-enble-user-in-conf.patch | 28 +++ ...eeradius-fix-error-for-expansion-of-macro.patch | 61 ++++++ ...ius-fix-issues-related-to-m4-include-path.patch | 236 +++++++++++++++++++++ .../freeradius-fix-quoting-for-BUILT_WITH.patch | 55 +++++ .../files/freeradius-libtool-detection.patch | 89 ++++++++ .../freeradius-libtool-do-not-use-jlibtool.patch | 160 ++++++++++++++ .../freeradius-rlm_python-add-PY_INC_DIR.patch | 33 +++ .../freeradius/files/radiusd-volatiles.conf | 2 + .../freeradius/files/radiusd.service | 16 ++ .../freeradius/files/volatiles.58_radiusd | 3 + .../freeradius/freeradius_3.0.12.bb | 223 +++++++++++++++++++
This is an old version of freeradius, as evinced by your SRC_URI:
Quoted 1 line
+SRC_URI = "ftp://ftp.freeradius.org/pub/freeradius/old/freeradius-server-${PV}.tar.bz2 \
Why not bring the current version (3.0.13) in since it's a new recipe and save a later update?
meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch line 6
Quoted 12 lines
meta-networking/recipes-connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patch new file +6
-0@@ -0,0 +1,194 @@ +From dc41591d5ceb18900ec85894f8f7b7bb44bb3bd9 Mon Sep 17 00:00:00 2001 +From: Jackie Huang <[email protected]> +Date: Mon, 4 Jan 2016 01:44:04 -0500 +Subject: [PATCH] avoid searching host dirs + +Upstream-Status: Inappropriate [cross-compile specific]
I don't know if that's specifically a reason to be inappropriate for upstream. :-)
Anyway, given that some of the patches were submitted upstream, as you noted elsewhere, it may be that the current version won't need them at all.
Signature · 2 lines
-Joe MacDonald. :wq
Re: [meta-networking][PATCH 2/8] freeradius: add new recipe
Quoted 42 lines
-----Original Message-----
From: Joe MacDonald [mailto:[email protected]]
Sent: Wednesday, May 10, 2017 00:37
To: Huang, Jie (Jackie)
Cc: [email protected]
Subject: Re: [oe] [meta-networking][PATCH 2/8] freeradius: add new recipeSorry to resurrect a v1 patch but I've lost the v2 and the list seems to have eaten my original reply to that one. Here's my comments from it (and the reason why the current patch has been marked rejected in
patchwork: https://patchwork.openembedded.org/patch/139452/)[[oe] [meta-networking][PATCH 2/8 v2] freeradius: add new recipe] On 17.04.26
Quoted 7 lines · (Wed 16:22) [email protected] wrote:
From: Jackie Huang <[email protected]>
FreeRADIUS is an Internet authentication daemon,
which implements the RADIUS protocol, as defined
in RFC 2865 (and others).Signed-off-by Jackie Huang <[email protected]>Quoted 8 lines
--- .../freeradius/files/freeradius | 110 ++++++++++ .../freeradius-avoid-searching-host-dirs.patch | 194 +++++++++++++++++ ...radius-configure.ac-add-option-for-libcap.patch | 70 ++++++ ...dius-configure.ac-allow-cross-compilation.patch | 31 +++ .../files/freeradius-enble-user-in-conf.patch | 28 +++ ...eeradius-fix-error-for-expansion-of-macro.patch | 61 ++++++ ...ius-fix-issues-related-to-m4-include-path.patch | 236+++++++++++++++++++++
Quoted 8 lines
.../freeradius-fix-quoting-for-BUILT_WITH.patch | 55 +++++ .../files/freeradius-libtool-detection.patch | 89 ++++++++ .../freeradius-libtool-do-not-use-jlibtool.patch | 160 ++++++++++++++ .../freeradius-rlm_python-add-PY_INC_DIR.patch | 33 +++ .../freeradius/files/radiusd-volatiles.conf | 2 + .../freeradius/files/radiusd.service | 16 ++ .../freeradius/files/volatiles.58_radiusd | 3 + .../freeradius/freeradius_3.0.12.bb | 223 +++++++++++++++++++
Quoted 7 lines
This is an old version of freeradius, as evinced by your
SRC_URI:Quoted 1 line
+SRC_URI = "ftp://ftp.freeradius.org/pub/freeradius/old/freeradius-server-
${PV}.tar.bz2 \
Why not bring the current version (3.0.13) in since it's a new recipe and save a later update?
Sorry I missed checking this one, I will update it to 3.0.13 and re-send.
Quoted 21 lines
Review
Quoted 2 lines
(quoted diff) +0
-0avoid-searching-host-dirs.patch b/meta-networking/recipes-
connectivity/freeradius/files/freeradius-avoid-searching-host-dirs.patchmeta-networking/recipes-connectivity/freeradius/files/freeradius-
Quoted 4 lines
new file mode 100644
index 000000000..8ab23d3efmeta-networking/recipes-connectivity/freeradius/files/freeradius- new file +0
-0avoid-searching-host-dirs.patch
meta-networking/recipes-connectivity/freeradius/files/freeradius- line 1
Quoted 2 lines
meta-networking/recipes-connectivity/freeradius/files/freeradius- new file +1
-0@@ -0,0 +1,194 @@ +From dc41591d5ceb18900ec85894f8f7b7bb44bb3bd9 Mon Sep 17 00:00:002001
meta-networking/recipes-connectivity/freeradius/files/freeradius- line 6
Quoted 5 lines
meta-networking/recipes-connectivity/freeradius/files/freeradius- new file +5
-0+From: Jackie Huang <[email protected]> +Date: Mon, 4 Jan 2016 01:44:04 -0500 +Subject: [PATCH] avoid searching host dirs + +Upstream-Status: Inappropriate [cross-compile specific]I don't know if that's specifically a reason to be inappropriate for upstream. :-)
Quoted 3 lines
Anyway, given that some of the patches were submitted upstream, as you noted elsewhere, it may be that the current version won't need them at all.
I will check with the current version.
Thanks,
Jackie
Quoted 4 lines
--
-Joe MacDonald.
:wq
PATCH v2 3/8 libnet-ldap-perl: add new recipe
In reply to [email protected]From: Jackie Huang <[email protected]>
Net::LDAP is a collection of modules that implements a LDAP services API for Perl programs.
--- .../recipes-perl/libnet/libnet-ldap-perl_0.65.bb | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.65.bb
meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.65.bb new file +29 -0
@@ -0,0 +1,29 @@ +SUMMARY = "LDAP Perl module" +DESCRIPTION = "Net::LDAP is a collection of modules that implements \ +a LDAP services API for Perl programs. The module may be used to \ +search directories or perform maintenance functions such as adding, \ +deleting or modifying entries." + +SECTION = "libs" + +LICENSE = "Artistic-1.0|GPLv1+" +LIC_FILES_CHKSUM = "file://README;beginline=3;endline=5;md5=4d6588c2fa0d38ae162f6314d201d89e" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MARSCHAP/perl-ldap-${PV}.tar.gz" + +SRC_URI[md5sum] = "d057c8db76913d95c0e460c7bdd98b27" +SRC_URI[sha256sum] = "5f57dd261dc16ebf942a272ddafe69526598df71151a51916edc37a4f2f23834" + +S = "${WORKDIR}/perl-ldap-${PV}" + +inherit cpan + +do_configure_prepend() { + perl -pi -e 's/auto_install_now.*//g' Makefile.PL +} + +RDEPENDS_${PN} = "perl \ + libconvert-asn1-perl \ + libio-socket-ssl-perl \ + libauthen-sasl-perl \ +"
Signature · 1 line
2.11.0
PATCH v2 4/8 libdata-hexdump-perl: add new recipe
In reply to [email protected]From: Jackie Huang <[email protected]>
Data::HexDump - Hexadecial Dumper module for perl.
It's required by libauthen-radius-perl.
--- meta-perl/recipes-perl/libdata/files/run-ptest | 16 +++++++++++ .../libdata/libdata-hexdump-perl_0.02.bb | 33 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 meta-perl/recipes-perl/libdata/files/run-ptest create mode 100644 meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb
meta-perl/recipes-perl/libdata/files/run-ptest new file +16 -0
@@ -0,0 +1,16 @@ +#!/bin/sh + +for case in `find t -type f -name '*.t'`; do + perl $case >$case.output 2>&1 + ret=$? + cat $case.output + if [ $ret -ne 0 ]; then + echo "FAIL: ${case%.t}" + elif grep -i 'SKIP' $case.output; then + echo "SKIP: ${case%.t}" + else + echo "PASS: ${case%.t}" + fi + + rm -f $case.output +done
meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb new file +33 -0
@@ -0,0 +1,33 @@ +SUMMARY = "Data::HexDump - Hexadecial Dumper" +DESCRIPTION = "Dump in hexadecimal the content of a scalar. The result \ +is returned in a string. Each line of the result consists of the offset \ +in the source in the leftmost column of each line, followed by one or \ +more columns of data from the source in hexadecimal. The rightmost column \ +of each line shows the printable characters \ +(all others are shown as single dots).\ +" + +HOMEPAGE = "http://search.cpan.org/~ftassin/Data-HexDump-0.02/lib/Data/HexDump.pm" +SECTION = "libs" + +LICENSE = "Artistic-1.0" +LIC_FILES_CHKSUM = "file://lib/Data/HexDump.pm;beginline=215;endline=217;md5=bf1cd9373f8d1f85fe091ee069a480e9" + +DEPENDS = "perl" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/F/FT/FTASSIN/Data-HexDump-${PV}.tar.gz \ + file://run-ptest \ +" +SRC_URI[md5sum] = "467b7183d1062ab4a502b50c34e7d67f" +SRC_URI[sha256sum] = "1a9d843e7f667c1c6f77c67af5d77e7462ff23b41937cb17454d03535cd9be70" + +S = "${WORKDIR}/Data-HexDump-${PV}" + +inherit cpan ptest + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/t + install -m 0755 ${B}/t/* ${D}${PTEST_PATH}/t +} + +BBCLASSEXTEND = "native"
Signature · 1 line
2.11.0
PATCH v2 5/8 libnet-telnet-perl: add new recipe
In reply to [email protected]From: Jackie Huang <[email protected]>
Net-Telnet Perl module, it allows you to make client connections to a TCP port and do network I/O, especially to a port using the TELNET protocol.
--- .../recipes-perl/libnet/libnet-telnet-perl_3.04.bb | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.04.bb
meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.04.bb new file +25 -0
@@ -0,0 +1,25 @@ +SUMMARY = "Net-Telnet Perl module" +DESCRIPTION = "Net::Telnet allows you to make client connections to a TCP port and do \ +network I/O, especially to a port using the TELNET protocol. Simple I/O \ +methods such as print, get, and getline are provided. More sophisticated \ +interactive features are provided because connecting to a TELNET port \ +ultimately means communicating with a program designed for human interaction. \ +These interactive features include the ability to specify a time-out and to \ +wait for patterns to appear in the input stream, such as the prompt from a \ +shell." + +HOMEPAGE = "http://search.cpan.org/dist/Net-Telnet/" +SECTION = "Development/Libraries" + +LICENSE = "Artistic-1.0|GPLv1+" +LIC_FILES_CHKSUM = "file://README;beginline=4;endline=7;md5=3fd238bfb6ee1810cb15d5d95e07b0f5" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/J/JR/JROGERS/Net-Telnet-${PV}.tar.gz" +SRC_URI[md5sum] = "d2514080116c1b0fa5f96295c84538e3" +SRC_URI[sha256sum] = "e64d567a4e16295ecba949368e7a6b8b5ae2a16b3ad682121d9b007dc5d2a37a" + +S = "${WORKDIR}/Net-Telnet-${PV}" + +inherit cpan + +RDEPENDS_${PN} = "perl"
Signature · 1 line
2.11.0
PATCH v2 6/8 libauthen-radius-perl: add new recipe
In reply to [email protected]From: Jackie Huang <[email protected]>
The Authen::Radius module provides a simple class that allows you to send/receive Radius requests/responses to/from a Radius server.
--- .../libauthen/libauthen-radius-perl/run-ptest | 21 +++++ .../test.pl-adjust-for-ptest.patch | 90 ++++++++++++++++++++++ .../libauthen/libauthen-radius-perl_0.22.bb | 39 ++++++++++ 3 files changed, 150 insertions(+) create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-radius-perl/run-ptest create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-radius-perl/test.pl-adjust-for-ptest.patch create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb
meta-perl/recipes-perl/libauthen/libauthen-radius-perl/run-ptest new file +21 -0
@@ -0,0 +1,21 @@ +#!/bin/sh +# + +# prepare testing config +CONF_USERS=`readlink -f /etc/raddb/users` +mv ${CONF_USERS} ${CONF_USERS}_orig +echo "testing Cleartext-Password := \"testpassword\"" > ${CONF_USERS} +cat ${CONF_USERS}_orig >> ${CONF_USERS} + +# restart radiusd server +systemctl restart radiusd || /etc/init.d/radiusd restart || { + echo "FAIL: Start radiusd service." + exit 1 +} + +# run teests +perl test.pl + +# restore the config and restart +mv ${CONF_USERS}_orig ${CONF_USERS} +systemctl restart radiusd || /etc/init.d/radiusd restart
meta-perl/recipes-perl/libauthen/libauthen-radius-perl/test.pl-adjust-for-ptest.patch new file +90 -0
90 lines not on this page · raw message
meta-perl/recipes-perl/libauthen/libauthen-radius-perl_0.22.bb new file +39 -0
@@ -0,0 +1,39 @@ +SUMMARY = "Authen::Radius - provide simple Radius client facilities" +DESCRIPTION = "The Authen::Radius module provides a simple class that \ + allows you to send/receive Radius requests/responses to/from a \ + Radius server. \ +" + +HOMEPAGE = "http://search.cpan.org/~manowar/RadiusPerl" +SECTION = "libs" + +LICENSE = "Artistic-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=78ab6ea0cba1f1ec1680ebb149e3bc11" + +DEPENDS = "perl" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MANOWAR/RadiusPerl-${PV}.tar.gz \ + file://test.pl-adjust-for-ptest.patch \ + file://run-ptest \ +" +SRC_URI[md5sum] = "d1fe2d6ecf7ea99299e4e3a8f945aad8" +SRC_URI[sha256sum] = "3b276506986ccaa4949d92b13ce053a0017ad11562a991cc753364923fe81ca7" + +S = "${WORKDIR}/Authen-Radius-${PV}" + +inherit cpan ptest + +do_install_ptest() { + install -m 0755 ${S}/test.pl ${D}${PTEST_PATH} +} + +RDEPENDS_${PN} += "\ + libdata-hexdump-perl \ + perl-module-digest-md5 \ + perl-module-data-dumper \ + perl-module-io-select \ + perl-module-io-socket \ +" +RDEPENDS_${PN}-ptest += "${PN} freeradius" + +BBCLASSEXTEND = "native"
Signature · 1 line
2.11.0
PATCH v2 7/8 openipmi: add new recipe
In reply to [email protected]From: Jackie Huang <[email protected]>
OpenIPMI is an effort to create a full-function IPMI system to allow full access to all IPMI information on a server and to abstract it to a level that will make it easy to use.
--- .../files/do-not-install-pyc-and-pyo.patch | 25 + .../fix-symlink-install-error-in-cmdlang.patch | 22 + .../files/ipmi-init-fix-the-arguments.patch | 41 ++ .../recipes-support/openipmi/files/ipmi.service | 12 + .../openipmi/files/makefile-add-ldflags.patch | 19 + .../openipmi/files/openipmi-don-t-rm-.libs.patch | 32 ++ .../recipes-support/openipmi/files/openipmi-helper | 512 +++++++++++++++++++++ .../files/openipmi-no-openipmigui-man.patch | 26 ++ ...openipmi-remove-host-path-from-la_LDFLAGS.patch | 85 ++++ .../recipes-support/openipmi/openipmi_2.0.22.bb | 111 +++++ 10 files changed, 885 insertions(+) create mode 100644 meta-oe/recipes-support/openipmi/files/do-not-install-pyc-and-pyo.patch create mode 100644 meta-oe/recipes-support/openipmi/files/fix-symlink-install-error-in-cmdlang.patch create mode 100644 meta-oe/recipes-support/openipmi/files/ipmi-init-fix-the-arguments.patch create mode 100644 meta-oe/recipes-support/openipmi/files/ipmi.service create mode 100644 meta-oe/recipes-support/openipmi/files/makefile-add-ldflags.patch create mode 100644 meta-oe/recipes-support/openipmi/files/openipmi-don-t-rm-.libs.patch create mode 100755 meta-oe/recipes-support/openipmi/files/openipmi-helper create mode 100644 meta-oe/recipes-support/openipmi/files/openipmi-no-openipmigui-man.patch create mode 100644 meta-oe/recipes-support/openipmi/files/openipmi-remove-host-path-from-la_LDFLAGS.patch create mode 100644 meta-oe/recipes-support/openipmi/openipmi_2.0.22.bb
meta-oe/recipes-support/openipmi/files/do-not-install-pyc-and-pyo.patch new file +25 -0
@@ -0,0 +1,25 @@ +Do not install pyc and pyo for python module + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + swig/python/Makefile.am | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/swig/python/Makefile.am b/swig/python/Makefile.am +index da95a81..97a62bf 100644 +--- a/swig/python/Makefile.am ++++ b/swig/python/Makefile.am +@@ -33,8 +33,6 @@ CLEANFILES = OpenIPMI_wrap.c OpenIPMI.py OpenIPMI.pyo OpenIPMI.pyc + install-exec-local: _OpenIPMI.la OpenIPMI.py OpenIPMI.pyc OpenIPMI.pyo + $(INSTALL) -d $(DESTDIR)$(PYTHON_INSTALL_DIR) + $(INSTALL_DATA) OpenIPMI.py "$(DESTDIR)$(PYTHON_INSTALL_DIR)" +- $(INSTALL_DATA) OpenIPMI.pyc "$(DESTDIR)$(PYTHON_INSTALL_DIR)" +- $(INSTALL_DATA) OpenIPMI.pyo "$(DESTDIR)$(PYTHON_INSTALL_DIR)" + if test "x$(PYTHON_GUI_DIR)" = "xopenipmigui"; then \ + $(INSTALL) -d $(DESTDIR)$(bindir); \ + $(INSTALL_SCRIPT) $(srcdir)/openipmigui.py "$(DESTDIR)$(bindir)/openipmigui";\ +-- +1.9.1 +
meta-oe/recipes-support/openipmi/files/fix-symlink-install-error-in-cmdlang.patch new file +22 -0
@@ -0,0 +1,22 @@ +Author: Aws Ismail <[email protected]> +Date: Thu Jun 7 16:00:13 2012 -0400 + + This patch fixes the error during the install stage when + creating a symbolic link for opeipmish in openipmi/cmdlang + + Upstream-Status: Pending + + Signed-off-by: Aws Ismail <[email protected]> + +diff --git a/cmdlang/Makefile.am b/cmdlang/Makefile.am +index 92d6e83..f6039f9 100644 +--- a/cmdlang/Makefile.am ++++ b/cmdlang/Makefile.am +@@ -36,6 +36,7 @@ CLEANFILES = libOpenIPMIcmdlang.map + # compatability. + install-data-local: + rm -f $(DESTDIR)$(bindir)/ipmish ++ mkdir -p $(DESTDIR)$(bindir)/ + $(LN_S) openipmish $(DESTDIR)$(bindir)/ipmish + + uninstall-local:
meta-oe/recipes-support/openipmi/files/ipmi-init-fix-the-arguments.patch new file +41 -0
41 lines not on this page · raw message
meta-oe/recipes-support/openipmi/files/ipmi.service new file +12 -0
@@ -0,0 +1,12 @@ +[Unit] +Description=IPMI Driver +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=@LIBEXECDIR@/openipmi-helper start +ExecStop=@LIBEXECDIR@/openipmi-helper stop-all + +[Install] +WantedBy=multi-user.target
meta-oe/recipes-support/openipmi/files/makefile-add-ldflags.patch new file +19 -0
@@ -0,0 +1,19 @@ +Add LDFLAGS variable to Makefile.am, make sure the extra linker flags can be passed. + +Upstream-Status: Pending + +Signed-off-by: Yi Zhao <[email protected]> + +diff --git a/swig/perl/Makefile.am b/swig/perl/Makefile.am +index 2f9ee4c..3a18892 100644 +--- a/swig/perl/Makefile.am ++++ b/swig/perl/Makefile.am +@@ -20,7 +20,7 @@ OpenIPMI_SRC = OpenIPMI_perl.c + OpenIPMI_OBJ = OpenIPMI_wrap.lo OpenIPMI_perl.lo + + OpenIPMI.so: $(OpenIPMI_OBJ) +- $(LIBTOOL) --mode=link $(CC) -shared -module -avoid-version -o $(@:.so=.la) $^ $(OPENIPMI_SWIG_LIBS) $(PERL_POSIX_LIB) -rpath $(PERL_INSTALL_DIR)/auto/OpenIPMI ++ $(LIBTOOL) --mode=link $(CC) -shared -module -avoid-version $(LDFLAGS) -o $(@:.so=.la) $^ $(OPENIPMI_SWIG_LIBS) $(PERL_POSIX_LIB) -rpath $(PERL_INSTALL_DIR)/auto/OpenIPMI + rm -f OpenIPMI.so + mv .libs/OpenIPMI.so . +
meta-oe/recipes-support/openipmi/files/openipmi-don-t-rm-.libs.patch new file +32 -0
@@ -0,0 +1,32 @@ +From bbd51cf010c80322034f7094e2c6a656aa1f17a7 Mon Sep 17 00:00:00 2001 +From: Wenzong Fan <[email protected]> +Date: Fri, 13 Feb 2015 06:55:33 +0000 +Subject: [PATCH] openipmi: don't rm .libs + +Don't remove .libs after OpenIPMI.so generated, this may cause +dummystuff.so fails to link from the second build with error: + +* error: .libs/dummystuff.o: No such file or directory + +Upstream-Status: Pending + +Signed-off-by: Wenzong Fan <[email protected]> +--- + swig/perl/Makefile.am | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/swig/perl/Makefile.am b/swig/perl/Makefile.am +index 12a282c..2f9ee4c 100644 +--- a/swig/perl/Makefile.am ++++ b/swig/perl/Makefile.am +@@ -23,7 +23,6 @@ OpenIPMI.so: $(OpenIPMI_OBJ) + $(LIBTOOL) --mode=link $(CC) -shared -module -avoid-version -o $(@:.so=.la) $^ $(OPENIPMI_SWIG_LIBS) $(PERL_POSIX_LIB) -rpath $(PERL_INSTALL_DIR)/auto/OpenIPMI + rm -f OpenIPMI.so + mv .libs/OpenIPMI.so . +- rm -rf .libs + + dummystuff.lo: dummystuff.c + $(LIBTOOL) --mode=compile $(COMPILE) -c $< +-- +1.9.1 +
meta-oe/recipes-support/openipmi/files/openipmi-helper new file +512 -0
512 lines not on this page · raw message
meta-oe/recipes-support/openipmi/files/openipmi-no-openipmigui-man.patch new file +26 -0
@@ -0,0 +1,26 @@ +Author: Aws Ismail <[email protected]> +Date: Thu Jun 7 12:28:34 2012 -0400 + + This patch was carried over from WRL4.3 (openipmi v2.0.16) + + It was updated for openipmi v2.0.19 + + Disable making openipmigui man page since we don't need it + + Upstream-Status: Pending + + Signed-off-by: Aws Ismail <[email protected]> + Signed-off-by: Yi Zhao <[email protected]> + +diff --git a/man/Makefile.am b/man/Makefile.am +index 632f55b..5ce79f5 100644 +--- a/man/Makefile.am ++++ b/man/Makefile.am +@@ -1,6 +1,6 @@ + + man_MANS = ipmi_ui.1 openipmicmd.1 openipmish.1 ipmi_cmdlang.7 \ +- openipmigui.1 openipmi_conparms.7 solterm.1 rmcp_ping.1 \ ++ openipmi_conparms.7 solterm.1 rmcp_ping.1 \ + openipmi_eventd.1 + + EXTRA_DIST = $(man_MANS)
meta-oe/recipes-support/openipmi/files/openipmi-remove-host-path-from-la_LDFLAGS.patch new file +85 -0
85 lines not on this page · raw message
meta-oe/recipes-support/openipmi/openipmi_2.0.22.bb new file +111 -0
111 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH v2 8/8 ipmitool: add new recipe
In reply to [email protected]From: Jackie Huang <[email protected]>
Utility for IPMI control which is for interfacing with devices that support the Intelligent Platform Management Interface specification.
--- .../recipes-support/ipmitool/ipmitool_1.8.18.bb | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-oe/recipes-support/ipmitool/ipmitool_1.8.18.bb
meta-oe/recipes-support/ipmitool/ipmitool_1.8.18.bb new file +36 -0
@@ -0,0 +1,36 @@ +SUMMARY = "Utility for IPMI control" +DESCRIPTION = "This package contains a utility for interfacing with devices that support \ +the Intelligent Platform Management Interface specification. IPMI is \ +an open standard for machine health, inventory, and remote power control. \ +\ +This utility can communicate with IPMI-enabled devices through either a \ +kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in \ +the IPMI specification. IPMIv2 adds support for encrypted LAN \ +communications and remote Serial-over-LAN functionality. \ +\ +It provides commands for reading the Sensor Data Repository (SDR) and \ +displaying sensor values, displaying the contents of the System Event \ +Log (SEL), printing Field Replaceable Unit (FRU) information, reading and \ +setting LAN configuration, and chassis power control. \ +" + +HOMEPAGE = "http://ipmitool.sourceforge.net/" +SECTION = "kernel/userland" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING;md5=9aa91e13d644326bf281924212862184" + +DEPENDS = "openssl readline ncurses" + +SRC_URI = "${SOURCEFORGE_MIRROR}/ipmitool/ipmitool-${PV}.tar.bz2" +SRC_URI[md5sum] = "bab7ea104c7b85529c3ef65c54427aa3" +SRC_URI[sha256sum] = "0c1ba3b1555edefb7c32ae8cd6a3e04322056bc087918f07189eeedfc8b81e01" + +inherit autotools + +# --disable-dependency-tracking speeds up the build +# --enable-file-security adds some security checks +# --disable-intf-free disables FreeIPMI support - we don't want to depend on +# FreeIPMI libraries, FreeIPMI has its own ipmitoool-like utility. +# +EXTRA_OECONF = "--disable-dependency-tracking --enable-file-security --disable-intf-free"
Signature · 1 line
2.11.0