blob: 42cda6cb4500c031443987f8719e4b6c09d9cc16 [file] [log] [blame]
William A. Kennington IIIe3f1bd82021-07-25 23:51:49 -07001PR = "r2"
Willy Tu72a9b772021-02-09 15:32:01 -08002PV = "0.1+git${SRCPV}"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5
6SRC_URI = "git://github.com/yrutschle/sslh"
William A. Kennington IIIfa2f8902021-08-05 16:47:31 -07007SRCREV = "63f9c4a582f79f4d0e484efe0ccaeed77a79f7df"
Willy Tu72a9b772021-02-09 15:32:01 -08008S = "${WORKDIR}/git"
9
William A. Kennington IIIe3f1bd82021-07-25 23:51:49 -070010inherit perlnative
11
12DEPENDS += "conf2struct-native"
Willy Tu72a9b772021-02-09 15:32:01 -080013DEPENDS += "libbsd"
14DEPENDS += "libcap"
15DEPENDS += "libconfig"
16DEPENDS += "systemd"
William A. Kennington IIIfa2f8902021-08-05 16:47:31 -070017DEPENDS += "pcre2"
Willy Tu72a9b772021-02-09 15:32:01 -080018
19EXTRA_OEMAKE += "DESTDIR=${D}"
20EXTRA_OEMAKE += "PREFIX=${prefix}"
21EXTRA_OEMAKE += "USELIBCAP=1"
22EXTRA_OEMAKE += "USELIBBSD=1"
23EXTRA_OEMAKE += "USESYSTEMD=1"
24
William A. Kennington IIIe3f1bd82021-07-25 23:51:49 -070025do_configure() {
26 oe_runmake distclean
William A. Kennington III837bfa82021-07-26 00:01:36 -070027}
28
Willy Tu72a9b772021-02-09 15:32:01 -080029do_compile() {
William A. Kennington III0cf84852021-08-06 13:32:06 -070030 # Workaround for a non-installed and broken echosrv
31 sed -i 's,^\(all:.*\) echosrv,\1,' ${S}/Makefile
32
William A. Kennington IIIe3f1bd82021-07-25 23:51:49 -070033 # Workaround for the broken dependencies in the Makefile
34 oe_runmake sslh-conf.h
William A. Kennington III0cf84852021-08-06 13:32:06 -070035
William A. Kennington III837bfa82021-07-26 00:01:36 -070036 oe_runmake
Willy Tu72a9b772021-02-09 15:32:01 -080037}
38
39do_install() {
William A. Kennington III837bfa82021-07-26 00:01:36 -070040 oe_runmake install
Willy Tu72a9b772021-02-09 15:32:01 -080041}