aboutsummaryrefslogtreecommitdiff
path: root/net/telnet-bsd/Makefile
blob: 1655c631e153deab0dc7555f3ff70345672f01a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Copyright (C) 2017 Daniel Engberg <daniel.engberg.lists@pyret.net>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=telnet-bsd
PKG_VERSION=1.2
PKG_RELEASE:=1
PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=COPYING

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://mirror.netcologne.de/gentoo/distfiles/
PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
PKG_HASH:=d6a9d26740ef75565cb1ed8ff11e327d240e6734748b2d1d2e96c126849e4733

PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

TARGET_CFLAGS+= -Wno-format-security

define Package/telnet-bsd
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libncurses
  TITLE:=telnet-bsd
  URL:=https://www.openbsd.org/
endef

define Package/telnet-bsd/description
  Telnet client ported from OpenBSD
endef

define Package/telnet-bsd/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/telnet/telnet $(1)/usr/bin/
endef

$(eval $(call BuildPackage,telnet-bsd))