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.

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