xtables-addons: FreeBSD build fix
[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.4
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Bjørn Mork <bjorn@mork.no>
14
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
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 $(if $(CONFIG_IPV6),--with-ipv6) \
59 --sysconfdir=/etc/conserver \
60 --with-port=3109 \
61 --with-logfile=/var/log/conserver/server.log
62
63 define Build/Prepare
64 $(call Build/Prepare/Default)
65 $(CP) ./files/config.sub $(PKG_BUILD_DIR)/
66 $(CP) ./files/config.guess $(PKG_BUILD_DIR)/
67 endef
68
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
80 endef
81
82 $(eval $(call BuildPackage,conserver))