Skip to contentSkip to conversation

rpcbind: install rpcbind.conf

PATCH New Yi Zhao 1 participant 1 message Nov 13, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 rpcbind: install rpcbind.conf

Although we provide rpcbind.conf, it isn't shipped to the package. Also fix the sysconfdir in rpcbind.service.

---
 .../rpcbind/rpcbind/0001-systemd-use-EnvironmentFile.patch      | 2 +-
 meta/recipes-extended/rpcbind/rpcbind_1.2.6.bb                  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
meta/recipes-extended/rpcbind/rpcbind/0001-systemd-use-EnvironmentFile.patch +1 -1
index b92f2cf7b1..79dc96050e 100644
@@ -21,7 +21,7 @@ index 2dd9471..47a46c0 100644
  AC_SUBST([_sbindir])
  AC_CONFIG_COMMANDS_PRE([eval eval _sbindir=$sbindir])
 +AC_SUBST([_sysconfdir])
-+AC_CONFIG_COMMANDS_PRE([eval eval _sysconfdir=$sbindir])
++AC_CONFIG_COMMANDS_PRE([eval eval _sysconfdir=$sysconfdir])
  
  AC_OUTPUT([Makefile systemd/rpcbind.service])
 diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
meta/recipes-extended/rpcbind/rpcbind_1.2.6.bb +1 -0
index 344faa37a4..dd89726afc 100644
@@ -48,6 +48,7 @@ do_install:append () {
 		-e 's,/sbin/,${sbindir}/,g' \
 		${WORKDIR}/init.d > ${D}${sysconfdir}/init.d/rpcbind
 	chmod 0755 ${D}${sysconfdir}/init.d/rpcbind
+	install -m 0644 ${WORKDIR}/rpcbind.conf ${D}${sysconfdir}/rpcbind.conf
 }
 
 ALTERNATIVE:${PN} = "rpcinfo"
Signature · 1 line
2.25.1