2 # Copyright (C) 2017 Bjørn Mork <bjorn@mork.no>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Bjørn Mork
<bjorn@mork.no
>
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/conserver
/conserver
/tar.gz
/v
$(PKG_VERSION
)?
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_HASH
:=8d8b263d9531ebb827257bd67baf9200cac4fb7ffbe033122686e39ca42cddd6
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=LICENSE
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/conserver
30 TITLE
:=Connect multiple user to a serial console with logging
31 URL
:=http
://www.conserver.com
/
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.
50 define Package
/conserver
/conffiles
51 /etc
/conserver
/conserver.cf
52 /etc
/conserver
/conserver.passwd
53 /etc
/conserver
/console.cf
58 $(if
$(CONFIG_IPV6
),--with-ipv6
) \
59 --sysconfdir
=/etc
/conserver \
61 --with-logfile
=/var
/log
/conserver
/server.log
64 $(call Build
/Prepare
/Default
)
65 $(CP
) .
/files
/config.sub
$(PKG_BUILD_DIR
)/
66 $(CP
) .
/files
/config.guess
$(PKG_BUILD_DIR
)/
69 define Package
/conserver
/install
70 $(INSTALL_DIR
) $(1)/usr
/sbin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/conserver
$(1)/usr
/sbin
/
72 $(INSTALL_DIR
) $(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/console
$(1)/usr
/bin
/
74 $(INSTALL_DIR
) $(1)/etc
/conserver
75 $(INSTALL_CONF
) .
/files
/conserver.cf
$(1)/etc
/conserver
/
76 $(INSTALL_CONF
) .
/files
/console.cf
$(1)/etc
/conserver
/
77 touch
$(1)/etc
/conserver
/conserver.passwd
78 $(INSTALL_DIR
) $(1)/etc
/init.d
79 $(INSTALL_BIN
) .
/files
/conserver.init
$(1)/etc
/init.d
/conserver
82 $(eval
$(call BuildPackage
,conserver
))