From: Sagi Grimberg Date: Wed, 24 Apr 2019 21:49:42 +0000 (-0700) Subject: spec, make: Add discovery.conf to the package files list X-Git-Tag: v1.9~79 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bda498e1af89db45411b786b4389af43e4ca9131;p=users%2Fsagi%2Fnvme-cli.git spec, make: Add discovery.conf to the package files list Lets add it as part of the package with a little documentation. Reviewed-by: Minwoo Im Signed-off-by: Sagi Grimberg --- diff --git a/Makefile b/Makefile index 02299c45..4bfbebbd 100644 --- a/Makefile +++ b/Makefile @@ -102,6 +102,9 @@ install-etc: $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/nvme touch $(DESTDIR)$(SYSCONFDIR)/nvme/hostnqn touch $(DESTDIR)$(SYSCONFDIR)/nvme/hostid + if [ ! -f $(DESTDIR)$(SBINDIR)/nvme/discovery.conf ]; then \ + $(INSTALL) -m 644 -T ./etc/discovery.conf.in $(DESTDIR)$(SYSCONFDIR)/nvme/discovery.conf; \ + fi install-spec: install-bin install-man install-bash-completion install-zsh-completion install-etc install: install-spec install-hostparams diff --git a/etc/discovery.conf.in b/etc/discovery.conf.in new file mode 100644 index 00000000..14e0d9c3 --- /dev/null +++ b/etc/discovery.conf.in @@ -0,0 +1,4 @@ +# Used for extracting default parameters for discovery +# +# Example: +# --transport= --traddr= --trsvcid= --host-traddr= diff --git a/nvme.spec.in b/nvme.spec.in index 147b64a5..6934f8fd 100644 --- a/nvme.spec.in +++ b/nvme.spec.in @@ -34,6 +34,7 @@ make install-spec DESTDIR=%{buildroot} PREFIX=/usr %dir %{_sysconfdir}/nvme %{_sysconfdir}/nvme/hostnqn %{_sysconfdir}/nvme/hostid +%{_sysconfdir}/nvme/discovery.conf %clean rm -rf $RPM_BUILD_ROOT