Ticket #6469: dash.patch

File dash.patch, 1.2 KB (added by acoul <alex at ozo.com>, 8 years ago)
  • package/dash

    diff -Nru package/dash.old/Makefile package/dash/Makefile
    old new  
     1#  
     2# Copyright (C) 2006-2009 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
     8include $(TOPDIR)/rules.mk 
     9 
     10PKG_NAME:=dash 
     11PKG_VERSION:=0.5.5.1 
     12PKG_RELEASE:=1 
     13 
     14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     15PKG_SOURCE_URL:=http://gondor.apana.org.au/~herbert/dash/files/ 
     16PKG_MD5SUM:=7ac832b440b91f5a52cf8eb68e172616 
     17 
     18include $(INCLUDE_DIR)/package.mk 
     19 
     20define Package/dash 
     21  SECTION:=base 
     22  CATEGORY:=Base system 
     23  TITLE:=Debian Almquist shell 
     24  URL:=http://gondor.apana.org.au/~herbert/dash/files/ 
     25endef 
     26 
     27define Package/dash/description 
     28 A small footprint, POSIX complied unix shell 
     29endef 
     30 
     31define Build/Compile 
     32        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     33                $(TARGET_CONFIGURE_OPTS) \ 
     34                CFLAGS="$(TARGET_CFLAGS)" \ 
     35                BINDIR="/bin" \ 
     36                AWK="awk" \ 
     37                all 
     38endef 
     39 
     40define Package/dash/install 
     41        $(INSTALL_DIR) $(1)/bin 
     42        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dash $(1)/bin/ 
     43endef 
     44 
     45$(eval $(call BuildPackage,dash))