blob: 04435e82fa5a1013407cacea19c6ec51b40a98fe (
plain)
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
|
SUMMARY = "SSHguard protects hosts from brute-force attacks against SSH and other services."
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://COPYING;md5=47a33fc98cd20713882c4d822a57bf4d"
PV = "1.6.1+git${SRCPV}"
SRCREV = "019a0406811a536faf3f90cdd7a0a538ee24d789"
SRC_URI = "git://bitbucket.org/sshguard/sshguard.git;protocol=https;branch=1.6 \
file://firewall \
file://sshguard.service \
file://sshguard-journalctl \
"
S = "${WORKDIR}/git"
DEPENDS = "flex-native"
inherit autotools-brokensep systemd
EXTRA_OECONF += " --with-firewall=iptables \
--with-iptables=${sbindir}/iptables \
"
do_install_append() {
install -d ${D}${libdir}/sshguard
install -m 0755 ${WORKDIR}/firewall ${D}${libdir}/sshguard
install -m 0755 ${WORKDIR}/sshguard-journalctl ${D}${libdir}/sshguard
sed -i -e s:/bin:${base_bindir}:g -e s:/usr/sbin:${sbindir}:g ${D}${libdir}/sshguard/sshguard-journalctl
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/sshguard.service ${D}${systemd_unitdir}/system
sed -i -e s:/usr/lib:${libdir}:g ${D}${systemd_unitdir}/system/sshguard.service
}
FILES_${PN} += "${systemd_unitdir}"
RDEPENDS_${PN} += "iptables"
|