summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/sysupgrade-atheros/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-20 20:27:32 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-20 20:27:32 +0000
commit94322a831539b23fbf0433bf2fe2bbe92c3122da (patch)
tree3cc6d0ae5cf0b7c773b45cd8c0b07043577078e2 /contrib/package/sysupgrade-atheros/Makefile
parent4f6fca3be9238b6b125f0a97345996a72c17e1ce (diff)
contrib/package: add experimental sysupgrade support for the atheros target
Diffstat (limited to 'contrib/package/sysupgrade-atheros/Makefile')
-rw-r--r--contrib/package/sysupgrade-atheros/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/contrib/package/sysupgrade-atheros/Makefile b/contrib/package/sysupgrade-atheros/Makefile
new file mode 100644
index 0000000000..6b52ee1386
--- /dev/null
+++ b/contrib/package/sysupgrade-atheros/Makefile
@@ -0,0 +1,55 @@
+#
+# Copyright (C) 2009 Jo-Philipp Wich <xm@subsignal.org>
+#
+# 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:=+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))