<commit_before>#
# Copyright (C) 2009 <NAME> <<EMAIL>>
#
# This is free software, licensed under the Apache 2.0 license.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=sysupgrade-atheros
PKG_RELEASE:=1

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

include $(INCLUDE_DIR)/package.mk

define Package/sysupgrade-atheros
  SECTION:=luci
  CATEGORY:=LuCI
  SUBMENU:=Freifunk
  TITLE:=Experimental sysupgrade support for Atheros SoC
  DEPENDS:=@TARGET_atheros +base-files
endef

define Package/sysupgrade-atheros/description
  This package implements experimental sysupgrade support for Atheros SoC devices
  like the classic Fonera or the D-Link DIR-300.
  See https://lists.openwrt.org/pipermail/openwrt-devel/2009-June/004499.html for details.
endef

define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/sysupgrade-atheros/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
  if ! grep -q /etc/firewall.freifunk /etc/config/firewall; then
    uci add firewall include >/dev/null
    uci set firewall.@include[-1].path=/etc/firewall.freifunk
    uci commit firewall
  fi
}
endef

define Package/sysupgrade-atheros/install
	$(CP) ./files/* $(1)/
endef

$(eval $(call BuildPackage,sysupgrade-atheros))<commit_msg>contrib/package/sysupgrade-atheros: fix postinstall<commit_after>#
# Copyright (C) 2009 <NAME> <<EMAIL>>
#
# This is free software, licensed under the Apache 2.0 license.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=sysupgrade-atheros
PKG_RELEASE:=1

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

include $(INCLUDE_DIR)/package.mk

define Package/sysupgrade-atheros
  SECTION:=luci
  CATEGORY:=LuCI
  SUBMENU:=Freifunk
  TITLE:=Experimental sysupgrade support for Atheros SoC
  DEPENDS:=@TARGET_atheros +base-files
endef

define Package/sysupgrade-atheros/description
  This package implements experimental sysupgrade support for Atheros SoC devices
  like the classic Fonera or the D-Link DIR-300.
  See https://lists.openwrt.org/pipermail/openwrt-devel/2009-June/004499.html for details.
endef

define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
endef

define Build/Configure
endef

define Build/Compile
endef

define Package/sysupgrade-atheros/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
  if [ -f /lib/upgrade/kill-ffwatchd.sh ]; then
    rm -f /lib/upgrade/kill-ffwatchd.sh
  fi
}
endef

define Package/sysupgrade-atheros/install
	$(CP) ./files/* $(1)/
endef

$(eval $(call BuildPackage,sysupgrade-atheros))
{'fraction_non_alphanumeric': 0.1180024164317358, 'fraction_numerical': 0.017317760773258157, 'mean_word_length': 4.671232876712328, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '3006557', 'n_tokens_mistral': 965, 'n_tokens_neox': 874, 'n_words': 207}