/[gentoo-x86]/net-misc/sendfile/sendfile-2.1b-r1.ebuild
Gentoo

Contents of /net-misc/sendfile/sendfile-2.1b-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Jun 28 10:05:34 2012 UTC (7 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for amd64, wrt bug #397181

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 ranger 1.2 # Copyright 1999-2012 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 ago 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/sendfile/sendfile-2.1b-r1.ebuild,v 1.3 2012/02/16 19:11:15 phajdan.jr Exp $
4 jer 1.1
5     inherit toolchain-funcs
6    
7     DESCRIPTION="SAFT implementation for UNIX and serves as a tool for asynchronous sending of files in the Internet"
8     HOMEPAGE="http://fex.rus.uni-stuttgart.de/saft/sendfile.html"
9     SRC_URI="http://fex.rus.uni-stuttgart.de/download/${P}.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13 ago 1.4 KEYWORDS="amd64 ppc x86"
14 jer 1.1 IUSE=""
15    
16     RDEPEND="virtual/inetd"
17    
18     src_compile() {
19     ./makeconfig \
20     "CFLAGS=\"${CFLAGS}\" \
21     CC=$(tc-getCC) \
22     LDFLAGS=\"${LDFLAGS}\" \
23     BINDIR=/usr/bin \
24     MANDIR=/usr/share/man \
25     CONFIG=/etc/sendfile \
26     SERVERDIR=/usr/sbin" || die "./makeconfig failed"
27    
28     make all || die "make all failed"
29     }
30    
31     src_install() {
32     into /usr
33     dosbin src/sendfiled
34     dobin etc/check_sendfile src/sendfile src/sendmsg src/receive src/fetchfile
35     dobin src/utf7encode src/wlock etc/sfconf etc/sfdconf
36     dosym /usr/bin/utf7encode /usr/bin/utf7decode
37    
38     dodir /etc/sendfile
39     dodir /var/spool/sendfile
40     dodir /var/spool/sendfile/LOG
41     dodir /var/spool/sendfile/OUTGOING
42     fperms 0700 /var/spool/sendfile/LOG
43     fperms 1777 /var/spool/sendfile/OUTGOING
44    
45     insinto /etc/sendfile
46     doins etc/sendfile.deny etc/sendfile.cf
47    
48     insinto /etc/xinetd.d
49     doins "${FILESDIR}/sendfiled" || die
50    
51     doman doc/sendmsg.1 doc/sendfile.1 doc/receive.1 doc/fetchfile.1
52    
53     dodoc doc/AUTHORS doc/ChangeLog doc/README* doc/THANKS
54     }
55    
56     pkg_postinst() {
57     einfo "To start the sendfile daemon you have to start xinetd"
58     }

  ViewVC Help
Powered by ViewVC 1.1.20