1 # This include file contains global definitions for the
2 # various NIS packages.
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 MAINTAINER ?= "John Bowler <jbowler@acm.org>"
9 SECTION ?= "console/networking"
10 PRIORITY ?= "optional"
13 # Override these *after* the include file if necessary!
14 SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
16 inherit autotools gettext
18 # install is broken because src/Makefile heroically adds '-s'
19 # to the install flags - passing -s to the build /usr/bin/install!
20 # install-strip gets it right but installs ypbind -m <default>,
21 # not -m 555. In an OE build this is not, so far as I can see,
22 # a security problem (and this fix to the build problem is *much*
23 # easier and more maintainable.)
25 oe_runmake 'DESTDIR=${D}' install-strip
28 # An attempt to build on uclibc will fail, causing annoyance,
29 # so force the package to be skipped here (this will cause a
30 # 'nothing provides' error)
32 os = bb.data.getVar("TARGET_OS", d, 1)
33 if os == "linux-uclibc":
34 raise bb.parse.SkipPackage("NIS functionality requires rpcsvc/yp.h, uClibC does not provide this")