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.

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