Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | # This include file contains global definitions for the |
| 2 | # various NIS packages. |
| 3 | # |
| 4 | # These packages will only function correctly with glibc - |
| 5 | # the rpcsvc functionality is not present in uclibc |
| 6 | DESCRIPTION = "NIS Server and Tools" |
| 7 | HOMEPAGE = "http://www.linux-nis.org/nis/" |
| 8 | SECTION = "net" |
| 9 | LICENSE = "GPL-2.0" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 11 | |
| 12 | inherit autotools gettext pkgconfig |
| 13 | |
| 14 | # install is broken because src/Makefile heroically adds '-s' |
| 15 | # to the install flags - passing -s to the build /usr/bin/install! |
| 16 | # install-strip gets it right but installs ypbind -m <default>, |
| 17 | # not -m 555. In an OE build this is not, so far as I can see, |
| 18 | # a security problem (and this fix to the build problem is *much* |
| 19 | # easier and more maintainable.) |
| 20 | do_install() { |
| 21 | oe_runmake 'DESTDIR=${D}' install-strip |
| 22 | } |
| 23 | |
| 24 | # An attempt to build on uclibc will fail, causing annoyance, |
| 25 | # so force the package to be skipped here (this will cause a |
| 26 | # 'nothing provides' error) |
| 27 | python () { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 28 | os = d.getVar("TARGET_OS", True) |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | if os == "linux-uclibc": |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 30 | raise bb.parse.SkipRecipe("NIS functionality requires rpcsvc/yp.h, uClibC does not provide this") |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 31 | } |