summaryrefslogtreecommitdiff
path: root/net-misc/netkit-fingerd
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-fingerd
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/netkit-fingerd')
-rw-r--r--net-misc/netkit-fingerd/Manifest8
-rw-r--r--net-misc/netkit-fingerd/files/fingerd.xinetd10
-rw-r--r--net-misc/netkit-fingerd/files/netkit-fingerd-0.17-name-check.patch26
-rw-r--r--net-misc/netkit-fingerd/files/netkit-fingerd-0.17-r2-gentoo.diff22
-rw-r--r--net-misc/netkit-fingerd/metadata.xml8
-rw-r--r--net-misc/netkit-fingerd/netkit-fingerd-0.17-r3.ebuild47
6 files changed, 121 insertions, 0 deletions
diff --git a/net-misc/netkit-fingerd/Manifest b/net-misc/netkit-fingerd/Manifest
new file mode 100644
index 000000000000..75a7fc3f3061
--- /dev/null
+++ b/net-misc/netkit-fingerd/Manifest
@@ -0,0 +1,8 @@
+AUX fingerd.xinetd 250 SHA256 b952f642f8ffefe94f107bb25470eccab9473df631f066118447de634ac66fa1 SHA512 7867a6463fd1c0d6994d2c6a0f2d6e7ebb558b2d3131df478cd736aa2028a6c5246d3d7f3959af9057a6446a2350f25bcf1d956d0b6cf4809d729a5dae2a004b WHIRLPOOL a56b332f9708bbe91f32df0e7550ce765f1354878347ed3706f40869aaa0f6beb3273fe7f89ba7e24d231d729afb6fe48f23af62c37fda39d16aac8d0ead1387
+AUX netkit-fingerd-0.17-name-check.patch 681 SHA256 d0c5b654751e29b6853c93a0b75b960e6d82a5625bec94e030fb65e2e038ac62 SHA512 832afddbf7c5d9985fd5ffd87f3354be1c2aba4a82146e2ebfca81045c80b91238b31f94ef72409042e8fd8c250108d2d29feb3a1ce1acd77769d3df8a09c23a WHIRLPOOL 1b70f3bc096c40c1760297fd0c8056903d7c35804400a938d47128c57abd36115dd02f5195011a2a9c7f29dbaca8ad602c711518f3f070a7e7edc014c85a0861
+AUX netkit-fingerd-0.17-r2-gentoo.diff 603 SHA256 5abad3b9d3088d9fbe46de2e3c7a94f7a6ccfc656b0069b7a004b276906ba596 SHA512 1948a9c350a31497fa681aa6061ac859a5a3b18b9efb4b87a323a45a1472c6ddc31e50da33b891701f2e7196ea6fa07a40c31575ba261f9c2f3a6e28b35dbbb1 WHIRLPOOL 1d077f2123f395ff50c32d239cf4096a4f7fc8027f2b3e0d84bf0c04a1111dc99b29023245208d0116da2d4adef4a8b4fdc785735c865a73f162c1c965042b13
+DIST bsd-finger_0.17.orig.tar.gz 25521 SHA256 84885d668d117ef50e01c7034a45d8343d747cec6212e40e8d08151bc18e13fa SHA512 07570a9a5797579273938ef728f222f483c733e78eb6acb00e2bce9ff9df29aa85ed715872032701c8f67fcbc7cf5501f12dc2b8234c30df7d25f50cc38359b0 WHIRLPOOL bb1fe0bcba7197513fb8a56a60f17a52049e82e37d1f21a2012943aeb5092cdcc711421e621536d9497383e26466237a7cfeb50884e23575c2b522b2784fb39b
+EBUILD netkit-fingerd-0.17-r3.ebuild 1141 SHA256 ffb900ae711f1f3c9b6ad23ee065d10842f7fa6f4182e9b2f0cd224446fe6f84 SHA512 1e2e9633e73d10e52bcd6e29d748f6d935cd294b0bafdb33ebd7c822afeeeb924f74d3e1997c5e7efb230b7250ad049f4821c946bcff8de54458ee99f1cba373 WHIRLPOOL aa831a73bba1d992c227ba614a9605b689d49b116d7274464cebc0788749f0dd8ccd32b6a75082dd26095aaa89240e0cdce5f240918040e58b129194be3176ac
+MISC ChangeLog 2567 SHA256 353715b5397ebef99fe10628e8a94196bf49c37a838b084bc7c48bfb155cee3e SHA512 01ac9fb176f6f4fc337bcadb175ee494497885015e38205571db5459da286ba0e0701f6004d9bc1957d139a3f67ea1ca7e9c3c71c3f4d8f493f186d132727412 WHIRLPOOL 08d8def6cb05932266819e917d39048bbb0ef1e2ca46fd49b1f60fe7807a5853325977864057733dd0c27954c1c6dfe8b7a0062ac62fcfee65217df882abdee1
+MISC ChangeLog-2015 2865 SHA256 cc3fcca3e61895b8b0de4dded3d5d6fe421bf769a3e11d98599e11f0f45541a9 SHA512 36ff8d19dd1fb5e70ad87a3bd24f258bc0cae747753427514e672581f6561b137ff91f304945c8b3bdada602b8ccbc270cdbcf27ff1016c7fd4aafc495a22370 WHIRLPOOL a2979c9d6649325d81d3ef194cc630bc8c65943f802bc235e71f499d7e713a5a86cb62aa0f2428b971750a3677968d0250496466e74127deb8fbadd2aeb6cd29
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/net-misc/netkit-fingerd/files/fingerd.xinetd b/net-misc/netkit-fingerd/files/fingerd.xinetd
new file mode 100644
index 000000000000..f5a86e3686b3
--- /dev/null
+++ b/net-misc/netkit-fingerd/files/fingerd.xinetd
@@ -0,0 +1,10 @@
+service finger
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = nobody
+ server = /usr/sbin/in.fingerd
+ server_args = -w
+ disable = yes
+}
diff --git a/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-name-check.patch b/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-name-check.patch
new file mode 100644
index 000000000000..aa40221f4e01
--- /dev/null
+++ b/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-name-check.patch
@@ -0,0 +1,26 @@
+fix possible usage of uninitialized memory
+
+http://bugs.gentoo.org/80286
+
+--- bsd-finger-0.17/finger/lprint.c
++++ bsd-finger-0.17/finger/lprint.c
+@@ -100,7 +100,7 @@
+ * office, office phone, home phone if available
+ */
+ xprintf("Login: %-15s\t\t\tName: %s\nDirectory: %-25s",
+- pn->name, pn->realname, pn->dir);
++ pn->name, pn->realname ? pn->realname : "", pn->dir);
+ xprintf("\tShell: %-s\n", *pn->shell ? pn->shell : _PATH_BSHELL);
+
+ /*
+--- bsd-finger-0.17/finger/util.c
++++ bsd-finger-0.17/finger/util.c
+@@ -149,6 +149,8 @@
+ rname[j] = 0;
+
+ pn->realname = rname;
++ } else {
++ pn->realname = NULL;
+ }
+
+ pn->office = fields[1] ? strdup(fields[1]) : NULL;
diff --git a/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-r2-gentoo.diff b/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-r2-gentoo.diff
new file mode 100644
index 000000000000..e7c2d776147d
--- /dev/null
+++ b/net-misc/netkit-fingerd/files/netkit-fingerd-0.17-r2-gentoo.diff
@@ -0,0 +1,22 @@
+--- bsd-finger-0.17/finger/lprint.c~ Tue Sep 14 12:51:11 1999
++++ bsd-finger-0.17/finger/lprint.c Sun Apr 29 21:49:04 2001
+@@ -48,7 +48,7 @@
+ #include <sys/types.h>
+ #include <sys/file.h>
+ #include <sys/stat.h>
+-#include <sys/time.h>
++#include <time.h>
+ #include "finger.h"
+
+ static void lprint(PERSON *pn);
+--- bsd-finger-0.17/finger/sprint.c~ Sun Dec 12 19:59:33 1999
++++ bsd-finger-0.17/finger/sprint.c Sun Apr 29 21:49:22 2001
+@@ -40,7 +40,7 @@
+ #endif /* not lint */
+
+ #include <sys/types.h>
+-#include <sys/time.h>
++#include <time.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/net-misc/netkit-fingerd/metadata.xml b/net-misc/netkit-fingerd/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/net-misc/netkit-fingerd/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>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/netkit-fingerd/netkit-fingerd-0.17-r3.ebuild b/net-misc/netkit-fingerd/netkit-fingerd-0.17-r3.ebuild
new file mode 100644
index 000000000000..e450f0098835
--- /dev/null
+++ b/net-misc/netkit-fingerd/netkit-fingerd-0.17-r3.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
+
+MY_PN="${PN/netkit/bsd}"
+MY_PN="${MY_PN/rd/r}"
+DESCRIPTION="Netkit - fingerd and finger client"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+SRC_URI="mirror://debian/pool/main/b/${MY_PN}/${MY_PN}_${PV}.orig.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-r2-gentoo.diff
+ epatch "${FILESDIR}"/${P}-name-check.patch #80286
+}
+
+src_configure() {
+ # We'll skip this stage as the configure script is crappy and not really
+ # needed -- src_install installs all files by hand.
+ touch MCONFIG
+ tc-export CC
+}
+
+src_compile() {
+ emake CC="${CC}"
+}
+
+src_install() {
+ dobin finger/finger
+ dosbin fingerd/fingerd
+ dosym fingerd /usr/sbin/in.fingerd
+ doman finger/finger.1 fingerd/fingerd.8
+ dosym fingerd.8 /usr/share/man/man8/in.fingerd.8
+ dodoc README ChangeLog BUGS
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/fingerd.xinetd fingerd
+}