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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Dec 6 20:20:23 2012 UTC (7 years, 2 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Fix LICENSE, BSD according to notices in source files, bug 446298.

(Portage version: 2.1.11.33/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

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-ftpd/netkit-ftpd-0.17-r8.ebuild,v 1.6 2009/01/03 18:36:26 bangert Exp $
4
5 inherit eutils ssl-cert toolchain-funcs
6
7 MY_P="linux-ftpd-${PV}"
8 DESCRIPTION="The netkit FTP server with optional SSL support"
9 HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
10 SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${MY_P}.tar.gz
11 mirror://gentoo/${MY_P}-ssl.patch"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm ia64 ppc ~ppc64 s390 sh sparc x86"
16 IUSE="ssl"
17
18 DEPEND="ssl? ( dev-libs/openssl )"
19 RDEPEND="${DEPEND}
20 virtual/inetd
21 !www-servers/publicfile"
22
23 S=${WORKDIR}/${MY_P}
24
25 src_unpack() {
26 unpack ${MY_P}.tar.gz
27 cd "${S}"
28 use ssl && epatch "${DISTDIR}"/${MY_P}-ssl.patch "${FILESDIR}"/${P}-cleanup-ssl.patch
29 epatch "${FILESDIR}"/${P}-cleanup.patch
30 epatch "${FILESDIR}"/${P}-build.patch
31 epatch "${FILESDIR}"/${P}-shadowfix.patch
32 epatch "${FILESDIR}"/${P}-gcc41.patch
33 epatch "${FILESDIR}"/${P}-setguid.patch
34 epatch "${FILESDIR}"/${P}-cross.patch
35 epatch "${FILESDIR}"/${P}-CVE-2008-4247.patch #239047
36 use ssl && epatch "${FILESDIR}"/${P}-fclose-CVE-2007-6263.patch #199206
37 }
38
39 src_compile() {
40 tc-export CC
41 ./configure --prefix=/usr || die "configure failed"
42 emake || die "parallel make failed"
43 }
44
45 src_install() {
46 dobin ftpd/ftpd || die
47 doman ftpd/ftpd.8
48 dodoc README ChangeLog
49 insinto /etc/xinetd.d
50 newins "${FILESDIR}"/ftp.xinetd ftp
51 }
52
53 pkg_postinst() {
54 if use ssl ; then
55 install_cert /etc/ssl/certs/ftpd
56 elog "In order to start the server with SSL support"
57 elog "You need a certificate /etc/ssl/certs/ftpd.pem."
58 elog "A temporary certificiate has been created."
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20