blob: 16c8f3279191bad0a74fd579a4f7c2c4f1a4900a [file] [log] [blame]
Willy Tu72a9b772021-02-09 15:32:01 -08001PR = "r1"
2PV = "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
Willy Tu72a9b772021-02-09 15:32:01 -080010DEPENDS += "libbsd"
11DEPENDS += "libcap"
12DEPENDS += "libconfig"
13DEPENDS += "systemd"
William A. Kennington IIIfa2f8902021-08-05 16:47:31 -070014DEPENDS += "pcre2"
Willy Tu72a9b772021-02-09 15:32:01 -080015
16EXTRA_OEMAKE += "DESTDIR=${D}"
17EXTRA_OEMAKE += "PREFIX=${prefix}"
18EXTRA_OEMAKE += "USELIBCAP=1"
19EXTRA_OEMAKE += "USELIBBSD=1"
20EXTRA_OEMAKE += "USESYSTEMD=1"
21
William A. Kennington III837bfa82021-07-26 00:01:36 -070022do_patch() {
23 # Workaround timestamps of the source being later than the generated,
24 # vendored output files. This non-determinism sometimes causes failures.
25 sed -i '/conf2struct/d' ${S}/Makefile
26}
27
Willy Tu72a9b772021-02-09 15:32:01 -080028do_compile() {
William A. Kennington III837bfa82021-07-26 00:01:36 -070029 oe_runmake
Willy Tu72a9b772021-02-09 15:32:01 -080030}
31
32do_install() {
William A. Kennington III837bfa82021-07-26 00:01:36 -070033 oe_runmake install
Willy Tu72a9b772021-02-09 15:32:01 -080034}