# # Copyright (C) 2017 Bjørn Mork # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=ubnt-bs PKG_VERSION:=0.01 PKG_RELEASE:=1 PKG_LICENSE:=GPL-2.0 PKG_MAINTAINER:=Bjørn Mork include $(INCLUDE_DIR)/package.mk define Package/ubnt-bs SECTION:=utils CATEGORY:=Utilities TITLE:=Boot select utility for Ubiquiti UniFi AC etc endef define Package/ubnt-bs/description Boot select utility for Ubiquiti UniFi AC etc endef define Build/Prepare $(INSTALL_DIR) $(PKG_BUILD_DIR) $(CP) ./src/* $(PKG_BUILD_DIR)/ endef define Build/Configure endef define Build/Compile $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ubnt-bs $(PKG_BUILD_DIR)/ubnt-bs.c endef define Package/ubnt-bs/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/ubnt-bs $(1)/usr/sbin/ endef $(eval $(call BuildPackage,ubnt-bs))