summaryrefslogtreecommitdiff
path: root/net-misc/adjtimex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/adjtimex
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/adjtimex')
-rw-r--r--net-misc/adjtimex/Manifest8
-rw-r--r--net-misc/adjtimex/adjtimex-1.29-r1.ebuild58
-rw-r--r--net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch30
-rw-r--r--net-misc/adjtimex/files/adjtimex.init34
-rw-r--r--net-misc/adjtimex/metadata.xml7
5 files changed, 137 insertions, 0 deletions
diff --git a/net-misc/adjtimex/Manifest b/net-misc/adjtimex/Manifest
new file mode 100644
index 000000000000..16fa303a164b
--- /dev/null
+++ b/net-misc/adjtimex/Manifest
@@ -0,0 +1,8 @@
+AUX adjtimex-1.29-r1-gentoo-utc.patch 1053 SHA256 4a22aa2b368530fb8bbbc4f00b4d5050e454004522b2978e4e6c992781433fec SHA512 d9d47fc4648b51969b50545b8925848601f373ba89908cdcb95e37b6ec4489b0e338bed4debed9a5fc1fbb3fff6a87c27583a25a89028bdf69dc09602c67d728 WHIRLPOOL 6e6c3ac9e6eeaba65b9aedecd09b3e5f0639a6fe4b93101ad1a89dad15a5f9ca6d73daf922a72c57a287e921558a7ece698a51e9daefcd4655840720c1ebf0f3
+AUX adjtimex.init 638 SHA256 bd8dbdd7bd4fc03466a46dbf1744c6c9010ca265b03ab1b9b828af08b8eeda98 SHA512 4d8caa72076ac8ba2c0f6cabb31a28254e609d2215cc8f830921e729013144fc10cb6a8796fff80ecc4bf1dc611652e81830e46e59c1726d3147cc1680017041 WHIRLPOOL c5d704a7c6c864ff63a2fb403b4b770e5e8b28b742c28f17ea0482bcf53ac83006041cbd6c734bfb9e56b5e8e3adde99e1ed1fde0bf5f58aaabef300f5f1fe5e
+DIST adjtimex_1.29-2.diff.gz 51735 SHA256 54293c8aff704a8077b4d0ec31e8a21cf8de93e145e0e8644ec91e132da6e577 SHA512 cc78cf9fd93cb243019952f877cb9730a5755d87336fc1a956162e957fd579de3770cb6bbba58ac9b6d350ee631ed294303360d0aa4153b12a31eb1bb4e35924 WHIRLPOOL 24f5a37ffa2b7b81b0d2f0d4755bd26e07e6bc32896858d574a96bb02c8df3d71f8acbeba9363c0ee37fdca59dba0a8a83f33014b562f85bd5b7abbdb99100d3
+DIST adjtimex_1.29.orig.tar.gz 85551 SHA256 04b9e8b66e77276ed07e78de89af37fd1aa12725923de853480827c4fafd176a SHA512 5a48cdc538866c06562f62e369c08d60978c791ed91565262c0179c6fa25dd343963992d00e10f32475fdc00b458f81cf9c61adbfa9e1b7a8d4981ebeeff5649 WHIRLPOOL f22f4ba2f0945ca53f4967094b10df1a741d705b07f86ae3e024ebb3624acc6cfd56d12414c2a00b1f0747a07c80d65fa0e7471816879cb3c159b5b079228112
+EBUILD adjtimex-1.29-r1.ebuild 1433 SHA256 0546b4b9e7e18c737caa816163fa532565e327aacd7b197de2d60588974911cc SHA512 a2b56c1667fb329513638ed10d99e04ae14f6e374646b9802899f4094da2fe21e8d45e0d61cb422fb12f61cb40b9542d9ebe3ab6429504cd1a710408b9db6b6e WHIRLPOOL d2a4cabaf6105d880d92c9a48833a3764ee3299ced7f61b416121977b1ac92896ca7c25145e031c146d01c71a5ca417f66cdd0feca8dd8fc3c6303fc18dfe83f
+MISC ChangeLog 2379 SHA256 a3fa68d4b40f8ed346746b9b3b0b2605dffeca6d8b33626ddca007f9f71629e4 SHA512 b71aa1f43d1fb76edfcf9810c6c9ddef724d921b29679e24429868a450dc4d11a82caa291f85c57ee9c88987695a3d8c284941a9dcc481cffb0ecd61b307b44c WHIRLPOOL a499ff4f180bf8f4410ee35fed97c5fbe43e038cff32af85cfaa18aced07ab4c42a905adf0ffb916c2c90213314b11f7c187e464f9c00e1bd903eadf14659ac8
+MISC ChangeLog-2015 4815 SHA256 3f8e25346b12d37124eec86fde29d06b01357e1cdca887630533bb0e6a57ef4f SHA512 95aecef82356362ec09766a41e67c5528a7bf54a314672862cceeac81e5ea5ac33277c8dde5406a1390b69323e926e41201ad1338c4abb75a80307e078aa2fb1 WHIRLPOOL 968a59f86e7821fe18766a5431395bb8157c2ac86b95a471605b2b51f5dd4f9dce9959d814165c66c68a26f6190aa618fcdc2a20371d115ade41f89fb9679637
+MISC metadata.xml 216 SHA256 f7475919f28a8a93ec8bd025c8f8bbab918f66d0d1737420c876f0480308fe6a SHA512 e881b59fe49746eb25ad66c258b41aba501e4eb563129093a3898ea970a20506e7898f7c355cfcf99605234962bf2c77c1309c258b9a2b84ee4302ccb71c9dbd WHIRLPOOL 163285b60aa93e00993af659dc1e29a9eb245bd3415dd5ec75b284250596165f469028102b72fa0c344834443a44c1bbcf6272fe6a3f5211f721fc96e1c6ec16
diff --git a/net-misc/adjtimex/adjtimex-1.29-r1.ebuild b/net-misc/adjtimex/adjtimex-1.29-r1.ebuild
new file mode 100644
index 000000000000..9f8febb49e45
--- /dev/null
+++ b/net-misc/adjtimex/adjtimex-1.29-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils fixheadtails toolchain-funcs
+
+DEBIAN_PV="2"
+MY_P="${P/-/_}"
+DEBIAN_URI="mirror://debian/pool/main/${PN:0:1}/${PN}"
+DEBIAN_PATCH="${MY_P}-${DEBIAN_PV}.diff.gz"
+DEBIAN_SRC="${MY_P}.orig.tar.gz"
+DESCRIPTION="display or set the kernel time variables"
+HOMEPAGE="http://www.ibiblio.org/linsearch/lsms/adjtimex.html"
+SRC_URI="${DEBIAN_URI}/${DEBIAN_PATCH}
+ ${DEBIAN_URI}/${DEBIAN_SRC}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc x86"
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_prepare() {
+ cd "${WORKDIR}"
+ epatch "${DISTDIR}"/${DEBIAN_PATCH}
+ cd "${S}"
+ for i in debian/adjtimexconfig debian/adjtimexconfig.8 ; do
+ sed -e 's|/etc/default/adjtimex|/etc/conf.d/adjtimex|' \
+ -i.orig ${i}
+ sed -e 's|^/sbin/adjtimex |/usr/sbin/adjtimex |' \
+ -i.orig ${i}
+ done
+ epatch "${FILESDIR}"/${PN}-1.29-r1-gentoo-utc.patch
+ ht_fix_file debian/adjtimexconfig
+ sed -i \
+ -e '/CFLAGS = -Wall -t/,/endif/d' \
+ -e '/$(CC).* -o/s|$(CFLAGS)|& $(LDFLAGS)|g' \
+ Makefile.in || die "sed Makefile.in"
+}
+
+src_configure() {
+ tc-export CC
+ default
+}
+
+src_install() {
+ dodoc README* ChangeLog
+ doman adjtimex.8 debian/adjtimexconfig.8
+ dosbin adjtimex debian/adjtimexconfig
+ newinitd "${FILESDIR}"/adjtimex.init adjtimex
+}
+
+pkg_postinst() {
+ einfo "Please run adjtimexconfig to create the configuration file"
+}
diff --git a/net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch b/net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch
new file mode 100644
index 000000000000..ac8730d1ee7d
--- /dev/null
+++ b/net-misc/adjtimex/files/adjtimex-1.29-r1-gentoo-utc.patch
@@ -0,0 +1,30 @@
+--- adjtimex-1.29-debian/debian/adjtimexconfig 2011-12-23 21:29:32.962449759 +0100
++++ adjtimex-1.29/debian/adjtimexconfig 2011-12-23 21:30:00.610638657 +0100
+@@ -3,6 +3,18 @@
+ conffile=/etc/default/adjtimex
+ startfile=/etc/init.d/adjtimex
+
++# Get UTC setting
++params=''
++if [ -f /etc/conf.d/clock ]; then
++ #baselayout-1
++ source /etc/conf.d/clock
++ [ "$CLOCK" == "UTC" ] && params='--utc'
++elif [ -f /etc/conf.d/hwclock ]; then
++ #baselayout-2
++ source /etc/conf.d/hwclock
++ [ "$clock" == "UTC" ] && params='--utc'
++fi
++
+ echo -n "Comparing clocks (this will take 70 sec)..."
+
+ # Get the parameters
+@@ -11,7 +23,7 @@
+ baseline=`awk '/<= tick/{print ($1+$NF)/2}' /etc/adj.adjust`
+ hz=`awk '/USER_HZ/{print $3}' /etc/adj.adjust`
+ /usr/sbin/adjtimex --tick $baseline --frequency 0
+-/usr/sbin/adjtimex --adjust --force-adjust >/etc/adj.adjust
++/usr/sbin/adjtimex ${params} --adjust --force-adjust >/etc/adj.adjust
+ echo "done."
+ ticks=`tail -n 1 /etc/adj.adjust|awk '{print $6}'`
+ freq=`tail -n 1 /etc/adj.adjust|awk '{print $7}'`
diff --git a/net-misc/adjtimex/files/adjtimex.init b/net-misc/adjtimex/files/adjtimex.init
new file mode 100644
index 000000000000..ef46890bf3c9
--- /dev/null
+++ b/net-misc/adjtimex/files/adjtimex.init
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DAEMON=adjtimex
+OPTS="--tick ${TICK} --frequency ${FREQ}"
+CONFD="/etc/conf.d/${DAEMON}"
+
+depend() {
+ before ntp-client ntpd
+ need localmount
+}
+
+checkconfig() {
+ if [ ! -f "${CONFD}" ]; then
+ eerror "Configuration file not found!"
+ eerror "You must run adjtimexconfig to create it."
+ return 1
+ fi
+}
+
+
+start() {
+ checkconfig || return 1
+ ebegin "Regulating system clock with ${DAEMON}..."
+ /usr/sbin/${DAEMON} ${OPTS}
+ eend $?
+}
+
+stop() {
+ :
+}
+
+# vim: ts=4 sw=4 ft=gentoo-init-d:
diff --git a/net-misc/adjtimex/metadata.xml b/net-misc/adjtimex/metadata.xml
new file mode 100644
index 000000000000..79d462e85571
--- /dev/null
+++ b/net-misc/adjtimex/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>