]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/nis/nis.inc
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / 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 MAINTAINER ?= "John Bowler <jbowler@acm.org>"
9 SECTION ?= "console/networking"
10 PRIORITY ?= "optional"
11 LICENSE ?= "GPL-2"
12
13 # Override these *after* the include file if necessary!
14 SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
15
16 inherit autotools gettext
17
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.)
24 do_install() {
25         oe_runmake 'DESTDIR=${D}' install-strip
26 }
27
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)
31 python () {
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")
35 }