Merge pull request #11353 from kvuorine/fwknop-fixes
[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.5
12 PKG_RELEASE:=1
13
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:=43be704932bca365d7bf34be929851cf0bb7a229cc28391b3302ae19d6e6565b
17
18 PKG_MAINTAINER:=Bjørn Mork <bjorn@mork.no>
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/conserver
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=Connect multiple user to a serial console with logging
32 URL:=http://www.conserver.com/
33 DEPENDS:=+libopenssl
34 endef
35
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.
49 endef
50
51 define Package/conserver/conffiles
52 /etc/conserver/conserver.cf
53 /etc/conserver/conserver.passwd
54 /etc/conserver/console.cf
55 endef
56
57 CONFIGURE_ARGS += \
58 --with-openssl \
59 $(if $(CONFIG_IPV6),--with-ipv6) \
60 --sysconfdir=/etc/conserver \
61 --with-port=3109 \
62 --with-logfile=/var/log/conserver/server.log
63
64 define Build/Prepare
65 $(call Build/Prepare/Default)
66 $(CP) ./files/config.sub $(PKG_BUILD_DIR)/
67 $(CP) ./files/config.guess $(PKG_BUILD_DIR)/
68 endef
69
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
81 endef
82
83 $(eval $(call BuildPackage,conserver))