blob: d3357bea81b4357b078462f2bc7462955874dfc8 [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 IIIe21de052022-09-06 13:06:51 -07007SRCREV = "7e3f723699764a9d000902af55e15e0eb151281f"
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"
William A. Kennington IIIe21de052022-09-06 13:06:51 -070016DEPENDS += "libev"
Willy Tu72a9b772021-02-09 15:32:01 -080017DEPENDS += "systemd"
William A. Kennington IIIfa2f8902021-08-05 16:47:31 -070018DEPENDS += "pcre2"
Willy Tu72a9b772021-02-09 15:32:01 -080019
20EXTRA_OEMAKE += "DESTDIR=${D}"
21EXTRA_OEMAKE += "PREFIX=${prefix}"
22EXTRA_OEMAKE += "USELIBCAP=1"
23EXTRA_OEMAKE += "USELIBBSD=1"
24EXTRA_OEMAKE += "USESYSTEMD=1"
25
William A. Kennington IIIe3f1bd82021-07-25 23:51:49 -070026do_configure() {
27 oe_runmake distclean
William A. Kennington III837bfa82021-07-26 00:01:36 -070028}
29
Willy Tu72a9b772021-02-09 15:32:01 -080030do_compile() {
William A. Kennington III0cf84852021-08-06 13:32:06 -070031 # Workaround for a non-installed and broken echosrv
32 sed -i 's,^\(all:.*\) echosrv,\1,' ${S}/Makefile
33
William A. Kennington IIIe3f1bd82021-07-25 23:51:49 -070034 # Workaround for the broken dependencies in the Makefile
35 oe_runmake sslh-conf.h
William A. Kennington III0cf84852021-08-06 13:32:06 -070036
William A. Kennington III837bfa82021-07-26 00:01:36 -070037 oe_runmake
Willy Tu72a9b772021-02-09 15:32:01 -080038}
39
40do_install() {
William A. Kennington III837bfa82021-07-26 00:01:36 -070041 oe_runmake install
Willy Tu72a9b772021-02-09 15:32:01 -080042}