diff options
author | Torsten Veller <tove@gentoo.org> | 2006-03-25 09:50:41 +0000 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2006-03-25 09:50:41 +0000 |
commit | 9fac68bc0e187378e35834e726d784042143be17 (patch) | |
tree | a88a52f3998b8f6dbcee6a8f74d2901794084416 /net-misc/chrony | |
parent | New ebuild by myself (diff) | |
download | gentoo-2-9fac68bc0e187378e35834e726d784042143be17.tar.gz gentoo-2-9fac68bc0e187378e35834e726d784042143be17.tar.bz2 gentoo-2-9fac68bc0e187378e35834e726d784042143be17.zip |
Version bump (#105250). Additional GCC-4 fixes (#126283) and support for missing arches (#105250, #108146). Removed patch from bug #21058 which needs testing. Removed old ebuild.
(Portage version: 2.1_pre6-r6)
Diffstat (limited to 'net-misc/chrony')
-rw-r--r-- | net-misc/chrony/ChangeLog | 16 | ||||
-rw-r--r-- | net-misc/chrony/Manifest | 62 | ||||
-rw-r--r-- | net-misc/chrony/chrony-1.19.ebuild | 45 | ||||
-rw-r--r-- | net-misc/chrony/chrony-1.21.ebuild | 55 | ||||
-rw-r--r-- | net-misc/chrony/files/chrony-1.19-chrony.conf.example-gentoo.diff | 46 | ||||
-rw-r--r-- | net-misc/chrony/files/chrony-1.19-conf.c-gentoo.diff | 11 | ||||
-rw-r--r-- | net-misc/chrony/files/chrony-1.21-addrfilt.c.diff | 86 | ||||
-rw-r--r-- | net-misc/chrony/files/chrony-1.21-io_linux.h.diff | 43 | ||||
-rw-r--r-- | net-misc/chrony/files/chronyd.conf | 34 | ||||
-rw-r--r-- | net-misc/chrony/files/chronyd.rc | 34 | ||||
-rw-r--r-- | net-misc/chrony/files/digest-chrony-1.19 | 1 | ||||
-rw-r--r-- | net-misc/chrony/files/digest-chrony-1.21 | 3 |
12 files changed, 274 insertions, 162 deletions
diff --git a/net-misc/chrony/ChangeLog b/net-misc/chrony/ChangeLog index 7e8690589f51..4a1b77b5c6ad 100644 --- a/net-misc/chrony/ChangeLog +++ b/net-misc/chrony/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for net-misc/chrony -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/ChangeLog,v 1.22 2005/07/15 18:56:25 killerfox Exp $ +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/ChangeLog,v 1.23 2006/03/25 09:50:41 tove Exp $ + +*chrony-1.21 (25 Mar 2006) + + 25 Mar 2006; Torsten Veller <tove@gentoo.org> + -files/chrony-1.19-chrony.conf.example-gentoo.diff, + -files/chrony-1.19-conf.c-gentoo.diff, +files/chrony-1.21-addrfilt.c.diff, + +files/chrony-1.21-io_linux.h.diff, files/chronyd.conf, files/chronyd.rc, + -chrony-1.19.ebuild, +chrony-1.21.ebuild: + Version bump (#105250). Additional fixes for GCC-4 (#126283) and different + arches (#105250, #108146). Removed patch from bug #21058. + Testing is needed. + Removed chrony-1.19. 15 Jul 2005; Rene Nussbaumer <killerfox@gentoo.org> chrony-1.20-r1.ebuild: Stable on hppa. diff --git a/net-misc/chrony/Manifest b/net-misc/chrony/Manifest index d0f8bcb3edca..4db1719a1ee9 100644 --- a/net-misc/chrony/Manifest +++ b/net-misc/chrony/Manifest @@ -1,25 +1,45 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 565f5d4296870313099305a298cffc43 chrony-1.20.ebuild 1192 +MD5 fadb13558bf7484e8d3a2b555ce8c2d3 ChangeLog 3167 +RMD160 f1a029fc12d43377b5ec31e7267bffa3f38453bb ChangeLog 3167 +SHA256 2d26a0f7ef008cffd2617c2a46eaf1d3667204323309cd8dfd0638116f362ae0 ChangeLog 3167 MD5 984f0954ec16c0c10aca58c0329dd971 chrony-1.20-r1.ebuild 1312 -MD5 25e4a0383f6d77b8790b4aaa5030b502 ChangeLog 2658 -MD5 548e9ab8a2b35c85165c67105a5bbbe6 metadata.xml 600 -MD5 da92a35b9c34b8be089136c81c770d16 chrony-1.19.ebuild 1186 +RMD160 f8e2c6b262093a4d93e655270b9de345cd6b2c5b chrony-1.20-r1.ebuild 1312 +SHA256 a14e792a288125e64b1c4c86c976b3bb063f84d16e660c0ef5947bac946b2e93 chrony-1.20-r1.ebuild 1312 +MD5 565f5d4296870313099305a298cffc43 chrony-1.20.ebuild 1192 +RMD160 2f27cccc5e0d8ce0754359289fbf8bc0468cfc7e chrony-1.20.ebuild 1192 +SHA256 1a3980b4c4b22a874d8e9e98bf79b8e5b7b6bb71888e635ea16db5919295095e chrony-1.20.ebuild 1192 +MD5 45534a7cd3863987af4292ec228b90fa chrony-1.21.ebuild 1714 +RMD160 9d5bc366099645a1c8b8e9e43194b59a5f7a00b9 chrony-1.21.ebuild 1714 +SHA256 aeef8c67241248ce14994e047212599dc72466e9e6f9000714b19eb175cef1d3 chrony-1.21.ebuild 1714 MD5 fa94342edcd12320e3fc947c7921c771 files/chrony-1.20-chrony.conf.example-gentoo.diff 1592 -MD5 c0e426c615798b7c75afc3b1aadcd727 files/digest-chrony-1.19 63 -MD5 530b19caa6b14e1501530401f8cdc986 files/digest-chrony-1.20 63 -MD5 f671c412f74ccf0da928e81b2806fe0c files/chronyd.rc 1618 -MD5 d364a3eb5fa42974f0676a61433cca10 files/chronyd.conf 786 -MD5 b778857b5d802a10ec3e9ffd6ba9d226 files/chrony-1.19-conf.c-gentoo.diff 342 +RMD160 582a9ee48d12f677772c54c3e97f6baa2c19811d files/chrony-1.20-chrony.conf.example-gentoo.diff 1592 +SHA256 8eb8a3cec402ab25b24c595d113f41c901e975260e7106b738e6ec72368efb97 files/chrony-1.20-chrony.conf.example-gentoo.diff 1592 +MD5 b778857b5d802a10ec3e9ffd6ba9d226 files/chrony-1.20-conf.c-gentoo.diff 342 +RMD160 8e7eaf6091171d7cca51e8f82f7c94f15f8231ad files/chrony-1.20-conf.c-gentoo.diff 342 +SHA256 c99dd789529c1cb7a3533069f5cc66be672910c23cd7c7c1aea710bb4779e61f files/chrony-1.20-conf.c-gentoo.diff 342 MD5 19fc6632603680a145092ca56fe9aaa1 files/chrony-1.20-sys_linux.c-gentoo.diff 797 -MD5 fa94342edcd12320e3fc947c7921c771 files/chrony-1.19-chrony.conf.example-gentoo.diff 1592 +RMD160 37354808d59030b3f9deb0b6f3310e06a54f47a3 files/chrony-1.20-sys_linux.c-gentoo.diff 797 +SHA256 3e1a0dc953c989a91e93da19b95c60b2b0c314aa4a3822bad59d5f82118f2529 files/chrony-1.20-sys_linux.c-gentoo.diff 797 +MD5 b9bcc47cfb5fd0ac9a2a8b07de8946c1 files/chrony-1.21-addrfilt.c.diff 2399 +RMD160 a8b0ed18efe301260bb274b58317a807a105a0c5 files/chrony-1.21-addrfilt.c.diff 2399 +SHA256 2f12a17be48f697c8610c99ce75d5cb1fdd9104cadf96f266649d29bd6549a3e files/chrony-1.21-addrfilt.c.diff 2399 +MD5 4ffb608d9233a525d9e8532b53c0c532 files/chrony-1.21-io_linux.h.diff 1494 +RMD160 29199dbe6262bfc659a62df0b59a8101603b9d8e files/chrony-1.21-io_linux.h.diff 1494 +SHA256 946a86169cb463888776c6e117dbfd098eb4f0766466df5ac188418d7fef738c files/chrony-1.21-io_linux.h.diff 1494 +MD5 1d938108f3d5c11a61cdcdd2b8c5d6c0 files/chronyd.conf 589 +RMD160 7f96720d5e901b70a9bc3215d14f00cbd5750176 files/chronyd.conf 589 +SHA256 41e9bac3951691d792c6b53d91e9a4615262824482bb5f1bcf0dcd09078cc608 files/chronyd.conf 589 +MD5 3f8107191e310c78781ddb499751867e files/chronyd.rc 1570 +RMD160 55e444429bb7ce861ce2e3d41a0d3648caa166af files/chronyd.rc 1570 +SHA256 fe023841e0dddaaee347fc104bf5794248604b1f120e0862a0396d45648ae63a files/chronyd.rc 1570 +MD5 530b19caa6b14e1501530401f8cdc986 files/digest-chrony-1.20 63 +RMD160 a2b1b483f59995eaa39b239d0378b57baf79f908 files/digest-chrony-1.20 63 +SHA256 95061b36b6886bc6455aa6f71035068d01b6398e1d0e3e7301b987265dfe63ea files/digest-chrony-1.20 63 MD5 530b19caa6b14e1501530401f8cdc986 files/digest-chrony-1.20-r1 63 -MD5 b778857b5d802a10ec3e9ffd6ba9d226 files/chrony-1.20-conf.c-gentoo.diff 342 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) - -iD8DBQFDLb/TV3J2n04EauwRAhRnAKC//2Y1Oo2r5oh3PKtKPpfMCIUP1gCcDQeH -lL6DgSdgVBs+K+HVTf7ku4s= -=0jo5 ------END PGP SIGNATURE----- +RMD160 a2b1b483f59995eaa39b239d0378b57baf79f908 files/digest-chrony-1.20-r1 63 +SHA256 95061b36b6886bc6455aa6f71035068d01b6398e1d0e3e7301b987265dfe63ea files/digest-chrony-1.20-r1 63 +MD5 cac4a306475f85d33d04e514e069f958 files/digest-chrony-1.21 235 +RMD160 45f480b810278c715cc2180f33a3f240dc0d44fc files/digest-chrony-1.21 235 +SHA256 ee3be7360bd99c50ca14561828371a71ca351cd8f1d4f80d5fb2c600792be43b files/digest-chrony-1.21 235 +MD5 548e9ab8a2b35c85165c67105a5bbbe6 metadata.xml 600 +RMD160 02356b5ba718888e29c602782509c30b4323a83d metadata.xml 600 +SHA256 7f3f94ecf2d1d6e2f0804c697c11b2b3e07e99d50926cac46e1b72bf0146ee66 metadata.xml 600 diff --git a/net-misc/chrony/chrony-1.19.ebuild b/net-misc/chrony/chrony-1.19.ebuild deleted file mode 100644 index ee4004f20657..000000000000 --- a/net-misc/chrony/chrony-1.19.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.19.ebuild,v 1.7 2004/07/01 20:52:51 squinky86 Exp $ - -inherit eutils - -DESCRIPTION="NTP client and server programs" -SRC_URI="http://chrony.sunsite.dk/download/${P}.tar.gz" -HOMEPAGE="http://chrony.sunsite.dk/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 -sparc" -IUSE="readline" - -DEPEND="virtual/libc - readline? ( >=sys-libs/readline-4.1-r4 )" - -src_unpack() { - unpack ${A} ; cd ${S} - - epatch ${FILESDIR}/${P}-conf.c-gentoo.diff - epatch ${FILESDIR}/${P}-chrony.conf.example-gentoo.diff -} - -src_compile() { - econf `use_enable readline` || die - emake all docs || die -} - -src_install() { - # the chrony install is brain-dead so we'll just do it ourselves - dobin chronyc - dosbin chronyd - - dodoc chrony.txt README examples/chrony.{conf,keys}.example - dohtml chrony.html - doman *.{1,5,8} - doinfo chrony.info* - - dodir /etc/chrony - exeinto /etc/init.d ; newexe ${FILESDIR}/chronyd.rc chronyd - insinto /etc/conf.d ; newins ${FILESDIR}/chronyd.conf chronyd - dosed "s:the documentation directory:/usr/share/doc/${PF}/:" /etc/init.d/chronyd -} diff --git a/net-misc/chrony/chrony-1.21.ebuild b/net-misc/chrony/chrony-1.21.ebuild new file mode 100644 index 000000000000..f2c0f304aa46 --- /dev/null +++ b/net-misc/chrony/chrony-1.21.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.21.ebuild,v 1.1 2006/03/25 09:50:41 tove Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="NTP client and server programs" +HOMEPAGE="http://chrony.sunsite.dk/" +SRC_URI="http://chrony.sunsite.dk/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~mips ~ppc ~sparc ~x86" +IUSE="readline" + +DEPEND="readline? ( >=sys-libs/readline-4.1-r4 )" + +src_unpack() { + unpack ${A} ; cd "${S}" + epatch "${FILESDIR}"/${PN}-1.20-conf.c-gentoo.diff + epatch "${FILESDIR}"/${PN}-1.20-chrony.conf.example-gentoo.diff + epatch "${FILESDIR}"/${P}-addrfilt.c.diff + epatch "${FILESDIR}"/${P}-io_linux.h.diff + + # Allow Hz=200 detection (#21058, Alexander Papaspyrou) +# epatch "${FILESDIR}"/${PN}-1.20-sys_linux.c-gentoo.diff + + sed -i "s:/etc/chrony:/etc/chrony/chrony:g" \ + chrony.conf.5 faq.txt chrony.texi || die "sed failed" +} + +src_compile() { + export CC="$(tc-getCC)" + econf $(use_enable readline) || die "configure failed" + emake all || die "make failed" + emake docs || die "make docs failed" +} + +src_install() { + dobin chronyc || die "dobin failed" + dosbin chronyd || die "dosbin failed" + + dodoc chrony.txt README examples/chrony.{conf,keys}.example || die "dodoc failed" + dohtml chrony.html || die "dohtml failed" + doman *.{1,5,8} + doinfo chrony.info* + + exeinto /etc/init.d + newexe "${FILESDIR}"/chronyd.rc chronyd || die "newexe failed" + insinto /etc/conf.d + newins "${FILESDIR}"/chronyd.conf chronyd || die "newins failed" + dosed "s:the documentation directory:/usr/share/doc/${PF}/:" /etc/init.d/chronyd + + keepdir /var/{lib,log}/chrony /etc/chrony +} diff --git a/net-misc/chrony/files/chrony-1.19-chrony.conf.example-gentoo.diff b/net-misc/chrony/files/chrony-1.19-chrony.conf.example-gentoo.diff deleted file mode 100644 index 7f1f2c9cccfc..000000000000 --- a/net-misc/chrony/files/chrony-1.19-chrony.conf.example-gentoo.diff +++ /dev/null @@ -1,46 +0,0 @@ ---- examples/chrony.conf.example.orig 2003-06-16 11:59:01.000000000 -0400 -+++ examples/chrony.conf.example 2003-06-16 12:00:13.000000000 -0400 -@@ -3,5 +3,5 @@ - # - # This is an example chrony configuration file. You should copy it to --# /etc/chrony.conf after uncommenting and editing the options that you -+# /etc/chrony/chrony.conf after uncommenting and editing the options that you - # want to enable. I have not included the more obscure options. Refer - # to the documentation for these. -@@ -91,5 +91,5 @@ - # generally want this, so it is uncommented. - --driftfile /etc/chrony.drift -+driftfile /etc/chrony/chrony.drift - - # If you want to use the program called chronyc to configure aspects of -@@ -100,5 +100,5 @@ - # assumed by default. - --keyfile /etc/chrony.keys -+keyfile /etc/chrony/chrony.keys - - # Tell chronyd which numbered key in the file is used as the password -@@ -158,6 +158,6 @@ - ! log measurements statistics tracking - --If you have real time clock support enabled (see below), you might want --this line instead: -+# If you have real time clock support enabled (see below), you might want -+# this line instead: - - ! log measurements statistics tracking rtc -@@ -269,5 +269,5 @@ - # kernel. (Note, these options apply only to Linux.) - --! rtcfile /etc/chrony.rtc -+! rtcfile /etc/chrony/chrony.rtc - - # Your RTC can be set to keep Universal Coordinated Time (UTC) or local -@@ -285,5 +285,5 @@ - # using devfs), uncomment and edit the following line. - --! rtcdevice /dev/misc/rtc -+rtcdevice /dev/misc/rtc - - ####################################################################### diff --git a/net-misc/chrony/files/chrony-1.19-conf.c-gentoo.diff b/net-misc/chrony/files/chrony-1.19-conf.c-gentoo.diff deleted file mode 100644 index fabc47097ff9..000000000000 --- a/net-misc/chrony/files/chrony-1.19-conf.c-gentoo.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- conf.c.orig Sun May 12 14:07:31 2002 -+++ conf.c Sun May 12 14:07:52 2002 -@@ -45,7 +45,7 @@ - - /* ================================================== */ - --#define DEFAULT_CONF_FILE "/etc/chrony.conf" -+#define DEFAULT_CONF_FILE "/etc/chrony/chrony.conf" - - /* ================================================== */ - /* Forward prototypes */ diff --git a/net-misc/chrony/files/chrony-1.21-addrfilt.c.diff b/net-misc/chrony/files/chrony-1.21-addrfilt.c.diff new file mode 100644 index 000000000000..07f7cb36b511 --- /dev/null +++ b/net-misc/chrony/files/chrony-1.21-addrfilt.c.diff @@ -0,0 +1,86 @@ +Patched addrfilt.c to fix gcc 4.0 build problem. +"array type has incomplete element type" +Taken from Debian: <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298709> +diff -ur chrony-1.21/addrfilt.c chrony-1.21/addrfilt.c +--- chrony-1.21/addrfilt.c 2005-08-11 22:32:54.000000000 +0200 ++++ chrony-1.21/addrfilt.c 2005-11-15 04:05:06.000000000 +0100 +@@ -43,17 +43,15 @@ + /* Define the table size */ + #define TABLE_SIZE (1UL<<NBITS) + +-struct _TableNode; +- +-typedef struct _TableNode ExtendedTable[TABLE_SIZE]; +- + typedef enum {DENY, ALLOW, AS_PARENT} State; + + typedef struct _TableNode { + State state; +- ExtendedTable *extended; ++ struct _TableNode *extended; + } TableNode; + ++typedef struct _TableNode ExtendedTable[TABLE_SIZE]; ++ + struct ADF_AuthTableInst { + TableNode base; + }; +@@ -101,7 +99,7 @@ + + if (node->extended != NULL) { + for (i=0; i<TABLE_SIZE; i++) { +- child_node = &((*(node->extended))[i]); ++ child_node = node->extended + i; + close_node(child_node); + } + Free(node->extended); +@@ -124,10 +122,11 @@ + + if (node->extended == NULL) { + +- node->extended = MallocNew(ExtendedTable); ++ ++ node->extended = (TableNode *) MallocArray(ExtendedTable, TABLE_SIZE); + + for (i=0; i<TABLE_SIZE; i++) { +- child_node = &((*(node->extended))[i]); ++ child_node = node->extended + i; + child_node->state = AS_PARENT; + child_node->extended = NULL; + } +@@ -168,7 +167,7 @@ + if (!(node->extended)) { + open_node(node); + } +- node = &((*(node->extended))[subnet]); ++ node = node->extended + subnet; + bits_to_go -= NBITS; + } + +@@ -187,7 +186,7 @@ + if (!(node->extended)) { + open_node(node); + } +- node = &((*(node->extended))[subnet]); ++ node = node->extended + subnet; + bits_to_go -= NBITS; + } + +@@ -199,7 +198,7 @@ + } + + for (i=subnet, j=0; j<N; i++, j++) { +- this_node = &((*(node->extended))[i]); ++ this_node = node->extended + i; + if (delete_children) { + close_node(this_node); + } +@@ -283,7 +282,7 @@ + if (node->extended) { + subnet = get_subnet(residual); + residual = get_residual(residual); +- node = &((*(node->extended))[subnet]); ++ node = node->extended + subnet; + } else { + /* Make decision on this node */ + finished = 1; diff --git a/net-misc/chrony/files/chrony-1.21-io_linux.h.diff b/net-misc/chrony/files/chrony-1.21-io_linux.h.diff new file mode 100644 index 000000000000..3a9085c0f638 --- /dev/null +++ b/net-misc/chrony/files/chrony-1.21-io_linux.h.diff @@ -0,0 +1,43 @@ +Patched io_linux.h to add missing architectures. +#error "I don't know the values of the _IOC_* constants for your architecture" +Taken from Debian's chrony_1.21-2.diff.gz. +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=339764 +--- chrony-1.21/io_linux.h ++++ chrony-1.21/io_linux.h +@@ -6,26 +6,24 @@ + + /* Hmm. These constants vary a bit between systems. */ + /* (__sh__ includes both sh and sh64) */ +-#if defined(__i386__) || defined(__sh__) ++#if defined(__alpha__) || defined(__sparc__) || defined(__mips__) || defined(__ppc__) || defined(__ppc64__) || defined(__sparc64__) + #define CHRONY_IOC_NRBITS 8 + #define CHRONY_IOC_TYPEBITS 8 +-#define CHRONY_IOC_SIZEBITS 14 ++#define CHRONY_IOC_SIZEBITS 13 + #define CHRONY_IOC_DIRBITS 2 + +-#define CHRONY_IOC_NONE 0U +-#define CHRONY_IOC_WRITE 1U +-#define CHRONY_IOC_READ 2U +-#elif defined(__alpha__) || defined(__sparc__) ++#define CHRONY_IOC_NONE 1U ++#define CHRONY_IOC_READ 2U ++#define CHRONY_IOC_WRITE 4U ++#else + #define CHRONY_IOC_NRBITS 8 + #define CHRONY_IOC_TYPEBITS 8 +-#define CHRONY_IOC_SIZEBITS 13 ++#define CHRONY_IOC_SIZEBITS 14 + #define CHRONY_IOC_DIRBITS 2 + +-#define CHRONY_IOC_NONE 1U +-#define CHRONY_IOC_READ 2U +-#define CHRONY_IOC_WRITE 4U +-#else +-#error "I don't know the values of the _IOC_* constants for your architecture" ++#define CHRONY_IOC_NONE 0U ++#define CHRONY_IOC_WRITE 1U ++#define CHRONY_IOC_READ 2U + #endif + + #define CHRONY_IOC_NRMASK ((1 << CHRONY_IOC_NRBITS)-1) diff --git a/net-misc/chrony/files/chronyd.conf b/net-misc/chrony/files/chronyd.conf index 0677197012a5..3cb25637fb4c 100644 --- a/net-misc/chrony/files/chronyd.conf +++ b/net-misc/chrony/files/chronyd.conf @@ -1,22 +1,18 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chronyd.conf,v 1.3 2004/07/14 23:55:32 agriffis Exp $ +# /etc/conf.d/chronyd.conf -CFGFILE=/etc/chrony/chrony.conf +CFGFILE="/etc/chrony/chrony.conf" -# -# Configuration dependant options : -# -s - Set system time from RTC if rtcfile directive present -# -r - Reload sample histories if dumponexit directive present -# -# The combination of "-s -r" allows chronyd to perform long term averaging of -# the gain or loss rate across system reboots and shutdowns. -# -ARGS="" -# -# devfs creates the device for RTC if it's compiled into kernel -test -c /dev/rtc && { - grep -q '^rtcfile' $CFGFILE && ARGS="$ARGS -s" -} -grep -q '^dumponexit$' $CFGFILE && ARGS="$ARGS -r" +# Configuration dependant options : +# -s - Set system time from RTC if rtcfile directive present +# -r - Reload sample histories if dumponexit directive present +# +# The combination of "-s -r" allows chronyd to perform long term averaging of +# the gain or loss rate across system reboots and shutdowns. +ARGS="" + +# devfs creates the device for RTC if it's compiled into kernel +test -c /dev/rtc && { + grep -q '^rtcfile' "${CFGFILE}" && ARGS="${ARGS} -s" +} +grep -q '^dumponexit$' "${CFGFILE}" && ARGS="${ARGS} -r" diff --git a/net-misc/chrony/files/chronyd.rc b/net-misc/chrony/files/chronyd.rc index 54737451cd0d..caee53d1245d 100644 --- a/net-misc/chrony/files/chronyd.rc +++ b/net-misc/chrony/files/chronyd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chronyd.rc,v 1.6 2004/10/23 16:56:51 wmertens Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chronyd.rc,v 1.7 2006/03/25 09:50:41 tove Exp $ depend() { need net @@ -9,12 +9,12 @@ depend() { } checkconfig() { - # Note that /etc/chrony.keys is *NOT* checked. This + # Note that /etc/chrony/chrony.keys is *NOT* checked. This # is because the user may have specified another key # file, and we don't want to force the user to use that # exact name for the key file. - if [ ! -f $CFGFILE ] ; then - eerror "Please create $CFGFILE and the" + if [[ ! -f ${CFGFILE} ]] ; then + eerror "Please create ${CFGFILE} and the" eerror "chrony key file (usually /etc/chrony/chrony.keys)" eerror "by using the" eerror "" @@ -24,35 +24,35 @@ checkconfig() { eerror "files (from the documentation directory)" eerror "as templates." return 1 - else - # Actually, I tried it, and chrony seems to ignore the pidfile - # option. I'm going to leave it here anyway, since you never - # know if it might be handy - PIDFILE=`awk '/^ *pidfile/{print $2}' $CFGFILE` + else + # Actually, I tried it, and chrony seems to ignore the pidfile + # option. I'm going to leave it here anyway, since you never + # know if it might be handy + PIDFILE=`awk '/^ *pidfile/{print $2}' "${CFGFILE}"` fi return 0 } start() { checkconfig || return $? - - [ -n "$PIDFILE" ] || PIDFILE=/var/run/chronyd.pid - + + [[ -n "${PIDFILE}" ]] || PIDFILE=/var/run/chronyd.pid + ebegin "Starting chronyd" start-stop-daemon --start --quiet \ --exec /usr/sbin/chronyd \ - --pidfile $PIDFILE \ - -- -f $CFGFILE $ARGS + --pidfile "${PIDFILE}" \ + -- -f "${CFGFILE}" ${ARGS} eend $? "Failed to start chronyd" } stop() { checkconfig || return $? - - [ -n "$PIDFILE" ] || PIDFILE=/var/run/chronyd.pid + + [[ -n "${PIDFILE}" ]] || PIDFILE=/var/run/chronyd.pid ebegin "Stopping chronyd" start-stop-daemon --stop --quiet \ - --pidfile $PIDFILE + --pidfile "${PIDFILE}" eend $? "Failed to stop chronyd" } diff --git a/net-misc/chrony/files/digest-chrony-1.19 b/net-misc/chrony/files/digest-chrony-1.19 deleted file mode 100644 index f419b6ec30ad..000000000000 --- a/net-misc/chrony/files/digest-chrony-1.19 +++ /dev/null @@ -1 +0,0 @@ -MD5 d1f55269fe0d6013de5455764752a52d chrony-1.19.tar.gz 311066 diff --git a/net-misc/chrony/files/digest-chrony-1.21 b/net-misc/chrony/files/digest-chrony-1.21 new file mode 100644 index 000000000000..01a8f27f64db --- /dev/null +++ b/net-misc/chrony/files/digest-chrony-1.21 @@ -0,0 +1,3 @@ +MD5 84f76a73dff5a3c9e9f11f3c29a4e93b chrony-1.21.tar.gz 310709 +RMD160 5a758608b0ff0d578b3d4597f4ee6ef740492b9b chrony-1.21.tar.gz 310709 +SHA256 baca3d36e6f458bed31c82f08f3c5f9d61b43baafc4d17f3e0a74dec7ff737d3 chrony-1.21.tar.gz 310709 |