Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "Transport-Independent RPC library" |
| 2 | DESCRIPTION = "Libtirpc is a port of Suns Transport-Independent RPC library to Linux" |
| 3 | SECTION = "libs/network" |
| 4 | HOMEPAGE = "http://sourceforge.net/projects/libtirpc/" |
| 5 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=183075&atid=903784" |
Brad Bishop | f3f93bb | 2019-10-16 14:33:32 -0400 | [diff] [blame] | 6 | LICENSE = "BSD-3-Clause" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=f835cce8852481e4b2bbbdd23b5e47f3 \ |
| 8 | file://src/netname.c;beginline=1;endline=27;md5=f8a8cd2cb25ac5aa16767364fb0e3c24" |
| 9 | |
| 10 | PROVIDES = "virtual/librpc" |
| 11 | |
| 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \ |
| 13 | file://musl.patch \ |
| 14 | " |
| 15 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/libtirpc/files/libtirpc/" |
| 16 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/" |
| 17 | SRC_URI[md5sum] = "f5d2a623e9dfbd818d2f3f3a4a878e3a" |
| 18 | SRC_URI[sha256sum] = "2ca529f02292e10c158562295a1ffd95d2ce8af97820e3534fe1b0e3aec7561d" |
| 19 | |
| 20 | inherit autotools pkgconfig |
| 21 | |
| 22 | EXTRA_OECONF = "--disable-gssapi" |
| 23 | |
| 24 | do_install_append() { |
| 25 | chown root:root ${D}${sysconfdir}/netconfig |
Brad Bishop | 1d80a2e | 2019-11-15 16:35:03 -0500 | [diff] [blame] | 26 | 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 Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | BBCLASSEXTEND = "native nativesdk" |