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}" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 5 | |
| 6 | SRC_URI = "git://github.com/yrutschle/sslh" |
William A. Kennington III | fa2f890 | 2021-08-05 16:47:31 -0700 | [diff] [blame] | 7 | SRCREV = "63f9c4a582f79f4d0e484efe0ccaeed77a79f7df" |
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" |
| 16 | DEPENDS += "systemd" |
William A. Kennington III | fa2f890 | 2021-08-05 16:47:31 -0700 | [diff] [blame] | 17 | DEPENDS += "pcre2" |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 18 | |
| 19 | EXTRA_OEMAKE += "DESTDIR=${D}" |
| 20 | EXTRA_OEMAKE += "PREFIX=${prefix}" |
| 21 | EXTRA_OEMAKE += "USELIBCAP=1" |
| 22 | EXTRA_OEMAKE += "USELIBBSD=1" |
| 23 | EXTRA_OEMAKE += "USESYSTEMD=1" |
| 24 | |
William A. Kennington III | e3f1bd8 | 2021-07-25 23:51:49 -0700 | [diff] [blame] | 25 | do_configure() { |
| 26 | oe_runmake distclean |
William A. Kennington III | 837bfa8 | 2021-07-26 00:01:36 -0700 | [diff] [blame] | 27 | } |
| 28 | |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 29 | do_compile() { |
William A. Kennington III | 0cf8485 | 2021-08-06 13:32:06 -0700 | [diff] [blame] | 30 | # Workaround for a non-installed and broken echosrv |
| 31 | sed -i 's,^\(all:.*\) echosrv,\1,' ${S}/Makefile |
| 32 | |
William A. Kennington III | e3f1bd8 | 2021-07-25 23:51:49 -0700 | [diff] [blame] | 33 | # Workaround for the broken dependencies in the Makefile |
| 34 | oe_runmake sslh-conf.h |
William A. Kennington III | 0cf8485 | 2021-08-06 13:32:06 -0700 | [diff] [blame] | 35 | |
William A. Kennington III | 837bfa8 | 2021-07-26 00:01:36 -0700 | [diff] [blame] | 36 | oe_runmake |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | do_install() { |
William A. Kennington III | 837bfa8 | 2021-07-26 00:01:36 -0700 | [diff] [blame] | 40 | oe_runmake install |
Willy Tu | 72a9b77 | 2021-02-09 15:32:01 -0800 | [diff] [blame] | 41 | } |