Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 545926 Details for
Bug 665232
net-misc/chrony - systemd fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
systemd fixes
0001-net-misc-chrony-systemd-changes-fixes.patch (text/plain), 3.51 KB, created by
Mike Gilbert
on 2018-09-04 17:59:04 UTC
(
hide
)
Description:
systemd fixes
Filename:
MIME Type:
Creator:
Mike Gilbert
Created:
2018-09-04 17:59:04 UTC
Size:
3.51 KB
patch
obsolete
>From 59e8605814db0c70cacc11ca606b46dc7033c4a3 Mon Sep 17 00:00:00 2001 >From: Mike Gilbert <floppym@gentoo.org> >Date: Tue, 4 Sep 2018 13:53:47 -0400 >Subject: [PATCH] net-misc/chrony: systemd changes/fixes > >Use upstream unit file with a couple tweaks. >Stop installing obsolete[1] ntp-units.d file. > >[1] https://github.com/systemd/systemd/commit/b72ddf0f4f552dd53d6404b6ddbc9f17d02b8e12 >--- > ...e1-r1.ebuild => chrony-3.4_pre1-r2.ebuild} | 10 ++++--- > net-misc/chrony/chrony-9999.ebuild | 10 ++++--- > .../chrony/files/chronyd-systemd-gentoo.patch | 28 +++++++++++++++++++ > 3 files changed, 40 insertions(+), 8 deletions(-) > rename net-misc/chrony/{chrony-3.4_pre1-r1.ebuild => chrony-3.4_pre1-r2.ebuild} (96%) > create mode 100644 net-misc/chrony/files/chronyd-systemd-gentoo.patch > >diff --git a/net-misc/chrony/chrony-3.4_pre1-r1.ebuild b/net-misc/chrony/chrony-3.4_pre1-r2.ebuild >similarity index 96% >rename from net-misc/chrony/chrony-3.4_pre1-r1.ebuild >rename to net-misc/chrony/chrony-3.4_pre1-r2.ebuild >index a39dc7b24dce..2b17b91c999e 100644 >--- a/net-misc/chrony/chrony-3.4_pre1-r1.ebuild >+++ b/net-misc/chrony/chrony-3.4_pre1-r2.ebuild >@@ -36,12 +36,15 @@ RESTRICT=test > > S="${WORKDIR}/${P/_/-}" > >+PATCHES=( >+ "${FILESDIR}"/chronyd-systemd-gentoo.patch >+) >+ > src_prepare() { >+ default > sed -i \ > -e 's:/etc/chrony\.conf:/etc/chrony/chrony.conf:g' \ > doc/* examples/* || die >- >- default > } > > src_configure() { >@@ -116,6 +119,5 @@ src_install() { > insinto /etc/logrotate.d > newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony > >- systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service >- systemd_enable_ntpunit 50-chrony chronyd.service >+ systemd_dounit examples/chronyd.service > } >diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild >index 1878efaf91d0..e749b9988842 100644 >--- a/net-misc/chrony/chrony-9999.ebuild >+++ b/net-misc/chrony/chrony-9999.ebuild >@@ -33,13 +33,16 @@ RDEPEND=" > RESTRICT=test > S="${WORKDIR}/${P/_/-}" > >+PATCHES=( >+ "${FILESDIR}"/chronyd-systemd-gentoo.patch >+) >+ > src_prepare() { >+ default > sed -i \ > -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \ > -e 's:/var/run:/run:g' \ > conf.c doc/*.adoc examples/* || die >- >- default > } > > src_configure() { >@@ -111,6 +114,5 @@ src_install() { > insinto /etc/logrotate.d > newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony > >- systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service >- systemd_enable_ntpunit 50-chrony chronyd.service >+ systemd_dounit examples/chronyd.service > } >diff --git a/net-misc/chrony/files/chronyd-systemd-gentoo.patch b/net-misc/chrony/files/chronyd-systemd-gentoo.patch >new file mode 100644 >index 000000000000..63d6b7ed3398 >--- /dev/null >+++ b/net-misc/chrony/files/chronyd-systemd-gentoo.patch >@@ -0,0 +1,28 @@ >+From ba3ddefc90f58d30a365104cf6e930333e3a2704 Mon Sep 17 00:00:00 2001 >+From: Mike Gilbert <floppym@gentoo.org> >+Date: Tue, 4 Sep 2018 13:01:06 -0400 >+Subject: [PATCH] Tweak chronyd.service for Gentoo >+ >+--- >+ examples/chronyd.service | 5 ++--- >+ 1 file changed, 2 insertions(+), 3 deletions(-) >+ >+diff --git a/examples/chronyd.service b/examples/chronyd.service >+index 1777413..ceed830 100644 >+--- a/examples/chronyd.service >++++ b/examples/chronyd.service >+@@ -7,9 +7,8 @@ ConditionCapability=CAP_SYS_TIME >+ >+ [Service] >+ Type=forking >+-PIDFile=/var/run/chrony/chronyd.pid >+-EnvironmentFile=-/etc/sysconfig/chronyd >+-ExecStart=/usr/sbin/chronyd $OPTIONS >++PIDFile=/run/chrony/chronyd.pid >++ExecStart=/usr/sbin/chronyd >+ PrivateTmp=yes >+ ProtectHome=yes >+ ProtectSystem=full >+-- >+2.18.0 >+ >-- >2.18.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 665232
: 545926