From fa7fae74951c224f48200e66e8de50a7c6274f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Thu, 12 Jun 2014 17:31:16 +0200 Subject: [PATCH] minicom: Import 2.3 from packages and update to 2.7. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- utils/minicom/Makefile | 45 +++++++++++++++++++ .../patches/100-fix_iconv_include.patch | 12 +++++ 2 files changed, 57 insertions(+) create mode 100644 utils/minicom/Makefile create mode 100644 utils/minicom/patches/100-fix_iconv_include.patch diff --git a/utils/minicom/Makefile b/utils/minicom/Makefile new file mode 100644 index 000000000..cf60e53ec --- /dev/null +++ b/utils/minicom/Makefile @@ -0,0 +1,45 @@ +# +# Copyright (C) 2006-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=minicom +PKG_VERSION:=2.7 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://alioth.debian.org/frs/download.php/file/3977/ +PKG_MD5SUM:=7044ca3e291268c33294f171d426dc2d +PKG_MAINTAINER:=Álvaro Fernández Rojas + +PKG_LICENSE:=GPL-2.0 +PKG_LICENSE_FILES:=COPYING + +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/package.mk + +define Package/minicom + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+libncurses + TITLE:=Terminal emulation program + URL:=http://alioth.debian.org/projects/minicom/ + SUBMENU:=Terminal +endef + +define Package/minicom/conffiles +/etc/minirc.dfl +endef + +define Package/minicom/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ascii-xfr $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,minicom)) diff --git a/utils/minicom/patches/100-fix_iconv_include.patch b/utils/minicom/patches/100-fix_iconv_include.patch new file mode 100644 index 000000000..88190faae --- /dev/null +++ b/utils/minicom/patches/100-fix_iconv_include.patch @@ -0,0 +1,12 @@ +--- a/src/minicom.c ++++ b/src/minicom.c +@@ -31,7 +31,9 @@ + #include + #include + #include ++#ifdef HAVE_ICONV + #include ++#endif + #include + + #define EXTERN