mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-09 23:34:51 +01:00
OpenWrt 21.02 will redownload from git over and over if PKG_MIRROR_HASH is not set. Set it to skip to prevent it from happening.
57 lines
1.2 KiB
Makefile
57 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2019 Iopsys
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=uspd
|
|
PKG_VERSION:=2.1.12
|
|
|
|
LOCAL_DEV:=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=1f7de68f127cb084820deafb6f0c5ced106bbd92
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/uspd.git
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MIRROR_HASH:=skip
|
|
endif
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/uspd
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=USP ubus backend
|
|
DEPENDS:=+libubox +ubus +libbbfdm
|
|
endef
|
|
|
|
define Package/uspd/description
|
|
Ubus based backend for TR-369/USP which can be used by other USP agents
|
|
running on top of it.
|
|
endef
|
|
|
|
TARGET_CFLAGS += \
|
|
-I$(STAGING_DIR)/usr/include \
|
|
-D_GNU_SOURCE
|
|
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
$(CP) -rf ~/git/uspd/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
define Package/uspd/install
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_BIN) ./files/uspd.init $(1)/etc/init.d/uspd
|
|
$(INSTALL_CONF) ./files/uspd.config $(1)/etc/config/uspd
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uspd $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,uspd))
|