From 523b1c2484b7daf386366391501ef607239129b6 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Fri, 10 Jun 2016 21:11:48 +0000 Subject: [PATCH] gkermit: add package Maintainer: @nwf Compile tested: LEDE HEAD ar71xx Run tested: LEDE HEAD on ar71xx, basic functionality testing Description: A minimal kermit file transfer program Signed-off-by: Nathaniel Wesley Filardo --- utils/gkermit/Makefile | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 utils/gkermit/Makefile diff --git a/utils/gkermit/Makefile b/utils/gkermit/Makefile new file mode 100644 index 000000000..826309584 --- /dev/null +++ b/utils/gkermit/Makefile @@ -0,0 +1,58 @@ +# Copyright (C) 2017 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v3+. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gkermit +PKG_VERSION:=1.00 +PKG_RELEASE:=1 +PKG_LICENSE:=GPL-2.0 + +PKG_SOURCE:=gku100.tar.gz +PKG_SOURCE_URL:=ftp://kermit.columbia.edu/kermit/archives/gku100.tar.gz +PKG_MD5SUM:=aea4fa728b9981fce41c9f2c635f2e05 +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +PKG_MAINTAINER:=Nathaniel Wesley Filardo + +include $(INCLUDE_DIR)/package.mk + +define Package/gkermit + SECTION:=utils + CATEGORY:=Utilities + TITLE:=gkermit + URL:=http://www.columbia.edu/kermit/gkermit.html +endef + +define Package/gkermit/description + A minimal kermit file transfer program +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + tar -C $(PKG_BUILD_DIR) -xzvf "$(DL_DIR)/$(PKG_SOURCE)" +endef + +# nothing to do +define Build/Configure +endef + +define Build/Compile + mkdir -p $(PKG_INSTALL_DIR) + $(TARGET_CC) \ + $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) \ + -include string.h -include unistd.h \ + -DPOSIX -DERRNO_H \ + -o $(PKG_INSTALL_DIR)/gkermit \ + $(PKG_BUILD_DIR)/{gproto,gkermit,gunixio,gcmdline}.c +endef + +define Package/gkermit/install + $(INSTALL_DIR) $(1)/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/gkermit $(1)/bin +endef + +$(eval $(call BuildPackage,gkermit))