diff options
Diffstat (limited to 'net-misc/netkit-timed')
-rw-r--r-- | net-misc/netkit-timed/Manifest | 8 | ||||
-rw-r--r-- | net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch | 55 | ||||
-rw-r--r-- | net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch | 12 | ||||
-rw-r--r-- | net-misc/netkit-timed/files/timed.rc6 | 19 | ||||
-rw-r--r-- | net-misc/netkit-timed/metadata.xml | 5 | ||||
-rw-r--r-- | net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild | 42 |
6 files changed, 141 insertions, 0 deletions
diff --git a/net-misc/netkit-timed/Manifest b/net-misc/netkit-timed/Manifest new file mode 100644 index 000000000000..2aee1b35bdfd --- /dev/null +++ b/net-misc/netkit-timed/Manifest @@ -0,0 +1,8 @@ +AUX 0.17-CFLAG-DEF-fix.patch 1551 SHA256 5639d351222ca7c7425eea214ed536966a5861418148f91dec50971b8698b962 SHA512 397af8f497dc422d7e60f67e72edaefa64210ec834ac01a80696d9a9db808fcef3ff6a84b1ba1a8e3a29a76c7b47557df641c1a9028546513cc4409ee0484bbe WHIRLPOOL 6784b109f81f7467ea105fd29cf7ee58d86f5a054ff6fd5b5976bf5cdadbae1e6c8c377d07dd1bd46798bcfbf895da8e5da397d9f591db86bf34f9bebe5fbe15 +AUX 0.17-timed-opt-parsing.patch 403 SHA256 cdb27b74ee275e59bfb6eef7a78399d03b4615781935ec4edb6719132c3ee1a2 SHA512 76631e8ebcbe3a49f8454d6f72110803de58ddd5b3b5614e8abcd82f348e3bb1d9e706b3608b9c1f0672d529806dcbd571e27ae96b8fa5c7c9a4cd1b1762ad03 WHIRLPOOL ce7f5d65678750c447ce074a523a1669be7257c28c7ae42cbc992f7b5c094180d4893697c693dfa82d2e2be69acc4119dcfc753aa158640131d99db2fa7e736d +AUX timed.rc6 358 SHA256 0b1d394331d5a357d78bc31700b5bfbdd81dad478c967e79e53a4e17c187f529 SHA512 cde2063563dd02b404560fa84bfa536f2f7c75e9271225e94b08630348d78639e386b8a0f59f04b389ad66f2d714c63edf2eed507b690d5ba989780b400547a4 WHIRLPOOL 41e0df0525314bc39307d25b9e463e0ce7cfbfaa5bc701db88cc24f2784956cac2f47f4dca0037fd8b9acf6116031c5dc910ac107919788a5b6c34890325dd62 +DIST netkit-timed-0.17.tar.gz 48655 SHA256 3be296794158639a350fd71506ffdad9ebd5d2a2640bbf533147e95d55d592fe SHA512 781a41555953a165949dde7e7279298d4faf348575ba1214c6ce60cdbc74f6f03ab31002d57a441cbcaf674f7e2cc00afa17632bc3fcb28e2afd95d39cd70b99 WHIRLPOOL 299c6a3980043d9ccc82b950a6a1d7703bafacd6dadfd67992a0374f39fe77a9b9dc02d2f63b708a6a6510d8d25952aae16083f7ebac995fc8993f8744465ea9 +EBUILD netkit-timed-0.17-r10.ebuild 1020 SHA256 ca76b66a7af733f6f1b43bf61618ba2b660224be7d300589224093f21650a960 SHA512 267312c5a49304fd6f449023f84bf508956ae8dab13a5901809d5b0e75b5234e08984c0bdb5d4f6195a4df59da12911b1c27aa29ebf1c45383d8f1a110087fef WHIRLPOOL 9e63eb7518fcc1ee0b16063f0a1553d5d3b08f78f6ca6bc3eaadfd39d41645634055b3a6dce40ed8b182749a0d3a3934ea61f87a8bf43d6a25ffaf6716b05735 +MISC ChangeLog 3052 SHA256 f79297841b4959090c90e2b1e5b3256b1d652da65212225b72869f88c96d3cd1 SHA512 b69b66332167899ed1604814f8cbdd648344046bf04f722d1724d31618a2bb683cba7d3f2a4aaef8077944cd15e65a0655102078237f3426f7eacb12e7b2f476 WHIRLPOOL cf38dfe75bbc68c0f69e5e40c64fe62b96328963058593478cff4736fb3b731e54bf6cde74f83d349d00d29a11eb81561f7d1cb01a06fd963669f01f70721f85 +MISC ChangeLog-2015 4639 SHA256 e32658f717a20422a6763c45a3d97d647177061a3da91b53b4c14df068b3ef54 SHA512 07165a989c39b0975c71d253b0329991d545c9c028576213d54c8bc0eedae88b320ca54bac0e65089ec207007d5f05b7d70d037c913b7521fde41b754af55316 WHIRLPOOL 2ceb0b3d53a7c4feada2f89e7e12e0b3d76c9ad6f47a342f600203022a41c558b52d67fcb9e1915f53449a3175ec3c72456167b19ee54223b8ce9c7b0b748768 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch b/net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch new file mode 100644 index 000000000000..6d3fbf704ba5 --- /dev/null +++ b/net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch @@ -0,0 +1,55 @@ +diff -ru netkit-timed-0.17/configure netkit-timed-0.17.fixed/configure +--- netkit-timed-0.17/configure 2000-07-23 15:12:26.000000000 +0930 ++++ netkit-timed-0.17.fixed/configure 2004-08-07 09:22:47.860505136 +0930 +@@ -115,39 +115,6 @@ + echo 'no' + fi + +-if [ x$DEBUG = x ]; then +- echo -n "Checking if $CC accepts -O2... " +- if ( +- $CC -O2 __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -O2" +- else +- echo 'no' +- echo -n "Checking if $CC accepts -O... " +- if ( +- $CC -O __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -O" +- else +- echo 'no' +- fi +- fi +- +-else +- echo -n "Checking if $CC accepts -g... " +- if ( +- $CC -g __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -g" +- else +- echo 'no' +- fi +- +-fi +- + LDFLAGS= + LIBS= + +diff -ru netkit-timed-0.17/timed/timed/timed.c netkit-timed-0.17.fixed/timed/timed/timed.c +--- netkit-timed-0.17/timed/timed/timed.c 1999-12-13 03:35:07.000000000 +0930 ++++ netkit-timed-0.17.fixed/timed/timed/timed.c 2004-08-07 09:26:32.299385240 +0930 +@@ -898,7 +898,7 @@ + void + get_goodgroup(int force) + { +-# define NG_DELAY (30*60*CLK_TCK) /* 30 minutes */ ++# define NG_DELAY (30*60*CLOCKS_PER_SEC) /* 30 minutes */ + static unsigned long last_update = -NG_DELAY; + unsigned long new_update; + /* struct hosttbl *htp; */ diff --git a/net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch b/net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch new file mode 100644 index 000000000000..5b5855478d5a --- /dev/null +++ b/net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch @@ -0,0 +1,12 @@ +diff -ur netkit-timed-0.17.orig/timed/timed/timed.c netkit-timed-0.17/timed/timed/timed.c +--- netkit-timed-0.17.orig/timed/timed/timed.c 2006-07-28 00:12:03.000000000 -0700 ++++ netkit-timed-0.17/timed/timed/timed.c 2006-07-28 00:12:52.000000000 -0700 +@@ -158,7 +158,7 @@ + struct nets *nt; + struct sockaddr_in server; + u_short port; +- char c; ++ signed char c; + #ifdef sgi + FILE *timetrim_st; + #endif diff --git a/net-misc/netkit-timed/files/timed.rc6 b/net-misc/netkit-timed/files/timed.rc6 new file mode 100644 index 000000000000..eb939565310a --- /dev/null +++ b/net-misc/netkit-timed/files/timed.rc6 @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting timed" + start-stop-daemon --start --quiet --exec /usr/sbin/timed + eend $? +} + +stop() { + ebegin "Stopping timed" + start-stop-daemon --stop --quiet --exec /usr/sbin/timed + eend $? +} diff --git a/net-misc/netkit-timed/metadata.xml b/net-misc/netkit-timed/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-misc/netkit-timed/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild b/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild new file mode 100644 index 000000000000..bde888f10c2d --- /dev/null +++ b/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit flag-o-matic toolchain-funcs + +IUSE="" +DESCRIPTION="Netkit - timed" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz" +HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/" +KEYWORDS="amd64 ~mips ppc ppc64 sparc x86" +LICENSE="BSD GPL-2" +SLOT="0" + +DEPEND="" +RDEPEND="" + +src_prepare() { + eapply "${FILESDIR}"/0.17-CFLAG-DEF-fix.patch + eapply "${FILESDIR}"/0.17-timed-opt-parsing.patch + sed -i configure \ + -e '/^LDFLAGS=/d' \ + || die "sed configure" + default +} + +src_configure() { + # Note this is not an autoconf configure script. econf fails + append-flags -DCLK_TCK=CLOCKS_PER_SEC + ./configure --prefix=/usr --with-c-compiler=$(tc-getCC) || die "bad configure" +} + +src_install() { + dosbin timed/timed/timed + doman timed/timed/timed.8 + dosbin timed/timedc/timedc + doman timed/timedc/timedc.8 + dodoc README ChangeLog BUGS + + newinitd "${FILESDIR}"/timed.rc6 timed +} |