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.

75 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.1
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Bjørn Mork <bjorn@mork.no>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://www.conserver.com/
  14. PKG_HASH:=251ae01997e8f3ee75106a5b84ec6f2a8eb5ff2f8092438eba34384a615153d0
  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. --sysconfdir=/etc/conserver \
  49. --with-port=3109 \
  50. --with-logfile=/var/log/conserver/server.log
  51. define Package/conserver/install
  52. $(INSTALL_DIR) $(1)/usr/sbin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/conserver $(1)/usr/sbin/
  54. $(INSTALL_DIR) $(1)/usr/bin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/console $(1)/usr/bin/
  56. $(INSTALL_DIR) $(1)/etc/conserver
  57. $(INSTALL_CONF) ./files/conserver.cf $(1)/etc/conserver/
  58. $(INSTALL_CONF) ./files/console.cf $(1)/etc/conserver/
  59. touch $(1)/etc/conserver/conserver.passwd
  60. $(INSTALL_DIR) $(1)/etc/init.d
  61. $(INSTALL_BIN) ./files/conserver.init $(1)/etc/init.d/conserver
  62. endef
  63. $(eval $(call BuildPackage,conserver))