diff options
author | Jeroen Roovers <jer@gentoo.org> | 2009-09-04 16:05:46 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2009-09-04 16:05:46 +0000 |
commit | 08d73dfb8bd5d191ed7d06e1fc7892a11f5b3ae7 (patch) | |
tree | e0329e27c8160a7daa15e60e08f2d3ace4b6b808 /net-misc/sendfile/sendfile-2.1b-r1.ebuild | |
parent | Remove old (diff) | |
download | gentoo-2-08d73dfb8bd5d191ed7d06e1fc7892a11f5b3ae7.tar.gz gentoo-2-08d73dfb8bd5d191ed7d06e1fc7892a11f5b3ae7.tar.bz2 gentoo-2-08d73dfb8bd5d191ed7d06e1fc7892a11f5b3ae7.zip |
Respect CC, LDFLAGS (thereby also preventing stripping, bug #241018).
(Portage version: 2.2_rc40/cvs/Linux i686)
Diffstat (limited to 'net-misc/sendfile/sendfile-2.1b-r1.ebuild')
-rw-r--r-- | net-misc/sendfile/sendfile-2.1b-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
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..ab2f359ae43f --- /dev/null +++ b/net-misc/sendfile/sendfile-2.1b-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/sendfile/sendfile-2.1b-r1.ebuild,v 1.1 2009/09/04 16:05:46 jer Exp $ + +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" +} |