diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/netkit-talk | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/netkit-talk')
-rw-r--r-- | net-misc/netkit-talk/Manifest | 1 | ||||
-rw-r--r-- | net-misc/netkit-talk/files/netkit-talk-0.17-ipv6.diff | 56 | ||||
-rw-r--r-- | net-misc/netkit-talk/files/netkit-talk-0.17-time.patch | 20 | ||||
-rw-r--r-- | net-misc/netkit-talk/files/talk.xinetd | 13 | ||||
-rw-r--r-- | net-misc/netkit-talk/metadata.xml | 7 | ||||
-rw-r--r-- | net-misc/netkit-talk/netkit-talk-0.17-r5.ebuild | 56 |
6 files changed, 153 insertions, 0 deletions
diff --git a/net-misc/netkit-talk/Manifest b/net-misc/netkit-talk/Manifest new file mode 100644 index 000000000000..8eb414ad8fc6 --- /dev/null +++ b/net-misc/netkit-talk/Manifest @@ -0,0 +1 @@ +DIST netkit-ntalk-0.17.tar.gz 37396 SHA256 d8f614e8d4d7981a0adf0f84d2d3954018d5fe0e57a8e5731256d66cbcf45e90 SHA512 5a886c0f73179060f926d4af781a6b9d4de7b62562a69db7b93c4fd783ad12b488ee967af18e5a11f98e7f94d659c1688d2a3d4ba4a00bdec31869aa39a321c5 WHIRLPOOL 0c37b9dffb1a17e93105ebf56b42f4014bd839abc077d4e8b11aa3d4d49cb8f791bbff704ed6d6b248302b2a8f3554a7093da2f86c9e975424adbaa084e2ca15 diff --git a/net-misc/netkit-talk/files/netkit-talk-0.17-ipv6.diff b/net-misc/netkit-talk/files/netkit-talk-0.17-ipv6.diff new file mode 100644 index 000000000000..f426bf7dfadf --- /dev/null +++ b/net-misc/netkit-talk/files/netkit-talk-0.17-ipv6.diff @@ -0,0 +1,56 @@ +--- a/talkd/talkd.c ++++ b/talkd/talkd.c +@@ -164,13 +164,14 @@ + const char *theirip; + + struct hostent *hp; ++ struct sockaddr_in6 addr; + struct sockaddr_in sn; + int cc, i, ok; + socklen_t addrlen; + +- addrlen = sizeof(sn); ++ addrlen = sizeof(addr); + cc = recvfrom(0, inbuf, sizeof(inbuf), 0, +- (struct sockaddr *)&sn, &addrlen); ++ (struct sockaddr *)&addr, &addrlen); + if (cc<0) { + if (errno==EINTR || errno==EAGAIN) { + return; +@@ -185,14 +186,30 @@ + */ + lastmsgtime = time(NULL); + +- if (addrlen!=sizeof(sn)) { +- syslog(LOG_WARNING, "recvfrom: bogus address length"); +- return; +- } +- if (sn.sin_family!=AF_INET) { ++ sn.sin_family = AF_INET; ++ switch (addr.sin6_family) ++ { ++ case AF_INET: ++ sn.sin_addr=((struct sockaddr_in*)&addr)->sin_addr; ++ sn.sin_port=((struct sockaddr_in*)&addr)->sin_port; ++ break; ++ case AF_INET6: ++ // addr must be ::FFFF:x.x.x.x ++ if (addr.sin6_addr.s6_addr32[0]!=0 || ++ addr.sin6_addr.s6_addr32[1]!=0 || ++ addr.sin6_addr.s6_addr16[5]!=0xffff || ++ addr.sin6_addr.s6_addr16[4]!=0) ++ { ++ syslog(LOG_WARNING, "IPv6 address family not supported by talkd"); ++ return; ++ } ++ sn.sin_port=addr.sin6_port; ++ sn.sin_addr.s_addr=addr.sin6_addr.s6_addr32[3]; ++ break; ++ default: + syslog(LOG_WARNING, "recvfrom: bogus address family"); + return; +- } ++ } + + /* + * If we get here we have an address we can reply to, although diff --git a/net-misc/netkit-talk/files/netkit-talk-0.17-time.patch b/net-misc/netkit-talk/files/netkit-talk-0.17-time.patch new file mode 100644 index 000000000000..3a0ccadcb744 --- /dev/null +++ b/net-misc/netkit-talk/files/netkit-talk-0.17-time.patch @@ -0,0 +1,20 @@ +--- a/talkd/table.c ++++ b/talkd/table.c +@@ -57,6 +57,7 @@ + + #include "prot_talkd.h" + #include "proto.h" ++#include <time.h> + + #define MAX_ID 16000 /* << 2^15 so I don't have sign troubles */ + +--- a/talkd/announce.c ++++ b/talkd/announce.c +@@ -49,6 +49,7 @@ + #include <fcntl.h> + #include <string.h> + #include <paths.h> ++#include <time.h> + #include "prot_talkd.h" + #include "proto.h" + diff --git a/net-misc/netkit-talk/files/talk.xinetd b/net-misc/netkit-talk/files/talk.xinetd new file mode 100644 index 000000000000..524282582b24 --- /dev/null +++ b/net-misc/netkit-talk/files/talk.xinetd @@ -0,0 +1,13 @@ +# default: off +# description: The talk server accepts talk requests for chatting with users \ +# on other systems. +service ntalk +{ +# flags = IPv4 + disable = yes + socket_type = dgram + wait = yes + user = nobody + group = tty + server = /usr/sbin/in.talkd +} diff --git a/net-misc/netkit-talk/metadata.xml b/net-misc/netkit-talk/metadata.xml new file mode 100644 index 000000000000..d9cd2cad66c2 --- /dev/null +++ b/net-misc/netkit-talk/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> +<email>maintainer-needed@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-misc/netkit-talk/netkit-talk-0.17-r5.ebuild b/net-misc/netkit-talk/netkit-talk-0.17-r5.ebuild new file mode 100644 index 000000000000..d0a645ed1d63 --- /dev/null +++ b/net-misc/netkit-talk/netkit-talk-0.17-r5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +MY_P=netkit-ntalk-${PV} +S=${WORKDIR}/netkit-ntalk-${PV} + +DESCRIPTION="Netkit - talkd" +HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86" +IUSE="ipv6" + +COMMON_DEPEND=">=sys-libs/ncurses-5.2" +DEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig +" +RDEPEND=" + ${COMMON_DEPEND} + virtual/inetd +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-time.patch + use ipv6 && epatch "${FILESDIR}"/${P}-ipv6.diff + sed -i configure -e '/^LDFLAGS=/d' || die +} + +src_configure() { + # not autotools based? + ./configure --with-c-compiler=$(tc-getCC) || die +} + +src_compile() { + emake LIBCURSES="$( $(tc-getPKG_CONFIG) --libs ncurses )" +} + +src_install() { + insinto /etc/xinetd.d + newins "${FILESDIR}"/talk.xinetd talk + dobin talk/talk + doman talk/talk.1 + dosbin talkd/talkd + dosym talkd /usr/sbin/in.talkd + doman talkd/talkd.8 + dosym talkd.8 /usr/share/man/man8/in.talkd.8 + dodoc README ChangeLog BUGS +} |