<commit_before>#
# Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
#

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=lime-webui
PKG_VERSION=$(GIT_COMMIT_DATE)-$(GIT_COMMIT_TSTAMP)
GIT_COMMIT_DATE:=$(shell git log -n 1 --pretty=%ad --date=short . )
GIT_COMMIT_TSTAMP:=$(shell git log -n 1 --pretty=%at . )

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
LIME_CODENAME:=bigbang

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
  TITLE:=libre-mesh web user interface based on LUCI
  SECTION:=net
  CATEGORY:=LiMe
  MAINTAINER:=p4u <<EMAIL>>
  URL:=http://libre-mesh.org
  DEPENDS:=+luci +luci-app-bmx6 +luci-app-batman-adv
endef

define Package/$(PKG_NAME)/description
	Web interface for Libre-Mesh
endef

define Build/Configure
endef

define Build/Compile
	@rm -rf ./build || true
	@cp -r ./src ./build
	@sed -i '/^--!.*/d' ./build/*.lua
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/lime
	$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
	$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/lime
	$(INSTALL_DIR) $(1)/www/luci-static/resources/lime
	$(CP) ./build/model/* $(1)/usr/lib/lua/luci/model/cbi/lime/
	$(CP) ./build/controller/* $(1)/usr/lib/lua/luci/controller/
	$(CP) ./build/view/* $(1)/usr/lib/lua/luci/view/lime/
	$(CP) ./build/static/* $(1)/www/luci-static/resources/lime/
endef

$(eval $(call BuildPackage,$(PKG_NAME)))<commit_msg>lime-webui: don't create unnecessary ./build subdir when building<commit_after>#
# Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=lime-webui
PKG_VERSION=$(GIT_COMMIT_DATE)-$(GIT_COMMIT_TSTAMP)
GIT_COMMIT_DATE:=$(shell git log -n 1 --pretty=%ad --date=short . )
GIT_COMMIT_TSTAMP:=$(shell git log -n 1 --pretty=%at . )

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
LIME_CODENAME:=bigbang

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
  TITLE:=libre-mesh web user interface based on LUCI
  SECTION:=net
  CATEGORY:=LiMe
  MAINTAINER:=p4u <<EMAIL>>
  URL:=http://libre-mesh.org
  DEPENDS:=+luci +luci-app-bmx6 +luci-app-batman-adv
endef

define Package/$(PKG_NAME)/description
	Web interface for Libre-Mesh
endef

define Build/Compile
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/lime
	$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
	$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/lime
	$(INSTALL_DIR) $(1)/www/luci-static/resources/lime
	$(CP) ./src/model/* $(1)/usr/lib/lua/luci/model/cbi/lime/
	$(CP) ./src/controller/* $(1)/usr/lib/lua/luci/controller/
	$(CP) ./src/view/* $(1)/usr/lib/lua/luci/view/lime/
	$(CP) ./src/static/* $(1)/www/luci-static/resources/lime/
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
{'fraction_non_alphanumeric': 0.18616087109237794, 'fraction_numerical': 0.014752370916754479, 'mean_word_length': 4.498069498069498, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '898089', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1151, 'n_words': 207}