William A. Kennington III | e3f1bd8 | 2021-07-25 23:51:49 -0700 | [diff] [blame] | 1 | PR = "r2" |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 2 | PV = "0.1+git${SRCPV}" |
Patrick Williams | d541ec5 | 2022-04-30 07:41:26 -0500 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-or-later" |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 5 | |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 6 | SRC_URI = "git://github.com/yrutschle/sslh;branch=master;protocol=https" |
William A. Kennington III | e21de05 | 2022-09-06 13:06:51 -0700 | [diff] [blame] | 7 | SRCREV = "7e3f723699764a9d000902af55e15e0eb151281f" |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 8 | S = "${WORKDIR}/git" |
| 9 | |
William A. Kennington III | e3f1bd8 | 2021-07-25 23:51:49 -0700 | [diff] [blame] | 10 | inherit perlnative |
| 11 | |
| 12 | DEPENDS += "conf2struct-native" |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 13 | DEPENDS += "libbsd" |
| 14 | DEPENDS += "libcap" |
| 15 | DEPENDS += "libconfig" |
William A. Kennington III | e21de05 | 2022-09-06 13:06:51 -0700 | [diff] [blame] | 16 | DEPENDS += "libev" |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 17 | DEPENDS += "systemd" |
William A. Kennington III | fa2f890 | 2021-08-05 16:47:31 -0700 | [diff] [blame] | 18 | DEPENDS += "pcre2" |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 19 | |
| 20 | EXTRA_OEMAKE += "DESTDIR=${D}" |
| 21 | EXTRA_OEMAKE += "PREFIX=${prefix}" |
| 22 | EXTRA_OEMAKE += "USELIBCAP=1" |
| 23 | EXTRA_OEMAKE += "USELIBBSD=1" |
| 24 | EXTRA_OEMAKE += "USESYSTEMD=1" |
| 25 | |
William A. Kennington III | e3f1bd8 | 2021-07-25 23:51:49 -0700 | [diff] [blame] | 26 | do_configure() { |
| 27 | oe_runmake distclean |
William A. Kennington III | 837bfa8 | 2021-07-26 00:01:36 -0700 | [diff] [blame] | 28 | } |
| 29 | |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 30 | do_compile() { |
William A. Kennington III | 0cf8485 | 2021-08-06 13:32:06 -0700 | [diff] [blame] | 31 | # Workaround for a non-installed and broken echosrv |
| 32 | sed -i 's,^\(all:.*\) echosrv,\1,' ${S}/Makefile |
| 33 | |
William A. Kennington III | e3f1bd8 | 2021-07-25 23:51:49 -0700 | [diff] [blame] | 34 | # Workaround for the broken dependencies in the Makefile |
| 35 | oe_runmake sslh-conf.h |
William A. Kennington III | 0cf8485 | 2021-08-06 13:32:06 -0700 | [diff] [blame] | 36 | |
William A. Kennington III | 837bfa8 | 2021-07-26 00:01:36 -0700 | [diff] [blame] | 37 | oe_runmake |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | do_install() { |
William A. Kennington III | 837bfa8 | 2021-07-26 00:01:36 -0700 | [diff] [blame] | 41 | oe_runmake install |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 42 | } |