-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from mayank-sirotiya-imgtec/master
Merge dev to master
- Loading branch information
Showing
3 changed files
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
# openwrt-pkg-feeds | ||
collection of third-party packages for openwrt | ||
# openwrt-feeds | ||
|
||
## Collection of packages for OpenWrt | ||
|
||
- cgilua - This package has been added to use webscripts using lua pages/scripts. | ||
- fping - This program is used to send ICMP echo probes to network hosts, similar to ping, but much better performing when pinging multiple hosts. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=cgilua | ||
PKG_VERSION:=v5.1.4 | ||
PKG_RELEASE:=1 | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/keplerproject/cgilua.git | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_VERSION:=$(PKG_VERSION) | ||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/cgilua | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
DEFAULT:=n | ||
DEPENDS:= +lua +lua-coxpcall | ||
TITLE:=CGILua library | ||
URL:=http://github.com/downloads/keplerproject/cgilua/ | ||
endef | ||
|
||
define Package/cgilua/description | ||
CGILua allows the separation of logic and data handling from the | ||
generation of pages, making it easy to develop web applications with | ||
Lua. CGILua can be used with a variety of Web servers and, for each | ||
server, with different launchers. A launcher is responsible for the | ||
interaction of CGILua and the Web server, for example using ISAPI on | ||
IIS or mod_lua on Apache. | ||
endef | ||
|
||
define Build/Compile | ||
$(call Build/Compile/Default, install LUA_DIR=$(PKG_BUILD_DIR)/lua) | ||
endef | ||
|
||
define Package/cgilua/install | ||
$(INSTALL_DIR) $(1)/usr/lib/lua | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lua/cgilua.lua $(1)/usr/lib/lua | ||
$(INSTALL_DIR) $(1)/usr/lib/lua/cgilua | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lua/cgilua/* $(1)/usr/lib/lua/cgilua | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/launchers/cgilua.cgi $(1)/usr/bin | ||
endef | ||
|
||
|
||
$(eval $(call BuildPackage,cgilua)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=fping | ||
PKG_VERSION:=2.4b2_to-ipv6 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=http://www.fping.com/download/ | ||
PKG_MD5SUM:=3ad516765514249a40d3c5b6caab812a | ||
PKG_CAT:=zcat | ||
|
||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/fping | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=A program to ping multiple hosts in parallel | ||
URL:=http://www.fping.com | ||
endef | ||
|
||
define Package/fping/description | ||
fping is a ping(1) like program which uses the Internet Control Message Protocol | ||
(ICMP) echo request to determine if a host is up. fping is different from ping in | ||
that you can specify any number of hosts on the command line, or specify a file | ||
containing the lists of hosts to ping. Instead of trying one host until it timeouts | ||
or replies, fping will send out a ping packet and move on to the next host in a | ||
round-robin fashion. If a host replies, it is noted and removed from the list of | ||
hosts to check. If a host does not respond within a certain time limit and/or retry | ||
limit it will be considered unreachable. | ||
endef | ||
|
||
define Build/Compile | ||
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) clean $(PKG_NAME) | ||
mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)4 | ||
$(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -DIPV6=1" -C $(PKG_BUILD_DIR) clean $(PKG_NAME) | ||
mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)6 | ||
endef | ||
|
||
define Package/fping/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(CP) $(PKG_BUILD_DIR)/fping4 $(1)/usr/bin/ | ||
$(CP) $(PKG_BUILD_DIR)/fping6 $(1)/usr/bin/ | ||
ln -sf fping4 $(1)/usr/bin/fping | ||
endef | ||
|
||
$(eval $(call BuildPackage,fping)) |