conserver: add IPMI support

Linking conserver with FreeIPMI enables it to manage
serial-over-LAN (SOL) consoles in addition to the already
supported tty and tcp/telnet consoles.

The FreeIPMI library is huge. Adding a separate package
variant for this feature.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
This commit is contained in:
Bjørn Mork
2023-09-21 16:01:31 +02:00
committed by Hannu Nyman
parent 771bb86f26
commit b8a04addb1

View File

@@ -15,7 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/conserver/conserver/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/conserver/conserver/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=1c8b86f123d2d8e3ce568b782087b43dfac9cf6ffd5a9bdfcfdc6718d749a923 PKG_HASH:=1c8b86f123d2d8e3ce568b782087b43dfac9cf6ffd5a9bdfcfdc6718d749a923
PKG_MAINTAINER:=Bjørn Mork <bjorn@mork.no>
PKG_LICENSE:=BSD-3-Clause PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
@@ -31,6 +30,18 @@ define Package/conserver
TITLE:=Connect multiple user to a serial console with logging TITLE:=Connect multiple user to a serial console with logging
URL:=http://www.conserver.com/ URL:=http://www.conserver.com/
DEPENDS:=+libopenssl DEPENDS:=+libopenssl
MAINTAINER:=Bjørn Mork <bjorn@mork.no>
VARIANT:=default
CONFLICTS:=conserver-ipmi
endef
define Package/conserver-ipmi
$(call Package/conserver)
TITLE:=Conserver with IPMI support
PROVIDES:=conserver
DEPENDS+=+libipmiconsole
VARIANT:=ipmi
CONFLICTS:=
endef endef
define Package/conserver/description define Package/conserver/description
@@ -48,12 +59,22 @@ define Package/conserver/description
any of the equipment from home or wherever. any of the equipment from home or wherever.
endef endef
define Package/conserver-ipmi/description
$(call Package/conserver/description)
.
This variant is built with support for IPMI serial-over-LAN consoles,
adding a large dependency on FreeIPMI
endef
define Package/conserver/conffiles define Package/conserver/conffiles
/etc/conserver/conserver.cf /etc/conserver/conserver.cf
/etc/conserver/conserver.passwd /etc/conserver/conserver.passwd
/etc/conserver/console.cf /etc/conserver/console.cf
endef endef
Package/conserver-ipmi/conffiles=$(Package/conserver/conffiles)
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--with-openssl \ --with-openssl \
$(if $(CONFIG_IPV6),--with-ipv6) \ $(if $(CONFIG_IPV6),--with-ipv6) \
@@ -61,6 +82,10 @@ CONFIGURE_ARGS += \
--with-port=3109 \ --with-port=3109 \
--with-logfile=/var/log/conserver/server.log --with-logfile=/var/log/conserver/server.log
ifeq ($(BUILD_VARIANT),ipmi)
CONFIGURE_ARGS += --with-freeipmi
endif
define Build/Prepare define Build/Prepare
$(call Build/Prepare/Default) $(call Build/Prepare/Default)
$(CP) ./files/config.sub $(PKG_BUILD_DIR)/ $(CP) ./files/config.sub $(PKG_BUILD_DIR)/
@@ -80,4 +105,7 @@ define Package/conserver/install
$(INSTALL_BIN) ./files/conserver.init $(1)/etc/init.d/conserver $(INSTALL_BIN) ./files/conserver.init $(1)/etc/init.d/conserver
endef endef
Package/conserver-ipmi/install=$(Package/conserver/install)
$(eval $(call BuildPackage,conserver)) $(eval $(call BuildPackage,conserver))
$(eval $(call BuildPackage,conserver-ipmi))