Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | SUMMARY = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project" |
| 2 | HOMEPAGE = "http://lksctp.org" |
| 3 | SECTION = "net" |
| 4 | LICENSE = "LGPLv2.1 & GPLv2" |
| 5 | |
| 6 | LIC_FILES_CHKSUM = " \ |
| 7 | file://COPYING.lib;md5=0a1b79af951c42a9c8573533fbba9a92 \ |
| 8 | file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \ |
| 9 | " |
| 10 | |
| 11 | SRCREV = "1b077af62d83d53c34b1bde8bad6648149d5edf9" |
| 12 | |
| 13 | PV .= "+git${SRCPV}" |
| 14 | LK_REL = "1.0.18" |
| 15 | |
| 16 | SRC_URI = " \ |
| 17 | git://github.com/sctp/lksctp-tools.git \ |
| 18 | file://0001-withsctp-use-PACKAGE_VERSION-in-withsctp.h.patch \ |
| 19 | file://0001-configure.ac-add-CURRENT-REVISION-and-AGE-for-libsct.patch \ |
| 20 | file://0001-build-fix-netinet-sctp.h-not-to-be-installed.patch \ |
| 21 | file://0001-build-remove-v4.12-secondary-defines-in-favor-of-HAV.patch \ |
| 22 | file://0001-build-fix-probing-for-HAVE_SCTP_SENDV.patch \ |
| 23 | file://0001-build-0b0dce7a36fb-actually-belongs-to-v4.19.patch \ |
| 24 | file://0001-test_1_to_1_events.c-initialize-event-properly.patch \ |
| 25 | file://run-ptest \ |
| 26 | file://v4test.sh \ |
| 27 | file://v6test.sh \ |
| 28 | " |
| 29 | |
| 30 | S = "${WORKDIR}/git" |
| 31 | |
| 32 | BBCLASSEXTEND = "native" |
| 33 | |
| 34 | inherit autotools-brokensep pkgconfig binconfig ptest |
| 35 | |
| 36 | do_install_ptest () { |
| 37 | install -m 0755 ${WORKDIR}/v4test.sh ${D}${PTEST_PATH} |
| 38 | install -m 0755 ${WORKDIR}/v6test.sh ${D}${PTEST_PATH} |
| 39 | for testcase in `find ${B}/src/apps/.libs ${B}/src/func_tests/.libs -maxdepth 1 -type f -executable`; do |
| 40 | install $testcase ${D}${PTEST_PATH} |
| 41 | done |
| 42 | } |
| 43 | |
| 44 | SOLIBVERSION="${LK_REL}" |
| 45 | SOLIBMAJORVERSION="1" |
| 46 | |
| 47 | PACKAGES =+ "${PN}-withsctp ${PN}-utils" |
| 48 | |
| 49 | FILES_${PN} = " \ |
| 50 | ${libdir}/libsctp.so.${SOLIBVERSION} \ |
| 51 | ${libdir}/libsctp.so.${SOLIBMAJORVERSION} \ |
| 52 | " |
| 53 | |
| 54 | FILES_${PN}-withsctp = " \ |
| 55 | ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBVERSION} \ |
| 56 | ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBMAJORVERSION} \ |
| 57 | " |
| 58 | |
| 59 | FILES_${PN}-dev += " \ |
| 60 | ${libdir}/libsctp.so \ |
| 61 | ${libdir}/lksctp-tools/libwithsctp.so \ |
| 62 | ${datadir}/lksctp-tools/*.c \ |
| 63 | ${datadir}/lksctp-tools/*.h \ |
| 64 | " |
| 65 | |
| 66 | FILES_${PN}-utils = "${bindir}/*" |
| 67 | |
| 68 | RRECOMMENDS_${PN}-utils += "kernel-module-sctp" |
| 69 | RRECOMMENDS_${PN}-ptest += "kernel-module-sctp" |