include $(TOPDIR)/rules.mk PKG_NAME:=ffluci PKG_REV:=HEAD PKG_VERSION:=0.2+svn$(PKG_REV) PKG_RELEASE:=1 PKG_BRANCH:=trunk PKG_SOURCE_PROTO:=svn PKG_SOURCE_VERSION:=$(PKG_REV) PKG_SOURCE_URL:=https://dev.leipzig.freifunk.net/svn/ff-luci/$(PKG_BRANCH) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install MAKE_ACTION:=dist-source include $(INCLUDE_DIR)/package.mk define Package/ffluci SECTION:=admin CATEGORY:=Administration TITLE:=FFLuCI DEPENDS:=+liblua +luaposix +haserl-lua MAINTAINER:=Steven Barth endef define Build/Configure endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ACTION) endef define Package/ffluci/install $(INSTALL_DIR) $(1)/usr/lib/lua $(INSTALL_DIR) $(1)/www/cgi-bin $(INSTALL_DIR) $(1)/www/ffluci $(INSTALL_DIR) $(1)/etc/config $(CP) $(PKG_BUILD_DIR)/dist/* $(1)/usr/lib/lua/ -R $(CP) $(PKG_BUILD_DIR)/contrib/media $(1)/www/ffluci/ -R $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/ffluci $(1)/www/cgi-bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/index.cgi $(1)/www/cgi-bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/contrib/index.html $(1)/www $(CP) $(PKG_BUILD_DIR)/contrib/ffluci.uci $(1)/etc/config/luci $(CP) -a ./ipkg/ffluci.postinst $(1)/CONTROL/postinst $(CP) -a ./ipkg/conffiles $(1)/CONTROL/conffiles endef $(eval $(call BuildPackage,ffluci))