summaryrefslogtreecommitdiff
path: root/net-misc/netkit-rwho
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/netkit-rwho
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/netkit-rwho')
-rw-r--r--net-misc/netkit-rwho/Manifest10
-rw-r--r--net-misc/netkit-rwho/files/netkit-rwho-0.17-confd4
-rw-r--r--net-misc/netkit-rwho/files/netkit-rwho-0.17-cron7
-rw-r--r--net-misc/netkit-rwho/files/netkit-rwho-0.17-printf.patch23
-rw-r--r--net-misc/netkit-rwho/files/netkit-rwho-0.17-rc17
-rw-r--r--net-misc/netkit-rwho/metadata.xml8
-rw-r--r--net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild47
7 files changed, 116 insertions, 0 deletions
diff --git a/net-misc/netkit-rwho/Manifest b/net-misc/netkit-rwho/Manifest
new file mode 100644
index 000000000000..05355fc481b5
--- /dev/null
+++ b/net-misc/netkit-rwho/Manifest
@@ -0,0 +1,10 @@
+AUX netkit-rwho-0.17-confd 93 SHA256 6ad0939f180cc4a758b81bb40d3c74472ffb18f59d5222d04b2d3a4f5fa63208 SHA512 c6c0a074c1b41272706f913c822b95ad1edba82a7fbf9ec0e4f3859622d5526203e18ed84d253e190a73b0275d0b9f6ea693fa5c933866f2c03ea18dee9e7a16 WHIRLPOOL 1a0f9658aab0f23e1da8610821d9901cf21afaea4222423a3e376f5b8719c0f13213f8debd5b5f3af7413e18272b17d6d1fc65be288a6a2929506a12506bbae8
+AUX netkit-rwho-0.17-cron 277 SHA256 f0f156c8090b0a9945b3867618885a8daa239f3d033efe4c39d7cfcafd85d3d3 SHA512 64a20ccc05abbfbbfb63c93ea9954b4c5e3b5313bf8a9d69ddad2d24d3f2a372d5e5f0c7c91278f8e23632b02f64b4ff8b2250a780c1e423460ce9d7d5e5a738 WHIRLPOOL e670370dc23af69ca84152a771204e46667f6419df8a75a865d78dc0bec12e02222c6f29c3c1ec946fb580fc99bf293e6752df9a7015c8a814acf7305120f72e
+AUX netkit-rwho-0.17-printf.patch 620 SHA256 288143c5125158cbf63de1700aceeebfcb03c47e822e885bcdf89a70aa961815 SHA512 4435f838ee044f9fff4364d24ec4afa11c2826dd4b943eea12e44698dc100e55b46f45905f3ff7261b84bd1f5051618da225f05a0b292690fb36f7ecaf8452f0 WHIRLPOOL 43314ab72902c34b5a9acc8af7a4b19bb7cc77c8805c7ae762c6db8ab17f0bc1e333715652fa1285d462b8f40d657af7bbe761c0111a19af9939ed52fdc45a78
+AUX netkit-rwho-0.17-rc 271 SHA256 79c11ff4978e1e9da9eba6a8861dc27aa9027786722fc3836e7d3b693c4956d6 SHA512 83aedd9c88e81ff95db278c6588fa298f2b76b6418d338c9b3cbf6818fcd5746417b622af91b2d7657c24e2138d881eab6a8283d8031b7c430479ff9eaf770c9 WHIRLPOOL 97e922dd0a546f888d2a7e26ac2257526448fb646148d460ef3100bd00ec56733b00a80f07e5a8fe548fe2d69ea158a463a9b7c3eb1f26e31c5fd52712e19498
+DIST netkit-rwho-0.17-patches.tar.bz2 7725 SHA256 c666d60fa21538f909374cdc1a3e661875559c3859f759fe060f35047dc3e54e SHA512 947f62316220791af7f36eee3d44481224ebda3410fb3e527fb1f066a663f56d6aec44483955edbbff1936972e86aeff9d6905d123ed78cb10d72ee6cb0f7454 WHIRLPOOL 5b8c47050a44ee3a80b6b622da9b947e30176d535cce2682a160df3c46153a321d279a30386df4aa21c69bdb12ecbaf20e0fa5867648e96917697f3ede394842
+DIST netkit-rwho-0.17.tar.gz 20610 SHA256 0409e2ce4bfdb2dacb2c193d0fedfc49bb975cb057c5c6b0ffcca603a1188da7 SHA512 ea1444b613d95f53100cf8f8d374dd132611432380b9142182c4fb5595014605896656b9a272945534371265e226fe591c22c12a9bdde9c763794249660e7b58 WHIRLPOOL 65a7d4851cba7c94d240e56e254df4978741eb780dd269063773620289894cc7269e5491e5955c22746345f4e4191379d10a022a1317a091a1e3a13210de1418
+EBUILD netkit-rwho-0.17-r4.ebuild 1080 SHA256 0d0e0fa289520d62d658af144de0d3d5f807fffaba5d3c6a2351423aaf62739f SHA512 be8d05847f7cb057224fd820cf93e8e475b5dc0c77ee2fd59e3b4df399091ec626ebfb8ae0a6c496f7b354757da3c48d1220f14e7d94df8f308af275cc7d8136 WHIRLPOOL 8f20521ee05098f856ac5bf8ef1f4c2a30a919be593b0a6e17319226eefd0e42a95c8de481f915fc84f1f0110d1668029cd0cd7798d34c3b6401311416715dea
+MISC ChangeLog 2712 SHA256 7b3b5a61a972e3fc3e7bd267d7e4b5b0acc707b5b0e48dd819d4c32599889b4a SHA512 6975f19eb238f80c3bc46a05bd729fbebe16be3b1d8989c1550b7a99fd591dd8c7a6cba888bcf396323a24aadc68120d225579af7125403be829f2b510513d16 WHIRLPOOL e07aa58812e552ff5102fce65ad7567ad95efbfa8a4d0ad142aa7c0a77cb6bd70f86f84e9b8fbd989c2bc2b76b560567b459918298db73f837e36f6cd51cbd00
+MISC ChangeLog-2015 4617 SHA256 489c7ca980f0785cef352a72ed9e302f97ab1584a71773fb3204db60f74b006b SHA512 f634938187751f68b9dbb8256eed62d121ebe1642f5f5ac86c24d7c9eb16d4e549cb779bebe3c03fe00a059770f685cbc3e1cc550783eb4f6b06379bdb44f1cb WHIRLPOOL f8586f7fb605b54d0ad695f2a0436f8ec78a5b430b2768e3a579d4c444ae15e330ac66cae589390c2c84152bf7edcad6299d429cadfb26a860591f14d3a64735
+MISC metadata.xml 286 SHA256 61b7f36c3fb4ce2345ee3017334a6013dd52429ba107768abc2c146629e84dcd SHA512 cfd1ca7999686b831b0b459f5b06ea80fd28b4f24d3404a8ad90bb4d6461a011f6a2b338ebbf45c2eac621ec828dcc397b26c2ae82068e5b703271a85c76e760 WHIRLPOOL bb6b105c081b12e37fbf26bc041e829ef7ab8ba855b96f040479ca85ad9633b8e83c7be4afa686838991ebf358ad8cf78c1a79fd54ad51f7928aaa7a63f0e5bb
diff --git a/net-misc/netkit-rwho/files/netkit-rwho-0.17-confd b/net-misc/netkit-rwho/files/netkit-rwho-0.17-confd
new file mode 100644
index 000000000000..3a5f684f1544
--- /dev/null
+++ b/net-misc/netkit-rwho/files/netkit-rwho-0.17-confd
@@ -0,0 +1,4 @@
+# /etc/conf.d/rwhod: config file for /etc/init.d/rwhod
+
+# rwhod arguments
+RWHOD_OPTIONS="-b"
diff --git a/net-misc/netkit-rwho/files/netkit-rwho-0.17-cron b/net-misc/netkit-rwho/files/netkit-rwho-0.17-cron
new file mode 100644
index 000000000000..9fab9f25ee0e
--- /dev/null
+++ b/net-misc/netkit-rwho/files/netkit-rwho-0.17-cron
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# Clean up stale rwho entries after one month
+find /var/spool/rwho -mindepth 1 -maxdepth 1 -type f ! -name .keep \
+ ! -ctime -30 -print0 | xargs -r0 rm -f
diff --git a/net-misc/netkit-rwho/files/netkit-rwho-0.17-printf.patch b/net-misc/netkit-rwho/files/netkit-rwho-0.17-printf.patch
new file mode 100644
index 000000000000..89eaf82881f8
--- /dev/null
+++ b/net-misc/netkit-rwho/files/netkit-rwho-0.17-printf.patch
@@ -0,0 +1,23 @@
+echo -n isn't supported by all shells, use printf instead, which is portable.
+
+Note, if you apply this patch after 0004-ldflags.patch, the changes begin at line 276.
+If you run it before 0004-ldflags.patch, the changes begin at line 277.
+
+Patch by Andrew Miller.
+
+https://bugs.gentoo.org/529974
+
+--- a/configure
++++ b/configure
+@@ -276,10 +276,7 @@
+
+ echo 'Generating MCONFIG...'
+ (
+- echo -n '# Generated by configure (confgen version 2) on '
+- date
+- echo '#'
+- echo
++ printf "#\n# Generated by configure (confgen version 2) on $(date)\n#\n\n"
+
+ echo "BINDIR=$BINDIR"
+ echo "SBINDIR=$SBINDIR"
diff --git a/net-misc/netkit-rwho/files/netkit-rwho-0.17-rc b/net-misc/netkit-rwho/files/netkit-rwho-0.17-rc
new file mode 100644
index 000000000000..af06c00b918d
--- /dev/null
+++ b/net-misc/netkit-rwho/files/netkit-rwho-0.17-rc
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting rwhod"
+ /sbin/start-stop-daemon --start --quiet --exec /usr/sbin/rwhod -- $RWHOD_OPTIONS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping rwhod"
+ /sbin/start-stop-daemon --stop --quiet --name rwhod
+ eend $?
+}
diff --git a/net-misc/netkit-rwho/metadata.xml b/net-misc/netkit-rwho/metadata.xml
new file mode 100644
index 000000000000..789a44405524
--- /dev/null
+++ b/net-misc/netkit-rwho/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>netmon@gentoo.org</email>
+ <name>Gentoo network monitoring and analysis project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild b/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild
new file mode 100644
index 000000000000..a3fa25da9c79
--- /dev/null
+++ b/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Netkit - ruptime/rwho/rwhod"
+HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
+SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz
+ https://dev.gentoo.org/~jer/${P}-patches.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~mips ppc s390 sh sparc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${WORKDIR}"/000{1,2,3,4}-*.patch
+ epatch "${FILESDIR}"/${P}-printf.patch #529974
+}
+
+src_configure() {
+ # Not an autotools build system
+ ./configure --with-c-compiler=$(tc-getCC) || die
+ sed -i \
+ -e "s:-O2::" \
+ -e "s:-Wpointer-arith::" \
+ MCONFIG || die
+}
+
+src_install() {
+ keepdir /var/spool/rwho
+
+ into /usr
+ dobin ruptime/ruptime rwho/rwho
+ dosbin rwhod/rwhod
+
+ doman ruptime/ruptime.1 rwho/rwho.1 rwhod/rwhod.8
+ dodoc README ChangeLog
+
+ newinitd "${FILESDIR}"/${P}-rc rwhod
+ newconfd "${FILESDIR}"/${P}-confd rwhod
+
+ exeinto /etc/cron.monthly
+ doexe "${FILESDIR}"/${P}-cron
+}