From: Jarod Wilson <jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Jarod Wilson <jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH rdma-core 4/6] redhat/spec: fix up %post scriptlets
Date: Wed, 21 Dec 2016 17:08:38 -0500 [thread overview]
Message-ID: <20161221220840.36268-5-jarod@redhat.com> (raw)
In-Reply-To: <20161221220840.36268-1-jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
The split packaging spec is missing systemd restart bits for ibacm and
iwpmd, and has incorrect ldconfig calls. The base package has no libs in
it, that should have been on the libibverbs sub-package, and the other
lib sub-packages need one as well.
Signed-off-by: Jarod Wilson <jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
redhat/rdma-core.spec | 37 +++++++++++++++++++++++++++++++------
1 file changed, 31 insertions(+), 6 deletions(-)
diff --git a/redhat/rdma-core.spec b/redhat/rdma-core.spec
index 42d624b..1f51720 100644
--- a/redhat/rdma-core.spec
+++ b/redhat/rdma-core.spec
@@ -267,20 +267,45 @@ install -D -m0644 redhat/srp_daemon.service %{buildroot}%{_unitdir}/
# Delete the package's init.d scripts
rm -rf %{buildroot}/%{_initrddir}/
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+# libibverbs
+%post -n libibverbs -p /sbin/ldconfig
+%postun -n libibverbs -p /sbin/ldconfig
+# libibcm
+%post -n libibcm -p /sbin/ldconfig
+%postun -n libibcm -p /sbin/ldconfig
+
+# libibumad
+%post -n libibumad -p /sbin/ldconfig
+%postun -n libibumad -p /sbin/ldconfig
+
+# librdmacm
+%post -n librdmacm -p /sbin/ldconfig
+%postun -n librdmacm -p /sbin/ldconfig
+
+# ibacm
%post -n ibacm
%systemd_post ibacm.service
-
%preun -n ibacm
%systemd_preun ibacm.service
-
%postun -n ibacm
%systemd_postun_with_restart ibacm.service
-%post -n libibcm -p /sbin/ldconfig
-%postun -n libibcm -p /sbin/ldconfig
+# srp_daemon
+%post -n srp_daemon
+%systemd_post srp_daemon.service
+%preun -n srp_daemon
+%systemd_preun srp_daemon.service
+%postun -n srp_daemon
+%systemd_postun_with_restart srp_daemon.service
+
+# iwpmd
+%post -n iwpmd
+%systemd_post iwpmd.service
+%preun -n iwpmd
+%systemd_preun iwpmd.service
+%postun -n iwpmd
+%systemd_postun_with_restart iwpmd.service
%files
%dir %{_sysconfdir}/rdma
--
2.10.0
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-12-21 22:08 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-21 22:08 [PATCH rdma-core 0/6] redhat/spec: various fixes and cleanups Jarod Wilson
[not found] ` <20161221220840.36268-1-jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-21 22:08 ` [PATCH rdma-core 1/6] redhat/spec: call it srp_daemon in desc, not srptools Jarod Wilson
2016-12-21 22:08 ` [PATCH rdma-core 2/6] redhat/spec: improve base package description Jarod Wilson
2016-12-21 22:08 ` [PATCH rdma-core 3/6] redhat/spec: use fully versioned Requires on base package Jarod Wilson
2016-12-21 22:08 ` Jarod Wilson [this message]
2016-12-21 22:08 ` [PATCH rdma-core 5/6] redhat/spec: clean up rsocket packaging Jarod Wilson
[not found] ` <20161221220840.36268-6-jarod-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-22 7:17 ` Jarod Wilson
[not found] ` <140dc3aa-6088-c4cf-5a8a-1a0426f55cd3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-22 17:33 ` Jason Gunthorpe
[not found] ` <20161222173302.GA29518-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-12-22 18:15 ` Doug Ledford
[not found] ` <74c5651b-4125-0a7a-3184-d510814cdc0d-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-22 18:22 ` Jason Gunthorpe
2016-12-22 18:23 ` Jarod Wilson
[not found] ` <5f0f6060-deb4-da27-c6a0-12d1ede4ca2b-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-22 18:28 ` Doug Ledford
2016-12-21 22:08 ` [PATCH rdma-core 6/6] redhat/spec: make sure docdir is owned Jarod Wilson
2016-12-21 23:40 ` [PATCH rdma-core 0/6] redhat/spec: various fixes and cleanups Jason Gunthorpe
[not found] ` <20161221234014.GA13538-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-12-22 7:32 ` Jarod Wilson
[not found] ` <0d77c962-607b-1e05-4fbf-41195446128d-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-22 17:38 ` Jason Gunthorpe
[not found] ` <20161222173807.GA15461-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-12-22 18:17 ` Doug Ledford
[not found] ` <e300b2ab-c963-d755-895d-29c8a6dbdc94-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-22 20:28 ` Jason Gunthorpe
[not found] ` <20161222202832.GA10732-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-12-22 21:38 ` Doug Ledford
2016-12-22 16:53 ` Doug Ledford
[not found] ` <fe84ce7a-dd7f-1b63-ac84-5a0ed5f3bcea-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-12-22 17:06 ` Jarod Wilson
2016-12-22 18:03 ` Jarod Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161221220840.36268-5-jarod@redhat.com \
--to=jarod-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox