mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/4] linuxptp: enable systemd support
Date: Tue, 24 May 2016 12:48:58 +0200	[thread overview]
Message-ID: <1464086940-24418-3-git-send-email-jbe@pengutronix.de> (raw)
In-Reply-To: <1464086940-24418-1-git-send-email-jbe@pengutronix.de>

The package comes with systemd support. This change makes use of it.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
---
 rules/linuxptp.make | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/rules/linuxptp.make b/rules/linuxptp.make
index 59cbb51..f4893a3 100644
--- a/rules/linuxptp.make
+++ b/rules/linuxptp.make
@@ -62,9 +62,15 @@ $(STATEDIR)/linuxptp.targetinstall:
 
 	@$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/ptp4l)
 	@$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/phc2sys)
+	@$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/phc_ctl)
 	@$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/pmc)
 	@$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/hwstamp_ctl)
 	@$(call install_alternative, linuxptp, 0, 0, 0644, /etc/gPTP.conf)
+# systemd support
+	@$(call install_alternative, linuxptp, 0, 0, 0644, /lib/systemd/system/ptp4l.service)
+	@$(call install_link, linuxptp, ../ptp4l.service, /lib/systemd/system/multi-user.target.wants/ptp4l.service)
+	@$(call install_alternative, linuxptp, 0, 0, 0644, /lib/systemd/system/phc2sys.service)
+	@$(call install_link, linuxptp, ../phc2sys.service, /lib/systemd/system/multi-user.target.wants/phc2sys.service)
 
 	@$(call install_finish, linuxptp)
 
-- 
2.8.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2016-05-24 10:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24 10:48 [ptxdist] Various changes from my collection Juergen Borleis
2016-05-24 10:48 ` [ptxdist] [PATCH 1/4] DTC: fix package description Juergen Borleis
2016-05-24 10:48 ` Juergen Borleis [this message]
2016-05-26  9:55   ` [ptxdist] [PATCH 2/4] linuxptp: enable systemd support Michael Olbrich
2016-05-24 10:48 ` [ptxdist] [PATCH 3/4] tcpdump: version bump 4.5.1 -> 4.7.1 Juergen Borleis
2016-05-24 10:49 ` [ptxdist] [PATCH 4/4] libmicrohttp: remove from staging by updating to a current release Juergen Borleis
2016-05-26  9:56 ` [ptxdist] Various changes from my collection Michael Olbrich

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=1464086940-24418-3-git-send-email-jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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