blob: c96b26eb2b8f70ba506832a5d7ea3f69c13fd0ab [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}"
Patrick Williamsd541ec52022-04-30 07:41:26 -05003LICENSE = "GPL-2.0-or-later"
Willy Tu72a9b772021-02-09 15:32:01 -08004LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5
Patrick Williamsbb99d222022-01-24 15:55:09 -06006SRC_URI = "git://github.com/yrutschle/sslh;branch=master;protocol=https"
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}