]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
spec, Makefile: add /etc/nvme files to package files
authorSagi Grimberg <sagi@grimberg.me>
Wed, 24 Apr 2019 21:49:41 +0000 (14:49 -0700)
committerKeith Busch <keith.busch@intel.com>
Thu, 25 Apr 2019 14:59:22 +0000 (08:59 -0600)
commit038c03f20d25883c1ed1e86ce1f0f50f09a9a847
tree40db3f85067d36c404ea61f4a710499d78bc51cb
parentddd14514cb4cab5df7fa0f5ceedf1682505afb1d
spec, Makefile: add /etc/nvme files to package files

This way it can automatically be removed upon uninstallation
and we don't need %preun target. Also, this will also allow
to get these files on manual installation from sources.

Also, don't settle on the "file exists" check, use the '-s'
to check that it is not empty as well.

Lastly, in order to have hostnqn and hostid updated upon pkg
install, we have install-spec target that would omit hostnqn and
hostid files, and let the rpm %post do it (otherwise we
use the normal install target).

Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Makefile
nvme.spec.in