mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2024 IOPSYS Software Solutions AB
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=port-trigger
|
|
PKG_VERSION:=1.0.2
|
|
|
|
LOCAL_DEV:=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/network/port-trigger.git
|
|
PKG_SOURCE_VERSION:=715fa689e5c22721d8ccd9d4e1cbe290caca3662
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MIRROR_HASH:=skip
|
|
endif
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../bbfdm/bbfdm.mk
|
|
|
|
define Package/port-trigger
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Port Trigger Daemon
|
|
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +kmod-ipt-trigger +kmod-ip6t-trigger +iptables-mod-nfqueue
|
|
DEPENDS+=+libbbfdm-api +libbbfdm-ubus +dm-service
|
|
endef
|
|
|
|
define Package/port-trigger/description
|
|
Manage port trigger
|
|
endef
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
$(CP) -rf ./port-trigger/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
define Package/port-trigger/install
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/lib/port-trigger
|
|
$(CP) ./files/* $(1)/
|
|
|
|
$(INSTALL_BIN) ./files/etc/init.d/port-trigger $(1)/etc/init.d/
|
|
$(INSTALL_DATA) ./files/etc/config/port-trigger $(1)/etc/config/
|
|
$(INSTALL_DATA) ./files/lib/port-trigger/port_trigger.sh $(1)/lib/port-trigger/
|
|
$(BBFDM_INSTALL_MS_PLUGIN) $(PKG_BUILD_DIR)/bbf_plugin/libporttrigger.so $(1) firewallmngr
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,port-trigger))
|