OpenWrt Forum Archive

Topic: httptunnel package for kamikaze by me :P

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

while being new to kamikaze build, I have created a little package which I need for myself.
I'm just happy to be able to integrate things into builtroot-ng that easily *thanks devs*

After creating this package, you'll find it inside the Network page,
htc  -  the httptunnel client
hts  -  the httptunnel server

As it is just the first try for me to integrate something into buildroot-ng, it doesn't create any config files or bootscripts!
you'll find the executables in /usr/sbin (hts for server and htc for client)

If you find it useful and ask me nice, maybe I'll find the time to add config files and startup scripts tongue
I don't need them, cause I'll don't use predefined things and create my own tongue

OK here it is:

httptunnel v3.3 (Server & Client)

1. just create a directory in trunk/package (eg. trunk/package/httptunnel)
2. create the file "Makefile" (without quotes) and put the following in there:

include $(TOPDIR)/rules.mk

PKG_NAME:=httptunnel
PKG_VERSION:=3.3
PKG_RELEASE:=1

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.nocrew.org/software/httptunnel
PKG_MD5SUM:=493cc0f5f21e9955db27ee9cd9a976d5
PKG_CAT:=zcat

include $(INCLUDE_DIR)/package.mk

define Package/httptunnel/Default
  SECTION:=net
  CATEGORY:=Network
  DEFAULT:=N
  TITLE:=httptunnel
  DESCRIPTION:=TCP Port Tunnel over HTTP Protocoll.
  URL:=http://www.nocrew.org/software/httptunnel.html
endef

define Package/htc
  $(call Package/httptunnel/Default)
  TITLE+= Client
endef

define Package/hts
  $(call Package/httptunnel/Default)
  TITLE+= Server
endef

define Package/htc/install
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/htc $(1)/usr/sbin/
endef

define Package/hts/install
    $(INSTALL_DIR) $(1)/usr/sbin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/hts $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,htc))
$(eval $(call BuildPackage,hts))

very nice

The discussion might have continued from here.