summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-01-06 04:13:02 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-01-06 04:13:02 +0000
commit2ebcc94fd35073090f7a0a1016304f28eb5ed3ed (patch)
tree4c7c6679e51785d25868529697678e49bafb0e7b /net-misc
parentamd64 keywords (diff)
downloadgentoo-2-2ebcc94fd35073090f7a0a1016304f28eb5ed3ed.tar.gz
gentoo-2-2ebcc94fd35073090f7a0a1016304f28eb5ed3ed.tar.bz2
gentoo-2-2ebcc94fd35073090f7a0a1016304f28eb5ed3ed.zip
initial commit, ebuild by robbat2@gentoo.org, solves bug #8459
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/adjtimex/ChangeLog10
-rw-r--r--net-misc/adjtimex/Manifest2
-rw-r--r--net-misc/adjtimex/adjtimex-1.16.ebuild47
-rw-r--r--net-misc/adjtimex/files/adjtimex.init30
-rw-r--r--net-misc/adjtimex/files/digest-adjtimex-1.162
5 files changed, 91 insertions, 0 deletions
diff --git a/net-misc/adjtimex/ChangeLog b/net-misc/adjtimex/ChangeLog
new file mode 100644
index 000000000000..825d6c412269
--- /dev/null
+++ b/net-misc/adjtimex/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/adjtimex
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/adjtimex/ChangeLog,v 1.1 2004/01/06 04:13:02 robbat2 Exp $
+
+*adjtimex-1.16 (05 Jan 2004)
+
+ 05 Jan 2004; Robin H. Johnson <robbat2@gentoo.org> adjtimex-1.16.ebuild,
+ files/adjtimex.init:
+ initial commit, ebuild by robbat2@gentoo.org, solves bug #8459
+
diff --git a/net-misc/adjtimex/Manifest b/net-misc/adjtimex/Manifest
new file mode 100644
index 000000000000..91d09f04a7ba
--- /dev/null
+++ b/net-misc/adjtimex/Manifest
@@ -0,0 +1,2 @@
+MD5 ec2eb2d1c1a51e129c96e61ddce1d093 adjtimex-1.16.ebuild 745
+MD5 f740d2ecd7c08cc4dee2578c3c0c2557 files/digest-adjtimex-1.16 136
diff --git a/net-misc/adjtimex/adjtimex-1.16.ebuild b/net-misc/adjtimex/adjtimex-1.16.ebuild
new file mode 100644
index 000000000000..38870b74521b
--- /dev/null
+++ b/net-misc/adjtimex/adjtimex-1.16.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/adjtimex/adjtimex-1.16.ebuild,v 1.1 2004/01/06 04:13:02 robbat2 Exp $
+
+inherit fixheadtails
+
+DEBIAN_PV="1"
+DESCRIPTION="adjtimex - display or set the kernel time variables"
+HOMEPAGE="http://www.ibiblio.org/linsearch/lsms/adjtimex.html"
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}-${DEBIAN_PV}.diff.gz
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${P/-/_}.orig.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="virtual/glibc"
+
+S="${WORKDIR}/${P}"
+
+src_unpack() {
+ unpack ${P/-/_}.orig.tar.gz
+ epatch ${DISTDIR}/${P/-/_}-${DEBIAN_PV}.diff.gz
+ cd ${S}
+ for i in debian/adjtimexconfig debian/adjtimexconfig.8 ; do
+ sed -e 's|/etc/default/adjtimex|/etc/conf.d/adjtimex|' -i ${i}
+ done
+ ht_fix_file debian/adjtimexconfig
+ sed -e '/CFLAGS = -Wall -t/,/endif/d' -i Makefile.in
+}
+
+src_compile() {
+ econf || die
+ emake || die
+}
+
+src_install() {
+ dodoc README* COPYING COPYRIGHT ChangeLog
+ doman adjtimex.8 debian/adjtimexconfig.8
+ dosbin adjtimex debian/adjtimexconfig
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/adjtimex.init adjtimex
+}
+
+pkg_postinst() {
+ einfo "Please run adjtimexconfig to create the configuration file"
+}
diff --git a/net-misc/adjtimex/files/adjtimex.init b/net-misc/adjtimex/files/adjtimex.init
new file mode 100644
index 000000000000..c58ab04e60a6
--- /dev/null
+++ b/net-misc/adjtimex/files/adjtimex.init
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/adjtimex/files/adjtimex.init,v 1.1 2004/01/06 04:13:02 robbat2 Exp $
+
+DAEMON=adjtimex
+OPTS="--tick ${TICK} --frequency ${FREQ}"
+CONFD="/etc/conf.d/${DAEMON}"
+
+checkconfig() {
+ if [ ! -f "${CONFD}" ]; then
+ eerror "Configuration file not found!"
+ eerror "You should 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=sh:
diff --git a/net-misc/adjtimex/files/digest-adjtimex-1.16 b/net-misc/adjtimex/files/digest-adjtimex-1.16
new file mode 100644
index 000000000000..b30d2d004806
--- /dev/null
+++ b/net-misc/adjtimex/files/digest-adjtimex-1.16
@@ -0,0 +1,2 @@
+MD5 491116824724cd7ea5c679ac189775ee adjtimex_1.16-1.diff.gz 31236
+MD5 ac61a09deae112c30431c67f701569d9 adjtimex_1.16.orig.tar.gz 66783