From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-misc/sendfile/Manifest | 6 ++++ net-misc/sendfile/files/sendfiled | 11 ++++++ net-misc/sendfile/metadata.xml | 5 +++ net-misc/sendfile/sendfile-2.1b-r1.ebuild | 57 +++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 net-misc/sendfile/Manifest create mode 100644 net-misc/sendfile/files/sendfiled create mode 100644 net-misc/sendfile/metadata.xml create mode 100644 net-misc/sendfile/sendfile-2.1b-r1.ebuild (limited to 'net-misc/sendfile') diff --git a/net-misc/sendfile/Manifest b/net-misc/sendfile/Manifest new file mode 100644 index 000000000000..c8709d62fae4 --- /dev/null +++ b/net-misc/sendfile/Manifest @@ -0,0 +1,6 @@ +AUX sendfiled 311 SHA256 7efa6cbce68ecaccdd601181e41cd86a973fdc8cd13c72987043513f6fcf2ee2 SHA512 4e09fd7ad4d527f23dba533824c053c433807b117f776d3aac91ef786e95d195bda152a804c4efc95ad0b2b18fb6b4970dcd701a90072870cbdd89e203326a09 WHIRLPOOL f6badb8430d6d826018de1d7b05d2f80efdb964915630edbc8f63503a0c0e78209621956128cace72df95f08e040e43709da5cada696b5a5f57613a32e6a435d +DIST sendfile-2.1b.tar.gz 342757 SHA256 f16aefa718a6201933d1f2cf6947b91db838cfd4e7fce885fa9f0d4ac997b9de SHA512 c5dbe6286af13e53a5c8de92eb177cfe07b449cf7e0b3d7c911518ae9823536673e338e3c64297e106845ce4aaeaec113af75ce28e8b73b31b4e4d898f905381 WHIRLPOOL 904acf226d5af7b897e65c53bc7875f67d98a7597f4aae648fafc6de2f02a7ab165b65a7528f3760d64070c58a5a0809d06832cd13fce01a35a5511934bc8ae5 +EBUILD sendfile-2.1b-r1.ebuild 1452 SHA256 bc4c3651091743a372d2f941f27d13ceafc11c29e125a7f6409f52b94757757b SHA512 dc44289b56d9a6f6175d8a812d21ab1568d561375e3c93e87ad0195f2c7f07d56bc84d9ed292430af3adad12952a3f62aebba89a1fa6c0beb33a743647b07d8f WHIRLPOOL d2bafc1821a483efac65501dde41fd39d8c76d5dd7b984f96c3e5b5305ad0b19d79e0c0d720e883e8f9991f4720758f4d771fb5705bcb185a34f736d17ffc148 +MISC ChangeLog 2547 SHA256 2cde8335d4e4e131ddf0c91674ba2e5129f28d8e992c5f4fccc8db8af9b0f382 SHA512 98a72d89f7cd35a29cb01a044bf3b29c92bb615ecb9959495bf5991cf026c71435662ba949113ba10338f75f9571d81abdad6b98845da1554978c2eba0dc66ab WHIRLPOOL ea18fd2c9e1658e7877246aee7093dbcf56ecf0ff4b34f57b8b40b364b5f3e5afdcd107ab8f1b0b1b67272da4d19a78e9dcea4fa3ef1ce27879477103ea3a363 +MISC ChangeLog-2015 1751 SHA256 f1902eaf3772c18a7d05ce230711ed5301b3e6ed00e14d7a5384524367390be2 SHA512 de650c57136bef64e17c48591f4caf2ba326a6de72f5a132e8c2dd1b01b245747125a88d060066c44a27e9d8f200ee34f16e6d742d6841bf00579a5cac84e8f8 WHIRLPOOL ab5cff66221ca95a3b73843ce09d54738c06f94435c4ea207c7fd97e0ce3dd0e48f80551e722d94674d24887fd326c5e8921c2807dea8335dcb0c0723cdb42f9 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-misc/sendfile/files/sendfiled b/net-misc/sendfile/files/sendfiled new file mode 100644 index 000000000000..335887c4b9c8 --- /dev/null +++ b/net-misc/sendfile/files/sendfiled @@ -0,0 +1,11 @@ +service saft +{ + socket_type = stream + protocol = tcp + wait = no + user = root + server = /usr/sbin/sendfiled + #the following is required, even for local host communications. + #only_from = 127.0.0.1 + disable = yes #change this to actually run sendfiled +} diff --git a/net-misc/sendfile/metadata.xml b/net-misc/sendfile/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-misc/sendfile/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/net-misc/sendfile/sendfile-2.1b-r1.ebuild b/net-misc/sendfile/sendfile-2.1b-r1.ebuild new file mode 100644 index 000000000000..65d8fda6c0d6 --- /dev/null +++ b/net-misc/sendfile/sendfile-2.1b-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit toolchain-funcs + +DESCRIPTION="SAFT implementation for asynchronous sending of files in the Internet" +HOMEPAGE="http://fex.rus.uni-stuttgart.de/saft/sendfile.html" +SRC_URI="http://fex.rus.uni-stuttgart.de/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="virtual/inetd" + +src_compile() { + ./makeconfig \ + "CFLAGS=\"${CFLAGS}\" \ + CC=$(tc-getCC) \ + LDFLAGS=\"${LDFLAGS}\" \ + BINDIR=/usr/bin \ + MANDIR=/usr/share/man \ + CONFIG=/etc/sendfile \ + SERVERDIR=/usr/sbin" || die "./makeconfig failed" + + make all || die "make all failed" +} + +src_install() { + into /usr + dosbin src/sendfiled + dobin etc/check_sendfile src/sendfile src/sendmsg src/receive src/fetchfile + dobin src/utf7encode src/wlock etc/sfconf etc/sfdconf + dosym /usr/bin/utf7encode /usr/bin/utf7decode + + dodir /etc/sendfile + dodir /var/spool/sendfile + dodir /var/spool/sendfile/LOG + dodir /var/spool/sendfile/OUTGOING + fperms 0700 /var/spool/sendfile/LOG + fperms 1777 /var/spool/sendfile/OUTGOING + + insinto /etc/sendfile + doins etc/sendfile.deny etc/sendfile.cf + + insinto /etc/xinetd.d + doins "${FILESDIR}/sendfiled" || die + + doman doc/sendmsg.1 doc/sendfile.1 doc/receive.1 doc/fetchfile.1 + + dodoc doc/AUTHORS doc/ChangeLog doc/README* doc/THANKS +} + +pkg_postinst() { + einfo "To start the sendfile daemon you have to start xinetd" +} -- cgit v1.2.3