diff options
Diffstat (limited to 'meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb')
-rw-r--r-- | meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb new file mode 100644 index 0000000000..b7324766f7 --- /dev/null +++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.1.bb | |||
@@ -0,0 +1,64 @@ | |||
1 | SUMMARY = "Universal Addresses to RPC Program Number Mapper" | ||
2 | DESCRIPTION = "The rpcbind utility is a server that converts RPC \ | ||
3 | program numbers into universal addresses." | ||
4 | SECTION = "console/network" | ||
5 | HOMEPAGE = "http://sourceforge.net/projects/rpcbind/" | ||
6 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=201237&atid=976751" | ||
7 | DEPENDS = "libtirpc quota" | ||
8 | |||
9 | LICENSE = "BSD" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \ | ||
11 | file://src/rpcinfo.c;beginline=1;endline=27;md5=f8a8cd2cb25ac5aa16767364fb0e3c24" | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ | ||
14 | file://0001-rpcbind-rpcuser-not-being-set-in-Makefile.am.patch \ | ||
15 | file://init.d \ | ||
16 | ${UCLIBCPATCHES} \ | ||
17 | file://rpcbind.conf \ | ||
18 | file://rpcbind.socket \ | ||
19 | file://rpcbind.service \ | ||
20 | " | ||
21 | |||
22 | UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \ | ||
23 | file://0002-uclibc-rpcsvc-defines.patch \ | ||
24 | " | ||
25 | UCLIBCPATCHES ?= "" | ||
26 | |||
27 | SRC_URI[md5sum] = "0a5f9c2142af814c55d957aaab3bcc68" | ||
28 | SRC_URI[sha256sum] = "da169ff877a5a07581fad50a9a808ac6e96f0c277a3df49a7ef005778428496e" | ||
29 | |||
30 | inherit autotools update-rc.d systemd pkgconfig | ||
31 | |||
32 | PACKAGECONFIG ??= "tcp-wrappers" | ||
33 | PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers" | ||
34 | |||
35 | INITSCRIPT_NAME = "rpcbind" | ||
36 | INITSCRIPT_PARAMS = "start 12 2 3 4 5 . stop 60 0 1 6 ." | ||
37 | |||
38 | SYSTEMD_SERVICE_${PN} = "rpcbind.service rpcbind.socket" | ||
39 | |||
40 | inherit useradd | ||
41 | |||
42 | USERADD_PACKAGES = "${PN}" | ||
43 | USERADD_PARAM_${PN} = "--system --no-create-home --home-dir / \ | ||
44 | --shell /bin/false --user-group rpc" | ||
45 | |||
46 | EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc" | ||
47 | |||
48 | do_install_append () { | ||
49 | mv ${D}${bindir} ${D}${sbindir} | ||
50 | |||
51 | install -d ${D}${sysconfdir}/init.d | ||
52 | sed -e 's,/etc/,${sysconfdir}/,g' \ | ||
53 | -e 's,/sbin/,${sbindir}/,g' \ | ||
54 | ${WORKDIR}/init.d > ${D}${sysconfdir}/init.d/rpcbind | ||
55 | chmod 0755 ${D}${sysconfdir}/init.d/rpcbind | ||
56 | |||
57 | install -m 0755 ${WORKDIR}/rpcbind.conf ${D}${sysconfdir} | ||
58 | install -d ${D}${systemd_unitdir}/system | ||
59 | install -m 0644 ${WORKDIR}/rpcbind.socket ${D}${systemd_unitdir}/system | ||
60 | install -m 0644 ${WORKDIR}/rpcbind.service ${D}${systemd_unitdir}/system | ||
61 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
62 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
63 | ${D}${systemd_unitdir}/system/rpcbind.service | ||
64 | } | ||