1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-26 17:47:36 +02:00
gluon-packages/gluon/gluon-config/Makefile
Matthias Schiffer c64bdff1c0 gluon-config: add /lib/gluon/release
/lib/gluon/release had been lost during the conversion to the new site config
format.
2014-05-19 00:09:14 +02:00

38 lines
804 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-config
PKG_VERSION:=$(GLUON_SITE_CODE)
PKG_RELEASE:=$(GLUON_RELEASE).$(shell $(MD5SUM) $(GLUON_SITEDIR)/site.conf)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/gluon-config
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Site-specific config files of Gluon
endef
define Package/gluon-config/description
Gluon community wifi mesh firmware framework: site configuration
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/gluon-config/install
$(INSTALL_DIR) $(1)/lib/gluon
$(CP) $(GLUON_SITEDIR)/site.conf $(1)/lib/gluon/site.conf
echo "$(GLUON_RELEASE)" > $(1)/lib/gluon/release
endef
$(eval $(call BuildPackage,gluon-config))