merge of '45fb4fa94d52a65c3a3fa636c6122139173dfa8d'
[vuplus_openembedded] / packages / nis / nis.inc
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 ?= "console/networking"
9 PRIORITY ?= "optional"
10 LICENSE ?= "GPL-2"
11
12 # Override these *after* the include file if necessary!
13 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/net/NIS/${P}.tar.bz2"
14
15 inherit autotools gettext
16
17 # install is broken because src/Makefile heroically adds '-s'
18 # to the install flags - passing -s to the build /usr/bin/install!
19 # install-strip gets it right but installs ypbind -m <default>,
20 # not -m 555.  In an OE build this is not, so far as I can see,
21 # a security problem (and this fix to the build problem is *much*
22 # easier and more maintainable.)
23 do_install() {
24         oe_runmake 'DESTDIR=${D}' install-strip
25 }
26
27 # An attempt to build on uclibc will fail, causing annoyance,
28 # so force the package to be skipped here (this will cause a
29 # 'nothing provides' error)
30 python () {
31     os = bb.data.getVar("TARGET_OS", d, 1)
32     if os == "linux-uclibc":
33         raise bb.parse.SkipPackage("NIS functionality requires rpcsvc/yp.h, uClibC does not provide this")
34 }