xref: /OK3568_Linux_fs/buildroot/package/tcf-agent/tcf-agent.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# tcf-agent
4#
5################################################################################
6
7TCF_AGENT_VERSION = 1.7.0
8# the tar.xz link was broken the time this file got authored
9TCF_AGENT_SOURCE = org.eclipse.tcf.agent-$(TCF_AGENT_VERSION).tar.gz
10TCF_AGENT_SITE = http://git.eclipse.org/c/tcf/org.eclipse.tcf.agent.git/snapshot
11# see https://wiki.spdx.org/view/Legal_Team/License_List/Licenses_Under_Consideration
12TCF_AGENT_LICENSE = BSD-3-Clause
13TCF_AGENT_LICENSE_FILES = agent/edl-v10.html
14
15TCF_AGENT_DEPENDENCIES = util-linux
16TCF_AGENT_SUBDIR = agent
17
18# there is not much purpose for the shared lib,
19# if wont be used (unmodifed) outside the tcf-agent application
20TCF_AGENT_CONF_OPTS = \
21	-DBUILD_SHARED_LIBS=OFF \
22	-DTCF_MACHINE=$(call qstrip,$(BR2_PACKAGE_TCF_AGENT_ARCH))
23
24define TCF_AGENT_INSTALL_INIT_SYSTEMD
25	$(INSTALL) -D -m 644 package/tcf-agent/tcf-agent.service \
26		$(TARGET_DIR)/usr/lib/systemd/system/tcf-agent.service
27endef
28
29define TCF_AGENT_INSTALL_INIT_SYSV
30	$(INSTALL) -D -m 755 package/tcf-agent/S55tcf-agent \
31		$(TARGET_DIR)/etc/init.d/S55tcf-agent
32endef
33
34$(eval $(cmake-package))
35