diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/rdate |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/rdate')
-rw-r--r-- | net-misc/rdate/Manifest | 8 | ||||
-rw-r--r-- | net-misc/rdate/files/rdate-confd | 16 | ||||
-rw-r--r-- | net-misc/rdate/files/rdate-initd-1.4-r3 | 26 | ||||
-rw-r--r-- | net-misc/rdate/metadata.xml | 7 | ||||
-rw-r--r-- | net-misc/rdate/rdate-1.4-r3.ebuild | 26 | ||||
-rw-r--r-- | net-misc/rdate/rdate-1.4-r4.ebuild | 37 |
6 files changed, 120 insertions, 0 deletions
diff --git a/net-misc/rdate/Manifest b/net-misc/rdate/Manifest new file mode 100644 index 000000000000..a1cc540b83b8 --- /dev/null +++ b/net-misc/rdate/Manifest @@ -0,0 +1,8 @@ +AUX rdate-confd 509 SHA256 fdc01f6e200f41896bff49ef7c59ea1a44601a63a33931b64fc1f2354f037e3f SHA512 1ebc27949cf5c68828e00cacb20644b6c6b0e833c23b4f9e31144f0e47c10daa06b82909198227cdc7018939cbae09f2fe53de69aa84c8b9a8ecb0ab9eaf1f8f WHIRLPOOL fb5b85d97044f22ccd8ee30881d4c6c4e0c87f04194f7e70d9cb6aaf94ddcca5f1c7939ab9ce2aa8ef63d40bd86a0e7cb74450c32ac6243fba26b719be73b75c +AUX rdate-initd-1.4-r3 525 SHA256 77ab29222c1c30f764979cbdd01d1318d68d8d21e27bf603f2e3c11e6448a8f1 SHA512 8563dedff5b2188d5176a882e36d4c8cdab4709ca40e86eb9c76e30f91c3eb78d1da8f971d2c2f4189ef801413e173367d2a8a2b9b37608ef6a84a0e73e39157 WHIRLPOOL 744bea47c459c03059a0b76338be3888fc134b5808f91772ae2ce7019d4ae032fa795dd78237854b2a2a016c52e1dabaebfb22c4759f76dfb2857e15de992694 +DIST rdate-1.4.tar.gz 11500 SHA256 c8b4a026fa13f22bffe96fe0800b6ac67de72e9f62dfe5b74f1910a9179da4ee SHA512 ea9d62af3aa58fb7bb2bdce257cc23758f103ac056e4d6a8b44be0e41c44dff49e78bdb03789e3bf2957e74997c2f1c0376fdc659b4f39d89e43ef139a51f996 WHIRLPOOL 31f048ebaeabde6776beae972d44e2454b1903563939e8a233f5ceb8d9c04f082bae01d390854b060a52cfa19bc82d9caa93bf5c79b9343b7f9283806ac7e8bd +EBUILD rdate-1.4-r3.ebuild 748 SHA256 114408d767e752bd815cef98ad3ebe63f1cc536b74d4ca8035ccc424aacead31 SHA512 08d8bf74a21ad924a47a5afff83427fdec727feb8f298f4709ab25ed061841c9ca9e54eb8624ebb61436e8ddd127b4815527814d9d574e607d888b5fb4c98ba2 WHIRLPOOL c514409a751cd095c3dca66f3bb4de40d6d17330ada8f72a50fc997845010ed8fb062db9cc1f88535bb89bc2a4f27c2c34575ddc1474df52a7757ec848f1e4cb +EBUILD rdate-1.4-r4.ebuild 806 SHA256 1d69383639ffe208b20ef62717a0af82024481677947857470e903870f58b985 SHA512 1b917278e3874586f7d94b702da7fc9d9f85e5354e5e30f9216f876644b326402ec36d719e4cc6b7e3bf6a2f1ac1fafaab682d6fbe01378969ff2206a5b037e3 WHIRLPOOL 5d3d6d841a57c51e69ec192df0f0fc52e056e4e6ab296b864ee665fba79fab337bc1b5f23a4d46ca17ca4cb30d0df3497345e42e032e157540e18ba912a788b8 +MISC ChangeLog 2408 SHA256 b31b81df49178687210c12fdfea68b9fec6d86d91eace85f0e8674774d6525ef SHA512 46687c3ad4bda84e075490ba4bc47e596a543d2e9815c0865888933dfa56603706f7e0f388fc17f553c3db368a73f4851494a1c929eee4eb8a3b42aaf2a112ca WHIRLPOOL b38e96f3df8d2fb0320d0f82bff29763db61c06b263cb2dea26fd505d9da351300a92cdf321cc9dd75ad525b4e06a9a2ab67031ac1d8a6969508c4c0b81a11bb +MISC ChangeLog-2015 8066 SHA256 d936b611b58f6c48d5c1e33292e2431f4bc08914d2005d2098a6233860d75a72 SHA512 83827a07e7ac3b6024bba67fd146a3e8c643978a42129b3927861b74ad34e92c0f72a889a4cea60627635d51dfbc870c59c9981828f7a52e3773f82033f72f88 WHIRLPOOL 906689effdb8866965edb4587d3a4c57dc5fa02d7dea7ce4f611442fa41e9569fe2dd9556efa78d60622a0194d290c561386a90f562bee4a6ec238e7ba6e7a68 +MISC metadata.xml 216 SHA256 f7475919f28a8a93ec8bd025c8f8bbab918f66d0d1737420c876f0480308fe6a SHA512 e881b59fe49746eb25ad66c258b41aba501e4eb563129093a3898ea970a20506e7898f7c355cfcf99605234962bf2c77c1309c258b9a2b84ee4302ccb71c9dbd WHIRLPOOL 163285b60aa93e00993af659dc1e29a9eb245bd3415dd5ec75b284250596165f469028102b72fa0c344834443a44c1bbcf6272fe6a3f5211f721fc96e1c6ec16 diff --git a/net-misc/rdate/files/rdate-confd b/net-misc/rdate/files/rdate-confd new file mode 100644 index 000000000000..0dd38cb6ecd5 --- /dev/null +++ b/net-misc/rdate/files/rdate-confd @@ -0,0 +1,16 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# the NTP server to get the date from +RDATE_SERVER="pool.ntp.org" + +# Options to pass to rdate +# "-s" is mandatory to set the system time, and +# is passed regardless of this variable. +RDATE_OPTS="-u" + +# How long to wait (in seconds) before giving up. +# Useful for when you boot and DNS/internet isn't +# really available but you have your net interface +# come up with say a static IP. +RDATE_TIMEOUT=10 diff --git a/net-misc/rdate/files/rdate-initd-1.4-r3 b/net-misc/rdate/files/rdate-initd-1.4-r3 new file mode 100644 index 000000000000..25ac67dc5236 --- /dev/null +++ b/net-misc/rdate/files/rdate-initd-1.4-r3 @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + before cron + need net + use dns +} + +checkconfig() { + if [ -z "${RDATE_SERVER}" ] ; then + eerror "Please edit /etc/conf.d/rdate" + eerror "I need to know what server to use!" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Setting clock via rdate" + /usr/bin/rdate -s ${RDATE_OPTS} -t ${RDATE_TIMEOUT} ${RDATE_SERVER} > /dev/null + eend $? "Failed to set clock" +} diff --git a/net-misc/rdate/metadata.xml b/net-misc/rdate/metadata.xml new file mode 100644 index 000000000000..79d462e85571 --- /dev/null +++ b/net-misc/rdate/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-misc/rdate/rdate-1.4-r3.ebuild b/net-misc/rdate/rdate-1.4-r3.ebuild new file mode 100644 index 000000000000..c38d98978ffa --- /dev/null +++ b/net-misc/rdate/rdate-1.4-r3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="use TCP or UDP to retrieve the current time of another machine" +HOMEPAGE="http://www.apps.ietf.org/rfc/rfc868.html" +SRC_URI="ftp://people.redhat.com/sopwith/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="ipv6" + +DEPEND="" + +src_compile() { + use ipv6 && append-cppflags "-DINET6" + emake RCFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" CC="$(tc-getCC)" || die +} + +src_install(){ + emake -j1 prefix="${D}/usr" install || die "make install failed" + newinitd "${FILESDIR}"/rdate-initd-1.4-r3 rdate + newconfd "${FILESDIR}"/rdate-confd rdate +} diff --git a/net-misc/rdate/rdate-1.4-r4.ebuild b/net-misc/rdate/rdate-1.4-r4.ebuild new file mode 100644 index 000000000000..3a0fc636df3e --- /dev/null +++ b/net-misc/rdate/rdate-1.4-r4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit flag-o-matic + +DESCRIPTION="use TCP or UDP to retrieve the current time of another machine" +HOMEPAGE="http://www.apps.ietf.org/rfc/rfc868.html" +SRC_URI="ftp://people.redhat.com/sopwith/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="ipv6" + +DEPEND="" + +src_prepare() { + sed -i \ + -e '/^CFLAGS=/d' \ + -e '/^rdate: /,+1d' \ + -e '/\tinstall/s:\([^ ]\+\)$:$(DESTDIR)&:' \ + Makefile || die "Sed failed!" +} + +src_compile() { + use ipv6 && append-cppflags "-DINET6" + tc-export CC + emake +} + +src_install(){ + emake DESTDIR="${D}" install + newinitd "${FILESDIR}"/rdate-initd-1.4-r3 rdate + newconfd "${FILESDIR}"/rdate-confd rdate +} |