-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
71 lines (56 loc) · 1.94 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# synology-crowdsec-firewall-bouncer-spk
#
# SPDX-License-Identifier: MIT
#
# Copyright (C) 2021-2022 Gerald Kerma <gandalf@gk2.net>
# Copyright (C) 2021-2022 CrowdSec <crowdsec@crowdsec.net>
#
SPK_NAME = crowdsec-firewall-bouncer
SPK_VERS = 0.0.22
SPK_REV = 5
SPK_ICON = src/$(SPK_NAME).png
DISPLAY_NAME = CrowdSec-Firewall-Bouncer
DESCRIPTION = Crowdsec-Firewall-Bouncer will fetch new and old decisions from a CrowdSec API to add them in a blocklist used by supported firewalls.
CHANGELOG = "1. Initial package for DSM7\n2. add ipset tool\n3. add ipset kernel modules\n3. add ipset tool\n3. DSM6 compatibility mode added\n4. First relase\n5. Fix Copyright"
THIRDPARTY = "yes"
HOMEPAGE = "https://www.crowdsec.net"
LICENSE = "MIT"
DISTRIBUTOR = "CrowdSec"
DISTRIBUTOR_URL = "https://www.crowdsec.net"
MAINTAINER = "CyberMind"
MAINTAINER_URL = "https://cybermind.fr"
RELOAD_UI = yes
STARTABLE = yes
DEPENDS = cross/$(SPK_NAME)
##DEPENDS += cross/ipset
DEPENDS += cross/ipset-kernel
##SPK_DEPENDS = "crowdsec"
OPTIONAL_DEPENDS = "crowdsec"
include ../../mk/spksrc.common.mk
ifeq ($(call version_ge, ${TCVERSION}, 7.0),1)
CONF_DIR = src/conf_7
SPK_GROUP = sc-crowdsec
SPK_USER = crowdsec
SYSTEM_GROUP = system
SERVICE_USER = auto
else ifeq ($(call version_ge, ${TCVERSION}, 6.0),1)
CONF_DIR = src/conf_6
SPK_GROUP = sc-crowdsec
SPK_USER = crowdsec
SYSTEM_GROUP = system
SERVICE_USER = root
endif
SERVICE_SETUP = src/service-setup.sh
PRE_STRIP_TARGET = nop
STRIP_TARGET = nop
POST_STRIP_TARGET = nop
SPK_USR_LOCAL_LINKS = bin:usr/sbin/crowdsec-firewall-bouncer
SPK_USR_LOCAL_LINKS += lib:lib/libmnl.so
SPK_USR_LOCAL_LINKS += lib:lib/libmnl.so.0
SPK_USR_LOCAL_LINKS += lib:lib/libmnl.so.0.2.0
SPK_USR_LOCAL_LINKS += bin:sbin/ipset
SPK_USR_LOCAL_LINKS += bin:sbin/ipset-translate
SPK_USR_LOCAL_LINKS += lib:lib/modules
SPK_COMMANDS = usr/sbin/crowdsec-firewall-bouncer
SPK_COMMANDS += sbin/ipset
include ../../mk/spksrc.spk.mk