source: net-ftp/oftpd/oftpd-0.3.7-r10.ebuild @ f3987e6

Revision f3987e6, 1.5 KB checked in by Mario Fetka <mario.fetka@…>, 11 months ago (diff)

Bump

  • Property mode set to 100644
Line 
1# Copyright 1999-2018 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=4
5
6inherit autotools eutils
7
8DESCRIPTION="Secure, small, anonymous only ftpd"
9HOMEPAGE="http://www.time-travellers.org/oftpd"
10SRC_URI="http://www.time-travellers.org/oftpd/${P}.tar.gz
11        ftp://ftp.deepspace6.net/pub/ds6/sources/${PN}/${PN}-0.3.6-ipv6rel2.patch.gz
12        http://flashback.sorbs.net/packages/ports/ftp/oftpd/files/patch-ftp_session.c -> ${PN}-ftp_session.patch"
13
14LICENSE="BSD-2"
15SLOT="0"
16KEYWORDS="amd64 arm ppc ppc64 sh sparc x86"
17IUSE="ipv6"
18
19DEPEND="net-ftp/ftpbase"
20RDEPEND="${DEPEND}"
21
22src_prepare() {
23        cd "${WORKDIR}" || die
24        epatch "${FILESDIR}"/oftpd-0.3.7-ipv6rel2-0.3.6-to-0.3.7.patch
25
26        cd "${S}" || die
27        epatch "${WORKDIR}"/${PN}-0.3.6-ipv6rel2.patch
28        epatch "${DISTDIR}"/${PN}-ftp_session.patch
29        epatch "${FILESDIR}"/${PN}-0.3.7-delay-root-check.patch
30        epatch "${FILESDIR}"/${PN}-0.3.7-error-output.patch
31        epatch "${FILESDIR}"/${PN}-0.3.7-pthread-cancel.patch
32        epatch "${FILESDIR}"/${PN}-0.3.7-configure-ipv6.patch
33        epatch "${FILESDIR}"/${PN}-0.3.7-ipv4.patch
34
35        # Don't crash when using an unsupported address family, #159178.
36        # updated in bug #157005
37        epatch "${FILESDIR}"/${P}-family-1.patch
38
39        # htons patch #371963
40        epatch "${FILESDIR}"/${P}-htons.patch
41
42        epatch "${FILESDIR}"/${P}-unistd.patch
43        eautoreconf
44}
45
46src_configure() {
47        econf --bindir=/usr/sbin $(use_enable ipv6)
48}
49
50src_install() {
51        default
52        keepdir /home/ftp
53        newinitd "${FILESDIR}"/init.d.oftpd-r7 oftpd
54        newconfd "${FILESDIR}"/conf.d.oftpd-r7 oftpd
55}
Note: See TracBrowser for help on using the repository browser.