contrib/package: remove dependency on base-files from sysupgrade-aheros
[project/luci.git] / contrib / package / sysupgrade-atheros / Makefile
1 #
2 # Copyright (C) 2009 Jo-Philipp Wich <xm@subsignal.org>
3 #
4 # This is free software, licensed under the Apache 2.0 license.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=sysupgrade-atheros
10 PKG_RELEASE:=2
11
12 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/sysupgrade-atheros
17 SECTION:=luci
18 CATEGORY:=LuCI
19 SUBMENU:=Freifunk
20 TITLE:=Experimental sysupgrade support for Atheros SoC
21 DEPENDS:=@TARGET_atheros
22 endef
23
24 define Package/sysupgrade-atheros/description
25 This package implements experimental sysupgrade support for Atheros SoC devices
26 like the classic Fonera or the D-Link DIR-300.
27 See https://lists.openwrt.org/pipermail/openwrt-devel/2009-June/004499.html for details.
28 endef
29
30 define Build/Prepare
31 mkdir -p $(PKG_BUILD_DIR)
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 endef
39
40 define Package/sysupgrade-atheros/postinst
41 #!/bin/sh
42 [ -n "$${IPKG_INSTROOT}" ] || {
43 if [ -f /lib/upgrade/kill-ffwatchd.sh ]; then
44 rm -f /lib/upgrade/kill-ffwatchd.sh
45 fi
46 }
47 endef
48
49 define Package/sysupgrade-atheros/install
50 $(CP) ./files/* $(1)/
51 endef
52
53 $(eval $(call BuildPackage,sysupgrade-atheros))