Ticket #7043: shellinabox.patch

File shellinabox.patch, 1.4 KB (added by jj, 8 years ago)
  • new file package/shellinabox/Makefile

    - +  
     1#  
     2# Copyright (C) 2006-2010 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7# Initial port of shellinabox to OpenWrt - Jan Jaeger 25-MAR-2010 
     8 
     9include $(TOPDIR)/rules.mk 
     10 
     11PKG_NAME:=shellinabox 
     12PKG_VERSION:=204 
     13PKG_RELEASE:=1 
     14 
     15PKG_SOURCE_PROTO:=svn 
     16PKG_SOURCE_VERSION:=$(PKG_VERSION) 
     17PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 
     18PKG_SOURCE_URL:=http://shellinabox.googlecode.com/svn/trunk/ 
     19PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     20 
     21 
     22include $(INCLUDE_DIR)/package.mk 
     23 
     24define Package/shellinabox 
     25  SECTION:=net 
     26  CATEGORY:=Network 
     27  TITLE:=Shell In A Box 
     28  DEPENDS:=+libopenssl 
     29  URL:=http://shellinabox.googlecode.com 
     30endef 
     31 
     32define Package/shellinabox/description 
     33 Web based AJAX terminal emulator 
     34endef 
     35 
     36define Build/Configure 
     37        $(call Build/Configure/Default,--disable-runtime-loading) 
     38endef 
     39 
     40define Build/Compile 
     41        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     42                $(TARGET_CONFIGURE_OPTS) \ 
     43                CFLAGS="$(TARGET_CFLAGS)" \ 
     44                LDFLAGS="$(TARGET_LDFLAGS) -lm" \ 
     45                BINDIR="/usr/sbin" \ 
     46                all 
     47endef 
     48 
     49define Package/shellinabox/install 
     50        $(INSTALL_DIR) $(1)/usr/sbin 
     51        $(INSTALL_BIN) $(PKG_BUILD_DIR)/shellinaboxd $(1)/usr/sbin/ 
     52endef 
     53 
     54$(eval $(call BuildPackage,shellinabox))