c5c648567d
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2671 6952d904-891a-0410-993b-d76249ca496b
41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# Copyright 1999-2010 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI=2
|
|
inherit eutils autotools
|
|
|
|
DESCRIPTION="Secure, small, anonymous only ftpd"
|
|
HOMEPAGE="http://www.time-travellers.org/oftpd"
|
|
SRC_URI="http://www.time-travellers.org/oftpd/${P}.tar.gz"
|
|
|
|
LICENSE="as-is"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sh ~sparc ~x86"
|
|
IUSE="ipv6"
|
|
|
|
DEPEND="net-ftp/ftpbase"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/oftpd-0.3.7-ipv6rel2-1.patch
|
|
# Don't crash when using an unsupported address family, #159178.
|
|
epatch "${FILESDIR}"/oftpd-0.3.7-family-1.patch
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
# local myconf
|
|
# ipv6 support busted according to lamer
|
|
# use ipv6 && myconf="${myconf} --enable-ipv6"
|
|
econf --bindir=/usr/sbin $(use_enable ipv6) || die
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die
|
|
dodoc AUTHORS BUGS FAQ NEWS README TODO
|
|
keepdir /home/ftp
|
|
newinitd "${FILESDIR}"/init.d.oftpd-r1 oftpd
|
|
newconfd "${FILESDIR}"/conf.d.oftpd-r6 oftpd
|
|
}
|