/[gentoo-x86]/net-ftp/netkit-tftp/netkit-tftp-0.17-r8.ebuild
Gentoo

Contents of /net-ftp/netkit-tftp/netkit-tftp-0.17-r8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Dec 25 13:51:26 2012 UTC (19 months, 3 weeks ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop masked for removal package

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-ftp/netkit-tftp/netkit-tftp-0.17-r8.ebuild,v 1.2 2012/07/22 20:26:46 vapier Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="the tftp server included in netkit"
10 HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
11 SRC_URI="mirror://gentoo/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
16 IUSE=""
17
18 DEPEND="virtual/inetd"
19 RDEPEND="!net-ftp/atftp
20 !net-ftp/tftp-hpa
21 ${DEPEND}"
22
23 src_prepare() {
24 # Change default man directory
25 sed -i \
26 -e 's:MANDIR="$PREFIX/man":MANDIR="$PREFIX/share/man":' \
27 -e 's:^LDFLAGS=::' \
28 configure
29
30 # don't prestrip binaries
31 find . -name Makefile -print0 | xargs -0 sed -i -e 's:install -s:install:'
32
33 # Solve QA warning by including string.h
34 epatch "${FILESDIR}"/memset.patch
35 epatch "${FILESDIR}"/${P}-tftp-connect-segfault.patch
36 epatch "${FILESDIR}"/${P}-tftp-manpage-typo.patch
37 epatch "${FILESDIR}"/${P}-tftp-fix-put-zero-size.diff
38 epatch "${FILESDIR}"/${P}-tftpd-put-fixes.patch
39 epatch "${FILESDIR}"/${P}-socket-reopen-on-errors.patch
40 rm include/arpa/tftp.h || die #425184
41 }
42
43 src_configure() {
44 ./configure \
45 --prefix=/usr \
46 --installroot="${D}" \
47 --with-c-compiler="$(tc-getCC)" \
48 || die
49 }
50
51 src_install() {
52 dodir /usr/bin /usr/sbin /usr/share/man/man{1,8}
53 emake install || die
54 rm -f "${D}"/usr/share/man/man8/tftpd.8 #214734, collision with iputils
55 insinto /etc/xinetd.d
56 doins "${FILESDIR}"/{tftp-dgram,tftp-stream}
57 dodoc BUGS ChangeLog README
58 }

  ViewVC Help
Powered by ViewVC 1.1.20