blob: 200eaf74d49979501ca46b59ba26021de0c60a71 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001# 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
6DESCRIPTION = "NIS Server and Tools"
7HOMEPAGE = "http://www.linux-nis.org/nis/"
8SECTION = "net"
9LICENSE = "GPL-2.0"
10LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
11
12inherit 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.)
20do_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)
27python () {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028 os = d.getVar("TARGET_OS", True)
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029 if os == "linux-uclibc":
Brad Bishop316dfdd2018-06-25 12:45:53 -040030 raise bb.parse.SkipRecipe("NIS functionality requires rpcsvc/yp.h, uClibC does not provide this")
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031}