You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.8 KiB
79 lines
1.8 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit autotools flag-o-matic systemd
|
||
11 years ago
|
|
||
|
DEBIAN_PV="11"
|
||
6 years ago
|
DEBIAN_A="${PN}_${PV}-${DEBIAN_PV}.diff"
|
||
11 years ago
|
|
||
|
DESCRIPTION="Advanced TFTP implementation client/server"
|
||
6 years ago
|
HOMEPAGE="https://sourceforge.net/projects/atftp/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.dfsg.tar.gz
|
||
|
mirror://debian/pool/main/a/${PN}/${DEBIAN_A}.gz"
|
||
11 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
11 years ago
|
KEYWORDS="amd64 arm ppc ppc64 ~s390 sparc x86"
|
||
11 years ago
|
IUSE="selinux tcpd readline pcre"
|
||
|
|
||
|
DEPEND="tcpd? ( sys-apps/tcp-wrappers )
|
||
6 years ago
|
readline? ( sys-libs/readline:0= )
|
||
11 years ago
|
pcre? ( dev-libs/libpcre )"
|
||
|
RDEPEND="${DEPEND}
|
||
|
!net-ftp/netkit-tftp
|
||
10 years ago
|
!net-ftp/tftp-hpa
|
||
6 years ago
|
!net-ftp/uftpd
|
||
10 years ago
|
selinux? ( sec-policy/selinux-tftp )"
|
||
11 years ago
|
|
||
6 years ago
|
PATCHES=(
|
||
|
"${WORKDIR}/${DEBIAN_A}"
|
||
|
"${FILESDIR}/${P}-pcre.patch"
|
||
|
"${FILESDIR}/${P}-password.patch"
|
||
|
"${FILESDIR}/${P}-tests.patch"
|
||
|
"${FILESDIR}/${P}-glibc24.patch"
|
||
|
"${FILESDIR}/${P}-blockno.patch"
|
||
|
"${FILESDIR}/${P}-spaced_filename.patch"
|
||
|
"${FILESDIR}/${P}-illreply.patch"
|
||
|
"${FILESDIR}/${P}-CFLAGS.patch"
|
||
|
)
|
||
|
|
||
|
src_unpack() {
|
||
|
default
|
||
|
mv atftp-0.7.dfsg atftp-0.7 || die
|
||
|
}
|
||
|
|
||
11 years ago
|
src_prepare() {
|
||
6 years ago
|
append-cppflags -D_REENTRANT -DRATE_CONTROL
|
||
|
# fix #561720 by restoring pre-GCC5 inline semantics
|
||
|
append-cflags -std=gnu89
|
||
|
|
||
|
default
|
||
|
eautoreconf
|
||
11 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
$(use_enable tcpd libwrap) \
|
||
|
$(use_enable readline libreadline) \
|
||
|
$(use_enable pcre libpcre) \
|
||
|
--enable-mtftp
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
default
|
||
11 years ago
|
|
||
|
newinitd "${FILESDIR}"/atftp.init atftp
|
||
|
newconfd "${FILESDIR}"/atftp.confd atftp
|
||
|
|
||
|
systemd_dounit "${FILESDIR}"/atftp.service
|
||
|
systemd_install_serviced "${FILESDIR}"/atftp.service.conf
|
||
|
|
||
|
dodoc README* BUGS FAQ Changelog INSTALL TODO
|
||
|
dodoc "${S}"/docs/*
|
||
|
|
||
|
docinto test
|
||
6 years ago
|
cd "${S}"/test || die
|
||
11 years ago
|
dodoc load.sh mtftp.conf pcre_pattern.txt test.sh test_suite.txt
|
||
|
}
|