Skip to content
sinkcup edited this page Mar 19, 2015 · 8 revisions

Welcome to the wifidog-gateway wiki!

##how to use github tag as openwrt package source

see openwrt/packages#1051

github tag can auto create a download link for anonymous users. like: https://github.com/wifidog/wifidog-gateway/archive/1.2.0.tar.gz

openwrt will auto download it and save it to openwrt_sdk/dl/1.2.0.tar.gz, if another package's version is 1.2.0 too, it will conflicted.

So we need download the tag, it will be saved as wifidog-gateway-1.2.0.tar.gz in your computer. Then upload it at the release page(click "Draft a new release" at https://github.com/wifidog/wifidog-gateway/releases).

docs: https://github.com/blog/1547-release-your-software

if you want compile result is wifidog_20150318-1.2.0_ralink.ipk, the Makefile of openwrt package should write like this:

include $(TOPDIR)/rules.mk

PKG_NAME:=wifidog
PKG_VERSION:=20150318
PKG_RELEASE:=1.2.0

PKG_MD5SUM:=c1c5de15279d0224b6ea1ed72d416a93
PKG_SOURCE:=$(PKG_NAME)-gateway-$(PKG_RELEASE).tar.gz
PKG_SOURCE_URL:=https://github.com/wifidog/wifidog-gateway/releases/download/$(PKG_RELEASE)/

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-gateway-$(PKG_RELEASE)

PKG_FIXUP:=autoreconf
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

if you want compile result is wifidog_1.2.0-1_ralink.ipk, the Makefile of openwrt package should write like this:

include $(TOPDIR)/rules.mk

PKG_NAME:=wifidog
PKG_VERSION:=1.2.0
PKG_RELEASE:=1

PKG_MD5SUM:=c1c5de15279d0224b6ea1ed72d416a93
PKG_SOURCE:=$(PKG_NAME)-gateway-$(PKG_RELEASE).tar.gz
PKG_SOURCE_URL:=https://github.com/wifidog/wifidog-gateway/releases/download/$(PKG_VERSION)/

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-gateway-$(PKG_VERSION)

PKG_FIXUP:=autoreconf
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk
Clone this wiki locally