forked from LibertyGlobal/memcr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memcr.bb
31 lines (23 loc) · 860 Bytes
/
memcr.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SUMMARY = "memory checkpoint and restore"
HOMEPAGE = "https://github.com/LibertyGlobal/memcr"
SECTION = "console/tools"
DEPENDS = "util-linux-native openssl lz4"
RDEPENDS_${PN} = "libcrypto lz4"
INSANE_SKIP:${PN} += "ldflags"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=0ba16794955006770904e8293abcbee5"
SRC_URI = "git://github.com/LibertyGlobal/memcr.git;protocol=https;branch=main"
SRCREV = "${AUTOREV}"
PV = "git${SRCPV}"
S = "${WORKDIR}/git"
do_compile () {
oe_runmake COMPRESS_LZ4=1 CHECKSUM_MD5=1 ENCRYPT=1
}
do_install () {
install -D -m 755 ${B}/memcr ${D}${bindir}/memcr
install -D -m 755 ${B}/memcr-client ${D}${bindir}/memcr-client
install -D -m 644 ${B}/libencrypt.so ${D}${libdir}/memcr/libencrypt.so
}
FILES_${PN} = "${bindir}/memcr"
FILES_${PN} += "${bindir}/memcr-client"
FILES_${PN} += "${libdir}/memcr/libencrypt.so"