You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2017 Bjørn Mork <bjorn@mork.no>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=conserver
  9. PKG_VERSION:=8.2.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/conserver/conserver/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=1c8b86f123d2d8e3ce568b782087b43dfac9cf6ffd5a9bdfcfdc6718d749a923
  14. PKG_MAINTAINER:=Bjørn Mork <bjorn@mork.no>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/conserver
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=Connect multiple user to a serial console with logging
  25. URL:=http://www.conserver.com/
  26. DEPENDS:=+libopenssl
  27. endef
  28. define Package/conserver/description
  29. Conserver is an application that allows multiple users to watch a
  30. serial console at the same time. It can log the data, allows users
  31. to take write-access of a console (one at a time), and has a
  32. variety of bells and whistles to accentuate that basic
  33. functionality. The idea is that conserver will log all your serial
  34. traffic so you can go back and review why something crashed, look
  35. at changes (if done on the console), or tie the console logs into a
  36. monitoring system (just watch the logfiles it creates). With
  37. multi-user capabilities you can work on equipment with others,
  38. mentor, train, etc. It also does all that client-server stuff so
  39. that, assuming you have a network connection, you can interact with
  40. any of the equipment from home or wherever.
  41. endef
  42. define Package/conserver/conffiles
  43. /etc/conserver/conserver.cf
  44. /etc/conserver/conserver.passwd
  45. /etc/conserver/console.cf
  46. endef
  47. CONFIGURE_ARGS += \
  48. --with-openssl \
  49. $(if $(CONFIG_IPV6),--with-ipv6) \
  50. --sysconfdir=/etc/conserver \
  51. --with-port=3109 \
  52. --with-logfile=/var/log/conserver/server.log
  53. define Build/Prepare
  54. $(call Build/Prepare/Default)
  55. $(CP) ./files/config.sub $(PKG_BUILD_DIR)/
  56. $(CP) ./files/config.guess $(PKG_BUILD_DIR)/
  57. endef
  58. define Package/conserver/install
  59. $(INSTALL_DIR) $(1)/usr/sbin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conserver $(1)/usr/sbin/
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/console $(1)/usr/bin/
  63. $(INSTALL_DIR) $(1)/etc/conserver
  64. $(INSTALL_CONF) ./files/conserver.cf $(1)/etc/conserver/
  65. $(INSTALL_CONF) ./files/console.cf $(1)/etc/conserver/
  66. touch $(1)/etc/conserver/conserver.passwd
  67. $(INSTALL_DIR) $(1)/etc/init.d
  68. $(INSTALL_BIN) ./files/conserver.init $(1)/etc/init.d/conserver
  69. endef
  70. $(eval $(call BuildPackage,conserver))