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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/conserver
/conserver
/tar.gz
/v
$(PKG_VERSION
)?
16 PKG_HASH
:=1c8b86f123d2d8e3ce568b782087b43dfac9cf6ffd5a9bdfcfdc6718d749a923
18 PKG_MAINTAINER
:=Bjørn Mork
<bjorn@mork.no
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=LICENSE
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/conserver
31 TITLE
:=Connect multiple user to a serial console with logging
32 URL
:=http
://www.conserver.com
/
36 define Package
/conserver
/description
37 Conserver is an application that allows multiple users to watch a
38 serial console at the same time. It can log the data
, allows users
39 to take write-access of a console
(one at a time
), and has a
40 variety of bells and whistles to accentuate that basic
41 functionality. The idea is that conserver will log
all your serial
42 traffic so you can go back and review why something crashed
, look
43 at changes
(if done on the console
), or tie the console logs into a
44 monitoring system
(just watch the logfiles it creates
). With
45 multi-user capabilities you can work on equipment with others
,
46 mentor
, train
, etc. It also does
all that client-server stuff so
47 that
, assuming you have a network connection
, you can interact with
48 any of the equipment from home or wherever.
51 define Package
/conserver
/conffiles
52 /etc
/conserver
/conserver.cf
53 /etc
/conserver
/conserver.passwd
54 /etc
/conserver
/console.cf
59 $(if
$(CONFIG_IPV6
),--with-ipv6
) \
60 --sysconfdir
=/etc
/conserver \
62 --with-logfile
=/var
/log
/conserver
/server.log
65 $(call Build
/Prepare
/Default
)
66 $(CP
) .
/files
/config.sub
$(PKG_BUILD_DIR
)/
67 $(CP
) .
/files
/config.guess
$(PKG_BUILD_DIR
)/
70 define Package
/conserver
/install
71 $(INSTALL_DIR
) $(1)/usr
/sbin
72 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/conserver
$(1)/usr
/sbin
/
73 $(INSTALL_DIR
) $(1)/usr
/bin
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/console
$(1)/usr
/bin
/
75 $(INSTALL_DIR
) $(1)/etc
/conserver
76 $(INSTALL_CONF
) .
/files
/conserver.cf
$(1)/etc
/conserver
/
77 $(INSTALL_CONF
) .
/files
/console.cf
$(1)/etc
/conserver
/
78 touch
$(1)/etc
/conserver
/conserver.passwd
79 $(INSTALL_DIR
) $(1)/etc
/init.d
80 $(INSTALL_BIN
) .
/files
/conserver.init
$(1)/etc
/init.d
/conserver
83 $(eval
$(call BuildPackage
,conserver
))