blob: 1ad5f15b930595cef590987935eaf7abbf6a4c9d [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Multipurpose relay for bidirectional data transfer"
2DESCRIPTION = "Socat is a relay for bidirectional data \
3transfer between two independent data channels."
4HOMEPAGE = "http://www.dest-unreach.org/socat/"
5
6SECTION = "console/network"
7
Andrew Geissler82c905d2020-04-13 13:39:40 -05008LICENSE = "GPL-2.0-with-OpenSSL-exception"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060010 file://README;beginline=257;endline=287;md5=82520b052f322ac2b5b3dfdc7c7eea86"
Andrew Geissler82c905d2020-04-13 13:39:40 -050011
12SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \
13"
14
Andrew Geisslerd1e89492021-02-12 15:35:20 -060015SRC_URI[md5sum] = "36cad050ecf4981ab044c3fbd75c643f"
16SRC_URI[sha256sum] = "3faca25614e89123dff5045680549ecef519d02e331aaf3c4f5a8f6837c675e9"
Andrew Geissler82c905d2020-04-13 13:39:40 -050017
18inherit autotools
19
20EXTRA_AUTORECONF += "--exclude=autoheader"
21
22EXTRA_OECONF += "ac_cv_have_z_modifier=yes \
23 ac_cv_header_bsd_libutil_h=no \
24 sc_cv_termios_ispeed=no \
25 ${TERMBITS_SHIFTS} \
26"
27
28TERMBITS_SHIFTS ?= "sc_cv_sys_crdly_shift=9 \
29 sc_cv_sys_tabdly_shift=11 \
30 sc_cv_sys_csize_shift=4"
31
Patrick Williams213cb262021-08-07 19:21:33 -050032TERMBITS_SHIFTS:powerpc = "sc_cv_sys_crdly_shift=12 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050033 sc_cv_sys_tabdly_shift=10 \
34 sc_cv_sys_csize_shift=8"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036TERMBITS_SHIFTS:powerpc64 = "sc_cv_sys_crdly_shift=12 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050037 sc_cv_sys_tabdly_shift=10 \
38 sc_cv_sys_csize_shift=8"
39
Patrick Williams213cb262021-08-07 19:21:33 -050040PACKAGECONFIG:class-target ??= "tcp-wrappers readline openssl"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060041PACKAGECONFIG ??= "readline openssl"
Andrew Geissler82c905d2020-04-13 13:39:40 -050042PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
43PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060044PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
Andrew Geissler82c905d2020-04-13 13:39:40 -050045
46CFLAGS += "-fcommon"
47
Patrick Williams213cb262021-08-07 19:21:33 -050048do_install:prepend () {
Andrew Geissler82c905d2020-04-13 13:39:40 -050049 mkdir -p ${D}${bindir}
50 install -d ${D}${bindir} ${D}${mandir}/man1
51}
52
53BBCLASSEXTEND = "native nativesdk"