Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "netkit-rpc includes rpcinfo and rpcgen." |
| 2 | HOMEPAGE = "http://ftp.linux.org.uk/pub/linux/Networking/netkit" |
| 3 | SECTION = "net" |
| 4 | LICENSE = "SPL-1.0" |
| 5 | LIC_FILES_CHKSUM = "file://rpcinfo/rpcinfo.c;beginline=2;endline=3;md5=3e6339e3ce266e1122c5ba293e04bc89" |
| 6 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | DEPENDS += "libtirpc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | SRC_URI = "http://sources.openembedded.org/${BPN}-${PV}.tar.gz \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | file://gcc4.patch \ |
| 10 | file://0001-rpcgen-Fix-printf-formats.patch \ |
| 11 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | SRC_URI[md5sum] = "67212720482ea1aea9182a98653a9642" |
| 13 | SRC_URI[sha256sum] = "421d63b414162237a72867061f1bd3e3752a0d962cd5d30b5e933ddad8a14d3b" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 14 | |
| 15 | inherit update-alternatives |
| 16 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 17 | CFLAGS += "-I${STAGING_INCDIR}/tirpc" |
| 18 | LIBS += "-ltirpc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | |
| 20 | do_configure () { |
| 21 | ./configure --prefix=${prefix} |
| 22 | echo "LDFLAGS=${LDFLAGS}" > MCONFIG |
| 23 | echo "CC=${CC}" >> MCONFIG |
| 24 | echo "LD=${LD}" >> MCONFIG |
| 25 | echo "CFLAGS=${CFLAGS}" >> MCONFIG |
| 26 | echo "LDFLAGS=${LDFLAGS}" >> MCONFIG |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | echo "LIBS=${LIBS}" >> MCONFIG |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | do_compile () { |
| 31 | oe_runmake 'CC=${CC}' 'LD=${LD}' 'LDFLAGS=${LDFLAGS}' |
| 32 | } |
| 33 | |
| 34 | do_install () { |
| 35 | install -d ${D}${bindir} |
| 36 | install -d ${D}${mandir}/man1 |
| 37 | install -d ${D}${mandir}/man8 |
| 38 | |
| 39 | # remove strip flag |
| 40 | sed -i 's/install -s/install/' rpcinfo/Makefile |
| 41 | sed -i 's/install -s/install/' rpcgen/Makefile |
| 42 | |
| 43 | oe_runmake 'INSTALLROOT=${D}' 'BINMODE=0755' \ |
| 44 | 'DAEMONMODE=0755' 'MANMODE=0644' \ |
| 45 | 'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \ |
| 46 | 'MANDIR=${mandir}' install |
| 47 | } |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 48 | ALTERNATIVE_PRIORITY = "100" |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | ALTERNATIVE:${PN} = "rpcinfo" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 51 | ALTERNATIVE_LINK_NAME[rpcinfo] = "${bindir}/rpcinfo" |