blob: e6924858df20d3f1b8de67594e187fca84b4699e [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301SUMMARY = "Keynote tool and library"
2DESCRIPTION = "KeyNote is a simple and flexible trust-management \
3 system designed to work well for a variety of large- and small- \
4 scale Internet-based applications. \
5"
6HOMEPAGE = "http://www.cs.columbia.edu/~angelos/keynote.html"
7SECTION = "security"
8
9LICENSE = "ISC"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=3a265095c549c1808686a676f2699c98"
11
12MAIN_ID = "${@d.getVar('PV').split('.')[0]}"
13MINOR_ID = "${@d.getVar('PV').split('.')[1]}"
14SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}-${MAIN_ID}-${MINOR_ID}/${BPN}_${PV}.tar.gz \
15 file://configure-remove-hardcode-path.patch \
16 file://makefile-add-ldflags.patch \
17 file://run-ptest \
18"
19S = "${WORKDIR}/${BPN}-${PV}+dfsg.orig"
20
21inherit autotools-brokensep ptest
22
23SRC_URI[md5sum] = "a14553e6ad921b5c85026ce5bec3afe7"
24SRC_URI[sha256sum] = "38d2acfa1c3630a07adcb5c8fe92d2aef7f0e6d242b8998b2bbb1c6e4c408d46"
25
26DEPENDS = "flex openssl"
27
28EXTRA_OEMAKE += "test-sample -j1"
29
30do_install() {
31 install -D -m 0755 ${S}/keynote ${D}${bindir}/keynote
32 install -D -m 0644 ${S}/libkeynote.a ${D}${libdir}/libkeynote.a
33 install -D -m 0644 ${S}/keynote.h ${D}${includedir}/keynote.h
34}
35
36do_install_ptest() {
37 install -D -m 0755 ${S}/sample-app ${D}${PTEST_PATH}
38 cp -r ${S}/testsuite ${D}${PTEST_PATH}
39 sed -i 's|@PTEST_PATH@|${PTEST_PATH}|' ${D}${PTEST_PATH}/run-ptest
40}