summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/sendfile
downloadgentoo-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/sendfile')
-rw-r--r--net-misc/sendfile/Manifest1
-rw-r--r--net-misc/sendfile/files/sendfiled11
-rw-r--r--net-misc/sendfile/metadata.xml7
-rw-r--r--net-misc/sendfile/sendfile-2.1b-r1.ebuild58
4 files changed, 77 insertions, 0 deletions
diff --git a/net-misc/sendfile/Manifest b/net-misc/sendfile/Manifest
new file mode 100644
index 000000000000..c7c3d4ab09e4
--- /dev/null
+++ b/net-misc/sendfile/Manifest
@@ -0,0 +1 @@
+DIST sendfile-2.1b.tar.gz 342757 RMD160 4bc23f4bc7ec26c5ff3625e0dec6f369d0203a00 SHA1 4c4842ae1c44bfbfe4c8d1b3646ebb4b29bcd341 SHA256 f16aefa718a6201933d1f2cf6947b91db838cfd4e7fce885fa9f0d4ac997b9de
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..d9cd2cad66c2
--- /dev/null
+++ b/net-misc/sendfile/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/sendfile/sendfile-2.1b-r1.ebuild b/net-misc/sendfile/sendfile-2.1b-r1.ebuild
new file mode 100644
index 000000000000..2aef3e0d2089
--- /dev/null
+++ b/net-misc/sendfile/sendfile-2.1b-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="SAFT implementation for UNIX and serves as a tool 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"
+}