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