mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
33
package/sshguard/sshguard.mk
Normal file
33
package/sshguard/sshguard.mk
Normal file
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# sshguard
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SSHGUARD_VERSION = 2.4.0
|
||||
SSHGUARD_SITE = https://sourceforge.net/projects/sshguard/files/sshguard/$(SSHGUARD_VERSION)
|
||||
SSHGUARD_LICENSE = ISC, Public Domain (fnv hash), BSD-3-Clause (SimCList)
|
||||
SSHGUARD_LICENSE_FILES = COPYING
|
||||
|
||||
define SSHGUARD_INSTALL_CONFIG
|
||||
$(INSTALL) -D -m 0644 $(@D)/examples/sshguard.conf.sample \
|
||||
$(TARGET_DIR)/etc/sshguard.conf
|
||||
$(SED) '/^#BACKEND/c\BACKEND="/usr/libexec/sshg-fw-iptables"' \
|
||||
-e '/^#FILES/c\FILES="/var/log/messages"' $(TARGET_DIR)/etc/sshguard.conf
|
||||
endef
|
||||
SSHGUARD_POST_INSTALL_TARGET_HOOKS += SSHGUARD_INSTALL_CONFIG
|
||||
|
||||
define SSHGUARD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/sshguard/S49sshguard \
|
||||
$(TARGET_DIR)/etc/init.d/S49sshguard
|
||||
endef
|
||||
|
||||
define SSHGUARD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 $(@D)/examples/sshguard.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/sshguard.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -fs ../../../../usr/lib/systemd/system/sshguard.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/sshguard.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user