diff options
Diffstat (limited to 'meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb')
-rw-r--r-- | meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb index be2897cdb4..a75e4e1bf6 100644 --- a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb +++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb | |||
@@ -15,6 +15,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ | |||
15 | file://fix_host_path.patch \ | 15 | file://fix_host_path.patch \ |
16 | file://obsolete_automake_macros.patch \ | 16 | file://obsolete_automake_macros.patch \ |
17 | ${UCLIBCPATCHES} \ | 17 | ${UCLIBCPATCHES} \ |
18 | file://rpcbind.conf \ | ||
19 | file://rpcbind.service \ | ||
18 | " | 20 | " |
19 | 21 | ||
20 | UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \ | 22 | UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \ |
@@ -27,7 +29,7 @@ SRC_URI[sha256sum] = "c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497 | |||
27 | 29 | ||
28 | PR = "r4" | 30 | PR = "r4" |
29 | 31 | ||
30 | inherit autotools update-rc.d | 32 | inherit autotools update-rc.d systemd |
31 | 33 | ||
32 | PACKAGECONFIG ??= "tcp-wrappers" | 34 | PACKAGECONFIG ??= "tcp-wrappers" |
33 | PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers" | 35 | PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers" |
@@ -35,6 +37,11 @@ PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers" | |||
35 | INITSCRIPT_NAME = "rpcbind" | 37 | INITSCRIPT_NAME = "rpcbind" |
36 | INITSCRIPT_PARAMS = "start 43 S . start 32 0 6 . stop 81 1 ." | 38 | INITSCRIPT_PARAMS = "start 43 S . start 32 0 6 . stop 81 1 ." |
37 | 39 | ||
40 | SYSTEMD_SERVICE_${PN} = "rpcbind.service" | ||
41 | SYSTEMD_AUTO_ENABLE = "disable" | ||
42 | |||
43 | EXTRA_OECONF += " --enable-warmstarts " | ||
44 | |||
38 | do_install_append () { | 45 | do_install_append () { |
39 | mv ${D}${bindir} ${D}${sbindir} | 46 | mv ${D}${bindir} ${D}${sbindir} |
40 | 47 | ||
@@ -43,4 +50,11 @@ do_install_append () { | |||
43 | -e 's,/sbin/,${sbindir}/,g' \ | 50 | -e 's,/sbin/,${sbindir}/,g' \ |
44 | ${WORKDIR}/init.d > ${D}${sysconfdir}/init.d/rpcbind | 51 | ${WORKDIR}/init.d > ${D}${sysconfdir}/init.d/rpcbind |
45 | chmod 0755 ${D}${sysconfdir}/init.d/rpcbind | 52 | chmod 0755 ${D}${sysconfdir}/init.d/rpcbind |
53 | |||
54 | install -m 0755 ${WORKDIR}/rpcbind.conf ${D}${sysconfdir} | ||
55 | install -d ${D}${systemd_unitdir}/system | ||
56 | install -m 0644 ${WORKDIR}/rpcbind.service ${D}${systemd_unitdir}/system | ||
57 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
58 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
59 | ${D}${systemd_unitdir}/system/rpcbind.service | ||
46 | } | 60 | } |