include $(TOPDIR)/rules.mk

PKG_NAME:=fff-support
PKG_RELEASE:=2

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

include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
	SECTION:=base
	CATEGORY:=Freifunk
	TITLE:=Freifunk-Franken Support Scripts
	URL:=http://www.freifunk-franken.de
	DEPENDS:=+@BUSYBOX_CONFIG_ASH +fff-config +fff-hoodutils
endef

define Package/$(PKG_NAME)/description
	This is the Freifunk Franken Firmware support package.
	This packages provides smaller convenience scripts,
	not essential to the operation of the Firmware
endef

define Build/Prepare
	echo "all: " > $(PKG_BUILD_DIR)/Makefile
endef

define Build/Configure
	# nothing
endef

define Build/Compile
	# nothing
endef

define Package/$(PKG_NAME)/install
	$(CP) ./files/* $(1)/
	test -d ./$(BOARD) && $(CP) ./$(BOARD)/* $(1)/ || true
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
