blob: 633cececd4812c6c3c6779554ec327c7a19361ad [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "Transport-Independent RPC library"
2DESCRIPTION = "Libtirpc is a port of Suns Transport-Independent RPC library to Linux"
3SECTION = "libs/network"
4HOMEPAGE = "http://sourceforge.net/projects/libtirpc/"
5BUGTRACKER = "http://sourceforge.net/tracker/?group_id=183075&atid=903784"
Brad Bishopf3f93bb2019-10-16 14:33:32 -04006LICENSE = "BSD-3-Clause"
Brad Bishopc342db32019-05-15 21:57:59 -04007LIC_FILES_CHKSUM = "file://COPYING;md5=f835cce8852481e4b2bbbdd23b5e47f3 \
8 file://src/netname.c;beginline=1;endline=27;md5=f8a8cd2cb25ac5aa16767364fb0e3c24"
9
10PROVIDES = "virtual/librpc"
11
12SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \
13 file://musl.patch \
14 "
15UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/libtirpc/files/libtirpc/"
16UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
17SRC_URI[md5sum] = "f5d2a623e9dfbd818d2f3f3a4a878e3a"
18SRC_URI[sha256sum] = "2ca529f02292e10c158562295a1ffd95d2ce8af97820e3534fe1b0e3aec7561d"
19
20inherit autotools pkgconfig
21
22EXTRA_OECONF = "--disable-gssapi"
23
24do_install_append() {
25 chown root:root ${D}${sysconfdir}/netconfig
Brad Bishop1d80a2e2019-11-15 16:35:03 -050026 install -d ${D}${includedir}/rpc
27 install -d ${D}${includedir}/rpcsvc
28 for link_header in ${D}${includedir}/tirpc/rpc/*; do
29 if [ -f $link_header -a ! -e ${D}/${includedir}/rpc/$(basename $link_header) ]; then
30 ln -sf ../tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpc/$(basename $link_header)
31 fi
32 done
33 for link_header in ${D}${includedir}/tirpc/rpcsvc/*; do
34 if [ -f $link_header -a ! -e ${D}/${includedir}/rpcsvc/$(basename $link_header) ]; then
35 ln -sf ../tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpcsvc/$(basename $link_header)
36 fi
37 done
38 ln -sf tirpc/netconfig.h ${D}/${includedir}/netconfig.h
39
Brad Bishopc342db32019-05-15 21:57:59 -040040}
41
42BBCLASSEXTEND = "native nativesdk"