Merge pull request #20261 from pprindeville/strongswan-update-5.9.9
[feed/packages.git] / net / tmate-ssh-server / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=tmate-ssh-server
4 PKG_VERSION:=511fd2bd852464e76824279609a34ee93fe148a4
5 PKG_RELEASE:=2
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://codeload.github.com/tmate-io/tmate-ssh-server/tar.gz/$(PKG_VERSION)?
9 PKG_HASH:=68602496ca6a17ea80f5be53eba047897ac714c7cdfcb3bcdc12c56b8f3c3b45
10
11 PKG_LICENSE:=ISC
12 PKG_LICENSE_FILES:=COPYING
13 PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
14
15 PKG_FIXUP:=autoreconf
16 PKG_BUILD_PARALLEL:=1
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/tmate-ssh-server
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=Instant Terminal Sharing Server
25 URL:=https://tmate.io
26 DEPENDS:=+libevent2 +libncurses +libpthread +libssh +msgpack-c +terminfo +openssh-keygen
27 endef
28
29 define Package/tmate-ssh-server/description
30 tmate-ssh-server is the server side part of tmate.io.
31 endef
32
33 CONFIGURE_VARS+= \
34 LIBSSH_CFLAGS="-I$(STAGING_DIR)/usr/include" \
35 LIBSSH_LIBS="-lssh"
36
37 TARGET_CFLAGS+= \
38 -D_GNU_SOURCE \
39
40 define Package/tmate-ssh-server/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tmate-ssh-server $(1)/usr/bin/tmate-ssh-server
43
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/tmate-ssh-server.init $(1)/etc/init.d/tmate-ssh-server
46
47 $(INSTALL_DIR) $(1)/etc/config
48 $(INSTALL_DATA) ./files/tmate-ssh-server.config $(1)/etc/config/tmate-ssh-server
49 endef
50
51 define Package/tmate-ssh-server/conffiles
52 /etc/config/tmate-ssh-server
53 endef
54
55 $(eval $(call BuildPackage,tmate-ssh-server))