blob: 9487fdc2c072b017577c876f402552da8a6abc33 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "netkit-rpc includes rpcinfo and rpcgen."
2HOMEPAGE = "http://ftp.linux.org.uk/pub/linux/Networking/netkit"
3SECTION = "net"
4LICENSE = "SPL-1.0"
5LIC_FILES_CHKSUM = "file://rpcinfo/rpcinfo.c;beginline=2;endline=3;md5=3e6339e3ce266e1122c5ba293e04bc89"
6
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007DEPENDS_append_libc-musl = " libtirpc"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008SRC_URI = "http://sources.openembedded.org/${BPN}-${PV}.tar.gz \
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009 file://gcc4.patch \
10 file://0001-rpcgen-Fix-printf-formats.patch \
11 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012SRC_URI[md5sum] = "67212720482ea1aea9182a98653a9642"
13SRC_URI[sha256sum] = "421d63b414162237a72867061f1bd3e3752a0d962cd5d30b5e933ddad8a14d3b"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc"
15LIBS_append_libc-musl = " -ltirpc"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016
17do_configure () {
18 ./configure --prefix=${prefix}
19 echo "LDFLAGS=${LDFLAGS}" > MCONFIG
20 echo "CC=${CC}" >> MCONFIG
21 echo "LD=${LD}" >> MCONFIG
22 echo "CFLAGS=${CFLAGS}" >> MCONFIG
23 echo "LDFLAGS=${LDFLAGS}" >> MCONFIG
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 echo "LIBS=${LIBS}" >> MCONFIG
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025}
26
27do_compile () {
28 oe_runmake 'CC=${CC}' 'LD=${LD}' 'LDFLAGS=${LDFLAGS}'
29}
30
31do_install () {
32 install -d ${D}${bindir}
33 install -d ${D}${mandir}/man1
34 install -d ${D}${mandir}/man8
35
36 # remove strip flag
37 sed -i 's/install -s/install/' rpcinfo/Makefile
38 sed -i 's/install -s/install/' rpcgen/Makefile
39
40 oe_runmake 'INSTALLROOT=${D}' 'BINMODE=0755' \
41 'DAEMONMODE=0755' 'MANMODE=0644' \
42 'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \
43 'MANDIR=${mandir}' install
44}