61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2013, Asio Software Technologies
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /COPYING for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=webget
|
|
PKG_VERSION:=1.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=git://github.com/kagera/webget.git
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_SOURCE_VERSION:=d79b294105be828d962911f24e442278a9d87080
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/webget
|
|
SUBMENU:=System Tools
|
|
SECTION:=kagera
|
|
CATEGORY:=Kagera Router Management Utility
|
|
DEPENDS:=+libcyassl
|
|
TITLE:=WebGet
|
|
URL:=http://www.kagera.eu.org/
|
|
endef
|
|
|
|
define Package/webpost
|
|
SUBMENU:=System Tools
|
|
SECTION:=kagera
|
|
CATEGORY:=Kagera Router Management Utility
|
|
DEPENDS:=+libcyassl
|
|
TITLE:=WebPost
|
|
URL:=http://www.asiotec.eu.org/
|
|
endef
|
|
|
|
define Package/webget/description
|
|
WebGet fetches an HTTP and HTTPS URLs and dumps the contents to stdout.
|
|
endef
|
|
|
|
define Package/webpost/description
|
|
WebPost does a POST operation to an HTTP and HTTPS URLs and dumps the results to stdout.
|
|
endef
|
|
|
|
MAKE_FLAGS+=CROSS_BUILD=1
|
|
|
|
define Package/webget/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/webget $(1)/usr/bin/
|
|
endef
|
|
|
|
define Package/webpost/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/webpost $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,webget))
|
|
$(eval $(call BuildPackage,webpost))
|