From 135cfd9ac08d3d79f7bf738a1c53ad1caf4c9a09 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 1 Aug 2006 13:42:54 +0000 Subject: [PATCH] Port deco to -ng SVN-Revision: 4368 --- utils/deco/Makefile | 49 ++++++++++++++++++++++++++++++ utils/deco/patches/100-tty.c.patch | 11 +++++++ 2 files changed, 60 insertions(+) create mode 100644 utils/deco/Makefile create mode 100644 utils/deco/patches/100-tty.c.patch diff --git a/utils/deco/Makefile b/utils/deco/Makefile new file mode 100644 index 000000000..77a8e491b --- /dev/null +++ b/utils/deco/Makefile @@ -0,0 +1,49 @@ +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=deco +PKG_VERSION:=39 +PKG_RELEASE:=1 +PKG_MD5SUM:=f77f60e8be0cae1f814cba1ef61bf4d0 + +PKG_SOURCE_URL:=@SF/deco +PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tgz + +PKG_CAT:=zcat +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/deco + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=libncurses + TITLE:=Text-based, full featured file manager + DESCRIPTION:=A clone of Norton Commander for Unix. Text-based, full featured\\\ + file manager.\\\ + URL:=http://deco.sourceforge.net/ +endef + +define Build/Configure +$(call Build/Configure/Default) +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) +endef + +define Package/deco/install + install -m0755 -d $(1)/usr/bin + install -m0755 $(PKG_BUILD_DIR)/deco $(1)/usr/bin/deco + install -m0755 -d $(1)/usr/lib/deco + install -m0644 $(PKG_BUILD_DIR)/profile $(1)/usr/lib/deco/profile + install -m0644 $(PKG_BUILD_DIR)/menu $(1)/usr/lib/deco/menu +endef + +$(eval $(call BuildPackage,deco)) diff --git a/utils/deco/patches/100-tty.c.patch b/utils/deco/patches/100-tty.c.patch new file mode 100644 index 000000000..f37e4e2a6 --- /dev/null +++ b/utils/deco/patches/100-tty.c.patch @@ -0,0 +1,11 @@ +--- src/tty.c 2005-09-25 00:23:41.671022039 -0700 ++++ str_new/tty.c 2005-09-25 01:09:37.189119615 -0700 +@@ -14,7 +14,7 @@ + #if HAVE_TERMIOS_H + # include + # if HAVE_SYS_IOCTL_H +-# include ++/*# include */ + # endif + # define HAVE_TERMIO_H 1 + # define termio termios -- 2.30.2